WordPress Infinite Scroll – Ajax Load More - Version 3.3.0

Version Description

  • November 20, 2017 =

  • NEW - Adding functionality for new for WP_User_Query add-on.

  • NEW - New Admin design, cleaner layout, improved performance.

  • UPDATE - Remove load-more ID from loading button.

  • UPDATE - Updated alm_query_args filter to accept the current post ID as a parameter within the filter.

  • UPDATE - Code clean up, creating JS modules

  • UPDATE - Improved license activations

  • FIX- Removed 'data-masonry-horizontalorder' being rendered into HTML page if empty.

  • FIX- Fixed issue with jump to link on ALM settings page.

Download this release

Release Info

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

Code changes from version 3.2.1 to 3.3.0

Files changed (59) hide show
  1. .babelrc +1 -1
  2. README.txt +18 -2
  3. admin/admin-functions.php +186 -3
  4. admin/admin.php +45 -10
  5. admin/dist/css/admin.css +403 -311
  6. admin/dist/js/admin.js +69 -4
  7. admin/img/add-ons/users-add-on.jpg +0 -0
  8. admin/includes/components/example-list.php +1 -1
  9. admin/includes/cta/about.php +3 -3
  10. admin/includes/cta/add-ons.php +7 -5
  11. admin/includes/cta/dyk.php +24 -16
  12. admin/includes/cta/resources.php +4 -4
  13. admin/includes/cta/sharing.php +14 -10
  14. admin/includes/layout/default.php +1 -1
  15. admin/shortcode-builder/components/acf.php +77 -0
  16. admin/shortcode-builder/components/cache.php +40 -0
  17. admin/shortcode-builder/components/comments.php +148 -0
  18. admin/shortcode-builder/components/cta.php +92 -0
  19. admin/shortcode-builder/components/nextpage.php +115 -0
  20. admin/shortcode-builder/components/paging.php +73 -0
  21. admin/shortcode-builder/components/preloaded.php +38 -0
  22. admin/shortcode-builder/components/previous-post.php +86 -0
  23. admin/shortcode-builder/components/rest-api.php +126 -0
  24. admin/shortcode-builder/components/seo.php +25 -0
  25. admin/shortcode-builder/components/users.php +127 -0
  26. admin/shortcode-builder/js/shortcode-builder.js +47 -54
  27. admin/shortcode-builder/shortcode-builder.php +16 -852
  28. admin/src/js/admin.js +4 -6
  29. admin/src/js/modules/sticky.js +65 -0
  30. admin/src/scss/_variables.scss +1 -0
  31. admin/src/scss/admin.scss +384 -431
  32. admin/src/scss/libs/select2.scss +1 -1
  33. admin/src/scss/partials/_alm-settings-feedback.scss +1 -1
  34. admin/src/scss/partials/_header.scss +38 -0
  35. admin/src/scss/partials/_select2.scss +66 -0
  36. admin/src/scss/partials/_sidebar.scss +23 -0
  37. admin/views/add-ons.php +64 -305
  38. admin/views/extensions.php +38 -40
  39. admin/views/help.php +69 -61
  40. admin/views/licenses.php +126 -782
  41. admin/views/repeater-templates.php +420 -409
  42. admin/views/settings.php +57 -53
  43. admin/views/shortcode-builder.php +42 -29
  44. ajax-load-more.php +16 -30
  45. core/classes/class.alm-shortcode.php +100 -12
  46. core/dist/css/ajax-load-more.css +31 -31
  47. core/dist/css/ajax-load-more.min.css +1 -1
  48. core/dist/js/ajax-load-more.js +310 -258
  49. core/dist/js/ajax-load-more.min.js +1 -1
  50. core/repeater/default.php +1 -1
  51. core/src/js/ajax-load-more.js +139 -312
  52. core/src/js/helpers/helpers.js +77 -0
  53. core/src/js/modules/filtering.js +109 -0
  54. core/src/js/modules/{almMasonry.js → masonry.js} +0 -3
  55. core/src/scss/ajax-load-more.scss +86 -85
  56. gulpfile.js +2 -0
  57. lang/ajax-load-more.pot +826 -778
  58. package.json +2 -0
  59. vendor/EDD_SL_Plugin_Updater.php +477 -0
.babelrc CHANGED
@@ -1,3 +1,3 @@
1
  {
2
  "presets": ["es2015"]
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, ajax load posts, woocommerce, ajax load more
5
  Requires at least: 3.6
6
- Tested up to: 4.8.2
7
- Stable tag: 3.2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -38,9 +38,11 @@ Check out the **[demo site](https://connekthq.com/plugins/ajax-load-more/)** for
38
 
39
 
40
  #### What's New 3.0
 
41
  * **[Advanced Custom Fields](https://connekthq.com/plugins/ajax-load-more/examples/advanced-custom-fields/)** - Compatibility and integration added for infinite scrolling Flexible Content, Gallery, Relationship and Repeater fields for Advanced Custom Fields.
42
  * **[Masonry](https://connekthq.com/plugins/ajax-load-more/examples/masonry/)** - Built-in support and functionality for Masonry layouts.
43
  * **[Progress Bars](https://connekthq.com/plugins/ajax-load-more/examples/progress-bar/)** - Display a Progress Bar load indicator with each Ajax request.
 
44
 
45
 
46
 
@@ -149,6 +151,7 @@ Ajax Load More accepts a number of parameters that are passed to the WordPress q
149
  * **[Preloaded Posts](https://connekthq.com/plugins/ajax-load-more/examples/pause-loading/)** - Easily preload an initial set of posts before completing any Ajax requests to the server.
150
  * **[Progress Bar](https://connekthq.com/plugins/ajax-load-more/examples/progress-bar/)** - Display a progress bar load indicator with each Ajax request.
151
  * **[Search Results](https://connekthq.com/plugins/ajax-load-more/examples/search-results/)** - Returning results based on search terms.
 
152
  * **[SEO & Paging](https://connekthq.com/plugins/ajax-load-more/examples/seo-paging-add-ons/)** - Combine these two add-ons to create one powerful navigation system.
153
  * **[Slideshow Gallery](https://connekthq.com/plugins/ajax-load-more/examples/slideshow-gallery/)** - Create a gallery of posts with Ajax Load More and the Paging add-on.
154
  * **[Table Layout](https://connekthq.com/plugins/ajax-load-more/examples/table/)** - Ajax Load More will display query results in a table format.
@@ -176,6 +179,7 @@ The [Custom Repeater Add-On](https://connekthq.com/plugins/ajax-load-more/custom
176
  * **[Previous Post](https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/)**: Enable infinite scrolling of older(previous) posts on your WordPress single post templates.
177
  * **[SEO](https://connekthq.com/plugins/ajax-load-more/add-ons/search-engine-optimization/)**: Generate unique paging URLs with each Ajax Load More query.
178
  * **[Theme Repeaters](https://connekthq.com/plugins/ajax-load-more/add-ons/theme-repeaters/)**: Manage Ajax Load More repeater templates from within your current theme directory.
 
179
 
180
 
181
 
@@ -365,6 +369,18 @@ How to install Ajax Load More.
365
 
366
  == Changelog ==
367
 
 
 
 
 
 
 
 
 
 
 
 
 
368
  = 3.2.1 - October 5, 2017 =
369
 
370
  * NEW - Added new filter to optionally remove the trailing slash in URL of the SEO add-on. `add_filter('alm_seo_remove_trailing_slash', '__return_true');`
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, ajax load posts, woocommerce, ajax load more
5
  Requires at least: 3.6
6
+ Tested up to: 4.9
7
+ Stable tag: 3.3.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
38
 
39
 
40
  #### What's New 3.0
41
+ * **[User Query](https://connekthq.com/plugins/ajax-load-more/add-ons/users/)** - Query and display a list of WordPress users by role using a `WP_User_Query` and Ajax Load More.
42
  * **[Advanced Custom Fields](https://connekthq.com/plugins/ajax-load-more/examples/advanced-custom-fields/)** - Compatibility and integration added for infinite scrolling Flexible Content, Gallery, Relationship and Repeater fields for Advanced Custom Fields.
43
  * **[Masonry](https://connekthq.com/plugins/ajax-load-more/examples/masonry/)** - Built-in support and functionality for Masonry layouts.
44
  * **[Progress Bars](https://connekthq.com/plugins/ajax-load-more/examples/progress-bar/)** - Display a Progress Bar load indicator with each Ajax request.
45
+ * **[Scroll Container](https://connekthq.com/plugins/ajax-load-more/examples/scroll-container/)** - Constraining infinite scroll to a parent container.
46
 
47
 
48
 
151
  * **[Preloaded Posts](https://connekthq.com/plugins/ajax-load-more/examples/pause-loading/)** - Easily preload an initial set of posts before completing any Ajax requests to the server.
152
  * **[Progress Bar](https://connekthq.com/plugins/ajax-load-more/examples/progress-bar/)** - Display a progress bar load indicator with each Ajax request.
153
  * **[Search Results](https://connekthq.com/plugins/ajax-load-more/examples/search-results/)** - Returning results based on search terms.
154
+ * **[Scroll Container](https://connekthq.com/plugins/ajax-load-more/examples/scroll-container/)** - Constrain Ajax Load More to a parent container.
155
  * **[SEO & Paging](https://connekthq.com/plugins/ajax-load-more/examples/seo-paging-add-ons/)** - Combine these two add-ons to create one powerful navigation system.
156
  * **[Slideshow Gallery](https://connekthq.com/plugins/ajax-load-more/examples/slideshow-gallery/)** - Create a gallery of posts with Ajax Load More and the Paging add-on.
157
  * **[Table Layout](https://connekthq.com/plugins/ajax-load-more/examples/table/)** - Ajax Load More will display query results in a table format.
179
  * **[Previous Post](https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/)**: Enable infinite scrolling of older(previous) posts on your WordPress single post templates.
180
  * **[SEO](https://connekthq.com/plugins/ajax-load-more/add-ons/search-engine-optimization/)**: Generate unique paging URLs with each Ajax Load More query.
181
  * **[Theme Repeaters](https://connekthq.com/plugins/ajax-load-more/add-ons/theme-repeaters/)**: Manage Ajax Load More repeater templates from within your current theme directory.
182
+ * **[Users](https://connekthq.com/plugins/ajax-load-more/add-ons/users/)**: Lazy loading WordPress Users with Ajax Load More.
183
 
184
 
185
 
369
 
370
  == Changelog ==
371
 
372
+ = 3.3.0 - November 20, 2017 =
373
+
374
+ * NEW - Adding functionality for new for [`WP_User_Query`](https://connekthq.com/plugins/ajax-load-more/add-ons/users/) add-on.
375
+ * NEW - New Admin design, cleaner layout, improved performance.
376
+ * UPDATE - Remove `load-more` ID from loading button.
377
+ * UPDATE - Updated `alm_query_args` filter to accept the current post ID as a parameter within the filter.
378
+ * UPDATE - Code clean up, creating JS modules
379
+ * UPDATE - Improved license activations
380
+ * FIX- Removed 'data-masonry-horizontalorder' being rendered into HTML page if empty.
381
+ * FIX- Fixed issue with jump to link on ALM settings page.
382
+
383
+
384
  = 3.2.1 - October 5, 2017 =
385
 
386
  * NEW - Added new filter to optionally remove the trailing slash in URL of the SEO add-on. `add_filter('alm_seo_remove_trailing_slash', '__return_true');`
admin/admin-functions.php CHANGED
@@ -19,6 +19,165 @@ function alm_is_admin_screen(){
19
 
20
 
21
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  /*
23
  * alm_has_addon
24
  * Does user have add-ons installed and activated
@@ -26,10 +185,11 @@ function alm_is_admin_screen(){
26
  *
27
  * @return boolean
28
  * @since 2.13.0
 
29
  */
30
 
31
  function alm_has_addon(){
32
- if(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')) {
33
  return true;
34
  } else {
35
  return false;
@@ -40,14 +200,37 @@ function alm_has_addon(){
40
 
41
  /*
42
  * alm_has_addon_shortcodes
43
- * Does user have an add-ons for shortcode builder installed and activated
44
  *
45
  * @return boolean
46
  * @since 2.13.0.1
47
  */
48
 
49
  function alm_has_addon_shortcodes(){
50
- 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')) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  return true;
52
  } else {
53
  return false;
19
 
20
 
21
 
22
+ /*
23
+ * alm_get_addons
24
+ * An array of add-on parameters
25
+ *
26
+ * @return array
27
+ * @since 3.3.0
28
+ */
29
+ function alm_get_addons(){
30
+ $addons = array(
31
+ array(
32
+ 'name' => __('Cache', 'ajax-load-more'),
33
+ 'intro' => __('Improve performance with the Ajax Load More caching engine.', 'ajax-load-more'),
34
+ 'desc' => __('The Cache add-on creates static HTML files of Ajax Load More requests then delivers those static files to your visitors.', 'ajax-load-more'),
35
+ 'action' => 'alm_cache_installed',
36
+ 'key' => 'alm_cache_license_key',
37
+ 'status' => 'alm_cache_license_status',
38
+ 'settings_field' => 'alm_cache_license',
39
+ 'img' => 'img/add-ons/cache-add-on.jpg',
40
+ 'url' => 'https://connekthq.com/plugins/ajax-load-more/add-ons/cache/',
41
+ 'item_id' => ALM_CACHE_ITEM_NAME
42
+ ),
43
+ array(
44
+ 'name' => __('Call to Actions', 'ajax-load-more'),
45
+ 'intro' => __('Ajax Load More extension for displaying advertisements and call to actions.', 'ajax-load-more'),
46
+ 'desc' => __('The Call to Actions add-on will provide the ability to inject a custom CTA template within each Ajax Load More loop.', 'ajax-load-more'),
47
+ 'action' => 'alm_cta_installed',
48
+ 'key' => 'alm_cta_license_key',
49
+ 'status' => 'alm_cta_license_status',
50
+ 'settings_field' => 'alm_cta_license',
51
+ 'img' => 'img/add-ons/cta-add-on.jpg',
52
+ 'url' => 'https://connekthq.com/plugins/ajax-load-more/add-ons/call-to-actions/',
53
+ 'item_id' => ALM_CTA_ITEM_NAME
54
+ ),
55
+ array(
56
+ 'name' => __('Comments', 'ajax-load-more'),
57
+ 'intro' => __('Load blog comments on demand with Ajax Load More.', 'ajax-load-more'),
58
+ 'desc' => __('The Comments add-on will display your blog comments with Ajax Load More\'s infinite scroll functionality.', 'ajax-load-more'),
59
+ 'action' => 'alm_comments_installed',
60
+ 'key' => 'alm_comments_license_key',
61
+ 'status' => 'alm_comments_license_status',
62
+ 'settings_field' => 'alm_comments_license',
63
+ 'img' => 'img/add-ons/comments-add-on.jpg',
64
+ 'url' => 'https://connekthq.com/plugins/ajax-load-more/add-ons/comments/',
65
+ 'item_id' => ALM_COMMENTS_ITEM_NAME
66
+ ),
67
+ array(
68
+ 'name' => __('Custom Repeaters', 'ajax-load-more'),
69
+ 'intro' => __('Extend Ajax Load More with unlimited repeater templates.', 'ajax-load-more'),
70
+ 'desc' => __('Create, delete and modify repeater templates as you need them with absolutely zero restrictions.', 'ajax-load-more'),
71
+ 'action' => 'alm_unlimited_installed',
72
+ 'key' => 'alm_unlimited_license_key',
73
+ 'status' => 'alm_unlimited_license_status',
74
+ 'settings_field' => 'alm_unlimited_license',
75
+ 'img' => 'img/add-ons/unlimited-add-ons.jpg',
76
+ 'url' => 'https://connekthq.com/plugins/ajax-load-more/add-ons/custom-repeaters/',
77
+ 'item_id' => ALM_UNLIMITED_ITEM_NAME
78
+ ),
79
+ array(
80
+ 'name' => __('Layouts', 'ajax-load-more'),
81
+ 'intro' => __('Predefined layouts for your repeater templates.', 'ajax-load-more'),
82
+ 'desc' => __('The Layouts add-on provides a collection of unique, well designed and fully responsive templates.', 'ajax-load-more'),
83
+ 'action' => 'alm_layouts_installed',
84
+ 'key' => 'alm_layouts_license_key',
85
+ 'status' => 'alm_layouts_license_status',
86
+ 'settings_field' => 'alm_layouts_license',
87
+ 'img' => 'img/add-ons/layouts-add-on.jpg',
88
+ 'url' => 'https://connekthq.com/plugins/ajax-load-more/add-ons/layouts/',
89
+ 'item_id' => ALM_LAYOUTS_ITEM_NAME
90
+ ),
91
+ array(
92
+ 'name' => __('Next Page', 'ajax-load-more'),
93
+ 'intro' => __('Load and display multipage WordPress content.', 'ajax-load-more'),
94
+ 'desc' => __('The Next Page add-on will provide functionality for infinite scrolling paginated posts and pages.', 'ajax-load-more'),
95
+ 'action' => 'alm_nextpage_installed',
96
+ 'key' => 'alm_nextpage_license_key',
97
+ 'status' => 'alm_nextpage_license_status',
98
+ 'settings_field' => 'alm_nextpage_license',
99
+ 'img' => 'img/add-ons/next-page-add-on.jpg',
100
+ 'url' => 'https://connekthq.com/plugins/ajax-load-more/add-ons/nextpage/',
101
+ 'item_id' => ALM_NEXTPAGE_ITEM_NAME
102
+ ),
103
+ array(
104
+ 'name' => __('Paging', 'ajax-load-more'),
105
+ 'intro' => __('Extend Ajax Load More with a numbered navigation.', 'ajax-load-more'),
106
+ 'desc' => __('The Paging add-on will transform the default infinite scroll functionality into a robust ajax powered navigation system.', 'ajax-load-more'),
107
+ 'action' => 'alm_paging_installed',
108
+ 'key' => 'alm_paging_license_key',
109
+ 'status' => 'alm_paging_license_status',
110
+ 'settings_field' => 'alm_paging_license',
111
+ 'img' => 'img/add-ons/paging-add-ons.jpg',
112
+ 'url' => 'https://connekthq.com/plugins/ajax-load-more/add-ons/paging/',
113
+ 'item_id' => ALM_PAGING_ITEM_NAME
114
+ ),
115
+ array(
116
+ 'name' => __('Preloaded', 'ajax-load-more'),
117
+ 'intro' => __('Load an initial set of posts before making Ajax requests to the server.', 'ajax-load-more'),
118
+ 'desc' => __('The Preloaded add-on will display content quicker and allow caching of the initial query which can reduce stress on your server.', 'ajax-load-more'),
119
+ 'action' => 'alm_preload_installed',
120
+ 'key' => 'alm_preloaded_license_key',
121
+ 'status' => 'alm_preloaded_license_status',
122
+ 'settings_field' => 'alm_preloaded_license',
123
+ 'img' => 'img/add-ons/preloaded-add-ons.jpg',
124
+ 'url' => 'https://connekthq.com/plugins/ajax-load-more/add-ons/preloaded/',
125
+ 'item_id' => ALM_PRELOADED_ITEM_NAME
126
+ ),
127
+ array(
128
+ 'name' => __('Previous Post', 'ajax-load-more'),
129
+ 'intro' => __('An add-on to enable infinite scrolling of single posts.', 'ajax-load-more'),
130
+ 'desc' => __('The Previous Post add-on will load single posts as you scroll and update the browser URL to the current post.', 'ajax-load-more'),
131
+ 'action' => 'alm_prev_post_installed',
132
+ 'key' => 'alm_prev_post_license_key',
133
+ 'status' => 'alm_prev_post_license_status',
134
+ 'settings_field' => 'alm_prev_post_license',
135
+ 'img' => 'img/add-ons/prev-post-add-on.jpg',
136
+ 'url' => 'https://connekthq.com/plugins/ajax-load-more/add-ons/preloaded/',
137
+ 'item_id' => ALM_PREV_POST_ITEM_NAME
138
+ ),
139
+ array(
140
+ 'name' => __('Search Engine Optimization', 'ajax-load-more'),
141
+ 'intro' => __('Generate unique paging URLs with every Ajax Load More query.', 'ajax-load-more'),
142
+ 'desc' => __('The SEO add-on will optimize your ajax loaded content for search engines by generating unique URLs with every query.', 'ajax-load-more'),
143
+ 'action' => 'alm_seo_installed',
144
+ 'key' => 'alm_seo_license_key',
145
+ 'status' => 'alm_seo_license_status',
146
+ 'settings_field' => 'alm_seo_license',
147
+ 'img' => 'img/add-ons/seo-add-ons.jpg',
148
+ 'url' => 'https://connekthq.com/plugins/ajax-load-more/add-ons/search-engine-optimization/',
149
+ 'item_id' => ALM_SEO_ITEM_NAME
150
+ ),
151
+ array(
152
+ 'name' => __('Theme Repeaters', 'ajax-load-more'),
153
+ 'intro' => __('Manage repeater templates within your current theme directory.', 'ajax-load-more'),
154
+ 'desc' => __('The Theme Repeater add-on will allow you load, edit and maintain templates from your current theme directory.', 'ajax-load-more'),
155
+ 'action' => 'alm_theme_repeaters_installed',
156
+ 'key' => 'alm_seo_license_key',
157
+ 'status' => 'alm_seo_license_status',
158
+ 'settings_field' => 'alm_seo_license',
159
+ 'img' => 'img/add-ons/theme-repeater-add-on.jpg',
160
+ 'url' => 'https://connekthq.com/plugins/ajax-load-more/add-ons/theme-repeaters/',
161
+ 'item_id' => ALM_THEME_REPEATERS_ITEM_NAME
162
+ ),
163
+ array(
164
+ 'name' => __('Users', 'ajax-load-more'),
165
+ 'intro' => __('Enable infinite scrolling of WordPress users.', 'ajax-load-more'),
166
+ 'desc' => __('The Users add-on will allow lazy loading of users by role using a WP_User_Query.', 'ajax-load-more'),
167
+ 'action' => 'alm_users_installed',
168
+ 'key' => 'alm_theme_repeaters_license_key',
169
+ 'status' => 'alm_theme_repeaters_license_status',
170
+ 'settings_field' => 'alm_theme_repeaters_license',
171
+ 'img' => 'img/add-ons/users-add-on.jpg',
172
+ 'url' => 'https://connekthq.com/plugins/ajax-load-more/add-ons/users/',
173
+ 'item_id' => ALM_USERS_ITEM_NAME
174
+ )
175
+ );
176
+ return $addons;
177
+ }
178
+
179
+
180
+
181
  /*
182
  * alm_has_addon
183
  * Does user have add-ons installed and activated
185
  *
186
  * @return boolean
187
  * @since 2.13.0
188
+ * @depreacted 3.3.0
189
  */
190
 
191
  function alm_has_addon(){
192
+ if(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') || has_action('alm_users_installed')) {
193
  return true;
194
  } else {
195
  return false;
200
 
201
  /*
202
  * alm_has_addon_shortcodes
203
+ * Does user have an add-ons or extensions for shortcode builder installed and activated?
204
  *
205
  * @return boolean
206
  * @since 2.13.0.1
207
  */
208
 
209
  function alm_has_addon_shortcodes(){
210
+ $installed = false;
211
+ $actions = array(
212
+ 'alm_acf_installed',
213
+ 'alm_cache_installed',
214
+ 'alm_cache_installed',
215
+ 'alm_cta_installed',
216
+ 'alm_comments_installed',
217
+ 'alm_unlimited_installed',
218
+ 'alm_nextpage_installed',
219
+ 'alm_preload_installed',
220
+ 'alm_paging_installed',
221
+ 'alm_prev_post_installed',
222
+ 'alm_rest_api_installed',
223
+ 'alm_seo_installed',
224
+ 'alm_theme_repeaters_installed',
225
+ 'alm_users_installed'
226
+ );
227
+ // Loop actions to determine if add-on/extension is installed
228
+ foreach($actions as $action){
229
+ if(has_action($action)) $installed = true;
230
+ }
231
+
232
+
233
+ if($installed) {
234
  return true;
235
  } else {
236
  return false;
admin/admin.php CHANGED
@@ -1,5 +1,4 @@
1
  <?php
2
-
3
  add_action( 'plugins_loaded', 'alm_core_update' ); // Core Update
4
  add_action( 'wp_ajax_alm_save_repeater', 'alm_save_repeater' ); // Ajax Save Repeater
5
  add_action( 'wp_ajax_alm_update_repeater', 'alm_update_repeater' ); // Ajax Update Repeater
@@ -11,8 +10,45 @@ add_action( 'alm_get_layouts', 'alm_get_layouts' ); // Add layout selection
11
  add_action( 'wp_ajax_alm_get_layout', 'alm_get_layout' ); // Get layout
12
  add_action( 'wp_ajax_alm_dismiss_sharing', 'alm_dismiss_sharing' ); // Dismiss sharing
13
  add_filter( 'admin_footer_text', 'alm_filter_admin_footer_text'); // Admin menu text
 
 
14
 
15
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
 
17
  /*
18
  * alm_license_activation
@@ -52,9 +88,7 @@ function alm_license_activation(){
52
  'url' => home_url()
53
  );
54
 
55
- // Call the custom API.
56
- //$response = wp_remote_get( add_query_arg( $api_params, $url ), array( 'timeout' => 15, 'sslverify' => false ) );
57
-
58
  // Updated 2.8.7
59
  $response = wp_remote_post( ALM_STORE_URL, array( 'timeout' => 15, 'sslverify' => false, 'body' => $api_params ) );
60
 
@@ -62,11 +96,8 @@ function alm_license_activation(){
62
  if ( is_wp_error( $response ) )
63
  return false;
64
 
65
-
66
  $license_data = $response['body'];
67
  $license_data = json_decode($license_data); // decode the license data
68
-
69
-
70
  $return["success"] = $license_data->success;
71
 
72
  $msg = '';
@@ -91,7 +122,7 @@ function alm_license_activation(){
91
  die();
92
 
93
  } else {
94
- echo __('You don\'t belong here.', ALM_NAME);
95
  }
96
  }
97
 
@@ -150,7 +181,7 @@ function alm_get_layout(){
150
  $return["value"] = $content;
151
  echo json_encode($return);
152
  }else {
153
- echo __('You don\'t belong here.', ALM_NAME);
154
  }
155
  die();
156
  }
@@ -1313,7 +1344,11 @@ function alm_btn_color_callback() {
1313
 
1314
  $html .= '</select>';
1315
 
1316
- $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>';
 
 
 
 
1317
  echo $html;
1318
  }
1319
 
1
  <?php
 
2
  add_action( 'plugins_loaded', 'alm_core_update' ); // Core Update
3
  add_action( 'wp_ajax_alm_save_repeater', 'alm_save_repeater' ); // Ajax Save Repeater
4
  add_action( 'wp_ajax_alm_update_repeater', 'alm_update_repeater' ); // Ajax Update Repeater
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
+ add_action( 'admin_notices', 'alm_admin_notice_errors' ); // License notice
14
+
15
 
16
 
17
+ /*
18
+ * alm_admin_notice_errors
19
+ * Invalid license notifications
20
+ *
21
+ * @since 3.3.0
22
+ */
23
+ function alm_admin_notice_errors() {
24
+ $screen = get_current_screen();
25
+ $alm_is_admin_screen = alm_is_admin_screen();
26
+ // Exit if screen is not dashboard, plugins or ALM admin.
27
+ if(!$alm_is_admin_screen && $screen->id !== 'dashboard' && $screen->id !== 'plugins'){
28
+ return;
29
+ }
30
+ $class = 'notice error alm-err-notice';
31
+ $message = '';
32
+ $count = 0;
33
+ $addons = alm_get_addons();
34
+ // Loop each addon
35
+ foreach($addons as $addon){
36
+ $action = $addon['action']; // Get action
37
+ if (has_action($action)){
38
+ $key = $addon['key']; // Option key
39
+ $status = $addon['status']; // license status
40
+ $addon_status = get_option( $status );
41
+ if( !isset($addon_status) || empty($addon_status) || $addon_status !== 'valid' ) {
42
+ $count++;
43
+ }
44
+ }
45
+ }
46
+ if( $count > 0 ) {
47
+ $message = __( 'You have invalid <a href="admin.php?page=ajax-load-more"><b>Ajax Load More</b></a> license keys - please visit the <a href="admin.php?page=ajax-load-more-licenses">Licenses</a> section and input your license keys.', 'ajax-load-more' );
48
+ printf( '<div class="%1$s"><p>%2$s</p></div>', $class, $message );
49
+ }
50
+ }
51
+
52
 
53
  /*
54
  * alm_license_activation
88
  'url' => home_url()
89
  );
90
 
91
+ // Call API
 
 
92
  // Updated 2.8.7
93
  $response = wp_remote_post( ALM_STORE_URL, array( 'timeout' => 15, 'sslverify' => false, 'body' => $api_params ) );
94
 
96
  if ( is_wp_error( $response ) )
97
  return false;
98
 
 
99
  $license_data = $response['body'];
100
  $license_data = json_decode($license_data); // decode the license data
 
 
101
  $return["success"] = $license_data->success;
102
 
103
  $msg = '';
122
  die();
123
 
124
  } else {
125
+ echo __('You don\'t belong here.', 'ajax-load-more');
126
  }
127
  }
128
 
181
  $return["value"] = $content;
182
  echo json_encode($return);
183
  }else {
184
+ echo __('You don\'t belong here.', 'ajax-load-more');
185
  }
186
  die();
187
  }
1344
 
1345
  $html .= '</select>';
1346
 
1347
+ $html .= '<div class="clear"></div>';
1348
+ $html .= '<div class="alm-btn-wrap">';
1349
+ $html .= '<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>';
1350
+ $html .= '</div>';
1351
+
1352
  echo $html;
1353
  }
1354
 
admin/dist/css/admin.css CHANGED
@@ -1,5 +1,5 @@
1
- /* This is the default Tooltipster theme (feel free to modify or duplicate and create multiple themes!): */
2
  @import '//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css';
 
3
  .tooltipster-default {
4
  border-radius: 3px;
5
  border: 2px solid #222;
@@ -236,7 +236,7 @@
236
  padding: 0 10px;
237
  overflow: hidden;
238
  position: relative;
239
- border: 1px solid #e7e7e7;
240
  white-space: nowrap;
241
  color: #333;
242
  text-decoration: none;
@@ -514,6 +514,58 @@ disabled look for disabled choices in the results dropdown
514
  width: 1px;
515
  left: 0; }
516
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
517
  .alm-settings-feedback {
518
  position: fixed;
519
  bottom: 20px;
@@ -524,7 +576,7 @@ disabled look for disabled choices in the results dropdown
524
  color: #fff;
525
  padding: 15px 20px 15px 15px;
526
  line-height: 1;
527
- z-index: 999;
528
  border-radius: 2px;
529
  opacity: 0;
530
  visibility: hidden;
@@ -626,6 +678,97 @@ disabled look for disabled choices in the results dropdown
626
  background-size: 30px 10px;
627
  background-position: 95% center; }
628
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
629
  /*
630
  * Admin - Popup Generator
631
  *
@@ -646,7 +789,7 @@ disabled look for disabled choices in the results dropdown
646
  font-size: 14px;
647
  color: #666;
648
  position: relative;
649
- max-width: 1250px; }
650
 
651
  #alm-help.ajax-load-more {
652
  max-width: 1600px; }
@@ -667,12 +810,11 @@ disabled look for disabled choices in the results dropdown
667
  display: block;
668
  padding: 0 0 25px;
669
  margin: -10px 0 0; }
670
-
671
- #alm-settings .admin-select .select2-container {
672
- width: 48%;
673
- min-width: 48%;
674
- display: inline-block;
675
- vertical-align: top; }
676
 
677
  /* Saved Settings */
678
  #alm-settings .row.alm-save-settings {
@@ -680,35 +822,35 @@ disabled look for disabled choices in the results dropdown
680
 
681
  #alm-settings form h2 {
682
  background: #f7f7f7;
683
- border: 1px solid #efefef;
684
  border-bottom: none;
685
  padding: 20px 20px 6px;
686
  margin: 20px 0 0;
687
  font-weight: 600;
688
  font-size: 18px;
689
  border-radius: 2px 2px 0 0; }
690
-
691
- #alm-settings form h2:first-of-type {
692
- margin: 0; }
693
-
694
- #alm-settings form h2 + p {
695
- color: #999;
696
- padding: 0 20px 17px;
697
- border-right: 1px solid #efefef;
698
- border-left: 1px solid #efefef;
699
- background: #f7f7f7;
700
- margin: 0;
701
- font-size: 13px; }
702
 
703
  .ajax-load-more p.file-location {
704
  border: 1px solid #efefef;
705
  background: #fff;
706
- margin: 0 0 10px;
707
  padding: 15px;
708
  line-height: 1;
709
  display: block;
710
  font-family: Consolas, Monaco, monospace;
711
- border-radius: 3px; }
 
 
 
712
 
713
  .ajax-load-more code {
714
  background: #fcf3d0; }
@@ -1043,6 +1185,7 @@ a.layout-hover:hover img {
1043
  .ajax-load-more #meta-query-relation,
1044
  .ajax-load-more #tax-query-relation,
1045
  .ajax-load-more .comments_extras,
 
1046
  .ajax-load-more .taxonomy-extended {
1047
  display: none;
1048
  overflow: hidden; }
@@ -1302,7 +1445,7 @@ a.layout-hover:hover img {
1302
  display: none; }
1303
 
1304
  /* Table of Contents */
1305
- .table-of-contents.attached {
1306
  position: fixed;
1307
  width: auto;
1308
  top: 70px; }
@@ -1338,7 +1481,7 @@ hr.indented {
1338
 
1339
  .ajax-load-more .section-title {
1340
  float: left;
1341
- padding: 20px 0 20px 36px;
1342
  width: 40%; }
1343
 
1344
  .ajax-load-more .section-title.full {
@@ -1399,7 +1542,7 @@ hr.indented {
1399
  padding-left: 0 !important; }
1400
 
1401
  .ajax-load-more label.template-title {
1402
- padding: 10px 0;
1403
  margin: 0;
1404
  font-size: 13px;
1405
  color: #888; }
@@ -1584,11 +1727,11 @@ hr.indented {
1584
  * @since 1.0
1585
  */
1586
  .form-table label {
1587
- display: inline-block;
1588
  clear: both;
1589
  float: none;
1590
  vertical-align: top;
1591
- padding: 0 0 10px;
1592
  max-width: 90%;
1593
  cursor: pointer !important;
1594
  line-height: 1.5; }
@@ -1618,7 +1761,7 @@ hr.indented {
1618
  border-left: 5px solid #dfd8c2;
1619
  padding: 16px;
1620
  background: #fff9ea;
1621
- margin: 10px 0 0;
1622
  border-radius: 2px; }
1623
 
1624
  .form-table .template-tags h4,
@@ -1668,6 +1811,9 @@ hr.indented {
1668
  .admin.ajax-load-more.settings .select2-container {
1669
  margin-top: 10px; }
1670
 
 
 
 
1671
  .admin.ajax-load-more .ajax-load-more-wrap {
1672
  position: relative;
1673
  top: 10px;
@@ -1718,41 +1864,6 @@ hr.indented {
1718
  overflow: hidden;
1719
  color: #999; }
1720
 
1721
- .header-wrap {
1722
- overflow: hidden;
1723
- padding: 10px 0; }
1724
-
1725
- .ajax-load-more .header-wrap h1 {
1726
- padding-left: 60px;
1727
- min-height: 48px;
1728
- padding-top: 0;
1729
- background: url("../../img/alm-logo-48x48.png") no-repeat left 0;
1730
- background: url("../../img/alm-logo-48x48.svg") no-repeat left 0; }
1731
-
1732
- .ajax-load-more .header-wrap h1 em {
1733
- display: block;
1734
- position: relative;
1735
- margin-top: 1px;
1736
- font-size: 14px;
1737
- opacity: 0.7;
1738
- font-style: normal;
1739
- font-weight: 400;
1740
- line-height: 1.35; }
1741
-
1742
- .ajax-load-more .header-wrap h1 strong {
1743
- font-weight: 700; }
1744
-
1745
- .ajax-load-more h1 span {
1746
- color: #999;
1747
- font-weight: 300;
1748
- background: #fff;
1749
- padding: 5px 6px;
1750
- border-radius: 2px;
1751
- font-size: 0.8em;
1752
- position: relative;
1753
- top: -2px;
1754
- left: 5px; }
1755
-
1756
  .ajax-load-more h2.addon-title {
1757
  font-size: 19px !important;
1758
  line-height: 24px;
@@ -1856,25 +1967,18 @@ input.save-repeater {
1856
  .restore-default a {
1857
  text-decoration: none; }
1858
 
1859
- .alm-save-settings p.submit {
1860
- float: left;
1861
- margin: 0 5px 0 0;
1862
- width: auto; }
1863
-
1864
- .alm-save-settings .spinner {
1865
- display: none;
1866
- float: left;
1867
- visibility: visible !important; }
1868
-
1869
  table.highlight {
1870
  background: #fff !important; }
1871
 
1872
  /* Columns */
1873
  .ajax-load-more .cnkt-main {
1874
- width: 69%;
1875
  float: left;
1876
- margin-top: 10px;
1877
- background: none !important; }
 
 
 
1878
 
1879
  .ajax-load-more .cnkt-main .group {
1880
  background: #fff;
@@ -1888,7 +1992,14 @@ table.highlight {
1888
  .ajax-load-more .cnkt-sidebar .cta,
1889
  .call-out.light {
1890
  border: 1px solid #e1e1e1;
1891
- border-radius: 3px; }
 
 
 
 
 
 
 
1892
 
1893
  .ajax-load-more .cnkt-main.full {
1894
  width: 100%;
@@ -1903,8 +2014,15 @@ table.highlight {
1903
  border-top: 1px solid #efefef; }
1904
 
1905
  .form-table {
1906
- border: 1px solid #efefef;
1907
  margin: 0 0 25px; }
 
 
 
 
 
 
 
1908
 
1909
  #alm_OptionsForm .form-table:last-of-type {
1910
  margin-bottom: 0; }
@@ -1934,9 +2052,9 @@ table.highlight {
1934
 
1935
  /* Repeaters */
1936
  .repeaters .repeater-wrap {
1937
- padding: 12px 15px 10px !important; }
1938
 
1939
- .repeater-wrap label {
1940
  cursor: default; }
1941
 
1942
  .repeaters input.save-repeater {
@@ -1945,8 +2063,8 @@ table.highlight {
1945
  clear: none;
1946
  max-width: 25%; }
1947
 
1948
- .repeater-wrap textarea,
1949
- .repeater-wrap input[type=text] {
1950
  width: 100%; }
1951
 
1952
  .repeaters input.save-repeater.saving {
@@ -1957,6 +2075,43 @@ table.highlight {
1957
  max-width: 72%;
1958
  opacity: 0; }
1959
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1960
  /* Add-ons & Extensions */
1961
  .flexbox-wrap {
1962
  display: -webkit-box;
@@ -1975,6 +2130,10 @@ table.highlight {
1975
  word-spacing: -4px;
1976
  padding: 0; }
1977
 
 
 
 
 
1978
  #alm-add-ons .group .expand-wrap {
1979
  display: block;
1980
  padding-bottom: 50px;
@@ -2152,7 +2311,7 @@ span.cnkt-button.installed i,
2152
 
2153
  .license-title {
2154
  border-radius: 3px 3px 0 0;
2155
- border: 1px solid #ccc;
2156
  background-color: #efefef;
2157
  position: relative; }
2158
 
@@ -2245,14 +2404,13 @@ span.cnkt-button.installed i,
2245
  overflow: hidden;
2246
  display: block;
2247
  padding: 15px;
2248
- border: 1px solid #ccc;
2249
  border-top: none;
2250
  background-color: #f7f7f7;
2251
  border-radius: 0 0 3px 3px; }
2252
 
2253
  .license-wrap label {
2254
  font-weight: 600;
2255
- /* position: relative; */
2256
  top: -3px; }
2257
 
2258
  .license-wrap input[type=text] {
@@ -2312,11 +2470,6 @@ span.cnkt-button.installed i,
2312
  *
2313
  * @since 1.0
2314
  */
2315
- .ajax-load-more .cnkt-sidebar {
2316
- width: 29.5%;
2317
- float: right;
2318
- margin-top: 10px; }
2319
-
2320
  .ajax-load-more .cnkt-sidebar .cta {
2321
  background: #fff;
2322
  padding: 0;
@@ -2346,13 +2499,12 @@ span.cnkt-button.installed i,
2346
  margin-top: 0; }
2347
 
2348
  .ajax-load-more .cnkt-sidebar h3 {
2349
- padding: 15px 20px;
2350
- border-bottom: 1px solid #e1e1e1;
2351
- background: #f7f7f7;
2352
  margin: 0;
2353
  display: block;
2354
- font-size: 14px;
2355
- text-transform: uppercase;
2356
  border-radius: 2px 2px 0 0; }
2357
 
2358
  .ajax-load-more .cnkt-sidebar .item {
@@ -2372,13 +2524,21 @@ span.cnkt-button.installed i,
2372
  margin: 0 0 5px;
2373
  font-size: 14px; }
2374
 
 
 
 
2375
  .ajax-load-more .cnkt-sidebar .cta.dyk img {
2376
- padding: 0 20px; }
 
 
2377
 
2378
  .ajax-load-more .cnkt-sidebar .cta.dyk p {
2379
- margin: 15px 0 0;
2380
- display: block;
2381
- overflow: hidden; }
 
 
 
2382
 
2383
  .ajax-load-more .cnkt-sidebar ul {
2384
  padding: 5px 0 0;
@@ -2498,17 +2658,16 @@ span.cnkt-button.installed i,
2498
 
2499
  /*
2500
  * CodeMirror Syntax Highlighting
2501
- *
2502
  * @since 2.2.0
2503
  */
2504
  .ajax-load-more .CodeMirror {
2505
  height: auto;
2506
  border-radius: 3px;
2507
- padding: 8px;
2508
  background: #f7f7f7;
2509
  border: 1px solid #e1e1e1;
2510
  color: #999;
2511
- line-height: 1.3; }
2512
 
2513
  .ajax-load-more .cm-readonly .CodeMirror {
2514
  margin: 0 0 20px;
@@ -2534,8 +2693,8 @@ span.cnkt-button.installed i,
2534
  .ajax-load-more .CodeMirror-gutters {
2535
  /* Line Number color */
2536
  background: #fff;
2537
- border-right: 1px solid #ccc;
2538
- border-radius: 2px 0 0 2px; }
2539
 
2540
  .ajax-load-more .CodeMirror pre {
2541
  font-size: 13px; }
@@ -2643,44 +2802,6 @@ span.cnkt-button.installed i,
2643
  .ajax-load-more .row.unlimited input[type=text] {
2644
  width: 100.75%; }
2645
 
2646
- .repeaters .alm-delete {
2647
- clear: none;
2648
- display: inline-block;
2649
- margin: 15px 0 0;
2650
- width: auto;
2651
- float: right;
2652
- opacity: 0;
2653
- -webkit-transition: all 0.2s ease;
2654
- transition: all 0.2s ease;
2655
- position: absolute;
2656
- right: 15px;
2657
- bottom: 17px; }
2658
-
2659
- .repeaters .alm-delete a {
2660
- border-radius: 2px;
2661
- background: none;
2662
- color: #c94141;
2663
- font-size: 14px;
2664
- text-decoration: none;
2665
- display: block;
2666
- padding: 5px 10px; }
2667
-
2668
- .repeaters .alm-delete a:hover {
2669
- background-color: #c94141;
2670
- color: #fff; }
2671
-
2672
- .repeaters .alm-delete a:focus {
2673
- -webkit-box-shadow: none;
2674
- box-shadow: none; }
2675
-
2676
- .repeaters .alm-delete a:active {
2677
- -webkit-box-shadow: inset 0 1px 1px #ccc !important;
2678
- box-shadow: inset 0 1px 1px #ccc !important;
2679
- background-color: #b93636; }
2680
-
2681
- .repeaters .row:hover .alm-delete {
2682
- opacity: 1; }
2683
-
2684
  .alm-add-template {
2685
  text-align: center;
2686
  margin: 15px 0 0 !important;
@@ -2765,45 +2886,39 @@ span.cnkt-button.installed i,
2765
  position: relative;
2766
  display: block;
2767
  margin: -5px 0 25px; }
2768
-
2769
- .ajax-load-more .alm-cache-search-wrap input {
2770
- width: 100% !important;
2771
- margin: 0 !important;
2772
- padding: 16px;
2773
- display: block;
2774
- font-size: 16px; }
2775
-
2776
- .ajax-load-more .alm-cache-search-wrap i {
2777
- position: absolute;
2778
- right: 18px;
2779
- top: 15px;
2780
- color: #ccc;
2781
- font-size: 24px;
2782
- z-index: 1; }
2783
 
2784
  /* Directory Listing */
2785
  .alm-dir-listing {
2786
  border: 1px solid #efefef;
2787
  padding: 0;
2788
- margin: 10px 0; }
2789
-
2790
- .alm-dir-listing.theme-repeaters {
2791
- padding: 15px;
2792
- margin: 0; }
2793
-
2794
- .alm-dir-listing.theme-repeaters ul {
2795
- border: none;
2796
- padding: 0;
2797
- margin: 0; }
2798
-
2799
- .alm-dir-listing.theme-repeaters p.theme-title {
2800
- font-weight: 600;
2801
- margin: 0 0 15px;
2802
- padding: 0 5px; }
2803
-
2804
- .alm-dir-listing.theme-repeaters i {
2805
- color: #ccc;
2806
- font-size: 1.1em; }
2807
 
2808
  .alm-dir-listing.deleting {
2809
  opacity: 0.5;
@@ -2929,15 +3044,13 @@ span.cnkt-button.installed i,
2929
  background-color: #e0f5ff;
2930
  border-color: #bad0da;
2931
  color: #666; }
2932
-
2933
- .cache-cleared i {
2934
- color: #111;
2935
- margin: 0 5px 0 0; }
2936
-
2937
- .cache-cleared .remove {
2938
- float: right;
2939
- font-size: 12px;
2940
- font-weight: 600; }
2941
 
2942
  #alm-cache.ajax-load-more .cnkt-sidebar .item {
2943
  padding: 20px;
@@ -2946,35 +3059,28 @@ span.cnkt-button.installed i,
2946
  p.cache-stats {
2947
  min-height: 38px;
2948
  line-height: 37px;
2949
- margin: 0;
2950
  display: block;
2951
- padding: 20px 20px 0 20px; }
2952
-
2953
- p.cache-stats span {
2954
- display: inline-block;
2955
- width: 38px;
2956
- height: 38px;
2957
- line-height: 36px;
2958
- text-align: center;
2959
- margin: 0 9px 0 0;
2960
- font-weight: 700;
2961
- font-size: 15px;
2962
- border-radius: 2px;
2963
- background: #a4a5e2;
2964
- background: -webkit-gradient(linear, left top, left bottom, from(#a4a5e2), color-stop(50%, #9ea0d9), color-stop(51%, #8d8fce), to(#a4a5e2));
2965
- background: linear-gradient(to bottom, #a4a5e2 0%, #9ea0d9 50%, #8d8fce 51%, #a4a5e2 100%);
2966
- filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a4a5e2', endColorstr='#a4a5e2',GradientType=0 );
2967
- border: 1px solid #8586be;
2968
- -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
2969
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
2970
- color: #fff;
2971
- text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.1); }
2972
-
2973
- form#delete-all-cache {
2974
- display: block;
2975
- padding: 20px;
2976
- border-top: 1px solid #efefef;
2977
- margin-top: 10px; }
2978
 
2979
  /*
2980
  * Error Handling
@@ -3067,7 +3173,7 @@ form#delete-all-cache {
3067
  display: block;
3068
  font-size: 22px;
3069
  width: calc(100% + 40px);
3070
- border-bottom: 1px solid #efefef;
3071
  background-color: #f7f7f7;
3072
  border-radius: 2px 2px 0 0;
3073
  color: #23282d; }
@@ -3122,7 +3228,7 @@ form#delete-all-cache {
3122
  line-height: 1.25;
3123
  display: block;
3124
  -webkit-box-shadow: 0 0 0 1px #fff;
3125
- box-shadow: 0 0 0 1px #fff; }
3126
 
3127
  .alm-drop-btn a.target > i {
3128
  color: #999;
@@ -3136,7 +3242,7 @@ form#delete-all-cache {
3136
  color: #666;
3137
  border-color: #c9c9c9;
3138
  -webkit-box-shadow: 0 0 3px #ccc;
3139
- box-shadow: 0 0 3px #ccc; }
3140
 
3141
  .alm-repeater-options a.target:hover i.fa-cog {
3142
  color: #444; }
@@ -3147,7 +3253,7 @@ form#delete-all-cache {
3147
  background-color: #fff;
3148
  border-color: #c9c9c9;
3149
  -webkit-box-shadow: inset 0 1px 1px #ccc !important;
3150
- box-shadow: inset 0 1px 1px #ccc !important; }
3151
 
3152
  .alm-repeater-options.active a.target,
3153
  .alm-repeater-options.active a.target i.fa-cog {
@@ -3281,13 +3387,13 @@ form#delete-all-cache {
3281
  background-color: #fff;
3282
  border-color: #ccc;
3283
  -webkit-box-shadow: 0 0 3px #efefef;
3284
- box-shadow: 0 0 3px #efefef;
3285
  opacity: 1; }
3286
 
3287
  .alm-drop-btn.alm-layout-selection.active a.target,
3288
  .alm-drop-btn.alm-layout-selection a.target:active {
3289
  -webkit-box-shadow: inset 0 1px 1px #ccc !important;
3290
- box-shadow: inset 0 1px 1px #ccc !important; }
3291
 
3292
  .alm-drop-btn.alm-layout-selection .alm-dropdown {
3293
  display: none;
@@ -3418,7 +3524,7 @@ span.dismiss a {
3418
  background-position: 4px center;
3419
  color: #666;
3420
  -webkit-box-shadow: none !important;
3421
- box-shadow: none !important;
3422
  position: relative;
3423
  width: 100%;
3424
  white-space: nowrap;
@@ -3636,94 +3742,79 @@ span.dismiss a {
3636
  padding-right: 30px;
3637
  border-left: 1px dashed #ccc; }
3638
 
3639
- ul.share {
3640
- margin: 0;
3641
  padding: 0 0 0;
3642
  width: auto;
3643
  clear: both;
3644
  display: inline-block;
3645
- overflow: hidden;
3646
- text-align: center;
3647
- width: 100%;
3648
- margin: 0;
3649
- padding: 0;
3650
- height: auto;
3651
- overflow: visible; }
3652
-
3653
- ul.share li {
3654
- background: none;
3655
- float: left;
3656
- vertical-align: top;
3657
- height: 40px;
3658
- line-height: 40px;
3659
- font-size: 13px;
3660
- width: auto;
3661
- position: relative;
3662
- font-weight: 400;
3663
  text-align: left;
3664
- background: none;
3665
- color: #787878;
3666
- width: auto;
3667
- text-align: center;
3668
- height: 36px;
3669
- margin: 5px 10px 0 0;
3670
- padding: 0; }
3671
-
3672
- ul.share li i {
3673
- height: 36px;
3674
- line-height: 36px;
3675
- left: 0;
3676
- width: 36px; }
3677
-
3678
- ul.share li a {
3679
- display: block;
3680
- line-height: 40px;
3681
- height: 40px;
3682
- width: auto;
3683
- padding: 0 25px 0 50px;
3684
- text-decoration: none;
3685
- color: #fff;
3686
- background: none;
3687
- border-radius: 3px;
3688
- position: relative;
3689
- font-weight: 600;
3690
- background: #33cf92; }
3691
-
3692
- ul.share li a:hover {
3693
- background-color: #45dfa3; }
3694
-
3695
- ul.share li i {
3696
- font-size: 17px;
3697
- line-height: 41px;
3698
- height: 40px;
3699
- width: 36px;
3700
- position: absolute;
3701
- top: 0;
3702
- left: 0;
3703
- text-align: center;
3704
- border-right: 1px solid rgba(0, 0, 0, 0.1);
3705
- background-color: rgba(0, 0, 0, 0.1);
3706
- border-radius: 2px 0 0 2px; }
3707
-
3708
- ul.share li a:hover,
3709
- ul.share li a:hover i {
3710
- text-decoration: none;
3711
- color: #fff !important; }
3712
-
3713
- ul.share li a:hover span {
3714
- text-decoration: none; }
3715
-
3716
- ul.share li.twitter a {
3717
- background: #00aced; }
3718
-
3719
- ul.share li.twitter a:hover {
3720
- background: #13beff !important; }
3721
-
3722
- ul.share li.facebook a {
3723
- background: #3b5998; }
3724
-
3725
- ul.share li.facebook a:hover {
3726
- background: #466cbc !important; }
 
 
3727
 
3728
  /*
3729
  * Local templates Add-on
@@ -3833,18 +3924,19 @@ ul.share li.facebook a:hover {
3833
  .ajax-load-more .cnkt-main.full {
3834
  float: none;
3835
  clear: both;
3836
- margin: 10px 0 20px;
3837
- width: 100%; }
 
3838
  .admin.ajax-load-more.settings .form-table td {
3839
  padding: 24px 17px 20px; }
3840
- #alm-add-ons .group {
3841
- width: 48%; }
3842
  .call-out.light {
3843
  padding: 15px !important; }
3844
  .repeaters input.save-repeater {
3845
  max-width: 50%; } }
3846
 
3847
- @media screen and (max-width: 768px) {
 
 
3848
  .share-alm .sharing {
3849
  padding-right: 0;
3850
  width: 100%;
 
1
  @import '//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css';
2
+ /* This is the default Tooltipster theme (feel free to modify or duplicate and create multiple themes!): */
3
  .tooltipster-default {
4
  border-radius: 3px;
5
  border: 2px solid #222;
236
  padding: 0 10px;
237
  overflow: hidden;
238
  position: relative;
239
+ border: 1px solid #e1e1e1;
240
  white-space: nowrap;
241
  color: #333;
242
  text-decoration: none;
514
  width: 1px;
515
  left: 0; }
516
 
517
+ .ajax-load-more .header-wrap {
518
+ overflow: hidden;
519
+ padding: 25px 25px 12.5px;
520
+ background: #f7f7f7;
521
+ border-bottom: 1px solid #e1e1e1; }
522
+ .ajax-load-more .header-wrap h1 {
523
+ padding: 0 0 0 58px;
524
+ min-height: 48px;
525
+ padding-top: 0;
526
+ background: url("../../img/alm-logo-48x48.png") no-repeat 0 0;
527
+ background: url("../../img/alm-logo-48x48.svg") no-repeat 0 0; }
528
+ .ajax-load-more .header-wrap h1 em {
529
+ display: block;
530
+ position: relative;
531
+ margin-top: 1px;
532
+ font-size: 14px;
533
+ opacity: 0.7;
534
+ font-style: normal;
535
+ font-weight: 400;
536
+ line-height: 1.35;
537
+ margin: 1px 0 12.5px; }
538
+ .ajax-load-more .header-wrap h1 strong {
539
+ font-weight: 700; }
540
+ .ajax-load-more .header-wrap h1 span {
541
+ color: #999;
542
+ font-weight: 300;
543
+ background: #fff;
544
+ padding: 5px 6px;
545
+ border-radius: 2px;
546
+ font-size: 0.8em;
547
+ position: relative;
548
+ top: -2px;
549
+ left: 5px; }
550
+
551
+ .ajax-load-more .cnkt-sidebar {
552
+ width: 33%;
553
+ float: right;
554
+ background: #efefef;
555
+ padding: 25px;
556
+ position: absolute;
557
+ right: 0;
558
+ top: 0;
559
+ height: 100%; }
560
+ .ajax-load-more .cnkt-sidebar .major-publishing-actions {
561
+ padding: 15px;
562
+ clear: both;
563
+ border-top: 1px solid #e1e1e1;
564
+ background: #f7f7f7; }
565
+ .ajax-load-more .cnkt-sidebar .major-publishing-actions i {
566
+ opacity: 0.4;
567
+ margin: 0 2px 0 0; }
568
+
569
  .alm-settings-feedback {
570
  position: fixed;
571
  bottom: 20px;
576
  color: #fff;
577
  padding: 15px 20px 15px 15px;
578
  line-height: 1;
579
+ z-index: 9999;
580
  border-radius: 2px;
581
  opacity: 0;
582
  visibility: hidden;
678
  background-size: 30px 10px;
679
  background-position: 95% center; }
680
 
681
+ body.toplevel_page_ajax-load-more,
682
+ body.ajax-load-more_page_ajax-load-more-repeaters,
683
+ body.ajax-load-more_page_ajax-load-more-shortcode-builder,
684
+ body.ajax-load-more_page_ajax-load-more-add-ons,
685
+ body.ajax-load-more_page_ajax-load-more-extensions,
686
+ body.ajax-load-more_page_ajax-load-more-help,
687
+ body.ajax-load-more_page_ajax-load-more-licenses,
688
+ body.ajax-load-more_page_ajax-load-more-cache {
689
+ background-color: #f7f7f7; }
690
+ body.toplevel_page_ajax-load-more #wpcontent,
691
+ body.ajax-load-more_page_ajax-load-more-repeaters #wpcontent,
692
+ body.ajax-load-more_page_ajax-load-more-shortcode-builder #wpcontent,
693
+ body.ajax-load-more_page_ajax-load-more-add-ons #wpcontent,
694
+ body.ajax-load-more_page_ajax-load-more-extensions #wpcontent,
695
+ body.ajax-load-more_page_ajax-load-more-help #wpcontent,
696
+ body.ajax-load-more_page_ajax-load-more-licenses #wpcontent,
697
+ body.ajax-load-more_page_ajax-load-more-cache #wpcontent {
698
+ padding-left: 0;
699
+ padding-bottom: 40px;
700
+ background-color: #efefef; }
701
+ body.toplevel_page_ajax-load-more #wpbody-content,
702
+ body.ajax-load-more_page_ajax-load-more-repeaters #wpbody-content,
703
+ body.ajax-load-more_page_ajax-load-more-shortcode-builder #wpbody-content,
704
+ body.ajax-load-more_page_ajax-load-more-add-ons #wpbody-content,
705
+ body.ajax-load-more_page_ajax-load-more-extensions #wpbody-content,
706
+ body.ajax-load-more_page_ajax-load-more-help #wpbody-content,
707
+ body.ajax-load-more_page_ajax-load-more-licenses #wpbody-content,
708
+ body.ajax-load-more_page_ajax-load-more-cache #wpbody-content {
709
+ padding-bottom: 0; }
710
+
711
+ body.toplevel_page_ajax-load-more,
712
+ body.ajax-load-more_page_ajax-load-more-repeaters,
713
+ body.ajax-load-more_page_ajax-load-more-shortcode-builder,
714
+ body.ajax-load-more_page_ajax-load-more-add-ons,
715
+ body.ajax-load-more_page_ajax-load-more-extensions,
716
+ body.ajax-load-more_page_ajax-load-more-help,
717
+ body.ajax-load-more_page_ajax-load-more-licenses,
718
+ body.ajax-load-more_page_ajax-load-more-cache {
719
+ background: #efefef; }
720
+ body.toplevel_page_ajax-load-more #wpfooter,
721
+ body.ajax-load-more_page_ajax-load-more-repeaters #wpfooter,
722
+ body.ajax-load-more_page_ajax-load-more-shortcode-builder #wpfooter,
723
+ body.ajax-load-more_page_ajax-load-more-add-ons #wpfooter,
724
+ body.ajax-load-more_page_ajax-load-more-extensions #wpfooter,
725
+ body.ajax-load-more_page_ajax-load-more-help #wpfooter,
726
+ body.ajax-load-more_page_ajax-load-more-licenses #wpfooter,
727
+ body.ajax-load-more_page_ajax-load-more-cache #wpfooter {
728
+ padding-top: 0;
729
+ padding-bottom: 0;
730
+ line-height: 40px;
731
+ background: #f7f7f7;
732
+ border-top: 1px solid #efefef;
733
+ position: fixed;
734
+ bottom: 0;
735
+ z-index: 1100; }
736
+ body.toplevel_page_ajax-load-more #wpfooter p,
737
+ body.ajax-load-more_page_ajax-load-more-repeaters #wpfooter p,
738
+ body.ajax-load-more_page_ajax-load-more-shortcode-builder #wpfooter p,
739
+ body.ajax-load-more_page_ajax-load-more-add-ons #wpfooter p,
740
+ body.ajax-load-more_page_ajax-load-more-extensions #wpfooter p,
741
+ body.ajax-load-more_page_ajax-load-more-help #wpfooter p,
742
+ body.ajax-load-more_page_ajax-load-more-licenses #wpfooter p,
743
+ body.ajax-load-more_page_ajax-load-more-cache #wpfooter p {
744
+ line-height: 40px; }
745
+ @media screen and (min-width: 901px) {
746
+ body.toplevel_page_ajax-load-more .ajax-load-more .cnkt-main,
747
+ body.ajax-load-more_page_ajax-load-more-repeaters .ajax-load-more .cnkt-main,
748
+ body.ajax-load-more_page_ajax-load-more-shortcode-builder .ajax-load-more .cnkt-main,
749
+ body.ajax-load-more_page_ajax-load-more-add-ons .ajax-load-more .cnkt-main,
750
+ body.ajax-load-more_page_ajax-load-more-extensions .ajax-load-more .cnkt-main,
751
+ body.ajax-load-more_page_ajax-load-more-help .ajax-load-more .cnkt-main,
752
+ body.ajax-load-more_page_ajax-load-more-licenses .ajax-load-more .cnkt-main,
753
+ body.ajax-load-more_page_ajax-load-more-cache .ajax-load-more .cnkt-main {
754
+ min-height: 100vh; } }
755
+
756
+ body.ajax-load-more_page_ajax-load-more-extensions {
757
+ background: #fff; }
758
+ body.ajax-load-more_page_ajax-load-more-extensions #wpcontent {
759
+ background: #fff; }
760
+
761
+ .main-cnkt-wrap {
762
+ padding: 0 !important;
763
+ margin: 0 !important; }
764
+
765
+ .ajax-load-more-inner-wrapper {
766
+ padding: 0;
767
+ display: block;
768
+ clear: both;
769
+ max-width: 1440px;
770
+ position: relative; }
771
+
772
  /*
773
  * Admin - Popup Generator
774
  *
789
  font-size: 14px;
790
  color: #666;
791
  position: relative;
792
+ max-width: 100%; }
793
 
794
  #alm-help.ajax-load-more {
795
  max-width: 1600px; }
810
  display: block;
811
  padding: 0 0 25px;
812
  margin: -10px 0 0; }
813
+ #alm-settings .admin-select .select2-container {
814
+ width: 40%;
815
+ min-width: 40%;
816
+ display: inline-block;
817
+ vertical-align: top; }
 
818
 
819
  /* Saved Settings */
820
  #alm-settings .row.alm-save-settings {
822
 
823
  #alm-settings form h2 {
824
  background: #f7f7f7;
825
+ border: 1px solid #e1e1e1;
826
  border-bottom: none;
827
  padding: 20px 20px 6px;
828
  margin: 20px 0 0;
829
  font-weight: 600;
830
  font-size: 18px;
831
  border-radius: 2px 2px 0 0; }
832
+ #alm-settings form h2:first-of-type {
833
+ margin: 0; }
834
+ #alm-settings form h2 + p {
835
+ color: #999;
836
+ padding: 0 20px 17px;
837
+ border-right: 1px solid #e1e1e1;
838
+ border-left: 1px solid #e1e1e1;
839
+ background: #f7f7f7;
840
+ margin: 0; }
 
 
 
841
 
842
  .ajax-load-more p.file-location {
843
  border: 1px solid #efefef;
844
  background: #fff;
845
+ margin: 0 0 5px;
846
  padding: 15px;
847
  line-height: 1;
848
  display: block;
849
  font-family: Consolas, Monaco, monospace;
850
+ border-radius: 3px;
851
+ font-size: 12px; }
852
+ .ajax-load-more p.file-location code {
853
+ font-size: 13px; }
854
 
855
  .ajax-load-more code {
856
  background: #fcf3d0; }
1185
  .ajax-load-more #meta-query-relation,
1186
  .ajax-load-more #tax-query-relation,
1187
  .ajax-load-more .comments_extras,
1188
+ .ajax-load-more #users-extended,
1189
  .ajax-load-more .taxonomy-extended {
1190
  display: none;
1191
  overflow: hidden; }
1445
  display: none; }
1446
 
1447
  /* Table of Contents */
1448
+ #cnkt-sticky.attached {
1449
  position: fixed;
1450
  width: auto;
1451
  top: 70px; }
1481
 
1482
  .ajax-load-more .section-title {
1483
  float: left;
1484
+ padding: 22px 0 20px 36px;
1485
  width: 40%; }
1486
 
1487
  .ajax-load-more .section-title.full {
1542
  padding-left: 0 !important; }
1543
 
1544
  .ajax-load-more label.template-title {
1545
+ padding: 0 0 10px;
1546
  margin: 0;
1547
  font-size: 13px;
1548
  color: #888; }
1727
  * @since 1.0
1728
  */
1729
  .form-table label {
1730
+ display: block;
1731
  clear: both;
1732
  float: none;
1733
  vertical-align: top;
1734
+ padding: 0 0 8px;
1735
  max-width: 90%;
1736
  cursor: pointer !important;
1737
  line-height: 1.5; }
1761
  border-left: 5px solid #dfd8c2;
1762
  padding: 16px;
1763
  background: #fff9ea;
1764
+ margin: 20px 0 0;
1765
  border-radius: 2px; }
1766
 
1767
  .form-table .template-tags h4,
1811
  .admin.ajax-load-more.settings .select2-container {
1812
  margin-top: 10px; }
1813
 
1814
+ .admin.ajax-load-more .alm-btn-wrap {
1815
+ text-align: left; }
1816
+
1817
  .admin.ajax-load-more .ajax-load-more-wrap {
1818
  position: relative;
1819
  top: 10px;
1864
  overflow: hidden;
1865
  color: #999; }
1866
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1867
  .ajax-load-more h2.addon-title {
1868
  font-size: 19px !important;
1869
  line-height: 24px;
1967
  .restore-default a {
1968
  text-decoration: none; }
1969
 
 
 
 
 
 
 
 
 
 
 
1970
  table.highlight {
1971
  background: #fff !important; }
1972
 
1973
  /* Columns */
1974
  .ajax-load-more .cnkt-main {
1975
+ width: 67%;
1976
  float: left;
1977
+ background: #fff !important;
1978
+ padding: 25px;
1979
+ border-right: 1px solid #e1e1e1; }
1980
+ .ajax-load-more .cnkt-main.full {
1981
+ border: none !important; }
1982
 
1983
  .ajax-load-more .cnkt-main .group {
1984
  background: #fff;
1992
  .ajax-load-more .cnkt-sidebar .cta,
1993
  .call-out.light {
1994
  border: 1px solid #e1e1e1;
1995
+ border-radius: 3px;
1996
+ -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
1997
+ box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); }
1998
+ .ajax-load-more .cnkt-main .group.no-shadow,
1999
+ .ajax-load-more .cnkt-sidebar .cta.no-shadow,
2000
+ .call-out.light.no-shadow {
2001
+ -webkit-box-shadow: none;
2002
+ box-shadow: none; }
2003
 
2004
  .ajax-load-more .cnkt-main.full {
2005
  width: 100%;
2014
  border-top: 1px solid #efefef; }
2015
 
2016
  .form-table {
2017
+ border: 1px solid #e1e1e1;
2018
  margin: 0 0 25px; }
2019
+ .form-table br {
2020
+ height: 1px;
2021
+ display: block;
2022
+ overflow: hidden;
2023
+ line-height: 1px;
2024
+ margin: 0;
2025
+ content: ''; }
2026
 
2027
  #alm_OptionsForm .form-table:last-of-type {
2028
  margin-bottom: 0; }
2052
 
2053
  /* Repeaters */
2054
  .repeaters .repeater-wrap {
2055
+ padding: 20px 20px 15px !important; }
2056
 
2057
+ .repeaters .repeater-wrap label {
2058
  cursor: default; }
2059
 
2060
  .repeaters input.save-repeater {
2063
  clear: none;
2064
  max-width: 25%; }
2065
 
2066
+ .repeaters .repeater-wrap textarea,
2067
+ .repeaters .repeater-wrap input[type=text] {
2068
  width: 100%; }
2069
 
2070
  .repeaters input.save-repeater.saving {
2075
  max-width: 72%;
2076
  opacity: 0; }
2077
 
2078
+ .repeaters .one_half {
2079
+ padding-bottom: 10px; }
2080
+
2081
+ .repeaters .alm-delete {
2082
+ clear: none;
2083
+ display: inline-block;
2084
+ margin: 15px 0 0;
2085
+ width: auto;
2086
+ float: right;
2087
+ opacity: 0;
2088
+ -webkit-transition: all 0.2s ease;
2089
+ transition: all 0.2s ease;
2090
+ position: absolute;
2091
+ right: 20px;
2092
+ bottom: 17px; }
2093
+ .repeaters .alm-delete a {
2094
+ border-radius: 2px;
2095
+ background: none;
2096
+ color: #c94141;
2097
+ font-size: 14px;
2098
+ text-decoration: none;
2099
+ display: block;
2100
+ padding: 5px 10px; }
2101
+ .repeaters .alm-delete a:hover {
2102
+ background-color: #c94141;
2103
+ color: #fff; }
2104
+ .repeaters .alm-delete a:focus {
2105
+ -webkit-box-shadow: none;
2106
+ box-shadow: none; }
2107
+ .repeaters .alm-delete a:active {
2108
+ -webkit-box-shadow: inset 0 1px 1px #ccc !important;
2109
+ box-shadow: inset 0 1px 1px #ccc !important;
2110
+ background-color: #b93636; }
2111
+
2112
+ .repeaters .row:hover .alm-delete {
2113
+ opacity: 1; }
2114
+
2115
  /* Add-ons & Extensions */
2116
  .flexbox-wrap {
2117
  display: -webkit-box;
2130
  word-spacing: -4px;
2131
  padding: 0; }
2132
 
2133
+ @media screen and (max-width: 1350px) {
2134
+ #alm-add-ons .group {
2135
+ width: 48%; } }
2136
+
2137
  #alm-add-ons .group .expand-wrap {
2138
  display: block;
2139
  padding-bottom: 50px;
2311
 
2312
  .license-title {
2313
  border-radius: 3px 3px 0 0;
2314
+ border: 1px solid #e1e1e1;
2315
  background-color: #efefef;
2316
  position: relative; }
2317
 
2404
  overflow: hidden;
2405
  display: block;
2406
  padding: 15px;
2407
+ border: 1px solid #e1e1e1;
2408
  border-top: none;
2409
  background-color: #f7f7f7;
2410
  border-radius: 0 0 3px 3px; }
2411
 
2412
  .license-wrap label {
2413
  font-weight: 600;
 
2414
  top: -3px; }
2415
 
2416
  .license-wrap input[type=text] {
2470
  *
2471
  * @since 1.0
2472
  */
 
 
 
 
 
2473
  .ajax-load-more .cnkt-sidebar .cta {
2474
  background: #fff;
2475
  padding: 0;
2499
  margin-top: 0; }
2500
 
2501
  .ajax-load-more .cnkt-sidebar h3 {
2502
+ padding: 14px 20px;
2503
+ background: #fff;
 
2504
  margin: 0;
2505
  display: block;
2506
+ font-size: 15px;
2507
+ text-transform: none;
2508
  border-radius: 2px 2px 0 0; }
2509
 
2510
  .ajax-load-more .cnkt-sidebar .item {
2524
  margin: 0 0 5px;
2525
  font-size: 14px; }
2526
 
2527
+ .ajax-load-more .cnkt-sidebar .cta.dyk .cta-inner {
2528
+ overflow: hidden; }
2529
+
2530
  .ajax-load-more .cnkt-sidebar .cta.dyk img {
2531
+ padding: 0 20px 10px 0;
2532
+ max-width: 40%;
2533
+ float: left; }
2534
 
2535
  .ajax-load-more .cnkt-sidebar .cta.dyk p {
2536
+ margin: 0 0 15px;
2537
+ clear: none; }
2538
+ .ajax-load-more .cnkt-sidebar .cta.dyk p:last-child {
2539
+ margin: 0; }
2540
+ .ajax-load-more .cnkt-sidebar .cta.dyk p.addon-intro {
2541
+ margin-top: -3px; }
2542
 
2543
  .ajax-load-more .cnkt-sidebar ul {
2544
  padding: 5px 0 0;
2658
 
2659
  /*
2660
  * CodeMirror Syntax Highlighting
 
2661
  * @since 2.2.0
2662
  */
2663
  .ajax-load-more .CodeMirror {
2664
  height: auto;
2665
  border-radius: 3px;
2666
+ padding: 5px;
2667
  background: #f7f7f7;
2668
  border: 1px solid #e1e1e1;
2669
  color: #999;
2670
+ line-height: 1.45; }
2671
 
2672
  .ajax-load-more .cm-readonly .CodeMirror {
2673
  margin: 0 0 20px;
2693
  .ajax-load-more .CodeMirror-gutters {
2694
  /* Line Number color */
2695
  background: #fff;
2696
+ border-right: 1px solid #e1e1e1;
2697
+ border-radius: 2px; }
2698
 
2699
  .ajax-load-more .CodeMirror pre {
2700
  font-size: 13px; }
2802
  .ajax-load-more .row.unlimited input[type=text] {
2803
  width: 100.75%; }
2804
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2805
  .alm-add-template {
2806
  text-align: center;
2807
  margin: 15px 0 0 !important;
2886
  position: relative;
2887
  display: block;
2888
  margin: -5px 0 25px; }
2889
+ .ajax-load-more .alm-cache-search-wrap input {
2890
+ width: 100% !important;
2891
+ margin: 0 !important;
2892
+ padding: 15px;
2893
+ display: block;
2894
+ font-size: 18px; }
2895
+ .ajax-load-more .alm-cache-search-wrap i {
2896
+ position: absolute;
2897
+ right: 15px;
2898
+ top: 14px;
2899
+ color: #ccc;
2900
+ font-size: 24px;
2901
+ z-index: 1; }
 
 
2902
 
2903
  /* Directory Listing */
2904
  .alm-dir-listing {
2905
  border: 1px solid #efefef;
2906
  padding: 0;
2907
+ margin: 20px 0 0; }
2908
+ .alm-dir-listing.theme-repeaters {
2909
+ padding: 15px;
2910
+ margin: 0; }
2911
+ .alm-dir-listing.theme-repeaters ul {
2912
+ border: none;
2913
+ padding: 0;
2914
+ margin: 0; }
2915
+ .alm-dir-listing.theme-repeaters p.theme-title {
2916
+ font-weight: 600;
2917
+ margin: 0 0 15px;
2918
+ padding: 0 5px; }
2919
+ .alm-dir-listing.theme-repeaters i {
2920
+ color: #ccc;
2921
+ font-size: 1.1em; }
 
 
 
 
2922
 
2923
  .alm-dir-listing.deleting {
2924
  opacity: 0.5;
3044
  background-color: #e0f5ff;
3045
  border-color: #bad0da;
3046
  color: #666; }
3047
+ .cache-cleared i {
3048
+ color: #111;
3049
+ margin: 0 5px 0 0; }
3050
+ .cache-cleared .remove {
3051
+ float: right;
3052
+ font-size: 12px;
3053
+ font-weight: 600; }
 
 
3054
 
3055
  #alm-cache.ajax-load-more .cnkt-sidebar .item {
3056
  padding: 20px;
3059
  p.cache-stats {
3060
  min-height: 38px;
3061
  line-height: 37px;
 
3062
  display: block;
3063
+ padding: 0;
3064
+ margin: 0; }
3065
+ p.cache-stats span {
3066
+ display: inline-block;
3067
+ width: 38px;
3068
+ height: 38px;
3069
+ line-height: 36px;
3070
+ text-align: center;
3071
+ margin: 0 9px 0 0;
3072
+ font-weight: 700;
3073
+ font-size: 15px;
3074
+ border-radius: 2px;
3075
+ background: #a4a5e2;
3076
+ background: -webkit-gradient(linear, left top, left bottom, from(#a4a5e2), color-stop(50%, #9ea0d9), color-stop(51%, #8d8fce), to(#a4a5e2));
3077
+ background: linear-gradient(to bottom, #a4a5e2 0%, #9ea0d9 50%, #8d8fce 51%, #a4a5e2 100%);
3078
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a4a5e2', endColorstr='#a4a5e2',GradientType=0 );
3079
+ border: 1px solid #8586be;
3080
+ -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
3081
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
3082
+ color: #fff;
3083
+ text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.1); }
 
 
 
 
 
 
3084
 
3085
  /*
3086
  * Error Handling
3173
  display: block;
3174
  font-size: 22px;
3175
  width: calc(100% + 40px);
3176
+ border-bottom: 1px solid #e1e1e1;
3177
  background-color: #f7f7f7;
3178
  border-radius: 2px 2px 0 0;
3179
  color: #23282d; }
3228
  line-height: 1.25;
3229
  display: block;
3230
  -webkit-box-shadow: 0 0 0 1px #fff;
3231
+ box-shadow: 0 0 0 1px #fff; }
3232
 
3233
  .alm-drop-btn a.target > i {
3234
  color: #999;
3242
  color: #666;
3243
  border-color: #c9c9c9;
3244
  -webkit-box-shadow: 0 0 3px #ccc;
3245
+ box-shadow: 0 0 3px #ccc; }
3246
 
3247
  .alm-repeater-options a.target:hover i.fa-cog {
3248
  color: #444; }
3253
  background-color: #fff;
3254
  border-color: #c9c9c9;
3255
  -webkit-box-shadow: inset 0 1px 1px #ccc !important;
3256
+ box-shadow: inset 0 1px 1px #ccc !important; }
3257
 
3258
  .alm-repeater-options.active a.target,
3259
  .alm-repeater-options.active a.target i.fa-cog {
3387
  background-color: #fff;
3388
  border-color: #ccc;
3389
  -webkit-box-shadow: 0 0 3px #efefef;
3390
+ box-shadow: 0 0 3px #efefef;
3391
  opacity: 1; }
3392
 
3393
  .alm-drop-btn.alm-layout-selection.active a.target,
3394
  .alm-drop-btn.alm-layout-selection a.target:active {
3395
  -webkit-box-shadow: inset 0 1px 1px #ccc !important;
3396
+ box-shadow: inset 0 1px 1px #ccc !important; }
3397
 
3398
  .alm-drop-btn.alm-layout-selection .alm-dropdown {
3399
  display: none;
3524
  background-position: 4px center;
3525
  color: #666;
3526
  -webkit-box-shadow: none !important;
3527
+ box-shadow: none !important;
3528
  position: relative;
3529
  width: 100%;
3530
  white-space: nowrap;
3742
  padding-right: 30px;
3743
  border-left: 1px dashed #ccc; }
3744
 
3745
+ .share-alm ul.share {
3746
+ margin: 0 0 10px;
3747
  padding: 0 0 0;
3748
  width: auto;
3749
  clear: both;
3750
  display: inline-block;
3751
+ overflow: visible;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3752
  text-align: left;
3753
+ width: 100%;
3754
+ height: auto; }
3755
+ .share-alm ul.share li {
3756
+ background: none;
3757
+ display: inline-block;
3758
+ vertical-align: top;
3759
+ height: 40px;
3760
+ line-height: 40px;
3761
+ font-size: 13px;
3762
+ position: relative;
3763
+ font-weight: 400;
3764
+ text-align: left;
3765
+ background: none;
3766
+ color: #787878;
3767
+ width: auto;
3768
+ text-align: center;
3769
+ height: 36px;
3770
+ margin: 10px 10px 0 0 !important;
3771
+ padding: 0; }
3772
+ .share-alm ul.share li a {
3773
+ display: block;
3774
+ line-height: 40px;
3775
+ height: 40px;
3776
+ width: auto;
3777
+ padding: 0 15px 0 45px;
3778
+ text-decoration: none;
3779
+ color: #fff;
3780
+ text-align: center;
3781
+ background: none;
3782
+ border-radius: 3px;
3783
+ position: relative;
3784
+ font-weight: 600;
3785
+ background: #33cf92; }
3786
+ @media screen and (min-width: 1500px) {
3787
+ .share-alm ul.share li a {
3788
+ padding: 0 25px 0 50px; } }
3789
+ .share-alm ul.share li a:hover {
3790
+ background-color: #45dfa3; }
3791
+ .share-alm ul.share li a i {
3792
+ font-size: 20px;
3793
+ line-height: 41px;
3794
+ height: 40px;
3795
+ width: 35px;
3796
+ position: absolute;
3797
+ top: 0;
3798
+ left: 0;
3799
+ text-align: center;
3800
+ border-right: 1px solid rgba(0, 0, 0, 0.1);
3801
+ background-color: rgba(0, 0, 0, 0.1);
3802
+ border-radius: 2px 0 0 2px; }
3803
+ .share-alm ul.share li a:hover,
3804
+ .share-alm ul.share li a:hover i {
3805
+ text-decoration: none;
3806
+ color: #fff !important; }
3807
+ .share-alm ul.share li a:hover span,
3808
+ .share-alm ul.share li a:hover i span {
3809
+ text-decoration: none; }
3810
+ .share-alm ul.share li.twitter a {
3811
+ background: #00aced; }
3812
+ .share-alm ul.share li.twitter a:hover {
3813
+ background: #13beff !important; }
3814
+ .share-alm ul.share li.facebook a {
3815
+ background: #3b5998; }
3816
+ .share-alm ul.share li.facebook a:hover {
3817
+ background: #466cbc !important; }
3818
 
3819
  /*
3820
  * Local templates Add-on
3924
  .ajax-load-more .cnkt-main.full {
3925
  float: none;
3926
  clear: both;
3927
+ margin: 0;
3928
+ width: 100%;
3929
+ position: static !important; }
3930
  .admin.ajax-load-more.settings .form-table td {
3931
  padding: 24px 17px 20px; }
 
 
3932
  .call-out.light {
3933
  padding: 15px !important; }
3934
  .repeaters input.save-repeater {
3935
  max-width: 50%; } }
3936
 
3937
+ @media screen and (max-width: 782px) {
3938
+ .admin.ajax-load-more.settings .form-table th {
3939
+ padding-bottom: 0; }
3940
  .share-alm .sharing {
3941
  padding-right: 0;
3942
  width: 100%;
admin/dist/js/admin.js CHANGED
@@ -1204,6 +1204,72 @@ SELECT 2 FORM REPLACEMNT
1204
  }(jQuery);
1205
  'use strict';
1206
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1207
  var _alm = _alm || {};
1208
 
1209
  jQuery(document).ready(function ($) {
@@ -1278,7 +1344,6 @@ jQuery(document).ready(function ($) {
1278
  // On Change, save the settings
1279
  var settingsTimer = void 0;
1280
  $(document).on('change', '#alm_OptionsForm input, #alm_OptionsForm textarea, #alm_OptionsForm select', function () {
1281
-
1282
  // Set a timer to avoid updating settings to frequently
1283
  if (settingsTimer) clearTimeout(settingsTimer);
1284
  settingsTimer = setTimeout(function () {
@@ -1361,7 +1426,7 @@ jQuery(document).ready(function ($) {
1361
  };
1362
 
1363
  // Copy link on shortcode builder
1364
- $('.output-wrap .copy').click(function () {
1365
  var c = $('#shortcode_output').html();
1366
  _alm.copyToClipboard(c);
1367
  });
@@ -1584,9 +1649,9 @@ jQuery(document).ready(function ($) {
1584
  $(document).on('change', '#alm-settings-nav', function (e) {
1585
  e.preventDefault();
1586
  var el = $(this),
1587
- index = el.val();
1588
-
1589
  if (index !== '#') {
 
1590
  $('html, body').animate({
1591
  scrollTop: $("#alm_OptionsForm h2").eq(index).offset().top - 40
1592
  }, 500);
1204
  }(jQuery);
1205
  'use strict';
1206
 
1207
+ var alm = alm || {};
1208
+
1209
+ /*
1210
+ * alm.attachSticky
1211
+ */
1212
+ alm.attachSticky = function (el, anchor) {
1213
+ var top = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
1214
+
1215
+ var h = el.offsetHeight + top,
1216
+ // height of sticky el
1217
+ anchorOffset = anchor.getBoundingClientRect(),
1218
+ anchor_top = anchorOffset.top,
1219
+ w_height = window.innerHeight,
1220
+ // Window height
1221
+ el_height = el.offsetHeight; // element height
1222
+
1223
+ if (w_height > el_height + top) {
1224
+ // If container height > than sticky height
1225
+ if (anchor_top <= top) {
1226
+ el.classList.add('attached');
1227
+ } else {
1228
+ if (anchor_top > top) {
1229
+ el.classList.remove('attached');
1230
+ }
1231
+ }
1232
+ }
1233
+ };
1234
+
1235
+ /*
1236
+ * alm.resizeSticky
1237
+ */
1238
+ alm.resizeSticky = function () {
1239
+ var sticky = document.getElementById('cnkt-sticky');
1240
+ var el = document.getElementById('cnkt-sticky-wrapper');
1241
+ var atts = window.getComputedStyle(el);
1242
+ sticky.style.width = atts.width;
1243
+ };
1244
+
1245
+ /*
1246
+ * initSticky
1247
+ */
1248
+ var initSticky = function initSticky() {
1249
+ if (document.getElementById("cnkt-sticky-wrapper")) {
1250
+ var sticky_el = document.getElementById('cnkt-sticky');
1251
+ var sticky_anchor = document.getElementById('cnkt-sticky-wrapper');
1252
+ var sticky_top = 70; // The position the sticky should stick
1253
+
1254
+ // Scroll
1255
+ window.addEventListener('scroll', function (e) {
1256
+ alm.attachSticky(sticky_el, sticky_anchor, sticky_top);
1257
+ });
1258
+ // Resize
1259
+ window.addEventListener('resize', function (e) {
1260
+ alm.resizeSticky();
1261
+ });
1262
+ // Init
1263
+ alm.resizeSticky();
1264
+ alm.attachSticky(sticky_el, sticky_anchor, sticky_top);
1265
+ }
1266
+ };
1267
+
1268
+ window.onload = function () {
1269
+ initSticky();
1270
+ };
1271
+ 'use strict';
1272
+
1273
  var _alm = _alm || {};
1274
 
1275
  jQuery(document).ready(function ($) {
1344
  // On Change, save the settings
1345
  var settingsTimer = void 0;
1346
  $(document).on('change', '#alm_OptionsForm input, #alm_OptionsForm textarea, #alm_OptionsForm select', function () {
 
1347
  // Set a timer to avoid updating settings to frequently
1348
  if (settingsTimer) clearTimeout(settingsTimer);
1349
  settingsTimer = setTimeout(function () {
1426
  };
1427
 
1428
  // Copy link on shortcode builder
1429
+ $('.shortcode-builder .copy').click(function () {
1430
  var c = $('#shortcode_output').html();
1431
  _alm.copyToClipboard(c);
1432
  });
1649
  $(document).on('change', '#alm-settings-nav', function (e) {
1650
  e.preventDefault();
1651
  var el = $(this),
1652
+ index = $('option:selected', el).index();
 
1653
  if (index !== '#') {
1654
+ index = index - 1;
1655
  $('html, body').animate({
1656
  scrollTop: $("#alm_OptionsForm h2").eq(index).offset().top - 40
1657
  }, 500);
admin/img/add-ons/users-add-on.jpg ADDED
Binary file
admin/includes/components/example-list.php CHANGED
@@ -1,4 +1,4 @@
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">
1
+ <div class="group no-shadow">
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">
admin/includes/cta/about.php CHANGED
@@ -1,5 +1,5 @@
1
  <div class="cta">
2
- <h3>Other Plugins</h3>
3
  <div class="cta-inner">
4
  <ul class="project-listing">
5
  <li>
@@ -20,14 +20,14 @@
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="">
29
  <strong>Velocity</strong>
30
- <span>Improve website performance by lazy loading and customizing your embedded media with Velocity.</span>
31
  </a>
32
  </li>
33
  </ul>
1
  <div class="cta">
2
+ <h3><?php _e('Other Plugins', 'ajax-load-more'); ?></h3>
3
  <div class="cta-inner">
4
  <ul class="project-listing">
5
  <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>One click uploads of Unsplash.com photos directly to your media library.</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="">
29
  <strong>Velocity</strong>
30
+ <span>Improve website performance by lazy loading your embedded media.</span>
31
  </a>
32
  </li>
33
  </ul>
admin/includes/cta/add-ons.php CHANGED
@@ -1,8 +1,10 @@
1
- <div class="cta padding-bottom">
2
- <h3>Add-ons</h3>
3
  <div class="cta-inner">
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>
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>
admin/includes/cta/dyk.php CHANGED
@@ -3,45 +3,53 @@
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"><br/>
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 an lightbox window.</p>
9
  </div>
10
  <?php } ?>
11
 
12
  <?php if($random == 2){ ?>
13
- <div class="cta-inner padding-bottom">
14
- <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/cache-add-on.jpg"><br/>
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
- <a target="blank" class="visit" href="https://connekthq.com/plugins/ajax-load-more/add-ons/cache/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=Cache"><i class="fa fa-chevron-circle-right"></i> Learn More</a>
18
  </div>
 
 
 
19
  <?php } ?>
20
 
21
  <?php if($random == 3){ ?>
22
- <div class="cta-inner padding-bottom">
23
- <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/prev-post-add-on.jpg"><br/>
24
- <p class="addon-intro">You can lazy load your single posts with Ajax Load More!</p>
25
  <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>
26
- <a target="blank" class="visit" href="https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=PreviousPost"><i class="fa fa-chevron-circle-right"></i> Learn More</a>
 
 
27
  </div>
28
  <?php } ?>
29
 
30
  <?php if($random == 4){ ?>
31
- <div class="cta-inner padding-bottom">
32
- <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/comments-add-on.jpg"><br/>
33
- <p class="addon-intro">You can lazy load your comments with Ajax Load More!</p>
34
  <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>
35
- <a target="blank" class="visit" href="https://connekthq.com/plugins/ajax-load-more/add-ons/comments/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=Comments"><i class="fa fa-chevron-circle-right"></i> Learn More</a>
 
 
36
  </div>
37
  <?php } ?>
38
 
39
  <?php if($random == 5){ ?>
40
- <div class="cta-inner padding-bottom">
41
- <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/next-page-add-on.jpg"><br/>
42
  <p class="addon-intro">You can infinite scroll just about anything with the Next Page add-on!</p>
43
  <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>
44
- <a target="blank" class="visit" href="https://connekthq.com/plugins/ajax-load-more/add-ons/next-page/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=Next Page"><i class="fa fa-chevron-circle-right"></i> Learn More</a>
 
 
45
  </div>
46
  <?php } ?>
47
 
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
 
admin/includes/cta/resources.php CHANGED
@@ -1,15 +1,15 @@
1
- <div class="cta padding-bottom resources">
2
  <h3><?php _e('Resources', 'ajax-load-more'); ?></h3>
3
  <div class="cta-inner">
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('Plugin 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="http://twitter.com/ajaxloadmore"><i class="fa fa-twitter"></i> <?php _e('Twitter', 'ajax-load-more'); ?></a></li>
10
  <li><a target="blank" href="http://facebook.com/ajaxloadmore"><i class="fa fa-facebook"></i> <?php _e('Facebook', 'ajax-load-more'); ?></a></li>
11
- <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>
12
  </ul>
13
  </div>
14
- <a href="https://wordpress.org/plugins/ajax-load-more/" target="blank" class="visit"><i class="fa fa-wordpress"></i> <?php _e('WordPress Repository', 'ajax-load-more'); ?></a>
15
  </div>
1
+ <div class="cta resources">
2
  <h3><?php _e('Resources', 'ajax-load-more'); ?></h3>
3
  <div class="cta-inner">
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>
11
  <li><a target="blank" href="http://twitter.com/ajaxloadmore"><i class="fa fa-twitter"></i> <?php _e('Twitter', 'ajax-load-more'); ?></a></li>
12
  <li><a target="blank" href="http://facebook.com/ajaxloadmore"><i class="fa fa-facebook"></i> <?php _e('Facebook', 'ajax-load-more'); ?></a></li>
 
13
  </ul>
14
  </div>
 
15
  </div>
admin/includes/cta/sharing.php CHANGED
@@ -1,10 +1,14 @@
1
- <h4><?php _e('Share Ajax Load More', 'ajax-load-more'); ?> <i class="fa fa-share-alt"></i></h4>
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>
9
- </li>
10
- </ul>
 
 
 
 
1
+ <div class="cta share-alm">
2
+ <h3><?php _e('Share Ajax Load More', 'ajax-load-more'); ?></h3>
3
+ <div class="cta-inner">
4
+ <p><?php _e('Help spread the word by sharing Ajax Load More on Twitter and Facebook.', 'ajax-load-more'); ?></p>
5
+ <ul class="share">
6
+ <li class="twitter">
7
+ <a target="blank" title="Share on Twitter" href="//twitter.com/home?status=I'm infinite scrolling with Ajax Load More for WordPress - https://connekthq.com/plugins/ajax-load-more/" class="share-twitter"><i class="fa fa-twitter"></i> Twitter</a>
8
+ </li>
9
+ <li class="facebook">
10
+ <a target="blank" title="Share on Facebook" href="//facebook.com/share.php?u=https://connekthq.com/plugins/ajax-load-more/" class="share-facebook"><i class="fa fa-facebook"></i> Facebook</a>
11
+ </li>
12
+ </ul>
13
+ </div>
14
+ </div>
admin/includes/layout/default.php CHANGED
@@ -1,6 +1,6 @@
1
  <li<?php if (! has_post_thumbnail() ) { echo ' class="no-img"'; } ?>>
2
  <?php if ( has_post_thumbnail() ) {
3
- the_post_thumbnail(array(150,150));
4
  }?>
5
  <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
6
  <p class="entry-meta">
1
  <li<?php if (! has_post_thumbnail() ) { echo ' class="no-img"'; } ?>>
2
  <?php if ( has_post_thumbnail() ) {
3
+ the_post_thumbnail('alm-thumbnail');
4
  }?>
5
  <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
6
  <p class="entry-meta">
admin/shortcode-builder/components/acf.php ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if(has_action('alm_acf_installed')){ ?>
2
+ <div class="row input cache add-on" id="alm-acf">
3
+ <h3 class="heading"><?php _e('Advanced Custom Fields', 'ajax-load-more'); ?></h3>
4
+ <div class="expand-wrap">
5
+ <div class="section-title">
6
+ <p><?php _e('Enable compatibility with Advanced Custom Fields.', 'ajax-load-more'); ?></p>
7
+ </div>
8
+ <div class="wrap">
9
+ <div class="inner">
10
+ <ul>
11
+ <li>
12
+ <input class="alm_element" type="radio" name="acf" value="true" id="acf-true" >
13
+ <label for="acf-true"><?php _e('True', 'ajax-load-more'); ?></label>
14
+ </li>
15
+ <li>
16
+ <input class="alm_element" type="radio" name="acf" value="false" id="acf-false" checked="checked">
17
+ <label for="acf-false"><?php _e('False', 'ajax-load-more'); ?></label>
18
+ </li>
19
+ </ul>
20
+ </div>
21
+ </div>
22
+ <div class="clear"></div>
23
+
24
+ <div class="acf-options">
25
+
26
+ <div class="clear"></div>
27
+ <hr>
28
+ <div class="section-title">
29
+ <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 retrieve the ID from the global $post object','ajax-load-more'); ?>."></a></h4>
30
+ <p><?php _e('The ID of the current page/post.', 'ajax-load-more'); ?></p>
31
+ </div>
32
+ <div class="wrap">
33
+ <div class="inner">
34
+ <input type="text" value="" id="acf_post_id" class="alm_element">
35
+ </div>
36
+ </div>
37
+
38
+ <div class="clear"></div>
39
+ <hr/>
40
+ <div class="spacer"></div>
41
+
42
+ <div class="section-title">
43
+ <h4><?php _e('Field Type', 'ajax-load-more'); ?></h4>
44
+ <p><?php _e('Select the type of ACF field', 'ajax-load-more'); ?>.</p>
45
+ </div>
46
+ <div class="wrap">
47
+ <div class="inner">
48
+ <label class="offscreen" for="acf_field_type"><?php _e('Field Type', 'ajax-load-more'); ?>:</label>
49
+ <select class="alm_element" name="acf_field_type" id="acf_field_type">
50
+ <option value="" selected="selected">-- <?php _e('Select Field Type', 'ajax-load-more'); ?> --</option>
51
+ <option value="flexible"><?php _e('Flexible Content', 'ajax-load-more'); ?></option>
52
+ <option value="gallery"><?php _e('Gallery', 'ajax-load-more'); ?></option>
53
+ <option value="relationship"><?php _e('Relationship', 'ajax-load-more'); ?></option>
54
+ <option value="repeater"><?php _e('Repeater', 'ajax-load-more'); ?></option>
55
+ </select>
56
+ </div>
57
+ </div>
58
+
59
+ <div class="clear"></div>
60
+ <hr/>
61
+ <div class="spacer"></div>
62
+
63
+ <div class="section-title">
64
+ <h4><?php _e('Field Name', 'ajax-load-more'); ?></h4>
65
+ <p><?php _e('Enter the name of the ACF field', 'ajax-load-more'); ?>.</p>
66
+ </div>
67
+ <div class="wrap">
68
+ <div class="inner">
69
+ <label class="offscreen" for="acf_field_name"><?php _e('Field Type', 'ajax-load-more'); ?>:</label>
70
+ <input type="text" class="alm_element" name="acf_field_name" id="acf_field_name" placeholder="{your_field_name}">
71
+ </div>
72
+ </div>
73
+
74
+ </div>
75
+ </div>
76
+ </div>
77
+ <?php } ?>
admin/shortcode-builder/components/cache.php ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if(has_action('alm_cache_installed')){ ?>
2
+ <div class="row input cache add-on" id="alm-cache">
3
+ <h3 class="heading"><?php _e('Cache', 'ajax-load-more'); ?></h3>
4
+ <div class="expand-wrap">
5
+ <div class="section-title">
6
+ <p><?php _e('Turn on content caching.', 'ajax-load-more'); ?></p>
7
+ </div>
8
+ <div class="wrap">
9
+ <div class="inner">
10
+ <ul>
11
+ <li>
12
+ <input class="alm_element" type="radio" name="cache" value="true" id="cache-true" >
13
+ <label for="cache-true"><?php _e('True', 'ajax-load-more'); ?></label>
14
+ </li>
15
+ <li>
16
+ <input class="alm_element" type="radio" name="cache" value="false" id="cache-false" checked="checked">
17
+ <label for="cache-false"><?php _e('False', 'ajax-load-more'); ?></label>
18
+ </li>
19
+ </ul>
20
+ </div>
21
+ </div>
22
+ <div class="clear"></div>
23
+ <div class="cache_id">
24
+ <div class="clear"></div>
25
+ <hr>
26
+ <div class="section-title">
27
+ <h4><?php _e('Cache ID', 'ajax-load-more'); ?></h4>
28
+ <p><?php _e('You <u>must</u> generate a unique ID for this cached query - this unique ID will be used as a content identifier.', 'ajax-load-more'); ?></p>
29
+ </div>
30
+ <div class="wrap">
31
+ <div class="inner">
32
+ <input type="text" class="alm_element" name="cache-id" id="cache-id">
33
+ <div class="clear"></div>
34
+ <p class="generate-id"><a href="javascript:void(0);" data-id="cache-id"><i class="fa fa-random"></i> <?php _e('Generate Cache ID', 'ajax-load-more'); ?></a></p>
35
+ </div>
36
+ </div>
37
+ </div>
38
+ </div>
39
+ </div>
40
+ <?php } ?>
admin/shortcode-builder/components/comments.php ADDED
@@ -0,0 +1,148 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if(has_action('alm_comments_installed')){ ?>
2
+ <div class="row input comments add-on" id="alm-comments">
3
+ <h3 class="heading"><?php _e('Comments', 'ajax-load-more'); ?></h3>
4
+ <div class="expand-wrap">
5
+ <div class="section-title">
6
+ <p><?php _e('Enable Ajax Load More to display blog comments.', 'ajax-load-more'); ?></p>
7
+ </div>
8
+ <div class="wrap">
9
+ <div class="inner">
10
+ <ul>
11
+ <li>
12
+ <input class="alm_element" type="radio" name="comments" value="true" id="comments-true" >
13
+ <label for="comments-true"><?php _e('True', 'ajax-load-more'); ?></label>
14
+ </li>
15
+ <li>
16
+ <input class="alm_element" type="radio" name="comments" value="false" id="comments-false" checked="checked">
17
+ <label for="comments-false"><?php _e('False', 'ajax-load-more'); ?></label>
18
+ </li>
19
+ </ul>
20
+ </div>
21
+ </div>
22
+ <div class="clear"></div>
23
+ <div class="comments_extras">
24
+
25
+ <div class="clear"></div>
26
+ <hr>
27
+ <div class="section-title">
28
+ <h4><?php _e('Post ID', 'ajax-load-more'); ?></h4>
29
+ <p><?php _e('The ID of the current single post.', 'ajax-load-more'); ?></p>
30
+ </div>
31
+ <div class="wrap">
32
+ <div class="inner">
33
+ <input type="text" value="get_the_ID()" id="comments_post_id" class="alm_element disabled-input" disabled="disabled">
34
+ </div>
35
+ </div>
36
+
37
+ <div class="clear"></div>
38
+ <hr>
39
+ <div class="section-title">
40
+ <h4><?php _e('Comments Per Page', 'ajax-load-more'); ?></h4>
41
+ <p><?php _e('The number of top level items to show for each page of comments.', 'ajax-load-more'); ?></p>
42
+ </div>
43
+ <div class="wrap">
44
+ <div class="inner">
45
+ <input type="number" class="alm_element numbers-only" name="comments-per-page" id="comments-per-page" step="1" min="1" value="5">
46
+ </div>
47
+ </div>
48
+ <div class="section-title full">
49
+ <p><?php _e('<strong>Note</strong>: The amount selected does NOT include comment replies.', 'ajax-load-more'); ?></p>
50
+ </div>
51
+
52
+ <div class="clear"></div>
53
+ <hr>
54
+ <div class="section-title">
55
+ <h4><?php _e('Comment Type', 'ajax-load-more'); ?></h4>
56
+ <p><?php _e('The type of comment(s) to display.', 'ajax-load-more'); ?></p>
57
+ </div>
58
+ <div class="wrap">
59
+ <div class="inner">
60
+ <select class="alm_element comments_type" id="comments_type">
61
+ <option value="comment" selected="selected"><?php _e('Comment', 'ajax-load-more'); ?></option>
62
+ <option value="all"><?php _e('All', 'ajax-load-more'); ?></option>
63
+ <option value="trackback"><?php _e('Trackback', 'ajax-load-more'); ?></option>
64
+ <option value="pingback"><?php _e('Pingback', 'ajax-load-more'); ?></option>
65
+ <option value="pings"><?php _e('Pings', 'ajax-load-more'); ?></option>
66
+ </select>
67
+ </div>
68
+ </div>
69
+
70
+ <div class="clear"></div>
71
+ <hr>
72
+ <div class="section-title">
73
+ <h4><?php _e('Comment Style', 'ajax-load-more'); ?></h4>
74
+ <p><?php _e('Select the HTML container style for your comments.', 'ajax-load-more'); ?></p>
75
+ </div>
76
+ <div class="wrap">
77
+ <div class="inner">
78
+ <ul class="comment_container_type">
79
+ <li>
80
+ <input type="radio" id="comment-type-ol" value="ol" name="alm_comment_style" class="alm_element" checked="checked">
81
+ <label for="comment-type-ol">&lt;ol&gt; &lt;/ol&gt;</label>
82
+ </li>
83
+ <li>
84
+ <input type="radio" id="comment-type-ul" value="ul" name="alm_comment_style" class="alm_element">
85
+ <label for="comment-type-ul">&lt;ul&gt; &lt;/ul&gt;</label>
86
+ </li>
87
+ <li>
88
+ <input type="radio" id="comment-type-div" value="div" name="alm_comment_style" class="alm_element">
89
+ <label for="comment-type-div">&lt;div&gt; &lt;/div&gt;</label>
90
+ </li>
91
+ </ul>
92
+ </div>
93
+ </div>
94
+
95
+ <div class="clear"></div>
96
+ <hr>
97
+
98
+ <div class="section-title">
99
+ <h4><?php _e('Comment Template', 'ajax-load-more'); ?></h4>
100
+ <p><?php _e('Select a repeater template that will display comment data.', 'ajax-load-more'); ?></p>
101
+ </div>
102
+
103
+ <div class="wrap">
104
+ <div class="inner">
105
+ <select class="alm_element comments_template" id="comments_template">
106
+ <option value="none" selected="selected"><?php _e('None', 'ajax-load-more'); ?></option>
107
+ <option name="default" id="chk-default" value="default"><?php _e('Default', 'ajax-load-more'); ?></option>
108
+ <?php if (has_action('alm_get_custom_repeaters')) {
109
+ do_action('alm_get_custom_repeaters');
110
+ }
111
+ if (has_action('alm_get_unlimited_repeaters')) {
112
+ do_action('alm_get_unlimited_repeaters');
113
+ }
114
+ ?>
115
+ </select>
116
+ </div>
117
+ </div>
118
+ <div class="section-title full">
119
+ <p><?php _e('<strong>Note</strong>: <span>None</span> will use the default WordPress comment layout.', 'ajax-load-more'); ?></p>
120
+ </div>
121
+ <div class="spacer"></div>
122
+ <div class="clear"></div>
123
+ <div class="select-theme-repeater">
124
+ <span class="or"><?php _e('or', 'ajax-load-more'); ?></span>
125
+ <hr/>
126
+ <div class="spacer"></div>
127
+ <div class="section-title">
128
+ <h4><?php _e('Callback Function', 'ajax-load-more'); ?></h4>
129
+ <p><?php _e('A custom <a href="https://codex.wordpress.org/Function_Reference/wp_list_comments#Arguments" target="_blank">callback</a> function that will display each comment.', 'ajax-load-more'); ?></p>
130
+ </div>
131
+ <div class="wrap">
132
+ <div class="inner">
133
+ <input type="text" value="" placeholder="function_name" id="comments_callback" class="alm_element">
134
+ </div>
135
+ </div>
136
+ <div class="section-title full">
137
+ <p><?php _e('<strong>Note</strong>: The majority of premium themes have a custom callback function for displaying comments. Please see comments.php or functions.php within your theme directory to locate the callback function for your theme.', 'ajax-load-more'); ?></p>
138
+ </div>
139
+ </div>
140
+
141
+ <p class="warning-callout">
142
+ <?php _e('You must add the comments shortcode directly to your single template file using the <a href="https://developer.wordpress.org/reference/functions/do_shortcode/" target="_blank">do_shortcode</a> method. &raquo; <a href="https://connekthq.com/plugins/ajax-load-more/add-ons/comments/" target="_blank">View documentation</a>', 'ajax-load-more'); ?>
143
+ </p>
144
+
145
+ </div>
146
+ </div>
147
+ </div>
148
+ <?php } ?>
admin/shortcode-builder/components/cta.php ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if(has_action('alm_cta_installed')){ ?>
2
+ <div class="row cta add-on" id="alm-cta">
3
+ <h3 class="heading"><?php _e('Call to Actions', 'ajax-load-more'); ?></h3>
4
+ <div class="expand-wrap">
5
+
6
+ <div class="section-title">
7
+ <p><?php _e('Insert call to action block.', 'ajax-load-more'); ?></p>
8
+ </div>
9
+ <div class="wrap">
10
+ <div class="inner">
11
+ <ul>
12
+ <li>
13
+ <input class="alm_element" type="radio" name="cta" value="true" id="cta-true" >
14
+ <label for="cta-true"><?php _e('True', 'ajax-load-more'); ?></label>
15
+ </li>
16
+ <li>
17
+ <input class="alm_element" type="radio" name="cta" value="false" id="cta-false" checked="checked">
18
+ <label for="cta-false"><?php _e('False', 'ajax-load-more'); ?></label>
19
+ </li>
20
+ </ul>
21
+ </div>
22
+ </div>
23
+ <div class="clear"></div>
24
+
25
+ <div class="cta_template_wrap">
26
+
27
+ <hr/>
28
+ <div class="spacer"></div>
29
+
30
+ <div class="section-title">
31
+ <h4><?php _e('CTA Positioning', 'ajax-load-more'); ?></h4>
32
+ <p><?php _e('Insert call to action <strong><em id="sequence-update-before-after">before</em></strong> post #<strong><em id="sequence-update">1</em></strong>', 'ajax-load-more'); ?>.</p>
33
+ </div>
34
+ <div class="wrap">
35
+ <div class="inner">
36
+
37
+ <label class="full"><?php _e('Before / After', 'ajax-load-more'); ?>:</label>
38
+ <select class="alm_element cta-before-after" name="cta-before-after" id="cta-before-after">
39
+ <option value="before" selected="selected"><?php _e('Before', 'ajax-load-more'); ?></option>
40
+ <option value="after"><?php _e('After', 'ajax-load-more'); ?></option>
41
+ </select>
42
+ <div class="clear"></div>
43
+ <div class="spacer" style="height: 30px;"></div>
44
+ <label class="full" for="cta-position"><?php _e('Post #', 'ajax-load-more'); ?>:</label>
45
+ <input type="number" min="1" step="1" value="1" placeholder="1" id="cta-position" class="alm_element numbers-only" name="cta-position">
46
+
47
+ </div>
48
+ </div>
49
+
50
+ <div class="clear"></div>
51
+ <hr/>
52
+ <div class="spacer"></div>
53
+
54
+ <div class="section-title">
55
+ <h4><?php _e('Template', 'ajax-load-more'); ?></h4>
56
+ <?php
57
+ echo '<p>'.__('Select the <a href="admin.php?page=ajax-load-more-repeaters" target="_parent">repeater template</a> that will display your call to action.', 'ajax-load-more'). '</p>';
58
+ ?>
59
+ </div>
60
+ <div class="wrap">
61
+ <div class="inner">
62
+ <?php
63
+ echo '<select name="cta-repeater-select" class="alm_element">';
64
+ echo '<option name="" value="" selected="selected">'.__('-- Select Repeater --', 'ajax-load-more').'</option>';
65
+ echo '<option name="default" value="default">Default</option>';
66
+ if (has_action('alm_get_custom_repeaters')) {
67
+ do_action('alm_get_custom_repeaters');
68
+ }
69
+ if (has_action('alm_get_unlimited_repeaters')) {
70
+ do_action('alm_get_unlimited_repeaters');
71
+ }
72
+ echo '</select>';
73
+ ?>
74
+ </div>
75
+ </div>
76
+ <?php
77
+ // Get Theme Repeaters
78
+ if (has_action('alm_theme_repeaters_selection')){
79
+ do_action('alm_theme_repeaters_selection');
80
+ }
81
+ ?>
82
+
83
+ <p class="warning-callout">
84
+ <?php _e('Call to actions do NOT count as a post within an Ajax Load More loop.<br/>
85
+ For example, if you set <strong>posts_per_page="5"</strong> in your shortcode, 6 items will be displayed.', 'ajax-load-more'); ?>
86
+ </p>
87
+
88
+ </div>
89
+
90
+ </div>
91
+ </div>
92
+ <?php } ?>
admin/shortcode-builder/components/nextpage.php ADDED
@@ -0,0 +1,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if(has_action('alm_nextpage_installed')){ ?>
2
+ <div class="row input next-page add-on" id="alm-next-page">
3
+ <h3 class="heading"><?php _e('Next Page', 'ajax-load-more'); ?></h3>
4
+ <div class="expand-wrap">
5
+ <div class="section-title">
6
+ <p><?php _e('Enable the infinite scrolling of multipage WordPress content using the', 'ajax-load-more'); ?> <span>< !--nextpage-- ></span> <?php _e('Quicktag', 'ajax-load-more'); ?>.</p>
7
+ </div>
8
+ <div class="wrap">
9
+ <div class="inner">
10
+ <ul>
11
+ <li>
12
+ <input class="alm_element" type="radio" name="next-page" value="true" id="next-page-true" >
13
+ <label for="next-page-true"><?php _e('True', 'ajax-load-more'); ?></label>
14
+ </li>
15
+ <li>
16
+ <input class="alm_element" type="radio" name="next-page" value="false" id="next-page-false" checked="checked">
17
+ <label for="next-page-false"><?php _e('False', 'ajax-load-more'); ?></label>
18
+ </li>
19
+ </ul>
20
+ </div>
21
+ </div>
22
+
23
+ <div class="clear"></div>
24
+
25
+ <div class="next-page-content" style="display: none;">
26
+
27
+ <div class="clear"></div>
28
+ <hr>
29
+ <div class="section-title">
30
+ <h4><?php _e('Post ID', 'ajax-load-more'); ?></h4>
31
+ <p><?php _e('The ID of the current page/post.', 'ajax-load-more'); ?></p>
32
+ </div>
33
+ <div class="wrap">
34
+ <div class="inner">
35
+ <input type="text" value="get_the_ID()" id="next-page_post_id" class="alm_element disabled-input" disabled="disabled">
36
+ </div>
37
+ </div>
38
+
39
+ <div class="clear"></div>
40
+ <hr/>
41
+
42
+ <div class="section-title">
43
+ <h4><?php _e('URL Rewrite', 'ajax-load-more'); ?></h4>
44
+ <p><?php _e('Update the browser address bar as pages come into view', 'ajax-load-more'); ?>.</p>
45
+ </div>
46
+ <div class="wrap">
47
+ <div class="inner">
48
+ <ul>
49
+ <li style="width:100%;">
50
+ <input class="alm_element" type="checkbox" name="next-page-url" id="next-page-url" value="true" checked="checked">
51
+ <label for="next-page-url"><?php _e('Yes, update the URL', 'ajax-load-more'); ?>.</label>
52
+ </li>
53
+ </ul>
54
+ <input type="checkbox" class="alm_element" name="next-page-url" id="next-page-url" checked="checked">
55
+ </div>
56
+ </div>
57
+
58
+ <div class="clear"></div>
59
+ <hr/>
60
+
61
+ <div class="section-title">
62
+ <h4>
63
+ <?php _e('Google Analytics', 'ajax-load-more'); ?>
64
+ <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('You must have a reference to your Google Analytics tracking code already on the page','ajax-load-more'); ?>."></a>
65
+ </h4>
66
+ <p><?php _e('Each time a page is loaded it will count as a pageview', 'ajax-load-more'); ?>.</p>
67
+ </div>
68
+ <div class="wrap">
69
+ <div class="inner">
70
+ <ul>
71
+ <li style="width:100%;">
72
+ <input class="alm_element" type="checkbox" name="next-page-pageviews" id="next-page-pageviews" value="true" checked="checked">
73
+ <label for="next-page-pageviews"><?php _e('Yes, send pageviews to Google Analytics', 'ajax-load-more'); ?>.</label>
74
+ </li>
75
+ </ul>
76
+ <input type="checkbox" class="alm_element" name="next-page-url" id="next-page-url" checked="checked">
77
+ </div>
78
+ </div>
79
+
80
+ <div class="clear"></div>
81
+ <hr>
82
+ <div class="section-title">
83
+ <h4>
84
+ <?php _e('Scroll to Page', 'ajax-load-more'); ?>
85
+ <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Set Scroll Speed to 0 to disable scrolling to page','ajax-load-more'); ?>."></a>
86
+ </h4>
87
+ <p>
88
+ <?php _e('Scroll users automatically to the next page on \'Load More\' button click', 'ajax-load-more'); ?>.
89
+ </p>
90
+ </div>
91
+ <div class="wrap">
92
+ <div class="inner half">
93
+ <label for="next-page-scroll-speed" class="full">
94
+ <?php _e('Scroll Speed', 'ajax-load-more'); ?>
95
+ <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Scrolling speed in milliseconds (e.g. 1 second = 1000)','ajax-load-more'); ?>."></a>
96
+ </label>
97
+ <input id="next-page-scroll-speed" name="next-page-scroll-speed" class="alm_element sm" type="number" min="0" max="5000" step="25" value="250" placeholder="250">
98
+ </div>
99
+ <div class="inner half">
100
+ <label for="next-page-scroll-top" class="full">
101
+ <?php _e('Scroll Top', 'ajax-load-more'); ?>
102
+ <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('The scrolltop position of the window (used with scrolling and fwd/back browser buttons)','ajax-load-more'); ?>."></a>
103
+ </label>
104
+ <input id="next-page-scroll-top" name="next-page-scroll-top" class="alm_element sm" type="number" min="0" max="1000" step="1" value="30" placeholder="30">
105
+ </div>
106
+ </div>
107
+
108
+ <p class="warning-callout">
109
+ <?php _e('You must add the Next Page shortcode directly to your single template file using the <a href="https://developer.wordpress.org/reference/functions/do_shortcode/" target="_blank">do_shortcode</a> method. &raquo; <a href="https://connekthq.com/plugins/ajax-load-more/add-ons/next-page/" target="_blank">View documentation</a>', 'ajax-load-more'); ?>
110
+ </p>
111
+
112
+ </div>
113
+ </div>
114
+ </div>
115
+ <?php } ?>
admin/shortcode-builder/components/paging.php ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if(has_action('alm_paging_installed')){ ?>
2
+ <div class="row input paging add-on" id="alm-paging">
3
+ <h3 class="heading"><?php _e('Paging', 'ajax-load-more'); ?></h3>
4
+ <div class="expand-wrap">
5
+ <div class="section-title"> <p><?php _e('Replace infinite scrolling with a paged ajax navigation system.', 'ajax-load-more'); ?></p>
6
+ </div>
7
+ <div class="wrap">
8
+ <div class="inner">
9
+ <ul>
10
+ <li>
11
+ <input class="alm_element" type="radio" name="paging" value="true" id="paging-true" >
12
+ <label for="paging-true"><?php _e('True', 'ajax-load-more'); ?></label>
13
+ </li>
14
+ <li>
15
+ <input class="alm_element" type="radio" name="paging" value="false" id="paging-false" checked="checked">
16
+ <label for="paging-false"><?php _e('False', 'ajax-load-more'); ?></label>
17
+ </li>
18
+ </ul>
19
+ </div>
20
+ </div>
21
+
22
+ <div class="clear"></div>
23
+ <div id="nav-controls">
24
+
25
+ <hr/>
26
+ <div class="section-title">
27
+ <h4><?php _e('Paging Controls', 'ajax-load-more'); ?></h4>
28
+ <p><?php _e('Show (&laquo;)previous and next(&raquo;) buttons.', 'ajax-load-more'); ?></p>
29
+ </div>
30
+ <div class="wrap">
31
+ <div class="inner">
32
+ <ul>
33
+ <li>
34
+ <input class="alm_element" type="radio" name="paging-controls" value="true" id="paging-controls-true" >
35
+ <label for="paging-controls-true"><?php _e('True', 'ajax-load-more'); ?></label>
36
+ </li>
37
+ <li>
38
+ <input class="alm_element" type="radio" name="paging-controls" value="false" id="paging-controls-false" checked="checked">
39
+ <label for="paging-controls-false"><?php _e('False', 'ajax-load-more'); ?></label>
40
+ </li>
41
+ </ul>
42
+ </div>
43
+ </div>
44
+
45
+ <div class="clear"></div>
46
+ <hr/>
47
+ <div class="section-title">
48
+ <h4><?php _e('Paging Navigation Classes', 'ajax-load-more'); ?></h4>
49
+ <p><?php _e('Add custom CSS classes to the paging navigation menu.', 'ajax-load-more'); ?></p>
50
+ </div>
51
+ <div class="wrap">
52
+ <div class="inner">
53
+ <input type="text" class="alm_element" name="paging-classes" id="paging-classes" placeholder="portfolio-paging-menu">
54
+ </div>
55
+ </div>
56
+
57
+ <div class="clear"></div>
58
+ <hr/>
59
+ <div class="section-title">
60
+ <h4><?php _e('Show at Most', 'ajax-load-more'); ?></h4>
61
+ <p><?php _e('The maximum amount of page menu items to show at a time. <br/.>0 = no maximum', 'ajax-load-more'); ?></p>
62
+ </div>
63
+ <div class="wrap">
64
+ <div class="inner">
65
+ <input type="number" class="alm_element numbers-only" name="show-at-most" id="show-at-most" step="2" min="0" value="7">
66
+ </div>
67
+ </div>
68
+
69
+ </div>
70
+
71
+ </div>
72
+ </div>
73
+ <?php } ?>
admin/shortcode-builder/components/preloaded.php ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if(has_action('alm_preload_installed')){ ?>
2
+ <div class="row input preload add-on" id="alm-preload">
3
+ <h3 class="heading"><?php _e('Preloaded', 'ajax-load-more'); ?></h3>
4
+ <div class="expand-wrap">
5
+ <div class="section-title">
6
+ <p><?php _e('Preload posts prior to making Ajax requests.', 'ajax-load-more'); ?></p>
7
+ </div>
8
+ <div class="wrap">
9
+ <div class="inner">
10
+ <ul>
11
+ <li>
12
+ <input class="alm_element" type="radio" name="preload" value="true" id="preload-true" >
13
+ <label for="preload-true"><?php _e('True', 'ajax-load-more'); ?></label>
14
+ </li>
15
+ <li>
16
+ <input class="alm_element" type="radio" name="preload" value="false" id="preload-false" checked="checked">
17
+ <label for="preload-false"><?php _e('False', 'ajax-load-more'); ?></label>
18
+ </li>
19
+ </ul>
20
+ </div>
21
+ </div>
22
+ <div class="clear"></div>
23
+ <div class="preload_amount">
24
+ <div class="clear"></div>
25
+ <hr>
26
+ <div class="section-title">
27
+ <h4><?php _e('Preload Amount', 'ajax-load-more'); ?></h4>
28
+ <p><?php _e('Enter the number of posts to preload.', 'ajax-load-more'); ?></p>
29
+ </div>
30
+ <div class="wrap">
31
+ <div class="inner">
32
+ <input type="number" class="alm_element numbers-only" name="preload-amount" id="preload-amount" step="1" min="1" value="5">
33
+ </div>
34
+ </div>
35
+ </div>
36
+ </div>
37
+ </div>
38
+ <?php } ?>
admin/shortcode-builder/components/previous-post.php ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if(has_action('alm_prev_post_installed')){ ?>
2
+ <div class="row input previous-post add-on" id="alm-previous-post">
3
+ <h3 class="heading"><?php _e('Previous Post', 'ajax-load-more'); ?></h3>
4
+ <div class="expand-wrap">
5
+ <div class="section-title">
6
+ <p><?php _e('Enable the infinite scrolling of single posts.', 'ajax-load-more'); ?></p>
7
+ </div>
8
+ <div class="wrap">
9
+ <div class="inner">
10
+ <ul>
11
+ <li>
12
+ <input class="alm_element" type="radio" name="prev-post" value="true" id="prev-post-true" >
13
+ <label for="prev-post-true"><?php _e('True', 'ajax-load-more'); ?></label>
14
+ </li>
15
+ <li>
16
+ <input class="alm_element" type="radio" name="prev-post" value="false" id="prev-post-false" checked="checked">
17
+ <label for="prev-post-false"><?php _e('False', 'ajax-load-more'); ?></label>
18
+ </li>
19
+ </ul>
20
+ </div>
21
+ </div>
22
+ <div class="clear"></div>
23
+ <div class="prev_post_id" style="display: none;">
24
+ <div class="clear"></div>
25
+ <hr>
26
+ <div class="section-title">
27
+ <h4><?php _e('Post ID', 'ajax-load-more'); ?></h4>
28
+ <p><?php _e('The ID of the current single post.', 'ajax-load-more'); ?></p>
29
+ </div>
30
+ <div class="wrap">
31
+ <div class="inner">
32
+ <input type="text" value="get_the_ID()" id="prev_post_id" class="alm_element disabled-input" disabled="disabled">
33
+ </div>
34
+ </div>
35
+ <div class="clear"></div>
36
+ <hr>
37
+ <div class="section-title">
38
+ <h4><?php _e('Taxonomy', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Selecting a taxonomy means only previous posts from the same taxonomy term will be returned. If a post has multiple terms attached, each term will be considered using an OR relationship query','ajax-load-more'); ?>."></a></h4>
39
+ <p><?php _e('Query previous posts from the same taxonomy term(s).', 'ajax-load-more'); ?></p>
40
+ </div>
41
+ <div class="wrap">
42
+ <div class="inner">
43
+ <?php
44
+ // Taxonomies
45
+ $pp_tax_args = array(
46
+ 'public' => true,
47
+ '_builtin' => false
48
+ );
49
+ $pp_tax_output = 'objects';
50
+ $pp_taxonomies = get_taxonomies( $pp_tax_args, $pp_tax_output );
51
+ echo '<select class="alm_element" name="pp-taxonomy-select" id="pp-taxonomy-select">';
52
+ echo '<option value="" selected="selected">-- ' . __('Select Taxonomy', 'ajax-load-more') . ' --</option>';
53
+ echo '<option value="category">' . __('Category', 'ajax-load-more') . '</option>';
54
+ echo '<option value="post_tag">' . __('Tag', 'ajax-load-more') . '</option>';
55
+ if ( $pp_taxonomies ) {
56
+
57
+ foreach( $pp_taxonomies as $pp_taxonomy ){
58
+ echo '<option name="pp-'.$pp_taxonomy->query_var.'" id="pp-'.$pp_taxonomy->query_var.'" value="'.$pp_taxonomy->query_var.'">'.$pp_taxonomy->label.'</option>';
59
+ }
60
+
61
+ }
62
+ echo '</select>';
63
+ ?>
64
+ </div>
65
+ </div>
66
+
67
+
68
+ <div class="clear"></div>
69
+ <hr>
70
+ <div class="section-title">
71
+ <h4><?php _e('Excluded Terms ', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('A comma-separated list of excluded terms by ID','ajax-load-more'); ?>."></a></h4>
72
+ <p><?php _e('Exclude posts by term ID from the previous post query.', 'ajax-load-more'); ?></p>
73
+ </div>
74
+ <div class="wrap">
75
+ <div class="inner">
76
+ <input type="text" id="pp-term-exclude" class="alm_element numbers-only" value="" placeholder="5, 8, 35">
77
+ </div>
78
+ </div>
79
+
80
+ <p class="warning-callout">
81
+ <?php _e('You must add the Previous Post shortcode directly to your single template file using the <a href="https://developer.wordpress.org/reference/functions/do_shortcode/" target="_blank">do_shortcode</a> method. &raquo; <a href="https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/" target="_blank">View documentation</a>', 'ajax-load-more'); ?>
82
+ </p>
83
+ </div>
84
+ </div>
85
+ </div>
86
+ <?php } ?>
admin/shortcode-builder/components/rest-api.php ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if(has_action('alm_rest_api_installed')){
2
+
3
+ // get rest defaults (from core alm settings)
4
+ $restapi_baseurl = '/wp-json';
5
+ if(isset($alm_options['_alm_rest_api_base_url']))
6
+ $restapi_baseurl = $alm_options['_alm_rest_api_base_url'];
7
+
8
+ $restapi_namespace = 'ajaxloadmore';
9
+ if(isset($alm_options['_alm_rest_api_namespace']))
10
+ $restapi_namespace = $alm_options['_alm_rest_api_namespace'];
11
+
12
+ $restapi_endpoint = 'posts';
13
+ if(isset($alm_options['_alm_rest_api_endpoint']))
14
+ $restapi_endpoint = $alm_options['_alm_rest_api_endpoint'];
15
+
16
+ ?>
17
+ <div class="row input rest add-on" id="alm-rest">
18
+ <h3 class="heading"><?php _e('REST API', 'ajax-load-more'); ?></h3>
19
+ <div class="expand-wrap">
20
+ <div class="section-title">
21
+ <p><?php _e('Enable the WordPress REST API.', 'ajax-load-more'); ?></p>
22
+ </div>
23
+ <div class="wrap">
24
+ <div class="inner">
25
+ <ul>
26
+ <li>
27
+ <input class="alm_element" type="radio" name="rest" value="true" id="rest-true" >
28
+ <label for="rest-true"><?php _e('True', 'ajax-load-more'); ?></label>
29
+ </li>
30
+ <li>
31
+ <input class="alm_element" type="radio" name="rest" value="false" id="rest-false" checked="checked">
32
+ <label for="rest-false"><?php _e('False', 'ajax-load-more'); ?></label>
33
+ </li>
34
+ </ul>
35
+ </div>
36
+ </div>
37
+
38
+ <div class="clear"></div>
39
+ <div class="restapi_options">
40
+
41
+ <div class="clear"></div>
42
+ <hr>
43
+
44
+ <div class="section-title">
45
+ <h4><?php _e('Base URL', 'ajax-load-more'); ?>
46
+ <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Set a default Base URL in the Ajax Load More settings panel','ajax-load-more'); ?>."></a></h4>
47
+ <p><?php _e('Enter the base URL to your installation of the REST API.', 'ajax-load-more'); ?></p>
48
+ </div>
49
+ <div class="wrap">
50
+ <div class="inner">
51
+ <input type="text" id="rest-base" class="alm_element" name="rest-base" value="<?php echo $restapi_baseurl; ?>">
52
+ </div>
53
+ </div>
54
+
55
+ <div class="clear"></div>
56
+ <hr>
57
+
58
+ <div class="section-title">
59
+ <h4><?php _e('Namespace', 'ajax-load-more'); ?>
60
+ <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Set a default Namespace in the Ajax Load More settings panel','ajax-load-more'); ?>."></a></h4>
61
+ <p><?php _e('Enter the custom namespace for this Ajax Load More query.', 'ajax-load-more'); ?></p>
62
+ </div>
63
+ <div class="wrap">
64
+ <div class="inner">
65
+ <input type="text" id="rest-namespace" class="alm_element" name="rest-namespace" value="<?php echo $restapi_namespace; ?>">
66
+ </div>
67
+ </div>
68
+
69
+ <div class="clear"></div>
70
+ <hr>
71
+
72
+ <div class="section-title">
73
+ <h4><?php _e('Endpoint', 'ajax-load-more'); ?>
74
+ <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Set a default Endpoint in the Ajax Load More settings panel','ajax-load-more'); ?>."></a></h4>
75
+ <p><?php _e('Enter your custom endpoint for this Ajax Load More query.', 'ajax-load-more'); ?></p>
76
+ </div>
77
+ <div class="wrap">
78
+ <div class="inner">
79
+ <input type="text" id="rest-endpoint" class="alm_element" name="rest-endpoint" value="<?php echo $restapi_endpoint; ?>">
80
+ </div>
81
+ </div>
82
+
83
+ <div class="clear"></div>
84
+ <hr>
85
+
86
+ <div class="section-title">
87
+ <h4><?php _e('Template ID', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Ajax Load More references this ID while looping and displaying your data. You must still select a repeater template for this instance of Ajax Load More','ajax-load-more'); ?>">.</a></h4>
88
+ <p><?php _e('Enter the ID of your javascript template.<br/><br/>e.g. <em>tmpl-alm-template</em> = <em>alm-template</em>', 'ajax-load-more'); ?><br/>&raquo; <a href="https://gist.github.com/dcooney/c89f5859b73256b36de4a0c3320d9b07" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
89
+ </div>
90
+ <div class="wrap">
91
+ <div class="inner">
92
+ <input type="text" id="rest-template-id" class="alm_element" name="rest-template-id" value="">
93
+ </div>
94
+ </div>
95
+
96
+ <div class="clear"></div>
97
+ <hr>
98
+
99
+ <div class="section-title">
100
+ <h4><?php _e('Debug Mode', 'ajax-load-more'); ?></h4>
101
+ <p><?php _e('Enable debugging (console.log) of REST API responses in the browser console. ', 'ajax-load-more'); ?></p>
102
+ </div>
103
+ <div class="wrap">
104
+ <div class="inner">
105
+ <ul>
106
+ <li>
107
+ <input class="alm_element" type="radio" name="rest-debug" value="true" id="rest-debug-true" >
108
+ <label for="rest-debug-true"><?php _e('True', 'ajax-load-more'); ?></label>
109
+ </li>
110
+ <li>
111
+ <input class="alm_element" type="radio" name="rest-debug" value="false" id="rest-debug-false" checked="checked">
112
+ <label for="rest-debug-false"><?php _e('False', 'ajax-load-more'); ?></label>
113
+ </li>
114
+ </ul>
115
+ </div>
116
+ </div>
117
+
118
+ <p class="warning-callout">
119
+ <?php _e('Visit <a href="http://v2.wp-api.org/" target="_blank">http://v2.wp-api.org</a> for documentation on creating custom <a href="http://v2.wp-api.org/extending/adding/" target="_blank">Endpoints</a> for use with Ajax Load More.', 'ajax-load-more'); ?>
120
+ </p>
121
+
122
+ </div>
123
+
124
+ </div>
125
+ </div>
126
+ <?php } ?>
admin/shortcode-builder/components/seo.php ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if(has_action('alm_seo_installed')){ ?>
2
+ <!-- SEO -->
3
+ <div class="row input seo add-on" id="alm-seo">
4
+ <h3 class="heading"><?php _e('SEO (Search Engine Optimization)', 'ajax-load-more'); ?></h3>
5
+ <div class="expand-wrap">
6
+ <div class="section-title">
7
+ <p><?php _e('Enable address bar URL rewrites as users page through ajax loaded content.', 'ajax-load-more'); ?></p>
8
+ </div>
9
+ <div class="wrap">
10
+ <div class="inner">
11
+ <ul>
12
+ <li>
13
+ <input class="alm_element" type="radio" name="seo" value="true" id="seo-true" >
14
+ <label for="seo-true"><?php _e('True', 'ajax-load-more'); ?></label>
15
+ </li>
16
+ <li>
17
+ <input class="alm_element" type="radio" name="seo" value="false" id="seo-false" checked="checked">
18
+ <label for="seo-false"><?php _e('False', 'ajax-load-more'); ?></label>
19
+ </li>
20
+ </ul>
21
+ </div>
22
+ </div>
23
+ </div>
24
+ </div>
25
+ <?php } ?>
admin/shortcode-builder/components/users.php ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if(has_action('alm_users_installed')){ ?>
2
+ <div class="row input users add-on" id="alm-users">
3
+ <h3 class="heading"><?php _e('Users', 'ajax-load-more'); ?></h3>
4
+ <div class="expand-wrap">
5
+ <div class="section-title">
6
+ <p><?php _e('Infinite scroll WordPress users', 'ajax-load-more'); ?>.</p>
7
+ </div>
8
+ <div class="wrap">
9
+ <div class="inner">
10
+ <ul>
11
+ <li>
12
+ <input class="alm_element" type="radio" name="users" value="true" id="users-true" >
13
+ <label for="users-true"><?php _e('True', 'ajax-load-more'); ?></label>
14
+ </li>
15
+ <li>
16
+ <input class="alm_element" type="radio" name="users" value="false" id="users-false" checked="checked">
17
+ <label for="users-false"><?php _e('False', 'ajax-load-more'); ?></label>
18
+ </li>
19
+ </ul>
20
+ </div>
21
+ </div>
22
+
23
+ <div class="clear"></div>
24
+ <div id="users-extended">
25
+
26
+ <hr/>
27
+ <div class="section-title">
28
+ <h4><?php _e('User Role', 'ajax-load-more'); ?></h4>
29
+ <p><?php _e('Select the role of user to be displayed', 'ajax-load-more'); ?>.</p>
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')) :
38
+ global $wp_roles;
39
+ $roles = $wp_roles->get_names();
40
+ $role_value = 100;
41
+ foreach($roles as $role) {
42
+ ?>
43
+ <option value="<?php echo $role;?>"><?php echo $role;?></option>
44
+ <?php
45
+ }
46
+ endif;
47
+ ?>
48
+ </select>
49
+ </div>
50
+ </div>
51
+
52
+ <div class="clear"></div>
53
+ <hr>
54
+ <div class="section-title">
55
+ <h4><?php _e('Include', 'ajax-load-more'); ?></h4>
56
+ <p>
57
+ <?php _e('A comma separated list of users to be included by ID', 'ajax-load-more'); ?>.<em><br/>e.g. 1, 2, 3</em>
58
+ </p>
59
+ </div>
60
+ <div class="wrap">
61
+ <div class="inner">
62
+ <input type="text" class="alm_element" name="users-include" id="users-include">
63
+ </div>
64
+ </div>
65
+
66
+ <div class="clear"></div>
67
+ <hr>
68
+ <div class="section-title">
69
+ <h4><?php _e('Exclude', 'ajax-load-more'); ?></h4>
70
+ <p>
71
+ <?php _e('A comma separated list of users to be excluded by ID', 'ajax-load-more'); ?>.<em><br/>e.g. 3, 6, 7</em>
72
+ </p>
73
+ </div>
74
+ <div class="wrap">
75
+ <div class="inner">
76
+ <input type="text" class="alm_element" name="users-exclude" id="users-exclude">
77
+ </div>
78
+ </div>
79
+
80
+ <div class="clear"></div>
81
+ <hr>
82
+ <div class="section-title">
83
+ <h4><?php _e('Users Per Page', 'ajax-load-more'); ?></h4>
84
+ <p><?php _e('The number of users to show.', 'ajax-load-more'); ?></p>
85
+ </div>
86
+ <div class="wrap">
87
+ <div class="inner">
88
+ <input type="number" class="alm_element numbers-only" name="users-per-page" id="users-per-page" step="1" min="1" value="5">
89
+ </div>
90
+ </div>
91
+
92
+ <div class="clear"></div>
93
+ <hr/>
94
+ <div class="section-title">
95
+ <h4><?php _e('Orderby', 'ajax-load-more'); ?></h4>
96
+ <p><?php _e('Sort users by Order and Orderby parameters', 'ajax-load-more'); ?>.</p>
97
+ </div>
98
+ <div class="wrap">
99
+ <div class="inner half">
100
+ <label class="full"><?php _e('Order', 'ajax-load-more'); ?>:</label>
101
+ <select class="alm_element" name="users-order" id="users-order">
102
+ <option value="ASC" selected="selected">ASC (default)</option>
103
+ <option value="DESC">DESC</option>
104
+ </select>
105
+ </div>
106
+ <div class="inner half">
107
+ <label class="full"><?php _e('Order By', 'ajax-load-more'); ?>:</label>
108
+ <select class="alm_element" name="users-orderby" id="users-orderby">
109
+ <option value="login" selected="selected">Login (default)</option>
110
+ <option value="ID">ID</option>
111
+ <option value="display_name">Display Name</option>
112
+ <option value="user_name">Name</option>
113
+ <option value="include">Include</option>
114
+ <option value="email">Email</option>
115
+ <option value="user_url">URL</option>
116
+ <option value="registered">Registration Date</option>
117
+ <option value="post_count">Post Count</option>
118
+ </select>
119
+ <!-- Add Meta Value Num soon, also need to add alm_query_args filter to users addon. -->
120
+ </div>
121
+ </div>
122
+
123
+ </div>
124
+
125
+ </div>
126
+ </div>
127
+ <?php } ?>
admin/shortcode-builder/js/shortcode-builder.js CHANGED
@@ -469,6 +469,50 @@ jQuery(document).ready(function($) {
469
  }
470
 
471
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
472
  // ---------------------------
473
  // - Repeater Templates
474
  // ---------------------------
@@ -489,7 +533,7 @@ jQuery(document).ready(function($) {
489
  // - Post Types
490
  // ---------------------------
491
 
492
- if(comments === 'false' || comments === false || comments === undefined){ // Hide post_types if comments is active
493
 
494
  var post_type_count = 0,
495
  selected_post_type = '';
@@ -1176,8 +1220,6 @@ jQuery(document).ready(function($) {
1176
  });
1177
 
1178
 
1179
-
1180
-
1181
  /* Table of Contents */
1182
 
1183
  if($('.table-of-contents').hasClass('repeaters-toc')){
@@ -1185,7 +1227,7 @@ jQuery(document).ready(function($) {
1185
  } else {
1186
  $('.table-of-contents .toc').append('<option value="#">-- '+ alm_admin_localize.jump_to_option +' --</option>');
1187
  }
1188
-
1189
  $('.table-of-contents .toc').append(jumpMenuOptions).select2();
1190
 
1191
  $('.table-of-contents .toc').change(function() {
@@ -1196,56 +1238,7 @@ jQuery(document).ready(function($) {
1196
  }, 500, 'alm_easeInOutQuad');
1197
  }
1198
  });
1199
-
1200
- /* Table of Contents - onResize */
1201
-
1202
- function almResizeTOC(){
1203
- var tocW = $('.cnkt-sidebar').width();
1204
- $('.table-of-contents').css('width', tocW + 'px');
1205
- }
1206
- almResizeTOC();
1207
-
1208
- $(window).resize(function() {
1209
- almResizeTOC()
1210
- });
1211
-
1212
-
1213
- /* Table of Contents - Sticky Sidebar */
1214
-
1215
- _alm.attachShare = function(el, anchor, sticky_top){
1216
-
1217
- var top = sticky_top, // sticky element top
1218
- h = el.height() + top, // height of sticky el
1219
- scrollTop = $(window).scrollTop(),
1220
- window_height = $(window).height(),
1221
- offset = anchor.offset().top,
1222
- el_height = el.outerHeight(),
1223
- container_height = el.outerHeight();
1224
-
1225
- if(container_height < window_height){
1226
- // If container height is larger than window
1227
- if(scrollTop > top) {
1228
- el.addClass('attached');
1229
- } else {
1230
- if(scrollTop <= (offset - top)) {
1231
- el.removeClass('attached').removeClass('hidden');
1232
- }
1233
- }
1234
- }
1235
- };
1236
-
1237
- if($('.table-of-contents').length){
1238
- var sticky_el = $('.table-of-contents'),
1239
- sticky_anchor = $(".cnkt-sidebar"),
1240
- sticky_top = 50;
1241
-
1242
- $(window).bind('resize scroll', function(){
1243
- _alm.attachShare(sticky_el, sticky_anchor, sticky_top);
1244
- });
1245
-
1246
- _alm.attachShare(sticky_el, sticky_anchor, sticky_top);
1247
- }
1248
-
1249
 
1250
 
1251
  /*
469
  }
470
 
471
 
472
+ // ---------------------------
473
+ // - Users
474
+ // ---------------------------
475
+
476
+ var users = $('#alm-users input[name=users]:checked').val();
477
+ if(users === undefined){
478
+ users = false;
479
+ }
480
+ if(users !== 'false' && users != undefined){
481
+ var users_role = $('#alm-users select#users-role').val();
482
+ var users_include = $('#alm-users input#users-include').val();
483
+ var users_exclude = $('#alm-users input#users-exclude').val();
484
+ var users_per_page = $('#alm-users input#users-per-page').val();
485
+ var users_order = $('#alm-users select#users-order').val();
486
+ var users_orderby = $('#alm-users select#users-orderby').val();
487
+ $('#users-extended').slideDown(150, 'alm_easeInOutQuad');
488
+
489
+ output += ' users="'+users+'"';
490
+
491
+ if(users_role !== ''){
492
+ output += ' users_role="'+ users_role +'"';
493
+ }
494
+ if(users_include !== ''){
495
+ output += ' users_include="'+ users_include +'"';
496
+ }
497
+ if(users_exclude !== ''){
498
+ output += ' users_exclude="'+ users_exclude +'"';
499
+ }
500
+ if(users_per_page !== '5'){
501
+ output += ' users_per_page="'+ users_per_page +'"';
502
+ }
503
+ if(users_order !== 'ASC'){
504
+ output += ' users_order="'+ users_order +'"';
505
+ }
506
+ if(users_orderby !== 'login'){
507
+ output += ' users_orderby="'+ users_orderby +'"';
508
+ }
509
+
510
+
511
+ }else{
512
+ $('#users-extended').slideUp(150, 'alm_easeInOutQuad');
513
+ }
514
+
515
+
516
  // ---------------------------
517
  // - Repeater Templates
518
  // ---------------------------
533
  // - Post Types
534
  // ---------------------------
535
 
536
+ if((users === 'false' || users === undefined || !users) && (comments === 'false' || !comments || comments === undefined)){ // Hide post_types if comments is active
537
 
538
  var post_type_count = 0,
539
  selected_post_type = '';
1220
  });
1221
 
1222
 
 
 
1223
  /* Table of Contents */
1224
 
1225
  if($('.table-of-contents').hasClass('repeaters-toc')){
1227
  } else {
1228
  $('.table-of-contents .toc').append('<option value="#">-- '+ alm_admin_localize.jump_to_option +' --</option>');
1229
  }
1230
+
1231
  $('.table-of-contents .toc').append(jumpMenuOptions).select2();
1232
 
1233
  $('.table-of-contents .toc').change(function() {
1238
  }, 500, 'alm_easeInOutQuad');
1239
  }
1240
  });
1241
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1242
 
1243
 
1244
  /*
admin/shortcode-builder/shortcode-builder.php CHANGED
@@ -15,867 +15,31 @@
15
 
16
 
17
  <!-- Add-ons -->
18
- <?php if(alm_has_addon_shortcodes()) : ?>
 
 
19
 
20
  <div class="shortcode-parameter-wrap">
21
  <h2 class="shortcode-title"><?php _e('Add-ons & Extensions', 'ajax-load-more'); ?></h2>
22
 
23
- <?php if(has_action('alm_acf_installed')){ ?>
24
- <!-- ACF -->
25
- <div class="row input cache add-on" id="alm-acf">
26
- <h3 class="heading"><?php _e('Advanced Custom Fields', 'ajax-load-more'); ?></h3>
27
- <div class="expand-wrap">
28
- <div class="section-title">
29
- <p><?php _e('Enable compatibility with Advanced Custom Fields.', 'ajax-load-more'); ?></p>
30
- </div>
31
- <div class="wrap">
32
- <div class="inner">
33
- <ul>
34
- <li>
35
- <input class="alm_element" type="radio" name="acf" value="true" id="acf-true" >
36
- <label for="acf-true"><?php _e('True', 'ajax-load-more'); ?></label>
37
- </li>
38
- <li>
39
- <input class="alm_element" type="radio" name="acf" value="false" id="acf-false" checked="checked">
40
- <label for="acf-false"><?php _e('False', 'ajax-load-more'); ?></label>
41
- </li>
42
- </ul>
43
- </div>
44
- </div>
45
- <div class="clear"></div>
46
-
47
- <div class="acf-options">
48
-
49
- <div class="clear"></div>
50
- <hr>
51
- <div class="section-title">
52
- <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>
53
- <p><?php _e('The ID of the current page/post.', 'ajax-load-more'); ?></p>
54
- </div>
55
- <div class="wrap">
56
- <div class="inner">
57
- <input type="text" value="" id="acf_post_id" class="alm_element">
58
- </div>
59
- </div>
60
-
61
- <div class="clear"></div>
62
- <hr/>
63
- <div class="spacer"></div>
64
-
65
- <div class="section-title">
66
- <h4><?php _e('Field Type', 'ajax-load-more'); ?></h4>
67
- <p><?php _e('Select the type of ACF field', 'ajax-load-more'); ?>.</p>
68
- </div>
69
- <div class="wrap">
70
- <div class="inner">
71
- <label class="offscreen" for="acf_field_type"><?php _e('Field Type', 'ajax-load-more'); ?>:</label>
72
- <select class="alm_element" name="acf_field_type" id="acf_field_type">
73
- <option value="" selected="selected">-- <?php _e('Select Field Type', 'ajax-load-more'); ?> --</option>
74
- <option value="flexible"><?php _e('Flexible Content', 'ajax-load-more'); ?></option>
75
- <option value="gallery"><?php _e('Gallery', 'ajax-load-more'); ?></option>
76
- <option value="relationship"><?php _e('Relationship', 'ajax-load-more'); ?></option>
77
- <option value="repeater"><?php _e('Repeater', 'ajax-load-more'); ?></option>
78
- </select>
79
- </div>
80
- </div>
81
-
82
- <div class="clear"></div>
83
- <hr/>
84
- <div class="spacer"></div>
85
-
86
- <div class="section-title">
87
- <h4><?php _e('Field Name', 'ajax-load-more'); ?></h4>
88
- <p><?php _e('Enter the name of the ACF field', 'ajax-load-more'); ?>.</p>
89
- </div>
90
- <div class="wrap">
91
- <div class="inner">
92
- <label class="offscreen" for="acf_field_name"><?php _e('Field Type', 'ajax-load-more'); ?>:</label>
93
- <input type="text" class="alm_element" name="acf_field_name" id="acf_field_name" placeholder="{your_field_name}">
94
- </div>
95
- </div>
96
-
97
- </div>
98
- </div>
99
- </div>
100
- <?php } ?>
101
-
102
-
103
- <?php if(has_action('alm_cache_installed')){ ?>
104
- <!-- CACHE -->
105
- <div class="row input cache add-on" id="alm-cache">
106
- <h3 class="heading"><?php _e('Cache', 'ajax-load-more'); ?></h3>
107
- <div class="expand-wrap">
108
- <div class="section-title">
109
- <p><?php _e('Turn on content caching.', 'ajax-load-more'); ?></p>
110
- </div>
111
- <div class="wrap">
112
- <div class="inner">
113
- <ul>
114
- <li>
115
- <input class="alm_element" type="radio" name="cache" value="true" id="cache-true" >
116
- <label for="cache-true"><?php _e('True', 'ajax-load-more'); ?></label>
117
- </li>
118
- <li>
119
- <input class="alm_element" type="radio" name="cache" value="false" id="cache-false" checked="checked">
120
- <label for="cache-false"><?php _e('False', 'ajax-load-more'); ?></label>
121
- </li>
122
- </ul>
123
- </div>
124
- </div>
125
- <div class="clear"></div>
126
- <div class="cache_id">
127
- <div class="clear"></div>
128
- <hr>
129
- <div class="section-title">
130
- <h4><?php _e('Cache ID', 'ajax-load-more'); ?></h4>
131
- <p><?php _e('You <u>must</u> generate a unique ID for this cached query - this unique ID will be used as a content identifier.', 'ajax-load-more'); ?></p>
132
- </div>
133
- <div class="wrap">
134
- <div class="inner">
135
- <input type="text" class="alm_element" name="cache-id" id="cache-id">
136
- <div class="clear"></div>
137
- <p class="generate-id"><a href="javascript:void(0);" data-id="cache-id"><i class="fa fa-random"></i> <?php _e('Generate Cache ID', 'ajax-load-more'); ?></a></p>
138
- </div>
139
- </div>
140
- </div>
141
- </div>
142
- </div>
143
- <?php } ?>
144
-
145
-
146
- <?php if(has_action('alm_cta_installed')){ ?>
147
- <!-- Call to Actions -->
148
- <div class="row cta add-on" id="alm-cta">
149
- <h3 class="heading"><?php _e('Call to Actions', 'ajax-load-more'); ?></h3>
150
- <div class="expand-wrap">
151
-
152
- <div class="section-title">
153
- <p><?php _e('Insert call to action block.', 'ajax-load-more'); ?></p>
154
- </div>
155
- <div class="wrap">
156
- <div class="inner">
157
- <ul>
158
- <li>
159
- <input class="alm_element" type="radio" name="cta" value="true" id="cta-true" >
160
- <label for="cta-true"><?php _e('True', 'ajax-load-more'); ?></label>
161
- </li>
162
- <li>
163
- <input class="alm_element" type="radio" name="cta" value="false" id="cta-false" checked="checked">
164
- <label for="cta-false"><?php _e('False', 'ajax-load-more'); ?></label>
165
- </li>
166
- </ul>
167
- </div>
168
- </div>
169
- <div class="clear"></div>
170
-
171
- <div class="cta_template_wrap">
172
-
173
- <hr/>
174
- <div class="spacer"></div>
175
-
176
- <div class="section-title">
177
- <h4><?php _e('CTA Positioning', 'ajax-load-more'); ?></h4>
178
- <p><?php _e('Insert call to action <strong><em id="sequence-update-before-after">before</em></strong> post #<strong><em id="sequence-update">1</em></strong>', 'ajax-load-more'); ?>.</p>
179
- </div>
180
- <div class="wrap">
181
- <div class="inner">
182
-
183
- <label class="full"><?php _e('Before / After', 'ajax-load-more'); ?>:</label>
184
- <select class="alm_element cta-before-after" name="cta-before-after" id="cta-before-after">
185
- <option value="before" selected="selected"><?php _e('Before', 'ajax-load-more'); ?></option>
186
- <option value="after"><?php _e('After', 'ajax-load-more'); ?></option>
187
- </select>
188
- <div class="clear"></div>
189
- <div class="spacer" style="height: 30px;"></div>
190
- <label class="full" for="cta-position"><?php _e('Post #', 'ajax-load-more'); ?>:</label>
191
- <input type="number" min="1" step="1" value="1" placeholder="1" id="cta-position" class="alm_element numbers-only" name="cta-position">
192
-
193
- </div>
194
- </div>
195
-
196
- <div class="clear"></div>
197
- <hr/>
198
- <div class="spacer"></div>
199
-
200
- <div class="section-title">
201
- <h4><?php _e('Template', 'ajax-load-more'); ?></h4>
202
- <?php
203
- echo '<p>'.__('Select the <a href="admin.php?page=ajax-load-more-repeaters" target="_parent">repeater template</a> that will display your call to action.', 'ajax-load-more'). '</p>';
204
- ?>
205
- </div>
206
- <div class="wrap">
207
- <div class="inner">
208
- <?php
209
- echo '<select name="cta-repeater-select" class="alm_element">';
210
- echo '<option name="" value="" selected="selected">'.__('-- Select Repeater --', 'ajax-load-more').'</option>';
211
- echo '<option name="default" value="default">Default</option>';
212
- if (has_action('alm_get_custom_repeaters')) {
213
- do_action('alm_get_custom_repeaters');
214
- }
215
- if (has_action('alm_get_unlimited_repeaters')) {
216
- do_action('alm_get_unlimited_repeaters');
217
- }
218
- echo '</select>';
219
- ?>
220
- </div>
221
- </div>
222
- <?php
223
- // Get Theme Repeaters
224
- if (has_action('alm_theme_repeaters_selection')){
225
- do_action('alm_theme_repeaters_selection');
226
- }
227
- ?>
228
-
229
- <p class="warning-callout">
230
- <?php _e('Call to actions do NOT count as a post within an Ajax Load More loop.<br/>
231
- For example, if you set <strong>posts_per_page="5"</strong> in your shortcode, 6 items will be displayed.', 'ajax-load-more'); ?>
232
- </p>
233
-
234
- </div>
235
-
236
- </div>
237
- </div>
238
- <?php } ?>
239
-
240
-
241
- <?php if(has_action('alm_comments_installed')){ ?>
242
- <!-- COMMENTS -->
243
- <div class="row input comments add-on" id="alm-comments">
244
- <h3 class="heading"><?php _e('Comments', 'ajax-load-more'); ?></h3>
245
- <div class="expand-wrap">
246
- <div class="section-title">
247
- <p><?php _e('Enable Ajax Load More to display blog comments.', 'ajax-load-more'); ?></p>
248
- </div>
249
- <div class="wrap">
250
- <div class="inner">
251
- <ul>
252
- <li>
253
- <input class="alm_element" type="radio" name="comments" value="true" id="comments-true" >
254
- <label for="comments-true"><?php _e('True', 'ajax-load-more'); ?></label>
255
- </li>
256
- <li>
257
- <input class="alm_element" type="radio" name="comments" value="false" id="comments-false" checked="checked">
258
- <label for="comments-false"><?php _e('False', 'ajax-load-more'); ?></label>
259
- </li>
260
- </ul>
261
- </div>
262
- </div>
263
- <div class="clear"></div>
264
- <div class="comments_extras">
265
-
266
- <div class="clear"></div>
267
- <hr>
268
- <div class="section-title">
269
- <h4><?php _e('Post ID', 'ajax-load-more'); ?></h4>
270
- <p><?php _e('The ID of the current single post.', 'ajax-load-more'); ?></p>
271
- </div>
272
- <div class="wrap">
273
- <div class="inner">
274
- <input type="text" value="get_the_ID()" id="comments_post_id" class="alm_element disabled-input" disabled="disabled">
275
- </div>
276
- </div>
277
-
278
- <div class="clear"></div>
279
- <hr>
280
- <div class="section-title">
281
- <h4><?php _e('Comments Per Page', 'ajax-load-more'); ?></h4>
282
- <p><?php _e('The number of top level items to show for each page of comments.', 'ajax-load-more'); ?></p>
283
- </div>
284
- <div class="wrap">
285
- <div class="inner">
286
- <input type="number" class="alm_element numbers-only" name="comments-per-page" id="comments-per-page" step="1" min="1" value="5">
287
- </div>
288
- </div>
289
- <div class="section-title full">
290
- <p><?php _e('<strong>Note</strong>: The amount selected does NOT include comment replies.', 'ajax-load-more'); ?></p>
291
- </div>
292
-
293
- <div class="clear"></div>
294
- <hr>
295
- <div class="section-title">
296
- <h4><?php _e('Comment Type', 'ajax-load-more'); ?></h4>
297
- <p><?php _e('The type of comment(s) to display.', 'ajax-load-more'); ?></p>
298
- </div>
299
- <div class="wrap">
300
- <div class="inner">
301
- <select class="alm_element comments_type" id="comments_type">
302
- <option value="comment" selected="selected"><?php _e('Comment', 'ajax-load-more'); ?></option>
303
- <option value="all"><?php _e('All', 'ajax-load-more'); ?></option>
304
- <option value="trackback"><?php _e('Trackback', 'ajax-load-more'); ?></option>
305
- <option value="pingback"><?php _e('Pingback', 'ajax-load-more'); ?></option>
306
- <option value="pings"><?php _e('Pings', 'ajax-load-more'); ?></option>
307
- </select>
308
- </div>
309
- </div>
310
-
311
- <div class="clear"></div>
312
- <hr>
313
- <div class="section-title">
314
- <h4><?php _e('Comment Style', 'ajax-load-more'); ?></h4>
315
- <p><?php _e('Select the HTML container style for your comments.', 'ajax-load-more'); ?></p>
316
- </div>
317
- <div class="wrap">
318
- <div class="inner">
319
- <ul class="comment_container_type">
320
- <li>
321
- <input type="radio" id="comment-type-ol" value="ol" name="alm_comment_style" class="alm_element" checked="checked">
322
- <label for="comment-type-ol">&lt;ol&gt; &lt;/ol&gt;</label>
323
- </li>
324
- <li>
325
- <input type="radio" id="comment-type-ul" value="ul" name="alm_comment_style" class="alm_element">
326
- <label for="comment-type-ul">&lt;ul&gt; &lt;/ul&gt;</label>
327
- </li>
328
- <li>
329
- <input type="radio" id="comment-type-div" value="div" name="alm_comment_style" class="alm_element">
330
- <label for="comment-type-div">&lt;div&gt; &lt;/div&gt;</label>
331
- </li>
332
- </ul>
333
- </div>
334
- </div>
335
-
336
- <div class="clear"></div>
337
- <hr>
338
-
339
- <div class="section-title">
340
- <h4><?php _e('Comment Template', 'ajax-load-more'); ?></h4>
341
- <p><?php _e('Select a repeater template that will display comment data.', 'ajax-load-more'); ?></p>
342
- </div>
343
-
344
- <div class="wrap">
345
- <div class="inner">
346
- <select class="alm_element comments_template" id="comments_template">
347
- <option value="none" selected="selected"><?php _e('None', 'ajax-load-more'); ?></option>
348
- <option name="default" id="chk-default" value="default"><?php _e('Default', 'ajax-load-more'); ?></option>
349
- <?php if (has_action('alm_get_custom_repeaters')) {
350
- do_action('alm_get_custom_repeaters');
351
- }
352
- if (has_action('alm_get_unlimited_repeaters')) {
353
- do_action('alm_get_unlimited_repeaters');
354
- }
355
- ?>
356
- </select>
357
- </div>
358
- </div>
359
- <div class="section-title full">
360
- <p><?php _e('<strong>Note</strong>: <span>None</span> will use the default WordPress comment layout.', 'ajax-load-more'); ?></p>
361
- </div>
362
- <div class="spacer"></div>
363
- <div class="clear"></div>
364
- <div class="select-theme-repeater">
365
- <span class="or">or</span>
366
- <hr/>
367
- <div class="spacer"></div>
368
- <div class="section-title">
369
- <h4><?php _e('Callback Function', 'ajax-load-more'); ?></h4>
370
- <p><?php _e('A custom <a href="https://codex.wordpress.org/Function_Reference/wp_list_comments#Arguments" target="_blank">callback</a> function that will display each comment.', 'ajax-load-more'); ?></p>
371
- </div>
372
- <div class="wrap">
373
- <div class="inner">
374
- <input type="text" value="" placeholder="function_name" id="comments_callback" class="alm_element">
375
- </div>
376
- </div>
377
- <div class="section-title full">
378
- <p><?php _e('<strong>Note</strong>: The majority of premium themes have a custom callback function for displaying comments. Please see comments.php or functions.php within your theme directory to locate the callback function for your theme.', 'ajax-load-more'); ?></p>
379
- </div>
380
- </div>
381
-
382
- <p class="warning-callout">
383
- <?php _e('You must add the comments shortcode directly to your single template file using the <a href="https://developer.wordpress.org/reference/functions/do_shortcode/" target="_blank">do_shortcode</a> method. &raquo; <a href="https://connekthq.com/plugins/ajax-load-more/add-ons/comments/" target="_blank">View documentation</a>', 'ajax-load-more'); ?>
384
- </p>
385
-
386
- </div>
387
- </div>
388
- </div>
389
- <?php } ?>
390
-
391
-
392
- <?php if(has_action('alm_nextpage_installed')){ ?>
393
- <!-- NEXT PAGE -->
394
- <div class="row input next-page add-on" id="alm-next-page">
395
- <h3 class="heading"><?php _e('Next Page', 'ajax-load-more'); ?></h3>
396
- <div class="expand-wrap">
397
- <div class="section-title">
398
- <p><?php _e('Enable the infinite scrolling of multipage WordPress content using the', 'ajax-load-more'); ?> <span>< !--nextpage-- ></span> <?php _e('Quicktag', 'ajax-load-more'); ?>.</p>
399
- </div>
400
- <div class="wrap">
401
- <div class="inner">
402
- <ul>
403
- <li>
404
- <input class="alm_element" type="radio" name="next-page" value="true" id="next-page-true" >
405
- <label for="next-page-true"><?php _e('True', 'ajax-load-more'); ?></label>
406
- </li>
407
- <li>
408
- <input class="alm_element" type="radio" name="next-page" value="false" id="next-page-false" checked="checked">
409
- <label for="next-page-false"><?php _e('False', 'ajax-load-more'); ?></label>
410
- </li>
411
- </ul>
412
- </div>
413
- </div>
414
-
415
- <div class="clear"></div>
416
-
417
- <div class="next-page-content" style="display: none;">
418
-
419
- <div class="clear"></div>
420
- <hr>
421
- <div class="section-title">
422
- <h4><?php _e('Post ID', 'ajax-load-more'); ?></h4>
423
- <p><?php _e('The ID of the current page/post.', 'ajax-load-more'); ?></p>
424
- </div>
425
- <div class="wrap">
426
- <div class="inner">
427
- <input type="text" value="get_the_ID()" id="next-page_post_id" class="alm_element disabled-input" disabled="disabled">
428
- </div>
429
- </div>
430
-
431
- <div class="clear"></div>
432
- <hr/>
433
-
434
- <div class="section-title">
435
- <h4><?php _e('URL Rewrite', 'ajax-load-more'); ?></h4>
436
- <p><?php _e('Update the browser address bar as pages come into view', 'ajax-load-more'); ?>.</p>
437
- </div>
438
- <div class="wrap">
439
- <div class="inner">
440
- <ul>
441
- <li style="width:100%;">
442
- <input class="alm_element" type="checkbox" name="next-page-url" id="next-page-url" value="true" checked="checked">
443
- <label for="next-page-url"><?php _e('Yes, update the URL', 'ajax-load-more'); ?>.</label>
444
- </li>
445
- </ul>
446
- <input type="checkbox" class="alm_element" name="next-page-url" id="next-page-url" checked="checked">
447
- </div>
448
- </div>
449
-
450
- <div class="clear"></div>
451
- <hr/>
452
-
453
- <div class="section-title">
454
- <h4>
455
- <?php _e('Google Analytics', 'ajax-load-more'); ?>
456
- <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('You must have a reference to your Google Analytics tracking code already on the page','ajax-load-more'); ?>."></a>
457
- </h4>
458
- <p><?php _e('Each time a page is loaded it will count as a pageview', 'ajax-load-more'); ?>.</p>
459
- </div>
460
- <div class="wrap">
461
- <div class="inner">
462
- <ul>
463
- <li style="width:100%;">
464
- <input class="alm_element" type="checkbox" name="next-page-pageviews" id="next-page-pageviews" value="true" checked="checked">
465
- <label for="next-page-pageviews"><?php _e('Yes, send pageviews to Google Analytics', 'ajax-load-more'); ?>.</label>
466
- </li>
467
- </ul>
468
- <input type="checkbox" class="alm_element" name="next-page-url" id="next-page-url" checked="checked">
469
- </div>
470
- </div>
471
-
472
- <div class="clear"></div>
473
- <hr>
474
- <div class="section-title">
475
- <h4>
476
- <?php _e('Scroll to Page', 'ajax-load-more'); ?>
477
- <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Set Scroll Speed to 0 to disable scrolling to page','ajax-load-more'); ?>."></a>
478
- </h4>
479
- <p>
480
- <?php _e('Scroll users automatically to the next page on \'Load More\' button click', 'ajax-load-more'); ?>.
481
- </p>
482
- </div>
483
- <div class="wrap">
484
- <div class="inner half">
485
- <label for="next-page-scroll-speed" class="full">
486
- <?php _e('Scroll Speed', 'ajax-load-more'); ?>
487
- <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Scrolling speed in milliseconds (e.g. 1 second = 1000)','ajax-load-more'); ?>."></a>
488
- </label>
489
- <input id="next-page-scroll-speed" name="next-page-scroll-speed" class="alm_element sm" type="number" min="0" max="5000" step="25" value="250" placeholder="250">
490
- </div>
491
- <div class="inner half">
492
- <label for="next-page-scroll-top" class="full">
493
- <?php _e('Scroll Top', 'ajax-load-more'); ?>
494
- <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('The scrolltop position of the window (used with scrolling and fwd/back browser buttons)','ajax-load-more'); ?>."></a>
495
- </label>
496
- <input id="next-page-scroll-top" name="next-page-scroll-top" class="alm_element sm" type="number" min="0" max="1000" step="1" value="30" placeholder="30">
497
- </div>
498
- </div>
499
-
500
- <p class="warning-callout">
501
- <?php _e('You must add the Next Page shortcode directly to your single template file using the <a href="https://developer.wordpress.org/reference/functions/do_shortcode/" target="_blank">do_shortcode</a> method. &raquo; <a href="https://connekthq.com/plugins/ajax-load-more/add-ons/next-page/" target="_blank">View documentation</a>', 'ajax-load-more'); ?>
502
- </p>
503
-
504
- </div>
505
- </div>
506
- </div>
507
- <?php } ?>
508
-
509
-
510
- <?php if(has_action('alm_paging_installed')){ ?>
511
- <!-- PAGING -->
512
- <div class="row input paging add-on" id="alm-paging">
513
- <h3 class="heading"><?php _e('Paging', 'ajax-load-more'); ?></h3>
514
- <div class="expand-wrap">
515
- <div class="section-title"> <p><?php _e('Replace infinite scrolling with a paged ajax navigation system.', 'ajax-load-more'); ?></p>
516
- </div>
517
- <div class="wrap">
518
- <div class="inner">
519
- <ul>
520
- <li>
521
- <input class="alm_element" type="radio" name="paging" value="true" id="paging-true" >
522
- <label for="paging-true"><?php _e('True', 'ajax-load-more'); ?></label>
523
- </li>
524
- <li>
525
- <input class="alm_element" type="radio" name="paging" value="false" id="paging-false" checked="checked">
526
- <label for="paging-false"><?php _e('False', 'ajax-load-more'); ?></label>
527
- </li>
528
- </ul>
529
- </div>
530
- </div>
531
-
532
- <div class="clear"></div>
533
- <div id="nav-controls">
534
-
535
- <hr/>
536
- <div class="section-title">
537
- <h4><?php _e('Paging Controls', 'ajax-load-more'); ?></h4>
538
- <p><?php _e('Show (&laquo;)previous and next(&raquo;) buttons.', 'ajax-load-more'); ?></p>
539
- </div>
540
- <div class="wrap">
541
- <div class="inner">
542
- <ul>
543
- <li>
544
- <input class="alm_element" type="radio" name="paging-controls" value="true" id="paging-controls-true" >
545
- <label for="paging-controls-true"><?php _e('True', 'ajax-load-more'); ?></label>
546
- </li>
547
- <li>
548
- <input class="alm_element" type="radio" name="paging-controls" value="false" id="paging-controls-false" checked="checked">
549
- <label for="paging-controls-false"><?php _e('False', 'ajax-load-more'); ?></label>
550
- </li>
551
- </ul>
552
- </div>
553
- </div>
554
-
555
- <div class="clear"></div>
556
- <hr/>
557
- <div class="section-title">
558
- <h4><?php _e('Paging Navigation Classes', 'ajax-load-more'); ?></h4>
559
- <p><?php _e('Add custom CSS classes to the paging navigation menu.', 'ajax-load-more'); ?></p>
560
- </div>
561
- <div class="wrap">
562
- <div class="inner">
563
- <input type="text" class="alm_element" name="paging-classes" id="paging-classes" placeholder="portfolio-paging-menu">
564
- </div>
565
- </div>
566
-
567
- <div class="clear"></div>
568
- <hr/>
569
- <div class="section-title">
570
- <h4><?php _e('Show at Most', 'ajax-load-more'); ?></h4>
571
- <p><?php _e('The maximum amount of page menu items to show at a time. <br/.>0 = no maximum', 'ajax-load-more'); ?></p>
572
- </div>
573
- <div class="wrap">
574
- <div class="inner">
575
- <input type="number" class="alm_element numbers-only" name="show-at-most" id="show-at-most" step="2" min="0" value="7">
576
- </div>
577
- </div>
578
-
579
- </div>
580
-
581
- </div>
582
- </div>
583
- <?php } ?>
584
-
585
-
586
- <?php if(has_action('alm_preload_installed')){ ?>
587
- <!-- PRELOADED -->
588
- <div class="row input preload add-on" id="alm-preload">
589
- <h3 class="heading"><?php _e('Preloaded', 'ajax-load-more'); ?></h3>
590
- <div class="expand-wrap">
591
- <div class="section-title">
592
- <p><?php _e('Preload posts prior to making Ajax requests.', 'ajax-load-more'); ?></p>
593
- </div>
594
- <div class="wrap">
595
- <div class="inner">
596
- <ul>
597
- <li>
598
- <input class="alm_element" type="radio" name="preload" value="true" id="preload-true" >
599
- <label for="preload-true"><?php _e('True', 'ajax-load-more'); ?></label>
600
- </li>
601
- <li>
602
- <input class="alm_element" type="radio" name="preload" value="false" id="preload-false" checked="checked">
603
- <label for="preload-false"><?php _e('False', 'ajax-load-more'); ?></label>
604
- </li>
605
- </ul>
606
- </div>
607
- </div>
608
- <div class="clear"></div>
609
- <div class="preload_amount">
610
- <div class="clear"></div>
611
- <hr>
612
- <div class="section-title">
613
- <h4><?php _e('Preload Amount', 'ajax-load-more'); ?></h4>
614
- <p><?php _e('Enter the number of posts to preload.', 'ajax-load-more'); ?></p>
615
- </div>
616
- <div class="wrap">
617
- <div class="inner">
618
- <input type="number" class="alm_element numbers-only" name="preload-amount" id="preload-amount" step="1" min="1" value="5">
619
- </div>
620
- </div>
621
- </div>
622
- </div>
623
- </div>
624
- <?php } ?>
625
-
626
-
627
- <?php if(has_action('alm_prev_post_installed')){ ?>
628
- <!-- PREV POST -->
629
- <div class="row input previous-post add-on" id="alm-previous-post">
630
- <h3 class="heading"><?php _e('Previous Post', 'ajax-load-more'); ?></h3>
631
- <div class="expand-wrap">
632
- <div class="section-title">
633
- <p><?php _e('Enable the infinite scrolling of single posts.', 'ajax-load-more'); ?></p>
634
- </div>
635
- <div class="wrap">
636
- <div class="inner">
637
- <ul>
638
- <li>
639
- <input class="alm_element" type="radio" name="prev-post" value="true" id="prev-post-true" >
640
- <label for="prev-post-true"><?php _e('True', 'ajax-load-more'); ?></label>
641
- </li>
642
- <li>
643
- <input class="alm_element" type="radio" name="prev-post" value="false" id="prev-post-false" checked="checked">
644
- <label for="prev-post-false"><?php _e('False', 'ajax-load-more'); ?></label>
645
- </li>
646
- </ul>
647
- </div>
648
- </div>
649
- <div class="clear"></div>
650
- <div class="prev_post_id" style="display: none;">
651
- <div class="clear"></div>
652
- <hr>
653
- <div class="section-title">
654
- <h4><?php _e('Post ID', 'ajax-load-more'); ?></h4>
655
- <p><?php _e('The ID of the current single post.', 'ajax-load-more'); ?></p>
656
- </div>
657
- <div class="wrap">
658
- <div class="inner">
659
- <input type="text" value="get_the_ID()" id="prev_post_id" class="alm_element disabled-input" disabled="disabled">
660
- </div>
661
- </div>
662
-
663
-
664
- <div class="clear"></div>
665
- <hr>
666
- <div class="section-title">
667
- <h4><?php _e('Taxonomy', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Selecting a taxonomy means only previous posts from the same taxonomy term will be returned. If a post has multiple terms attached, each term will be considered using an OR relationship query','ajax-load-more'); ?>."></a></h4>
668
- <p><?php _e('Query previous posts from the same taxonomy term(s).', 'ajax-load-more'); ?></p>
669
- </div>
670
- <div class="wrap">
671
- <div class="inner">
672
- <?php
673
- // Taxonomies
674
- $pp_tax_args = array(
675
- 'public' => true,
676
- '_builtin' => false
677
- );
678
- $pp_tax_output = 'objects';
679
- $pp_taxonomies = get_taxonomies( $pp_tax_args, $pp_tax_output );
680
- echo '<select class="alm_element" name="pp-taxonomy-select" id="pp-taxonomy-select">';
681
- echo '<option value="" selected="selected">-- ' . __('Select Taxonomy', 'ajax-load-more') . ' --</option>';
682
- echo '<option value="category">' . __('Category', 'ajax-load-more') . '</option>';
683
- echo '<option value="post_tag">' . __('Tag', 'ajax-load-more') . '</option>';
684
- if ( $pp_taxonomies ) {
685
-
686
- foreach( $pp_taxonomies as $pp_taxonomy ){
687
- echo '<option name="pp-'.$pp_taxonomy->query_var.'" id="pp-'.$pp_taxonomy->query_var.'" value="'.$pp_taxonomy->query_var.'">'.$pp_taxonomy->label.'</option>';
688
- }
689
-
690
- }
691
- echo '</select>';
692
- ?>
693
- </div>
694
- </div>
695
-
696
-
697
- <div class="clear"></div>
698
- <hr>
699
- <div class="section-title">
700
- <h4><?php _e('Excluded Terms ', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('A comma-separated list of excluded terms by ID','ajax-load-more'); ?>."></a></h4>
701
- <p><?php _e('Exclude posts by term ID from the previous post query.', 'ajax-load-more'); ?></p>
702
- </div>
703
- <div class="wrap">
704
- <div class="inner">
705
- <input type="text" id="pp-term-exclude" class="alm_element numbers-only" value="" placeholder="5, 8, 35">
706
- </div>
707
- </div>
708
-
709
- <p class="warning-callout">
710
- <?php _e('You must add the Previous Post shortcode directly to your single template file using the <a href="https://developer.wordpress.org/reference/functions/do_shortcode/" target="_blank">do_shortcode</a> method. &raquo; <a href="https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/" target="_blank">View documentation</a>', 'ajax-load-more'); ?>
711
- </p>
712
- </div>
713
- </div>
714
- </div>
715
- <?php } ?>
716
-
717
-
718
- <?php if(has_action('alm_rest_api_installed')){
719
-
720
- // get rest defaults (from core alm settings)
721
- $restapi_baseurl = '/wp-json';
722
- if(isset($alm_options['_alm_rest_api_base_url']))
723
- $restapi_baseurl = $alm_options['_alm_rest_api_base_url'];
724
-
725
- $restapi_namespace = 'ajaxloadmore';
726
- if(isset($alm_options['_alm_rest_api_namespace']))
727
- $restapi_namespace = $alm_options['_alm_rest_api_namespace'];
728
-
729
- $restapi_endpoint = 'posts';
730
- if(isset($alm_options['_alm_rest_api_endpoint']))
731
- $restapi_endpoint = $alm_options['_alm_rest_api_endpoint'];
732
-
733
- ?>
734
- <!-- REST API -->
735
- <div class="row input rest add-on" id="alm-rest">
736
- <h3 class="heading"><?php _e('REST API', 'ajax-load-more'); ?></h3>
737
- <div class="expand-wrap">
738
- <div class="section-title">
739
- <p><?php _e('Enable the WordPress REST API.', 'ajax-load-more'); ?></p>
740
- </div>
741
- <div class="wrap">
742
- <div class="inner">
743
- <ul>
744
- <li>
745
- <input class="alm_element" type="radio" name="rest" value="true" id="rest-true" >
746
- <label for="rest-true"><?php _e('True', 'ajax-load-more'); ?></label>
747
- </li>
748
- <li>
749
- <input class="alm_element" type="radio" name="rest" value="false" id="rest-false" checked="checked">
750
- <label for="rest-false"><?php _e('False', 'ajax-load-more'); ?></label>
751
- </li>
752
- </ul>
753
- </div>
754
- </div>
755
-
756
- <div class="clear"></div>
757
- <div class="restapi_options">
758
-
759
- <div class="clear"></div>
760
- <hr>
761
-
762
- <div class="section-title">
763
- <h4><?php _e('Base URL', 'ajax-load-more'); ?>
764
- <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Set a default Base URL in the Ajax Load More settings panel','ajax-load-more'); ?>."></a></h4>
765
- <p><?php _e('Enter the base URL to your installation of the REST API.', 'ajax-load-more'); ?></p>
766
- </div>
767
- <div class="wrap">
768
- <div class="inner">
769
- <input type="text" id="rest-base" class="alm_element" name="rest-base" value="<?php echo $restapi_baseurl; ?>">
770
- </div>
771
- </div>
772
-
773
- <div class="clear"></div>
774
- <hr>
775
-
776
- <div class="section-title">
777
- <h4><?php _e('Namespace', 'ajax-load-more'); ?>
778
- <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Set a default Namespace in the Ajax Load More settings panel','ajax-load-more'); ?>."></a></h4>
779
- <p><?php _e('Enter the custom namespace for this Ajax Load More query.', 'ajax-load-more'); ?></p>
780
- </div>
781
- <div class="wrap">
782
- <div class="inner">
783
- <input type="text" id="rest-namespace" class="alm_element" name="rest-namespace" value="<?php echo $restapi_namespace; ?>">
784
- </div>
785
- </div>
786
-
787
- <div class="clear"></div>
788
- <hr>
789
-
790
- <div class="section-title">
791
- <h4><?php _e('Endpoint', 'ajax-load-more'); ?>
792
- <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Set a default Endpoint in the Ajax Load More settings panel','ajax-load-more'); ?>."></a></h4>
793
- <p><?php _e('Enter your custom endpoint for this Ajax Load More query.', 'ajax-load-more'); ?></p>
794
- </div>
795
- <div class="wrap">
796
- <div class="inner">
797
- <input type="text" id="rest-endpoint" class="alm_element" name="rest-endpoint" value="<?php echo $restapi_endpoint; ?>">
798
- </div>
799
- </div>
800
-
801
- <div class="clear"></div>
802
- <hr>
803
-
804
- <div class="section-title">
805
- <h4><?php _e('Template ID', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Ajax Load More references this ID while looping and displaying your data. You must still select a repeater template for this instance of Ajax Load More','ajax-load-more'); ?>">.</a></h4>
806
- <p><?php _e('Enter the ID of your javascript template.<br/><br/>e.g. <em>tmpl-alm-template</em> = <em>alm-template</em>', 'ajax-load-more'); ?><br/>&raquo; <a href="https://gist.github.com/dcooney/c89f5859b73256b36de4a0c3320d9b07" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
807
- </div>
808
- <div class="wrap">
809
- <div class="inner">
810
- <input type="text" id="rest-template-id" class="alm_element" name="rest-template-id" value="">
811
- </div>
812
- </div>
813
-
814
- <div class="clear"></div>
815
- <hr>
816
-
817
- <div class="section-title">
818
- <h4><?php _e('Debug Mode', 'ajax-load-more'); ?></h4>
819
- <p><?php _e('Enable debugging (console.log) of REST API responses in the browser console. ', 'ajax-load-more'); ?></p>
820
- </div>
821
- <div class="wrap">
822
- <div class="inner">
823
- <ul>
824
- <li>
825
- <input class="alm_element" type="radio" name="rest-debug" value="true" id="rest-debug-true" >
826
- <label for="rest-debug-true"><?php _e('True', 'ajax-load-more'); ?></label>
827
- </li>
828
- <li>
829
- <input class="alm_element" type="radio" name="rest-debug" value="false" id="rest-debug-false" checked="checked">
830
- <label for="rest-debug-false"><?php _e('False', 'ajax-load-more'); ?></label>
831
- </li>
832
- </ul>
833
- </div>
834
- </div>
835
-
836
- <p class="warning-callout">
837
- <?php _e('Visit <a href="http://v2.wp-api.org/" target="_blank">http://v2.wp-api.org</a> for documentation on creating custom <a href="http://v2.wp-api.org/extending/adding/" target="_blank">Endpoints</a> for use with Ajax Load More.', 'ajax-load-more'); ?>
838
- </p>
839
-
840
- </div>
841
-
842
- </div>
843
- </div>
844
- <?php } ?>
845
-
846
-
847
- <?php if(has_action('alm_seo_installed')){ ?>
848
- <!-- SEO -->
849
- <div class="row input seo add-on" id="alm-seo">
850
- <h3 class="heading"><?php _e('SEO (Search Engine Optimization)', 'ajax-load-more'); ?></h3>
851
- <div class="expand-wrap">
852
- <div class="section-title">
853
- <p><?php _e('Enable address bar URL rewrites as users page through ajax loaded content.', 'ajax-load-more'); ?></p>
854
- </div>
855
- <div class="wrap">
856
- <div class="inner">
857
- <ul>
858
- <li>
859
- <input class="alm_element" type="radio" name="seo" value="true" id="seo-true" >
860
- <label for="seo-true"><?php _e('True', 'ajax-load-more'); ?></label>
861
- </li>
862
- <li>
863
- <input class="alm_element" type="radio" name="seo" value="false" id="seo-false" checked="checked">
864
- <label for="seo-false"><?php _e('False', 'ajax-load-more'); ?></label>
865
- </li>
866
- </ul>
867
- </div>
868
- </div>
869
- </div>
870
- </div>
871
- <?php } ?>
872
 
873
  </div>
874
  <?php endif; ?>
875
  <!-- End Add-ons -->
876
 
877
- <!-- ****************************** -->
878
-
879
  <!-- Display Settings -->
880
  <div class="shortcode-parameter-wrap">
881
  <h2 class="shortcode-title"><?php _e('Display Settings', 'ajax-load-more'); ?></h2>
15
 
16
 
17
  <!-- Add-ons -->
18
+ <?php
19
+ // ../admin-functions.php
20
+ if(alm_has_addon_shortcodes()) : ?>
21
 
22
  <div class="shortcode-parameter-wrap">
23
  <h2 class="shortcode-title"><?php _e('Add-ons & Extensions', 'ajax-load-more'); ?></h2>
24
 
25
+ <?php
26
+ require_once('components/acf.php');
27
+ require_once('components/cache.php');
28
+ require_once('components/cta.php');
29
+ require_once('components/comments.php');
30
+ require_once('components/nextpage.php');
31
+ require_once('components/paging.php');
32
+ require_once('components/preloaded.php');
33
+ require_once('components/previous-post.php');
34
+ require_once('components/rest-api.php');
35
+ require_once('components/seo.php');
36
+ require_once('components/users.php');
37
+ ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
 
39
  </div>
40
  <?php endif; ?>
41
  <!-- End Add-ons -->
42
 
 
 
43
  <!-- Display Settings -->
44
  <div class="shortcode-parameter-wrap">
45
  <h2 class="shortcode-title"><?php _e('Display Settings', 'ajax-load-more'); ?></h2>
admin/src/js/admin.js CHANGED
@@ -78,8 +78,7 @@ jQuery(document).ready(function($) {
78
 
79
  // On Change, save the settings
80
  let settingsTimer;
81
- $(document).on('change', '#alm_OptionsForm input, #alm_OptionsForm textarea, #alm_OptionsForm select', function(){
82
-
83
  // Set a timer to avoid updating settings to frequently
84
  if(settingsTimer) clearTimeout(settingsTimer);
85
  settingsTimer = setTimeout(function(){
@@ -175,7 +174,7 @@ jQuery(document).ready(function($) {
175
  };
176
 
177
  // Copy link on shortcode builder
178
- $('.output-wrap .copy').click(function(){
179
  var c = $('#shortcode_output').html();
180
  _alm.copyToClipboard(c);
181
  });
@@ -414,14 +413,13 @@ jQuery(document).ready(function($) {
414
  $(document).on('change', '#alm-settings-nav', function(e){
415
  e.preventDefault();
416
  var el = $(this),
417
- index = el.val();
418
-
419
  if(index !== '#'){
 
420
  $('html, body').animate({
421
  scrollTop: $("#alm_OptionsForm h2").eq(index).offset().top - 40
422
  }, 500);
423
  }
424
-
425
  });
426
 
427
 
78
 
79
  // On Change, save the settings
80
  let settingsTimer;
81
+ $(document).on('change', '#alm_OptionsForm input, #alm_OptionsForm textarea, #alm_OptionsForm select', function(){
 
82
  // Set a timer to avoid updating settings to frequently
83
  if(settingsTimer) clearTimeout(settingsTimer);
84
  settingsTimer = setTimeout(function(){
174
  };
175
 
176
  // Copy link on shortcode builder
177
+ $('.shortcode-builder .copy').click(function(){
178
  var c = $('#shortcode_output').html();
179
  _alm.copyToClipboard(c);
180
  });
413
  $(document).on('change', '#alm-settings-nav', function(e){
414
  e.preventDefault();
415
  var el = $(this),
416
+ index = $('option:selected', el).index();
 
417
  if(index !== '#'){
418
+ index = index - 1;
419
  $('html, body').animate({
420
  scrollTop: $("#alm_OptionsForm h2").eq(index).offset().top - 40
421
  }, 500);
422
  }
 
423
  });
424
 
425
 
admin/src/js/modules/sticky.js ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var alm = alm || {};
2
+
3
+ /*
4
+ * alm.attachSticky
5
+ */
6
+ alm.attachSticky = (el, anchor, top = 0) => {
7
+ let h = el.offsetHeight + top, // height of sticky el
8
+ anchorOffset = anchor.getBoundingClientRect(),
9
+ anchor_top = anchorOffset.top,
10
+ w_height = window.innerHeight, // Window height
11
+ el_height = el.offsetHeight; // element height
12
+
13
+ if(w_height > (el_height + top)){
14
+ // If container height > than sticky height
15
+ if(anchor_top <= top) {
16
+ el.classList.add('attached');
17
+ } else {
18
+ if(anchor_top > top) {
19
+ el.classList.remove('attached');
20
+ }
21
+ }
22
+ }
23
+ };
24
+
25
+
26
+
27
+ /*
28
+ * alm.resizeSticky
29
+ */
30
+ alm.resizeSticky = () => {
31
+ let sticky = document.getElementById('cnkt-sticky');
32
+ let el = document.getElementById('cnkt-sticky-wrapper');
33
+ let atts = window.getComputedStyle(el);
34
+ sticky.style.width = atts.width;
35
+ }
36
+
37
+
38
+
39
+ /*
40
+ * initSticky
41
+ */
42
+ const initSticky = () => {
43
+ if(document.getElementById("cnkt-sticky-wrapper")){
44
+ const sticky_el = document.getElementById('cnkt-sticky');
45
+ const sticky_anchor = document.getElementById('cnkt-sticky-wrapper');
46
+ const sticky_top = 70; // The position the sticky should stick
47
+
48
+ // Scroll
49
+ window.addEventListener('scroll', function(e) {
50
+ alm.attachSticky(sticky_el, sticky_anchor, sticky_top);
51
+ });
52
+ // Resize
53
+ window.addEventListener('resize', function(e) {
54
+ alm.resizeSticky();
55
+ });
56
+ // Init
57
+ alm.resizeSticky();
58
+ alm.attachSticky(sticky_el, sticky_anchor, sticky_top);
59
+
60
+ }
61
+ }
62
+
63
+ window.onload = function(){
64
+ initSticky();
65
+ }
admin/src/scss/_variables.scss ADDED
@@ -0,0 +1 @@
 
1
+ $gutter: 25px;
admin/src/scss/admin.scss CHANGED
@@ -1,78 +1,83 @@
1
- @import 'libs/tooltipster';
2
- @import 'libs/select2';
3
- @import '//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css';
4
-
5
- @import 'partials/alm-settings-feedback';
 
 
 
6
 
7
-
8
- /* Custom buttom/loading styles */
9
- .select2-results .select2-result.alm-color .select2-result-label{
10
- position: relative;
11
- }
12
- .select2-results .select2-result.alm-color .select2-result-label:after{
13
- width: 10px;
14
- height: 10px;
15
- border-radius: 100%;
16
- content: '';
17
- display: block;
18
- position: absolute;
19
- right: 20px;
20
- top: 50%;
21
- margin-top: -5px;
22
- z-index: 1;
23
- }
24
- .select2-results .select2-result.alm-color.default .select2-result-label:after{
25
- background-color: #ed7070;
26
- }
27
- .select2-results .select2-result.alm-color.blue .select2-result-label:after{
28
- background-color: #0081bf;
29
- }
30
- .select2-results .select2-result.alm-color.green .select2-result-label:after{
31
- background-color: #6fca68;
32
- }
33
- .select2-results .select2-result.alm-color.purple .select2-result-label:after{
34
- background-color: #a86bb9;
35
- }
36
- .select2-results .select2-result.alm-color.grey .select2-result-label:after{
37
- background-color: #888;
38
- }
39
- .select2-results .select2-result.infinite .select2-result-label:after{
40
- display: none;
41
- }
42
- .select2-results .select2-result.infinite .select2-result-label{
43
- -webkit-background-size: 20px 20px;
44
- -moz-background-size: 20px 20px;
45
- background-size: 20px 20px;
46
- background-repeat: no-repeat;
47
- background-position: 93% center;
48
- }
49
- .select2-results .select2-result.classic .select2-result-label{
50
- background-image: url("../../../core/img/spinner.gif");
51
- }
52
- .select2-results .select2-result.skype .select2-result-label{
53
- background-image: url("../../../core/img/spinner-skype.gif");
54
- }
55
- .select2-results .select2-result.ring .select2-result-label{
56
- background-image: url("../../../core/img/spinner-ring.gif");
 
57
  }
58
- .select2-results .select2-result.chasing-arrows .select2-result-label{
59
- background-image: url("../../../core/img/spinner-chasing-arrows.gif");
 
 
 
 
60
  }
61
- .select2-results .select2-result.fading-blocks .select2-result-label{
62
- background-image: url("../../../core/img/loader-fading-blocks.gif");
63
- -webkit-background-size: 20px 16px;
64
- -moz-background-size: 20px 16px;
65
- background-size: 20px 16px;
66
  }
67
- .select2-results .select2-result.fading-circles .select2-result-label{
68
- background-image: url("../../../core/img/loader-fading-circles.gif");
69
- -webkit-background-size: 30px 10px;
70
- -moz-background-size: 30px 10px;
71
- background-size: 30px 10px;
72
- background-position: 95% center;
73
  }
74
 
75
-
76
  /*
77
  * Admin - Popup Generator
78
  *
@@ -95,7 +100,7 @@
95
  font-size: 14px;
96
  color:#666;
97
  position: relative;
98
- max-width: 1250px;
99
  }
100
  #alm-help.ajax-load-more{
101
  max-width: 1600px;
@@ -112,18 +117,20 @@
112
  overflow: hidden;
113
  padding: 15px 10px 140px !important;
114
  }
115
- #alm-settings .admin-select{
116
- width: 100%;
117
- display: block;
118
- padding: 0 0 25px;
119
- margin: -10px 0 0;
120
- }
121
- #alm-settings .admin-select .select2-container{
122
- width: 48%;
123
- min-width: 48%;
124
- display: inline-block;
125
- vertical-align: top;
 
126
  }
 
127
 
128
  /* Saved Settings */
129
 
@@ -131,37 +138,42 @@
131
  padding-bottom: 5px !important;
132
  }
133
 
134
- #alm-settings form h2{
135
- background: #f7f7f7;
136
- border: 1px solid #efefef;
137
- border-bottom: none;
138
- padding: 20px 20px 6px;
139
- margin: 20px 0 0;
140
- font-weight: 600;
141
- font-size: 18px;
142
- border-radius: 2px 2px 0 0;
143
- }
144
- #alm-settings form h2:first-of-type{
145
- margin: 0;
146
- }
147
- #alm-settings form h2 + p{
148
- color: #999;
149
- padding: 0 20px 17px;
150
- border-right: 1px solid #efefef;
151
- border-left: 1px solid #efefef;
152
- background: #f7f7f7;
153
- margin: 0;
154
- font-size: 13px;
 
155
  }
156
  .ajax-load-more p.file-location{
157
  border: 1px solid #efefef;
158
  background: #fff;
159
- margin: 0 0 10px;
160
  padding: 15px;
161
  line-height: 1;
162
  display: block;
163
  font-family: Consolas, Monaco, monospace;
164
  border-radius: 3px;
 
 
 
 
165
  }
166
  .ajax-load-more code{
167
  background: #fcf3d0;
@@ -518,6 +530,7 @@ a.layout-hover{
518
  .ajax-load-more #meta-query-relation,
519
  .ajax-load-more #tax-query-relation,
520
  .ajax-load-more .comments_extras,
 
521
  .ajax-load-more .taxonomy-extended{
522
  display: none;
523
  overflow: hidden;
@@ -806,8 +819,8 @@ a.layout-hover{
806
  }
807
 
808
  /* Table of Contents */
809
- .table-of-contents{}
810
- .table-of-contents.attached{
811
  position: fixed;
812
  width: auto;
813
  top: 70px;
@@ -846,7 +859,7 @@ hr.indented{ // Indented as fake padding in shortcode builder
846
 
847
  .ajax-load-more .section-title {
848
  float: left;
849
- padding: 20px 0 20px 36px;
850
  width: 40%;
851
  }
852
 
@@ -910,7 +923,7 @@ hr.indented{ // Indented as fake padding in shortcode builder
910
  padding-left: 0 !important;
911
  }
912
  .ajax-load-more label.template-title{
913
- padding: 10px 0;
914
  margin: 0;
915
  font-size: 13px;
916
  color: #888;
@@ -1117,11 +1130,11 @@ hr.indented{ // Indented as fake padding in shortcode builder
1117
  */
1118
 
1119
  .form-table label{
1120
- display: inline-block;
1121
  clear: both;
1122
  float: none;
1123
- vertical-align: top;
1124
- padding: 0 0 10px;
1125
  max-width: 90%;
1126
  cursor: pointer !important;
1127
  line-height: 1.5;
@@ -1133,9 +1146,9 @@ hr.indented{ // Indented as fake padding in shortcode builder
1133
  max-width: 8%;
1134
  }
1135
  .form-table label + textarea{
1136
- margin-top: 10px;
1137
  }
1138
- .form-table label span,
1139
  #alm-shortcode-builder-form label span.description{
1140
  font-size: 13px;
1141
  color: #999;
@@ -1146,13 +1159,13 @@ hr.indented{ // Indented as fake padding in shortcode builder
1146
  padding-top: 5px;
1147
  padding-bottom: 5px;
1148
  }
1149
-
1150
- .form-table .template-tags{
1151
  overflow: hidden;
1152
  border-left: 5px solid #dfd8c2;
1153
  padding: 16px;
1154
  background: #fff9ea;
1155
- margin: 10px 0 0;
1156
  border-radius: 2px;
1157
  }
1158
  .form-table .template-tags h4,
@@ -1205,6 +1218,9 @@ hr.indented{ // Indented as fake padding in shortcode builder
1205
  .admin.ajax-load-more.settings .select2-container{
1206
  margin-top:10px;
1207
  }
 
 
 
1208
  .admin.ajax-load-more .ajax-load-more-wrap {
1209
  position: relative;
1210
  top: 10px;
@@ -1260,41 +1276,8 @@ hr.indented{ // Indented as fake padding in shortcode builder
1260
  overflow: hidden;
1261
  color: #999;
1262
  }
1263
- .header-wrap{
1264
- overflow: hidden;
1265
- padding: 10px 0;
1266
- }
1267
- .ajax-load-more .header-wrap h1{
1268
- padding-left: 60px;
1269
- min-height: 48px;
1270
- padding-top: 0;
1271
- background: url('../../img/alm-logo-48x48.png') no-repeat left 0;
1272
- background: url('../../img/alm-logo-48x48.svg') no-repeat left 0;
1273
- }
1274
- .ajax-load-more .header-wrap h1 em{
1275
- display: block;
1276
- position: relative;
1277
- margin-top: 1px;
1278
- font-size: 14px;
1279
- opacity: 0.7;
1280
- font-style: normal;
1281
- font-weight: 400;
1282
- line-height: 1.35;
1283
- }
1284
- .ajax-load-more .header-wrap h1 strong{
1285
- font-weight: 700;
1286
- }
1287
- .ajax-load-more h1 span{
1288
- color: #999;
1289
- font-weight: 300;
1290
- background: #fff;
1291
- padding: 5px 6px;
1292
- border-radius: 2px;
1293
- font-size: 0.8em;
1294
- position: relative;
1295
- top: -2px;
1296
- left: 5px;
1297
- }
1298
  .ajax-load-more h2.addon-title{
1299
  font-size: 19px !important;
1300
  line-height: 24px;
@@ -1406,32 +1389,20 @@ input.save-repeater{
1406
  text-decoration: none;
1407
  }
1408
 
1409
-
1410
-
1411
- .alm-save-settings{}
1412
- .alm-save-settings p.submit{
1413
- float: left;
1414
- margin: 0 5px 0 0;
1415
- width: auto;
1416
- }
1417
- .alm-save-settings .spinner{
1418
- display: none;
1419
- float: left;
1420
- visibility: visible !important;
1421
- }
1422
-
1423
-
1424
  table.highlight{
1425
  background: #fff !important;
1426
  }
1427
 
1428
-
1429
  /* Columns */
1430
  .ajax-load-more .cnkt-main{
1431
- width: 69%;
1432
  float: left;
1433
- margin-top: 10px;
1434
- background: none !important;
 
 
 
 
1435
  }
1436
  .ajax-load-more .cnkt-main .group{
1437
  background: #fff;
@@ -1446,9 +1417,11 @@ table.highlight{
1446
  .ajax-load-more .cnkt-sidebar .cta,
1447
  .call-out.light{
1448
  border: 1px solid #e1e1e1;
1449
- -webkit-border-radius: 3px;
1450
- -moz-border-radius: 3px;
1451
  border-radius: 3px;
 
 
 
 
1452
  }
1453
  .ajax-load-more .cnkt-main.full{
1454
  width: 100%;
@@ -1461,10 +1434,18 @@ table.highlight{
1461
  }
1462
  .form-table tr{
1463
  border-top: 1px solid #efefef;
1464
- }
1465
  .form-table {
1466
- border: 1px solid #efefef;
1467
  margin: 0 0 25px;
 
 
 
 
 
 
 
 
1468
  }
1469
  #alm_OptionsForm{
1470
  .form-table:last-of-type{
@@ -1497,14 +1478,14 @@ table.highlight{
1497
  }
1498
 
1499
  /* Repeaters */
1500
- .repeaters {}
1501
- .repeaters .repeater-wrap{
1502
- padding: 12px 15px 10px !important;
1503
  }
1504
  .repeater-wrap label{
1505
  cursor: default;
1506
  }
1507
- .repeaters input.save-repeater{
1508
  display: inline-block;
1509
  margin: 15px 0 0;
1510
  clear: none;
@@ -1514,14 +1495,53 @@ table.highlight{
1514
  .repeater-wrap input[type=text]{
1515
  width: 100%;
1516
  }
1517
- .repeaters input.save-repeater.saving{
1518
  cursor: default !important;
1519
  opacity: 0.3 !important;
1520
  }
1521
- .repeaters .saved-response{
1522
  max-width: 72%;
1523
  opacity: 0;
1524
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1525
 
1526
 
1527
  /* Add-ons & Extensions */
@@ -1534,23 +1554,37 @@ table.highlight{
1534
  display: flex;
1535
  flex-wrap: wrap;
1536
  }
1537
-
1538
  #alm-add-ons {}
1539
  #alm-add-ons .group{
1540
- overflow: hidden;
1541
  width: 31.333%;
1542
  display: inline-block;
1543
  vertical-align: top;
1544
  text-align: center;
1545
  margin: 0 1.5% 2% 0;
1546
- word-spacing : -4px;
1547
  padding: 0;
1548
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1549
  #alm-add-ons .group .expand-wrap{
1550
  display: block;
1551
  padding-bottom: 50px;
1552
  position: relative;
1553
- word-spacing : 0;
1554
  }
1555
  #alm-add-ons .group span.cnkt-button{
1556
  position: absolute;
@@ -1720,7 +1754,7 @@ table.highlight{
1720
  }
1721
  .license-title{
1722
  border-radius: 3px 3px 0 0;
1723
- border: 1px solid #ccc;
1724
  background-color: #efefef;
1725
  position: relative;
1726
  }
@@ -1820,14 +1854,13 @@ table.highlight{
1820
  overflow: hidden;
1821
  display: block;
1822
  padding: 15px;
1823
- border: 1px solid #ccc;
1824
  border-top: none;
1825
  background-color: #f7f7f7;
1826
- border-radius: 0 0 3px 3px;
1827
  }
1828
  .license-wrap label{
1829
  font-weight: 600;
1830
- /* position: relative; */
1831
  top:-3px;
1832
  }
1833
  .license-wrap input[type=text]{
@@ -1892,11 +1925,7 @@ table.highlight{
1892
  *
1893
  * @since 1.0
1894
  */
1895
- .ajax-load-more .cnkt-sidebar{
1896
- width: 29.5%;
1897
- float: right;
1898
- margin-top: 10px;
1899
- }
1900
  .ajax-load-more .cnkt-sidebar .cta{
1901
  background: #fff;
1902
  padding: 0;
@@ -1906,7 +1935,7 @@ table.highlight{
1906
  }
1907
  .ajax-load-more .cnkt-sidebar .cta-inner{
1908
  padding: 20px;
1909
- display: block;
1910
  }
1911
  .ajax-load-more .cnkt-sidebar .cta-inner.padding-bottom{
1912
  padding-bottom: 80px;
@@ -1926,19 +1955,16 @@ table.highlight{
1926
  margin-top: 0;
1927
  }
1928
  .ajax-load-more .cnkt-sidebar h3{
1929
- padding: 15px 20px;
1930
- border-bottom: 1px solid #e1e1e1;
1931
- background: #f7f7f7;
1932
  margin: 0;
1933
  display: block;
1934
- font-size: 14px;
1935
- text-transform: uppercase;
1936
- -webkit-border-radius: 2px 2px 0 0;
1937
- -moz-border-radius: 2px 2px 0 0;
1938
  border-radius: 2px 2px 0 0;
1939
- }
1940
-
1941
-
1942
  .ajax-load-more .cnkt-sidebar .item{
1943
  overflow: hidden;
1944
  }
@@ -1955,19 +1981,31 @@ table.highlight{
1955
  line-height: 22px;
1956
  margin: 0 0 5px;
1957
  font-size: 14px;
1958
- }
1959
- .ajax-load-more .cnkt-sidebar .cta.dyk img{
1960
- padding: 0 20px;
1961
- }
1962
- .ajax-load-more .cnkt-sidebar .cta.dyk p{
1963
- margin: 15px 0 0;
1964
- display: block;
1965
- overflow: hidden;
1966
- }
 
 
 
 
 
 
 
 
 
 
 
 
1967
  .ajax-load-more .cnkt-sidebar ul{
1968
  padding: 5px 0 0;
1969
  margin: 0;
1970
- overflow: hidden;
1971
  }
1972
  .ajax-load-more .cnkt-sidebar li{
1973
  font-size: 14px;
@@ -2092,20 +2130,17 @@ table.highlight{
2092
 
2093
  /*
2094
  * CodeMirror Syntax Highlighting
2095
- *
2096
  * @since 2.2.0
2097
  */
2098
 
2099
  .ajax-load-more .CodeMirror {
2100
  height: auto;
2101
- -webkit-border-radius: 3px;
2102
- -moz-border-radius: 3px;
2103
  border-radius: 3px;
2104
- padding: 8px;
2105
  background: #f7f7f7;
2106
  border: 1px solid #e1e1e1;
2107
  color: #999;
2108
- line-height: 1.3;
2109
  }
2110
  .ajax-load-more .cm-readonly .CodeMirror{
2111
  margin: 0 0 20px;
@@ -2124,16 +2159,13 @@ table.highlight{
2124
  background: #f7f7f7 url("../../img/loader-unlimited.gif") no-repeat center center;
2125
  opacity: 0.6;
2126
  }
2127
-
2128
  .ajax-load-more .cm-s-pastel-on-dark.CodeMirror{ /* Bkg color */
2129
  background: #333;
2130
  }
2131
  .ajax-load-more .CodeMirror-gutters{ /* Line Number color */
2132
  background: #fff;
2133
- border-right: 1px solid #ccc;
2134
- -webkit-border-radius: 2px 0 0 2px;
2135
- -moz-border-radius: 2px 0 0 2px;
2136
- border-radius: 2px 0 0 2px;
2137
  }
2138
  .ajax-load-more .CodeMirror pre{
2139
  font-size: 13px;
@@ -2143,7 +2175,6 @@ table.highlight{
2143
  overflow-x: auto;
2144
  }
2145
 
2146
-
2147
  .ajax-load-more .cm-tag{ /* <li> <h2> html elements */
2148
  color: #0a4b83 !important;
2149
  }
@@ -2242,47 +2273,6 @@ table.highlight{
2242
  width: 100.75%;
2243
  }
2244
 
2245
- .repeaters .alm-delete{
2246
- clear: none;
2247
- display: inline-block;
2248
- margin: 15px 0 0;
2249
- width: auto;
2250
- float: right;
2251
- opacity: 0;
2252
- transition: all 0.2s ease;
2253
- position: absolute;
2254
- right: 15px;
2255
- bottom: 17px;
2256
- }
2257
- .repeaters .alm-delete a{
2258
- border-radius: 2px;
2259
- background: none;
2260
- color: #c94141;
2261
- font-size: 14px;
2262
- text-decoration: none;
2263
- display: block;
2264
- padding: 5px 10px;
2265
- }
2266
- .repeaters .alm-delete a:hover{
2267
- background-color: #c94141;
2268
- color: #fff;
2269
- }
2270
- .repeaters .alm-delete a:focus{
2271
- -webkit-box-shadow: none;
2272
- -moz-box-shadow: none;
2273
- box-shadow: none;
2274
- }
2275
- .repeaters .alm-delete a:active{
2276
- -webkit-box-shadow: inset 0 1px 1px #ccc !important;
2277
- -moz-box-shadow: inset 0 1px 1px #ccc !important;
2278
- box-shadow: inset 0 1px 1px #ccc !important;
2279
- background-color: #b93636;
2280
- }
2281
-
2282
- .repeaters .row:hover .alm-delete{
2283
- opacity: 1;
2284
- }
2285
-
2286
  .alm-add-template{
2287
  text-align: center;
2288
  margin: 15px 0 0 !important;
@@ -2380,48 +2370,47 @@ table.highlight{
2380
  position: relative;
2381
  display: block;
2382
  margin: -5px 0 25px;
2383
- }
2384
- .ajax-load-more .alm-cache-search-wrap input{
2385
  width: 100% !important;
2386
  margin: 0 !important;
2387
- padding: 16px;
2388
  display: block;
2389
- font-size: 16px;
2390
  }
2391
- .ajax-load-more .alm-cache-search-wrap i{
2392
  position: absolute;
2393
- right: 18px;
2394
- top: 15px;
2395
  color: #ccc;
2396
  font-size: 24px;
2397
  z-index: 1;
2398
  }
 
2399
 
2400
  /* Directory Listing */
2401
 
2402
  .alm-dir-listing{
2403
  border: 1px solid #efefef;
2404
  padding: 0;
2405
- margin: 10px 0;
2406
- }
2407
- .alm-dir-listing.theme-repeaters{
2408
- padding: 15px;
2409
- margin: 0;
2410
- }
2411
- .alm-dir-listing.theme-repeaters ul{
2412
- border: none;
2413
- padding: 0;
2414
- margin: 0;
2415
- }
2416
-
2417
- .alm-dir-listing.theme-repeaters p.theme-title{
2418
- font-weight: 600;
2419
- margin: 0 0 15px;
2420
- padding: 0 5px;
2421
- }
2422
- .alm-dir-listing.theme-repeaters i{
2423
- color: #ccc;
2424
- font-size: 1.1em;
2425
  }
2426
 
2427
  .alm-dir-listing.deleting{
@@ -2545,8 +2534,6 @@ table.highlight{
2545
  top:1px;
2546
  }
2547
 
2548
-
2549
-
2550
  .dir-empty,
2551
  .cache-cleared{
2552
  background-color: #fefeed;
@@ -2560,17 +2547,16 @@ table.highlight{
2560
  background-color: #e0f5ff;
2561
  border-color: #bad0da;
2562
  color: #666;
2563
- }
2564
- .cache-cleared i{
2565
- color: #111;
2566
- margin: 0 5px 0 0;
2567
- }
2568
-
2569
- .cache-cleared .remove{
2570
  float: right;
2571
  font-size: 12px;
2572
  font-weight: 600;
2573
  }
 
2574
 
2575
  #alm-cache.ajax-load-more .cnkt-sidebar .item{
2576
  padding: 20px;
@@ -2579,11 +2565,10 @@ table.highlight{
2579
  p.cache-stats{
2580
  min-height: 38px;
2581
  line-height: 37px;
2582
- margin: 0;
2583
  display: block;
2584
- padding: 20px 20px 0 20px;
2585
- }
2586
- p.cache-stats span{
2587
  display: inline-block;
2588
  width: 38px;
2589
  height: 38px;
@@ -2608,12 +2593,6 @@ p.cache-stats{
2608
  color: #fff;
2609
  text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.1);
2610
  }
2611
-
2612
- form#delete-all-cache{
2613
- display: block;
2614
- padding: 20px;
2615
- border-top: 1px solid #efefef;
2616
- margin-top: 10px;
2617
  }
2618
 
2619
 
@@ -2707,8 +2686,6 @@ form#delete-all-cache{
2707
  display: block;
2708
  background: #fff;
2709
  border: 1px solid #e1e1e1;
2710
- -webkit-border-radius: 3px;
2711
- -moz-border-radius: 3px;
2712
  border-radius: 3px;
2713
  margin-bottom: 20px;
2714
  }
@@ -2718,11 +2695,9 @@ form#delete-all-cache{
2718
  display: block;
2719
  font-size: 22px;
2720
  width: calc(100% + 40px);
2721
- border-bottom: 1px solid #efefef;
2722
  background-color: #f7f7f7;
2723
- -webkit-border-radius: 2px 2px 0 0;
2724
- -moz-border-radius: 2px 2px 0 0;
2725
- border-radius: 2px 2px 0 0;
2726
  color: #23282d;
2727
  }
2728
  .forceColors #alm-shortcode-builder-form .shortcode-parameter-wrap h2{
@@ -2774,14 +2749,10 @@ form#delete-all-cache{
2774
  text-decoration: none !important;
2775
  padding: 8px 12px 8px 32px;
2776
  border: 1px solid #e1e1e1;
2777
- -webkit-border-radius: 3px;
2778
- -moz-border-radius: 3px;
2779
  border-radius: 3px;
2780
  font-size: 13px;
2781
  line-height: 1.25;
2782
  display: block;
2783
- -webkit-box-shadow: 0 0 0 1px #fff;
2784
- -moz-box-shadow: 0 0 0 1px #fff;
2785
  box-shadow: 0 0 0 1px #fff;
2786
  }
2787
  .alm-drop-btn a.target > i{
@@ -2795,8 +2766,6 @@ form#delete-all-cache{
2795
  background-color: #fff;
2796
  color: #666;
2797
  border-color: #c9c9c9;
2798
- -webkit-box-shadow: 0 0 3px #ccc;
2799
- -moz-box-shadow: 0 0 3px #ccc;
2800
  box-shadow: 0 0 3px #ccc;
2801
  }
2802
  .alm-repeater-options a.target:hover i.fa-cog{
@@ -2808,8 +2777,6 @@ form#delete-all-cache{
2808
  .alm-repeater-options.active a.target{
2809
  background-color: #fff;
2810
  border-color: #c9c9c9;
2811
- -webkit-box-shadow: inset 0 1px 1px #ccc !important;
2812
- -moz-box-shadow: inset 0 1px 1px #ccc !important;
2813
  box-shadow: inset 0 1px 1px #ccc !important;
2814
  }
2815
  .alm-repeater-options.active a.target,
@@ -2948,15 +2915,11 @@ form#delete-all-cache{
2948
  color: #222;
2949
  background-color: #fff;
2950
  border-color: #ccc;
2951
- -webkit-box-shadow: 0 0 3px #efefef;
2952
- -moz-box-shadow: 0 0 3px #efefef;
2953
  box-shadow: 0 0 3px #efefef;
2954
  opacity: 1;
2955
  }
2956
  .alm-drop-btn.alm-layout-selection.active a.target,
2957
  .alm-drop-btn.alm-layout-selection a.target:active{
2958
- -webkit-box-shadow: inset 0 1px 1px #ccc !important;
2959
- -moz-box-shadow: inset 0 1px 1px #ccc !important;
2960
  box-shadow: inset 0 1px 1px #ccc !important;
2961
  }
2962
 
@@ -3068,8 +3031,6 @@ form#delete-all-cache{
3068
  .alm-dropdown ul{
3069
  padding:0;
3070
  margin:0;
3071
- -webkit-border-radius: 2px;
3072
- -moz-border-radius: 2px;
3073
  border-radius: 2px;
3074
  border: 1px solid #efefef;
3075
  overflow: hidden;
@@ -3097,8 +3058,6 @@ form#delete-all-cache{
3097
  text-decoration: none;
3098
  background-position: 4px center;
3099
  color: #666;
3100
- -webkit-box-shadow: none !important;
3101
- -moz-box-shadow: none !important;
3102
  box-shadow: none !important;
3103
  position: relative;
3104
  width: 100%;
@@ -3333,95 +3292,92 @@ form#delete-all-cache{
3333
  padding-right: 30px;
3334
  border-left: 1px dashed #ccc;
3335
  }
3336
- ul.share{
3337
- margin: 0;
3338
- padding: 0 0 0;
3339
- width: auto;
3340
- clear: both;
3341
- display: inline-block;
3342
- overflow: hidden;
3343
- text-align: center;
3344
- width: 100%;
3345
- margin: 0;
3346
- padding: 0;
3347
- height: auto;
3348
- overflow: visible;
3349
- }
3350
- ul.share li{
3351
- background: none;
3352
- float: left;
3353
- vertical-align: top;
3354
- height: 40px;
3355
- line-height: 40px;
3356
- font-size: 13px;
3357
- width: auto;
3358
- position: relative;
3359
- font-weight: 400;
3360
- text-align: left;
3361
- background: none;
3362
- color: #787878;
3363
- width: auto;
3364
- text-align: center;
3365
- height: 36px;
3366
- margin: 5px 10px 0 0;
3367
- padding: 0;
3368
- }
3369
- ul.share li i{
3370
- height: 36px;
3371
- line-height: 36px;
3372
- left: 0;
3373
- width: 36px;
3374
- }
3375
- ul.share li a{
3376
- display: block;
3377
- line-height: 40px;
3378
- height: 40px;
3379
- width: auto;
3380
- padding: 0 25px 0 50px;
3381
- text-decoration: none;
3382
- color: #fff;
3383
- background: none;
3384
- border-radius: 3px;
3385
- position: relative;
3386
- font-weight: 600;
3387
- background: #33cf92;
3388
- }
3389
- ul.share li a:hover{
3390
- background-color: #45dfa3;
3391
- }
3392
- ul.share li i{
3393
- font-size: 17px;
3394
- line-height: 41px;
3395
- height: 40px;
3396
- width: 36px;
3397
- position: absolute;
3398
- top: 0;
3399
- left: 0;
3400
- text-align: center;
3401
- border-right: 1px solid rgba(0, 0, 0, 0.1);
3402
- background-color: rgba(0, 0, 0, 0.1);
3403
- border-radius: 2px 0 0 2px;
3404
- }
3405
- ul.share li a:hover,
3406
- ul.share li a:hover i{
3407
- text-decoration: none;
3408
- color:#fff !important;
3409
- }
3410
- ul.share li a:hover span{
3411
- text-decoration: none;
3412
- }
3413
 
3414
- ul.share li.twitter a{
3415
- background: #00aced;
3416
- }
3417
- ul.share li.twitter a:hover{
3418
- background: #13beff !important;
3419
- }
3420
- ul.share li.facebook a{
3421
- background: #3b5998;
3422
- }
3423
- ul.share li.facebook a:hover{
3424
- background: #466cbc !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3425
  }
3426
 
3427
 
@@ -3538,36 +3494,34 @@ ul.share li.facebook a:hover{
3538
  }
3539
 
3540
  @media screen and (max-width: 900px){
3541
-
3542
  .table-of-contents{
3543
  position: static !important;
3544
  width: 100% !important;
3545
- }
3546
-
3547
  .ajax-load-more .cnkt-main,
3548
  .ajax-load-more .cnkt-sidebar,
3549
  .ajax-load-more .cnkt-main.full {
3550
  float: none;
3551
  clear: both;
3552
- margin: 10px 0 20px;
3553
  width: 100%;
 
3554
  }
3555
  .admin.ajax-load-more.settings .form-table td{
3556
  padding: 24px 17px 20px
3557
  }
3558
- #alm-add-ons .group{
3559
- width: 48%;
3560
- }
3561
  .call-out.light {
3562
  padding: 15px !important;
3563
  }
3564
-
3565
  .repeaters input.save-repeater{
3566
  max-width: 50%;
3567
  }
3568
  }
3569
 
3570
- @media screen and (max-width: 768px){
 
 
 
3571
  .share-alm .sharing{
3572
  padding-right: 0;
3573
  width: 100%;
@@ -3645,7 +3599,6 @@ ul.share li.facebook a:hover{
3645
  .call-out.light p{
3646
  padding: 0;
3647
  }
3648
-
3649
  .ajax-load-more .one_half{
3650
  width: 100%;
3651
  margin: 0 0 2%;
1
+ @import '//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css',
2
+ 'libs/tooltipster',
3
+ 'libs/select2',
4
+ 'variables',
5
+ 'partials/header',
6
+ 'partials/sidebar',
7
+ 'partials/alm-settings-feedback',
8
+ 'partials/select2';
9
 
10
+ body.toplevel_page_ajax-load-more,
11
+ body.ajax-load-more_page_ajax-load-more-repeaters,
12
+ body.ajax-load-more_page_ajax-load-more-shortcode-builder,
13
+ body.ajax-load-more_page_ajax-load-more-add-ons,
14
+ body.ajax-load-more_page_ajax-load-more-extensions,
15
+ body.ajax-load-more_page_ajax-load-more-help,
16
+ body.ajax-load-more_page_ajax-load-more-licenses,
17
+ body.ajax-load-more_page_ajax-load-more-cache{
18
+ background-color: #f7f7f7;
19
+ #wpcontent{
20
+ padding-left: 0;
21
+ padding-bottom: 40px;
22
+ background-color: #efefef;
23
+ }
24
+ #wpbody-content{
25
+ padding-bottom: 0;
26
+ }
27
+ }
28
+ body.toplevel_page_ajax-load-more,
29
+ body.ajax-load-more_page_ajax-load-more-repeaters,
30
+ body.ajax-load-more_page_ajax-load-more-shortcode-builder,
31
+ body.ajax-load-more_page_ajax-load-more-add-ons,
32
+ body.ajax-load-more_page_ajax-load-more-extensions,
33
+ body.ajax-load-more_page_ajax-load-more-help,
34
+ body.ajax-load-more_page_ajax-load-more-licenses,
35
+ body.ajax-load-more_page_ajax-load-more-cache{
36
+ background: #efefef;
37
+ #wpfooter {
38
+ padding-top: 0;
39
+ padding-bottom: 0;
40
+ line-height: 40px;
41
+ background: #f7f7f7;
42
+ border-top: 1px solid #efefef;
43
+ position: fixed;
44
+ bottom: 0;
45
+ z-index: 1100;
46
+ p {
47
+ line-height: 40px;
48
+ }
49
+ }
50
+ .ajax-load-more .cnkt-main{
51
+ // Set main column height to min 100% viewport
52
+ @media screen and (min-width: 901px){
53
+ min-height: 100vh;
54
+ }
55
+ }
56
+ .ajax-load-more .cnkt-sidebar{
57
+ @media screen and (max-width: 900px){
58
+ //background-color: #efefef;
59
+ }
60
+ }
61
  }
62
+ // Extensions
63
+ body.ajax-load-more_page_ajax-load-more-extensions{
64
+ background: #fff;
65
+ #wpcontent{
66
+ background: #fff;
67
+ }
68
  }
69
+ .main-cnkt-wrap{
70
+ padding: 0 !important;
71
+ margin: 0 !important;
 
 
72
  }
73
+ .ajax-load-more-inner-wrapper{
74
+ padding: 0;
75
+ display: block;
76
+ clear: both;
77
+ max-width: 1440px;
78
+ position: relative;
79
  }
80
 
 
81
  /*
82
  * Admin - Popup Generator
83
  *
100
  font-size: 14px;
101
  color:#666;
102
  position: relative;
103
+ max-width: 100%;
104
  }
105
  #alm-help.ajax-load-more{
106
  max-width: 1600px;
117
  overflow: hidden;
118
  padding: 15px 10px 140px !important;
119
  }
120
+ #alm-settings {
121
+ .admin-select{
122
+ width: 100%;
123
+ display: block;
124
+ padding: 0 0 25px;
125
+ margin: -10px 0 0;
126
+ .select2-container{
127
+ width: 40%;
128
+ min-width: 40%;
129
+ display: inline-block;
130
+ vertical-align: top;
131
+ }
132
  }
133
+ }
134
 
135
  /* Saved Settings */
136
 
138
  padding-bottom: 5px !important;
139
  }
140
 
141
+ #alm-settings form {
142
+ h2{
143
+ background: #f7f7f7;
144
+ border: 1px solid #e1e1e1;
145
+ border-bottom: none;
146
+ padding: 20px 20px 6px;
147
+ margin: 20px 0 0;
148
+ font-weight: 600;
149
+ font-size: 18px;
150
+ border-radius: 2px 2px 0 0;
151
+ &:first-of-type{
152
+ margin: 0;
153
+ }
154
+ + p{
155
+ color: #999;
156
+ padding: 0 20px 17px;
157
+ border-right: 1px solid #e1e1e1;
158
+ border-left: 1px solid #e1e1e1;
159
+ background: #f7f7f7;
160
+ margin: 0;
161
+ }
162
+ }
163
  }
164
  .ajax-load-more p.file-location{
165
  border: 1px solid #efefef;
166
  background: #fff;
167
+ margin: 0 0 5px;
168
  padding: 15px;
169
  line-height: 1;
170
  display: block;
171
  font-family: Consolas, Monaco, monospace;
172
  border-radius: 3px;
173
+ font-size: 12px;
174
+ code{
175
+ font-size: 13px;
176
+ }
177
  }
178
  .ajax-load-more code{
179
  background: #fcf3d0;
530
  .ajax-load-more #meta-query-relation,
531
  .ajax-load-more #tax-query-relation,
532
  .ajax-load-more .comments_extras,
533
+ .ajax-load-more #users-extended,
534
  .ajax-load-more .taxonomy-extended{
535
  display: none;
536
  overflow: hidden;
819
  }
820
 
821
  /* Table of Contents */
822
+ #cnkt-sticky{}
823
+ #cnkt-sticky.attached{
824
  position: fixed;
825
  width: auto;
826
  top: 70px;
859
 
860
  .ajax-load-more .section-title {
861
  float: left;
862
+ padding: 22px 0 20px 36px;
863
  width: 40%;
864
  }
865
 
923
  padding-left: 0 !important;
924
  }
925
  .ajax-load-more label.template-title{
926
+ padding: 0 0 10px;
927
  margin: 0;
928
  font-size: 13px;
929
  color: #888;
1130
  */
1131
 
1132
  .form-table label{
1133
+ display: block;
1134
  clear: both;
1135
  float: none;
1136
+ vertical-align: top;
1137
+ padding: 0 0 8px;
1138
  max-width: 90%;
1139
  cursor: pointer !important;
1140
  line-height: 1.5;
1146
  max-width: 8%;
1147
  }
1148
  .form-table label + textarea{
1149
+ margin-top: 10px;
1150
  }
1151
+ .form-table label span,
1152
  #alm-shortcode-builder-form label span.description{
1153
  font-size: 13px;
1154
  color: #999;
1159
  padding-top: 5px;
1160
  padding-bottom: 5px;
1161
  }
1162
+
1163
+ .form-table .template-tags{
1164
  overflow: hidden;
1165
  border-left: 5px solid #dfd8c2;
1166
  padding: 16px;
1167
  background: #fff9ea;
1168
+ margin: 20px 0 0;
1169
  border-radius: 2px;
1170
  }
1171
  .form-table .template-tags h4,
1218
  .admin.ajax-load-more.settings .select2-container{
1219
  margin-top:10px;
1220
  }
1221
+ .admin.ajax-load-more .alm-btn-wrap{
1222
+ text-align: left;
1223
+ }
1224
  .admin.ajax-load-more .ajax-load-more-wrap {
1225
  position: relative;
1226
  top: 10px;
1276
  overflow: hidden;
1277
  color: #999;
1278
  }
1279
+
1280
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1281
  .ajax-load-more h2.addon-title{
1282
  font-size: 19px !important;
1283
  line-height: 24px;
1389
  text-decoration: none;
1390
  }
1391
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1392
  table.highlight{
1393
  background: #fff !important;
1394
  }
1395
 
 
1396
  /* Columns */
1397
  .ajax-load-more .cnkt-main{
1398
+ width: 67%;
1399
  float: left;
1400
+ background: #fff !important;
1401
+ padding: $gutter;
1402
+ border-right: 1px solid #e1e1e1;
1403
+ &.full{
1404
+ border: none !important;
1405
+ }
1406
  }
1407
  .ajax-load-more .cnkt-main .group{
1408
  background: #fff;
1417
  .ajax-load-more .cnkt-sidebar .cta,
1418
  .call-out.light{
1419
  border: 1px solid #e1e1e1;
 
 
1420
  border-radius: 3px;
1421
+ box-shadow: 0 0 5px rgba(#000, 0.1);
1422
+ &.no-shadow{
1423
+ box-shadow: none;
1424
+ }
1425
  }
1426
  .ajax-load-more .cnkt-main.full{
1427
  width: 100%;
1434
  }
1435
  .form-table tr{
1436
  border-top: 1px solid #efefef;
1437
+ }
1438
  .form-table {
1439
+ border: 1px solid #e1e1e1;
1440
  margin: 0 0 25px;
1441
+ br{
1442
+ height: 1px;
1443
+ display: block;
1444
+ overflow: hidden;
1445
+ line-height: 1px;
1446
+ margin: 0;
1447
+ content: '';
1448
+ }
1449
  }
1450
  #alm_OptionsForm{
1451
  .form-table:last-of-type{
1478
  }
1479
 
1480
  /* Repeaters */
1481
+ .repeaters {
1482
+ .repeater-wrap{
1483
+ padding: 20px 20px 15px !important;
1484
  }
1485
  .repeater-wrap label{
1486
  cursor: default;
1487
  }
1488
+ input.save-repeater{
1489
  display: inline-block;
1490
  margin: 15px 0 0;
1491
  clear: none;
1495
  .repeater-wrap input[type=text]{
1496
  width: 100%;
1497
  }
1498
+ input.save-repeater.saving{
1499
  cursor: default !important;
1500
  opacity: 0.3 !important;
1501
  }
1502
+ .saved-response{
1503
  max-width: 72%;
1504
  opacity: 0;
1505
  }
1506
+ .one_half{
1507
+ padding-bottom: 10px;
1508
+ }
1509
+ .alm-delete{
1510
+ clear: none;
1511
+ display: inline-block;
1512
+ margin: 15px 0 0;
1513
+ width: auto;
1514
+ float: right;
1515
+ opacity: 0;
1516
+ transition: all 0.2s ease;
1517
+ position: absolute;
1518
+ right: 20px;
1519
+ bottom: 17px;
1520
+ a{
1521
+ border-radius: 2px;
1522
+ background: none;
1523
+ color: #c94141;
1524
+ font-size: 14px;
1525
+ text-decoration: none;
1526
+ display: block;
1527
+ padding: 5px 10px;
1528
+ &:hover{
1529
+ background-color: #c94141;
1530
+ color: #fff;
1531
+ }
1532
+ &:focus{
1533
+ box-shadow: none;
1534
+ }
1535
+ &:active{
1536
+ box-shadow: inset 0 1px 1px #ccc !important;
1537
+ background-color: #b93636;
1538
+ }
1539
+ }
1540
+ }
1541
+ .row:hover .alm-delete{
1542
+ opacity: 1;
1543
+ }
1544
+ }
1545
 
1546
 
1547
  /* Add-ons & Extensions */
1554
  display: flex;
1555
  flex-wrap: wrap;
1556
  }
 
1557
  #alm-add-ons {}
1558
  #alm-add-ons .group{
1559
+ overflow: hidden;
1560
  width: 31.333%;
1561
  display: inline-block;
1562
  vertical-align: top;
1563
  text-align: center;
1564
  margin: 0 1.5% 2% 0;
1565
+ word-spacing : -4px;
1566
  padding: 0;
1567
  }
1568
+ @media screen and (max-width: 1350px){
1569
+ #alm-add-ons .group{
1570
+ width: 48%;
1571
+ }
1572
+ }
1573
+ @media screen and (min-width: 1500px){
1574
+ #alm-add-ons .group{
1575
+ //width: 22%;
1576
+ }
1577
+ }
1578
+ @media screen and (min-width: 2000px){
1579
+ #alm-add-ons .group{
1580
+ //width: 17%;
1581
+ }
1582
+ }
1583
  #alm-add-ons .group .expand-wrap{
1584
  display: block;
1585
  padding-bottom: 50px;
1586
  position: relative;
1587
+ word-spacing : 0;
1588
  }
1589
  #alm-add-ons .group span.cnkt-button{
1590
  position: absolute;
1754
  }
1755
  .license-title{
1756
  border-radius: 3px 3px 0 0;
1757
+ border: 1px solid #e1e1e1;
1758
  background-color: #efefef;
1759
  position: relative;
1760
  }
1854
  overflow: hidden;
1855
  display: block;
1856
  padding: 15px;
1857
+ border: 1px solid #e1e1e1;
1858
  border-top: none;
1859
  background-color: #f7f7f7;
1860
+ border-radius: 0 0 3px 3px;
1861
  }
1862
  .license-wrap label{
1863
  font-weight: 600;
 
1864
  top:-3px;
1865
  }
1866
  .license-wrap input[type=text]{
1925
  *
1926
  * @since 1.0
1927
  */
1928
+ .ajax-load-more .cnkt-sidebar{}
 
 
 
 
1929
  .ajax-load-more .cnkt-sidebar .cta{
1930
  background: #fff;
1931
  padding: 0;
1935
  }
1936
  .ajax-load-more .cnkt-sidebar .cta-inner{
1937
  padding: 20px;
1938
+ display: block;
1939
  }
1940
  .ajax-load-more .cnkt-sidebar .cta-inner.padding-bottom{
1941
  padding-bottom: 80px;
1955
  margin-top: 0;
1956
  }
1957
  .ajax-load-more .cnkt-sidebar h3{
1958
+ padding: 14px 20px;
1959
+ background: #fff;
 
1960
  margin: 0;
1961
  display: block;
1962
+ font-size: 15px;
1963
+ text-transform: none;
 
 
1964
  border-radius: 2px 2px 0 0;
1965
+ }
1966
+
1967
+
1968
  .ajax-load-more .cnkt-sidebar .item{
1969
  overflow: hidden;
1970
  }
1981
  line-height: 22px;
1982
  margin: 0 0 5px;
1983
  font-size: 14px;
1984
+ }
1985
+ .ajax-load-more .cnkt-sidebar .cta.dyk{
1986
+ .cta-inner{
1987
+ overflow: hidden;
1988
+ }
1989
+ img{
1990
+ padding: 0 20px 10px 0;
1991
+ max-width: 40%;
1992
+ float: left;
1993
+ }
1994
+ p{
1995
+ margin: 0 0 15px;
1996
+ clear: none;
1997
+ &:last-child{
1998
+ margin: 0;
1999
+ }
2000
+ &.addon-intro{
2001
+ margin-top: -3px;
2002
+ }
2003
+ }
2004
+ }
2005
  .ajax-load-more .cnkt-sidebar ul{
2006
  padding: 5px 0 0;
2007
  margin: 0;
2008
+ overflow: hidden;
2009
  }
2010
  .ajax-load-more .cnkt-sidebar li{
2011
  font-size: 14px;
2130
 
2131
  /*
2132
  * CodeMirror Syntax Highlighting
 
2133
  * @since 2.2.0
2134
  */
2135
 
2136
  .ajax-load-more .CodeMirror {
2137
  height: auto;
 
 
2138
  border-radius: 3px;
2139
+ padding: 5px;
2140
  background: #f7f7f7;
2141
  border: 1px solid #e1e1e1;
2142
  color: #999;
2143
+ line-height: 1.45;
2144
  }
2145
  .ajax-load-more .cm-readonly .CodeMirror{
2146
  margin: 0 0 20px;
2159
  background: #f7f7f7 url("../../img/loader-unlimited.gif") no-repeat center center;
2160
  opacity: 0.6;
2161
  }
 
2162
  .ajax-load-more .cm-s-pastel-on-dark.CodeMirror{ /* Bkg color */
2163
  background: #333;
2164
  }
2165
  .ajax-load-more .CodeMirror-gutters{ /* Line Number color */
2166
  background: #fff;
2167
+ border-right: 1px solid #e1e1e1;
2168
+ border-radius: 2px;
 
 
2169
  }
2170
  .ajax-load-more .CodeMirror pre{
2171
  font-size: 13px;
2175
  overflow-x: auto;
2176
  }
2177
 
 
2178
  .ajax-load-more .cm-tag{ /* <li> <h2> html elements */
2179
  color: #0a4b83 !important;
2180
  }
2273
  width: 100.75%;
2274
  }
2275
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2276
  .alm-add-template{
2277
  text-align: center;
2278
  margin: 15px 0 0 !important;
2370
  position: relative;
2371
  display: block;
2372
  margin: -5px 0 25px;
2373
+ input{
 
2374
  width: 100% !important;
2375
  margin: 0 !important;
2376
+ padding: 15px;
2377
  display: block;
2378
+ font-size: 18px;
2379
  }
2380
+ i{
2381
  position: absolute;
2382
+ right: 15px;
2383
+ top: 14px;
2384
  color: #ccc;
2385
  font-size: 24px;
2386
  z-index: 1;
2387
  }
2388
+ }
2389
 
2390
  /* Directory Listing */
2391
 
2392
  .alm-dir-listing{
2393
  border: 1px solid #efefef;
2394
  padding: 0;
2395
+ margin: 20px 0 0;
2396
+ &.theme-repeaters{
2397
+ padding: 15px;
2398
+ margin: 0;
2399
+ ul{
2400
+ border: none;
2401
+ padding: 0;
2402
+ margin: 0;
2403
+ }
2404
+ p.theme-title{
2405
+ font-weight: 600;
2406
+ margin: 0 0 15px;
2407
+ padding: 0 5px;
2408
+ }
2409
+ i{
2410
+ color: #ccc;
2411
+ font-size: 1.1em;
2412
+ }
2413
+ }
 
2414
  }
2415
 
2416
  .alm-dir-listing.deleting{
2534
  top:1px;
2535
  }
2536
 
 
 
2537
  .dir-empty,
2538
  .cache-cleared{
2539
  background-color: #fefeed;
2547
  background-color: #e0f5ff;
2548
  border-color: #bad0da;
2549
  color: #666;
2550
+ i{
2551
+ color: #111;
2552
+ margin: 0 5px 0 0;
2553
+ }
2554
+ .remove{
 
 
2555
  float: right;
2556
  font-size: 12px;
2557
  font-weight: 600;
2558
  }
2559
+ }
2560
 
2561
  #alm-cache.ajax-load-more .cnkt-sidebar .item{
2562
  padding: 20px;
2565
  p.cache-stats{
2566
  min-height: 38px;
2567
  line-height: 37px;
 
2568
  display: block;
2569
+ padding: 0;
2570
+ margin: 0;
2571
+ span{
2572
  display: inline-block;
2573
  width: 38px;
2574
  height: 38px;
2593
  color: #fff;
2594
  text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.1);
2595
  }
 
 
 
 
 
 
2596
  }
2597
 
2598
 
2686
  display: block;
2687
  background: #fff;
2688
  border: 1px solid #e1e1e1;
 
 
2689
  border-radius: 3px;
2690
  margin-bottom: 20px;
2691
  }
2695
  display: block;
2696
  font-size: 22px;
2697
  width: calc(100% + 40px);
2698
+ border-bottom: 1px solid #e1e1e1;
2699
  background-color: #f7f7f7;
2700
+ border-radius: 2px 2px 0 0;
 
 
2701
  color: #23282d;
2702
  }
2703
  .forceColors #alm-shortcode-builder-form .shortcode-parameter-wrap h2{
2749
  text-decoration: none !important;
2750
  padding: 8px 12px 8px 32px;
2751
  border: 1px solid #e1e1e1;
 
 
2752
  border-radius: 3px;
2753
  font-size: 13px;
2754
  line-height: 1.25;
2755
  display: block;
 
 
2756
  box-shadow: 0 0 0 1px #fff;
2757
  }
2758
  .alm-drop-btn a.target > i{
2766
  background-color: #fff;
2767
  color: #666;
2768
  border-color: #c9c9c9;
 
 
2769
  box-shadow: 0 0 3px #ccc;
2770
  }
2771
  .alm-repeater-options a.target:hover i.fa-cog{
2777
  .alm-repeater-options.active a.target{
2778
  background-color: #fff;
2779
  border-color: #c9c9c9;
 
 
2780
  box-shadow: inset 0 1px 1px #ccc !important;
2781
  }
2782
  .alm-repeater-options.active a.target,
2915
  color: #222;
2916
  background-color: #fff;
2917
  border-color: #ccc;
 
 
2918
  box-shadow: 0 0 3px #efefef;
2919
  opacity: 1;
2920
  }
2921
  .alm-drop-btn.alm-layout-selection.active a.target,
2922
  .alm-drop-btn.alm-layout-selection a.target:active{
 
 
2923
  box-shadow: inset 0 1px 1px #ccc !important;
2924
  }
2925
 
3031
  .alm-dropdown ul{
3032
  padding:0;
3033
  margin:0;
 
 
3034
  border-radius: 2px;
3035
  border: 1px solid #efefef;
3036
  overflow: hidden;
3058
  text-decoration: none;
3059
  background-position: 4px center;
3060
  color: #666;
 
 
3061
  box-shadow: none !important;
3062
  position: relative;
3063
  width: 100%;
3292
  padding-right: 30px;
3293
  border-left: 1px dashed #ccc;
3294
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3295
 
3296
+ // Sharing Widget
3297
+ .share-alm{
3298
+ ul.share{
3299
+ margin: 0 0 10px;
3300
+ padding: 0 0 0;
3301
+ width: auto;
3302
+ clear: both;
3303
+ display: inline-block;
3304
+ overflow: visible;
3305
+ text-align: left;
3306
+ width: 100%;
3307
+ height: auto;
3308
+ li{
3309
+ background: none;
3310
+ display: inline-block;
3311
+ vertical-align: top;
3312
+ height: 40px;
3313
+ line-height: 40px;
3314
+ font-size: 13px;
3315
+ position: relative;
3316
+ font-weight: 400;
3317
+ text-align: left;
3318
+ background: none;
3319
+ color: #787878;
3320
+ width: auto;
3321
+ text-align: center;
3322
+ height: 36px;
3323
+ margin: 10px 10px 0 0 !important;
3324
+ padding: 0;
3325
+ a{
3326
+ display: block;
3327
+ line-height: 40px;
3328
+ height: 40px;
3329
+ width: auto;
3330
+ padding: 0 15px 0 45px;
3331
+ text-decoration: none;
3332
+ color: #fff;
3333
+ text-align: center;
3334
+ background: none;
3335
+ border-radius: 3px;
3336
+ position: relative;
3337
+ font-weight: 600;
3338
+ background: #33cf92;
3339
+ @media screen and (min-width: 1500px){
3340
+ padding: 0 25px 0 50px;
3341
+ }
3342
+ &:hover{
3343
+ background-color: #45dfa3;
3344
+ }
3345
+ i{
3346
+ font-size: 20px;
3347
+ line-height: 41px;
3348
+ height: 40px;
3349
+ width: 35px;
3350
+ position: absolute;
3351
+ top: 0;
3352
+ left: 0;
3353
+ text-align: center;
3354
+ border-right: 1px solid rgba(0, 0, 0, 0.1);
3355
+ background-color: rgba(0, 0, 0, 0.1);
3356
+ border-radius: 2px 0 0 2px;
3357
+ }
3358
+ &:hover,
3359
+ &:hover i{
3360
+ text-decoration: none;
3361
+ color:#fff !important;
3362
+ span{
3363
+ text-decoration: none;
3364
+ }
3365
+ }
3366
+ }
3367
+ &.twitter a{
3368
+ background: #00aced;
3369
+ }
3370
+ &.twitter a:hover{
3371
+ background: #13beff !important;
3372
+ }
3373
+ &.facebook a{
3374
+ background: #3b5998;
3375
+ }
3376
+ &.facebook a:hover{
3377
+ background: #466cbc !important;
3378
+ }
3379
+ }
3380
+ }
3381
  }
3382
 
3383
 
3494
  }
3495
 
3496
  @media screen and (max-width: 900px){
 
3497
  .table-of-contents{
3498
  position: static !important;
3499
  width: 100% !important;
3500
+ }
 
3501
  .ajax-load-more .cnkt-main,
3502
  .ajax-load-more .cnkt-sidebar,
3503
  .ajax-load-more .cnkt-main.full {
3504
  float: none;
3505
  clear: both;
3506
+ margin: 0;
3507
  width: 100%;
3508
+ position: static !important;
3509
  }
3510
  .admin.ajax-load-more.settings .form-table td{
3511
  padding: 24px 17px 20px
3512
  }
 
 
 
3513
  .call-out.light {
3514
  padding: 15px !important;
3515
  }
 
3516
  .repeaters input.save-repeater{
3517
  max-width: 50%;
3518
  }
3519
  }
3520
 
3521
+ @media screen and (max-width: 782px){
3522
+ .admin.ajax-load-more.settings .form-table th{
3523
+ padding-bottom: 0;
3524
+ }
3525
  .share-alm .sharing{
3526
  padding-right: 0;
3527
  width: 100%;
3599
  .call-out.light p{
3600
  padding: 0;
3601
  }
 
3602
  .ajax-load-more .one_half{
3603
  width: 100%;
3604
  margin: 0 0 2%;
admin/src/scss/libs/select2.scss CHANGED
@@ -27,7 +27,7 @@
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;
27
  padding: 0 10px;
28
  overflow: hidden;
29
  position: relative;
30
+ border: 1px solid #e1e1e1;
31
  white-space: nowrap;
32
  color: #333;
33
  text-decoration: none;
admin/src/scss/partials/_alm-settings-feedback.scss CHANGED
@@ -8,7 +8,7 @@
8
  color: #fff;
9
  padding: 15px 20px 15px 15px;
10
  line-height: 1;
11
- z-index: 999;
12
  border-radius: 2px;
13
  opacity: 0;
14
  visibility: hidden;
8
  color: #fff;
9
  padding: 15px 20px 15px 15px;
10
  line-height: 1;
11
+ z-index: 9999;
12
  border-radius: 2px;
13
  opacity: 0;
14
  visibility: hidden;
admin/src/scss/partials/_header.scss ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .ajax-load-more .header-wrap{
2
+ overflow: hidden;
3
+ padding: $gutter $gutter $gutter/2;
4
+ background: #f7f7f7;
5
+ border-bottom: 1px solid #e1e1e1;
6
+ h1{
7
+ padding: 0 0 0 58px;
8
+ min-height: 48px;
9
+ padding-top: 0;
10
+ background: url('../../img/alm-logo-48x48.png') no-repeat 0 0;
11
+ background: url('../../img/alm-logo-48x48.svg') no-repeat 0 0;
12
+ em{
13
+ display: block;
14
+ position: relative;
15
+ margin-top: 1px;
16
+ font-size: 14px;
17
+ opacity: 0.7;
18
+ font-style: normal;
19
+ font-weight: 400;
20
+ line-height: 1.35;
21
+ margin: 1px 0 $gutter/2;
22
+ }
23
+ strong{
24
+ font-weight: 700;
25
+ }
26
+ span{
27
+ color: #999;
28
+ font-weight: 300;
29
+ background: #fff;
30
+ padding: 5px 6px;
31
+ border-radius: 2px;
32
+ font-size: 0.8em;
33
+ position: relative;
34
+ top: -2px;
35
+ left: 5px;
36
+ }
37
+ }
38
+ }
admin/src/scss/partials/_select2.scss ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Custom buttom/loading styles */
2
+ .select2-results .select2-result.alm-color .select2-result-label{
3
+ position: relative;
4
+ }
5
+ .select2-results .select2-result.alm-color .select2-result-label:after{
6
+ width: 10px;
7
+ height: 10px;
8
+ border-radius: 100%;
9
+ content: '';
10
+ display: block;
11
+ position: absolute;
12
+ right: 20px;
13
+ top: 50%;
14
+ margin-top: -5px;
15
+ z-index: 1;
16
+ }
17
+ .select2-results .select2-result.alm-color.default .select2-result-label:after{
18
+ background-color: #ed7070;
19
+ }
20
+ .select2-results .select2-result.alm-color.blue .select2-result-label:after{
21
+ background-color: #0081bf;
22
+ }
23
+ .select2-results .select2-result.alm-color.green .select2-result-label:after{
24
+ background-color: #6fca68;
25
+ }
26
+ .select2-results .select2-result.alm-color.purple .select2-result-label:after{
27
+ background-color: #a86bb9;
28
+ }
29
+ .select2-results .select2-result.alm-color.grey .select2-result-label:after{
30
+ background-color: #888;
31
+ }
32
+ .select2-results .select2-result.infinite .select2-result-label:after{
33
+ display: none;
34
+ }
35
+ .select2-results .select2-result.infinite .select2-result-label{
36
+ -webkit-background-size: 20px 20px;
37
+ -moz-background-size: 20px 20px;
38
+ background-size: 20px 20px;
39
+ background-repeat: no-repeat;
40
+ background-position: 93% center;
41
+ }
42
+ .select2-results .select2-result.classic .select2-result-label{
43
+ background-image: url("../../../core/img/spinner.gif");
44
+ }
45
+ .select2-results .select2-result.skype .select2-result-label{
46
+ background-image: url("../../../core/img/spinner-skype.gif");
47
+ }
48
+ .select2-results .select2-result.ring .select2-result-label{
49
+ background-image: url("../../../core/img/spinner-ring.gif");
50
+ }
51
+ .select2-results .select2-result.chasing-arrows .select2-result-label{
52
+ background-image: url("../../../core/img/spinner-chasing-arrows.gif");
53
+ }
54
+ .select2-results .select2-result.fading-blocks .select2-result-label{
55
+ background-image: url("../../../core/img/loader-fading-blocks.gif");
56
+ -webkit-background-size: 20px 16px;
57
+ -moz-background-size: 20px 16px;
58
+ background-size: 20px 16px;
59
+ }
60
+ .select2-results .select2-result.fading-circles .select2-result-label{
61
+ background-image: url("../../../core/img/loader-fading-circles.gif");
62
+ -webkit-background-size: 30px 10px;
63
+ -moz-background-size: 30px 10px;
64
+ background-size: 30px 10px;
65
+ background-position: 95% center;
66
+ }
admin/src/scss/partials/_sidebar.scss ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .ajax-load-more .cnkt-sidebar{
2
+ width: 33%;
3
+ float: right;
4
+ background: #efefef;
5
+ padding: $gutter;
6
+ position: absolute;
7
+ right: 0;
8
+ top: 0;
9
+ height: 100%;
10
+ h3{
11
+
12
+ }
13
+ .major-publishing-actions{
14
+ padding: 15px;
15
+ clear: both;
16
+ border-top: 1px solid #e1e1e1;
17
+ background: #f7f7f7;
18
+ i{
19
+ opacity: 0.4;
20
+ margin: 0 2px 0 0;
21
+ }
22
+ }
23
+ }
admin/views/add-ons.php CHANGED
@@ -1,310 +1,69 @@
1
  <?php $target = 'target="_blank"'; ?>
2
  <div class="admin ajax-load-more" id="alm-add-ons">
3
- <div class="wrap">
4
- <div class="header-wrap">
5
- <h1>
6
- <?php echo ALM_TITLE; ?>: <strong><?php _e('Add-ons', 'ajax-load-more'); ?></strong>
7
- <em><?php _e('Add-ons are available to extend and enhance the core functionality of Ajax Load More', 'ajax-load-more'); ?>.</em>
8
- </h1>
9
- </div>
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'; ?>
17
-
18
- <a href="<?php echo $cache_url; ?>" <?php echo $target; ?>>
19
- <div class="expand-wrap">
20
- <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/cache-add-on.jpg" alt="">
21
- <h2 class="addon-title"><?php _e('Cache', 'ajax-load-more'); ?></h2>
22
- <p class="addon-intro"><?php _e('Improve performance with the Ajax Load More caching engine.', 'ajax-load-more'); ?></p>
23
- <p><?php _e('The Cache add-on creates static HTML files of Ajax Load More requests then delivers those static files to your visitors.', 'ajax-load-more'); ?></p>
24
- <?php
25
- if (has_action('alm_cache_installed')){
26
- echo '<span class="cnkt-button installed"><i class="fa fa-check-square"></i> Installed</span> ';
27
- }else{
28
- echo '<span class="cnkt-button"><i class="fa fa-download"></i> Purchase &amp; Install</span>';
29
- }
30
- ?>
31
- </div>
32
- </a>
33
- </div>
34
-
35
- </div>
36
- <!-- End 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'; ?>
44
-
45
- <a href="<?php echo $cta_url; ?>" <?php echo $target; ?>>
46
- <div class="expand-wrap">
47
- <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/cta-add-on.jpg" alt="">
48
- <h2 class="addon-title"><?php _e('Call to Actions', 'ajax-load-more'); ?></h2>
49
- <p class="addon-intro"><?php _e('Ajax Load More extension for displaying advertisements and call to actions.', 'ajax-load-more'); ?></p>
50
- <p><?php _e('The Call to Actions add-on will provide the ability to inject a custom CTA template within each Ajax Load More loop.', 'ajax-load-more'); ?></p>
51
- <?php
52
- if (has_action('alm_cta_installed')){
53
- echo '<span class="cnkt-button installed"><i class="fa fa-check-square"></i> Installed</span> ';
54
- }else{
55
- echo '<span class="cnkt-button"><i class="fa fa-download"></i> Purchase &amp; Install</span>';
56
- }
57
- ?>
58
- </div>
59
- </a>
60
- </div>
61
-
62
- </div>
63
- <!-- End 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'; ?>
71
-
72
- <a href="<?php echo $comments_url; ?>" <?php echo $target; ?>>
73
- <div class="expand-wrap">
74
- <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/comments-add-on.jpg" alt="">
75
- <h2 class="addon-title"><?php _e('Comments', 'ajax-load-more'); ?></h2>
76
- <p class="addon-intro"><?php _e('Load blog comments on demand with Ajax Load More.', 'ajax-load-more'); ?></p>
77
- <p><?php _e('The Comments add-on will display your blog comments with Ajax Load More\'s infinite scroll functionality.', 'ajax-load-more'); ?></p>
78
- <?php
79
- if (has_action('alm_comments_installed')){
80
- echo '<span class="cnkt-button installed"><i class="fa fa-check-square"></i> Installed</span> ';
81
- }else{
82
- echo '<span class="cnkt-button"><i class="fa fa-download"></i> Purchase &amp; Install</span>';
83
- }
84
- ?>
85
- </div>
86
- </a>
87
- </div>
88
-
89
- </div>
90
- <!-- End 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; ?>>
98
- <div class="expand-wrap">
99
- <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/unlimited-add-ons.jpg" alt="">
100
- <h2 class="addon-title"><?php _e('Custom Repeaters', 'ajax-load-more'); ?></h2>
101
- <p class="addon-intro"><?php _e('Extend Ajax Load More with unlimited repeater templates.', 'ajax-load-more'); ?></p>
102
- <p><?php _e('Create, delete and modify repeater templates as you need them with absolutely zero restrictions.', 'ajax-load-more'); ?></p>
103
- <?php
104
-
105
- if (has_action('alm_unlimited_installed')){
106
- echo '<span class="cnkt-button installed"><i class="fa fa-check-square"></i> Installed</span> ';
107
- }else{
108
- echo '<span class="cnkt-button"><i class="fa fa-download"></i> Purchase &amp; Install</span>';
109
- }
110
- ?>
111
- </div>
112
- </a>
113
- </div>
114
-
115
- </div>
116
- <!-- End Custom Repeaters -->
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';
124
- ?>
125
- <a href="<?php echo $layout_url; ?>" <?php echo $target; ?>>
126
- <div class="expand-wrap">
127
- <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/layouts-add-on.jpg" alt="">
128
- <h2 class="addon-title"><?php _e('Layouts', 'ajax-load-more'); ?></h2>
129
- <p class="addon-intro"><?php _e('Predefined layouts for your repeater templates.', 'ajax-load-more'); ?></p>
130
- <p><?php _e('The Layouts add-on provides a collection of unique, well designed and fully responsive templates.', 'ajax-load-more'); ?></p>
131
- <?php
132
- if (has_action('alm_layouts_installed')){
133
- echo '<span class="cnkt-button installed"><i class="fa fa-check-square"></i> Installed</span> ';
134
- }else{
135
- echo '<span class="cnkt-button"><i class="fa fa-download"></i> Purchase &amp; Install</span>';
136
- }
137
- ?>
138
- </div>
139
- </a>
140
- </div>
141
- </div>
142
- <!-- End 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';
150
- ?>
151
- <a href="<?php echo $layout_url; ?>" <?php echo $target; ?>>
152
- <div class="expand-wrap">
153
- <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/next-page-add-on.jpg" alt="">
154
- <h2 class="addon-title"><?php _e('Next Page', 'ajax-load-more'); ?></h2>
155
- <p class="addon-intro"><?php _e('Load and display multipage WordPress content.', 'ajax-load-more'); ?></p>
156
- <p><?php _e('The Next Page add-on will provide functionality for infinite scrolling paginated posts and pages.', 'ajax-load-more'); ?></p>
157
- <?php
158
- if (has_action('alm_nextpage_installed')){
159
- echo '<span class="cnkt-button installed"><i class="fa fa-check-square"></i> Installed</span> ';
160
- }else{
161
- echo '<span class="cnkt-button"><i class="fa fa-download"></i> Purchase &amp; Install</span>';
162
- }
163
- ?>
164
- </div>
165
- </a>
166
- </div>
167
- </div>
168
- <!-- End 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';
176
- ?>
177
- <a href="<?php echo $paging_url; ?>" <?php echo $target; ?>>
178
- <div class="expand-wrap">
179
- <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/paging-add-ons.jpg" alt="">
180
- <h2 class="addon-title"><?php _e('Paging', 'ajax-load-more'); ?></h2>
181
- <p class="addon-intro"><?php _e('Extend Ajax Load More with a numbered navigation.', 'ajax-load-more'); ?></p>
182
- <p><?php _e('The Paging add-on will transform the default infinite scroll functionality into a robust ajax powered navigation system.', 'ajax-load-more'); ?></p>
183
- <?php
184
- if (has_action('alm_paging_installed')){
185
- echo '<span class="cnkt-button installed"><i class="fa fa-check-square"></i> Installed</span> ';
186
- }else{
187
- echo '<span class="cnkt-button"><i class="fa fa-download"></i> Purchase &amp; Install</span>';
188
- }
189
- ?>
190
- </div>
191
- </a>
192
- </div>
193
-
194
- </div>
195
- <!-- End 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';
203
- ?>
204
- <a href="<?php echo $preload_url; ?>" <?php echo $target; ?>>
205
- <div class="expand-wrap">
206
- <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/preloaded-add-ons.jpg" alt="">
207
- <h2 class="addon-title"><?php _e('Preloaded', 'ajax-load-more'); ?></h2>
208
- <p class="addon-intro"><?php _e('Load an initial set of posts before making Ajax requests to the server.', 'ajax-load-more'); ?></p>
209
- <p><?php _e('The Preloaded add-on will display content quicker and allow caching of the initial query which can reduce stress on your server.', 'ajax-load-more'); ?></p>
210
- <?php
211
- if (has_action('alm_preload_installed')){
212
- echo '<span class="cnkt-button installed"><i class="fa fa-check-square"></i> Installed</span> ';
213
- }else{
214
- echo '<span class="cnkt-button"><i class="fa fa-download"></i> Purchase &amp; Install</span>';
215
- }
216
- ?>
217
- </div>
218
- </a>
219
- </div>
220
- </div>
221
- <!-- End 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';
229
- ?>
230
- <a href="<?php echo $prev_url; ?>" <?php echo $target; ?>>
231
- <div class="expand-wrap">
232
- <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/prev-post-add-on.jpg" alt="">
233
- <h2 class="addon-title"><?php _e('Previous Post', 'ajax-load-more'); ?></h2>
234
- <p class="addon-intro"><?php _e('An extension to enable infinite scrolling of single posts.', 'ajax-load-more'); ?></p>
235
- <p><?php _e('The Previous Post add-on will load single posts as you scroll and update the browser URL to the current post.', 'ajax-load-more'); ?></p>
236
- <?php
237
- if (has_action('alm_prev_post_installed')){
238
- echo '<span class="cnkt-button installed"><i class="fa fa-check-square"></i> Installed</span> ';
239
- }else{
240
- echo '<span class="cnkt-button"><i class="fa fa-download"></i> Purchase &amp; Install</span>';
241
- }
242
- ?>
243
- </div>
244
- </a>
245
- </div>
246
- </div>
247
- <!-- End 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';
255
- ?>
256
- <a href="<?php echo $seo_url; ?>" <?php echo $target; ?>>
257
- <div class="expand-wrap">
258
- <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/seo-add-ons.jpg" alt="">
259
- <h2 class="addon-title"><?php _e('Search Engine Optimization', 'ajax-load-more'); ?></h2>
260
- <p class="addon-intro"><?php _e('Generate unique paging URLs with every Ajax Load More query.', 'ajax-load-more'); ?></p>
261
- <p><?php _e('The SEO add-on will optimize your ajax loaded content for search engines by generating unique URLs with every query.</p>', 'ajax-load-more'); ?></p>
262
- <?php
263
-
264
- if (has_action('alm_seo_installed')){
265
- echo '<span class="cnkt-button installed"><i class="fa fa-check-square"></i> Installed</span> ';
266
- }else{
267
- echo '<span class="cnkt-button"><i class="fa fa-download"></i> Purchase &amp; Install</span>';
268
- }
269
- ?>
270
- </div>
271
- </a>
272
- </div>
273
-
274
- </div>
275
- <!-- End 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; ?>>
283
- <div class="expand-wrap">
284
- <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/theme-repeater-add-on.jpg" alt="">
285
- <h2 class="addon-title"><?php _e('Theme Repeaters', 'ajax-load-more'); ?></h2>
286
- <p class="addon-intro"><?php _e('Manage repeater templates within your current theme directory.', 'ajax-load-more'); ?></p>
287
- <p><?php _e('The Theme Repeater add-on will allow you load, edit and maintain templates from your current theme directory.</p>', 'ajax-load-more'); ?></p>
288
- <?php
289
-
290
- if (has_action('alm_theme_repeaters_installed')){
291
- echo '<span class="cnkt-button installed"><i class="fa fa-check-square"></i> Installed</span> ';
292
- }else{
293
- echo '<span class="cnkt-button"><i class="fa fa-download"></i> Purchase &amp; Install</span>';
294
- }
295
- ?>
296
- </div>
297
- </a>
298
- </div>
299
-
300
- </div>
301
- <!-- End Theme Repeaters -->
302
-
303
- </div>
304
-
305
- <div class="call-out light">
306
- <p><?php _e('All add-ons are installed as stand alone plugins and with a valid license key will receive plugin update notifications directly within the <a href="plugins.php">WordPress plugin dashboard</a>.', 'ajax-load-more'); ?></p>
307
- </div>
308
 
309
  </div>
310
  </div>
1
  <?php $target = 'target="_blank"'; ?>
2
  <div class="admin ajax-load-more" id="alm-add-ons">
3
+ <div class="wrap main-cnkt-wrap">
4
+ <header class="header-wrap">
5
+ <h1>
6
+ <?php echo ALM_TITLE; ?>: <strong><?php _e('Add-ons', 'ajax-load-more'); ?></strong>
7
+ <em><?php _e('Add-ons are available to extend and enhance the core functionality of Ajax Load More', 'ajax-load-more'); ?>.</em>
8
+ </h1>
9
+ </header>
10
+
11
+ <div class="ajax-load-more-inner-wrapper">
12
+
13
+ <div class="cnkt-main">
14
+
15
+ <?php
16
+ $target = 'target="_blank"';
17
+ $addons = alm_get_addons();
18
+
19
+ foreach($addons as $addon){
20
+ $name = $addon['name'];
21
+ $intro = $addon['intro'];
22
+ $desc = $addon['desc'];
23
+ $action = $addon['action'];
24
+ $key = $addon['key'];
25
+ $status = $addon['status'];
26
+ $settings_field = $addon['settings_field'];
27
+ $url = $addon['url'];
28
+ $img = $addon['img'];
29
+ ?>
30
+ <div class="group no-shadow<?php if (has_action($action)){ echo ' installed'; } ?>">
31
+ <div class="row no-brd">
32
+ <a href="<?php echo $url; ?>?utm_source=WP%20Admin&utm_medium=ALM%20Add-ons&utm_campaign=<?php echo $name; ?>" <?php echo $target; ?>>
33
+ <div class="expand-wrap">
34
+ <img src="<?php echo ALM_ADMIN_URL; ?><?php echo $img; ?>" alt="">
35
+ <h2 class="addon-title"><?php echo $name; ?></h2>
36
+ <p class="addon-intro"><?php echo $intro; ?></p>
37
+ <p><?php echo $desc; ?></p>
38
+ <?php
39
+ if (has_action($action)){
40
+ echo '<span class="cnkt-button installed"><i class="fa fa-check-square"></i> Installed</span> ';
41
+ }else{
42
+ echo '<span class="cnkt-button"><i class="fa fa-download"></i> Purchase &amp; Install</span>';
43
+ }
44
+ ?>
45
+ </div>
46
+ </a>
47
+ </div>
48
+ </div>
49
+ <?php } ?>
50
+
51
+ <div class="call-out light no-shadow">
52
+ <p><?php _e('All add-ons are installed as stand alone plugins and with a valid license key will receive plugin update notifications directly within the <a href="plugins.php">WordPress plugin dashboard</a>.', 'ajax-load-more'); ?></p>
53
+ </div>
54
+
55
+ </div>
56
+
57
+ <aside class="cnkt-sidebar">
58
+ <div id="cnkt-sticky-wrapper">
59
+ <div id="cnkt-sticky">
60
+ <?php include_once( ALM_PATH . 'admin/includes/cta/add-ons.php'); ?>
61
+ </div>
62
+ </div>
63
+ </aside>
64
+
65
+ <div class="clear"></div>
66
+ </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
 
68
  </div>
69
  </div>
admin/views/extensions.php CHANGED
@@ -1,43 +1,41 @@
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>
1
+ <div class="admin ajax-load-more" id="alm-extensions">
2
+ <div class="wrap main-cnkt-wrap">
3
+ <header 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
+ </header>
9
+
10
+ <div class="ajax-load-more-inner-wrapper">
11
 
12
+ <div class="cnkt-main full">
13
+ <?php
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
+ if(class_exists('Connekt_Plugin_Installer')){
29
+ Connekt_Plugin_Installer::init($plugin_array);
30
+ }
31
+ ?>
32
+ <div class="call-out light no-shadow" style="width: 100%;">
33
+ <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>
34
+ </div>
35
+ </div>
36
+
37
+ <div class="clear"></div>
38
+ </div>
39
+
 
 
 
 
40
  </div>
41
  </div>
admin/views/help.php CHANGED
@@ -12,68 +12,76 @@
12
  }
13
  ?>
14
  <div class="admin ajax-load-more" id="<?php echo $id; ?>">
15
- <div class="wrap">
16
- <div class="header-wrap">
17
- <h1>
18
- <?php echo ALM_TITLE; ?>: <strong><?php _e('Help', 'ajax-load-more'); ?></strong>
19
- <em><?php echo $subtitle; ?></em>
20
- </h1>
21
- </div>
22
- <div class="cnkt-main">
23
-
24
- <ul class="alm-toggle-switch">
25
- <li>
26
- <a href="?page=ajax-load-more-help" class="<?php if(!$examples){ echo 'active';} ?>">
27
- <?php _e('Implementation Guide', 'ajax-load-more'); ?>
28
- </a>
29
- </li>
30
- <li>
31
- <a href="?page=ajax-load-more-help&section=examples" class="<?php if($examples){ echo 'active';} ?>">
32
- <?php _e('Examples', 'ajax-load-more'); ?>
33
- </a>
34
- </li>
35
- </ul>
36
-
37
- <?php
38
- if(!$examples){
39
- // Implementation Guide
40
- ?>
41
-
42
- <div class="group">
43
- <img src="<?php echo ALM_ADMIN_URL; ?>img/infographic.png">
44
- </div>
45
-
46
- <?php } else {
47
- // Examples
48
- include_once( ALM_PATH . 'admin/includes/components/example-list.php');
49
-
50
- } ?>
51
-
52
- </div>
53
-
54
- <div class="cnkt-sidebar">
55
- <?php
56
- if(!$examples){
57
- // Implementation Guide
58
- include_once( ALM_PATH . 'admin/includes/cta/resources.php');
59
- include_once( ALM_PATH . 'admin/includes/cta/dyk.php');
60
-
61
- } else {
62
- // Examples
63
- ?>
64
- <div class="cta padding-bottom">
65
- <h3><?php _e('Example Library', 'ajax-load-more'); ?></h3>
66
- <div class="cta-inner">
67
- <p style="padding-bottom: 10px;"><?php _e('We have a collection of over 20 real world Ajax Load More <a href="https://connekthq.com/plugins/ajax-load-more/examples/" target="_blank">examples</a> available on the plugin website', 'ajax-load-more'); ?>.</p>
 
 
 
 
 
 
 
68
  </div>
69
- <a href="https://connekthq.com/plugins/ajax-load-more/examples/" class="visit" target="_blank"><i class="fa fa-chevron-circle-right"></i> <?php _e('View All Examples', 'ajax-load-more'); ?></a>
70
- </div>
71
- <?php
72
- include_once( ALM_PATH . 'admin/includes/cta/dyk.php');
73
- include_once( ALM_PATH . 'admin/includes/cta/resources.php');
74
- }
75
- ?>
76
- </div>
 
77
 
78
  </div>
79
  </div>
12
  }
13
  ?>
14
  <div class="admin ajax-load-more" id="<?php echo $id; ?>">
15
+ <div class="wrap main-cnkt-wrap">
16
+ <header class="header-wrap">
17
+ <h1>
18
+ <?php echo ALM_TITLE; ?>: <strong><?php _e('Help', 'ajax-load-more'); ?></strong>
19
+ <em><?php echo $subtitle; ?></em>
20
+ </h1>
21
+ </header>
22
+
23
+ <div class="ajax-load-more-inner-wrapper">
24
+
25
+ <div class="cnkt-main">
26
+
27
+ <ul class="alm-toggle-switch">
28
+ <li>
29
+ <a href="?page=ajax-load-more-help" class="<?php if(!$examples){ echo 'active';} ?>">
30
+ <?php _e('Implementation Guide', 'ajax-load-more'); ?>
31
+ </a>
32
+ </li>
33
+ <li>
34
+ <a href="?page=ajax-load-more-help&section=examples" class="<?php if($examples){ echo 'active';} ?>">
35
+ <?php _e('Examples', 'ajax-load-more'); ?>
36
+ </a>
37
+ </li>
38
+ </ul>
39
+
40
+ <?php
41
+ if(!$examples){
42
+ // Implementation Guide
43
+ ?>
44
+
45
+ <div class="group no-shadow">
46
+ <img src="<?php echo ALM_ADMIN_URL; ?>img/infographic.png">
47
+ </div>
48
+
49
+ <?php } else {
50
+ // Examples
51
+ include_once( ALM_PATH . 'admin/includes/components/example-list.php');
52
+
53
+ } ?>
54
+
55
+ </div>
56
+
57
+ <aside class="cnkt-sidebar">
58
+ <?php
59
+ if(!$examples){
60
+ // Implementation Guide
61
+ include_once( ALM_PATH . 'admin/includes/cta/resources.php');
62
+ include_once( ALM_PATH . 'admin/includes/cta/dyk.php');
63
+
64
+ } else {
65
+ // Examples
66
+ ?>
67
+ <div class="cta">
68
+ <h3><?php _e('Example Library', 'ajax-load-more'); ?></h3>
69
+ <div class="cta-inner">
70
+ <p style="padding-bottom: 10px;"><?php _e('We have a collection of over 20 real world Ajax Load More <a href="https://connekthq.com/plugins/ajax-load-more/examples/" target="_blank">examples</a> available on the plugin website', 'ajax-load-more'); ?>.</p>
71
+ </div>
72
+ <div class="major-publishing-actions">
73
+ <a href="https://connekthq.com/plugins/ajax-load-more/examples/" class="button button-primary" target="_blank"><?php _e('View All Examples', 'ajax-load-more'); ?></a>
74
+ </div>
75
  </div>
76
+ <?php
77
+ include_once( ALM_PATH . 'admin/includes/cta/dyk.php');
78
+ include_once( ALM_PATH . 'admin/includes/cta/resources.php');
79
+ }
80
+ ?>
81
+ </aside>
82
+
83
+ <div class="clear"></div>
84
+ </div>
85
 
86
  </div>
87
  </div>
admin/views/licenses.php CHANGED
@@ -1,792 +1,136 @@
1
  <div class="admin ajax-load-more" id="alm-licenses">
2
- <div class="wrap">
3
- <div class="header-wrap">
4
- <h1>
5
- <?php echo ALM_TITLE; ?>: <strong><?php _e('Licenses', 'ajax-load-more'); ?></strong>
6
- <em><?php _e('Enter your license keys to enable automatic updates for <a href="admin.php?page=ajax-load-more-add-ons">ALM Add-ons</a>.', 'ajax-load-more'); ?></em>
7
- </h1>
8
- </div>
9
- <div class="cnkt-main">
10
- <div class="group">
 
 
 
11
  <h3><?php _e('License Keys', 'ajax-load-more'); ?></h3>
12
 
13
- <p><?php _e('Manage your Ajax Load More license key\'s below - enter a key for each of your add-ons to receive plugin update notifications directly within the <a href="plugins.php">WP Plugins dashboard</a>.', 'ajax-load-more'); ?></p>
14
-
15
- <?php
16
- // alm_cache_installed
17
- // alm_cta_installed
18
- // alm_comments_installed
19
- // alm_unlimited_installed
20
- // alm_layouts_installed
21
- // alm_nextpage_installed
22
- // alm_preload_installed
23
- // alm_paging_installed
24
- // alm_prev_post_installed
25
- // alm_seo_installed
26
- // alm_theme_repeaters_installed
27
- ?>
28
-
29
- <?php
30
- // Check if any add ons are installed. /admin/admin-functions.php
31
- if(alm_has_addon()) : ?>
32
-
33
-
34
- <?php
35
- if (has_action('alm_cache_installed')){
36
- // CACHE
37
- $alm_cache_license = get_option( 'alm_cache_license_key' );
38
- $alm_cache_status = get_option( 'alm_cache_license_status' );
39
- $alm_cache_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/cache/';
40
- ?>
41
- <div class="license" id="license-cache">
42
- <div class="license-title">
43
- <div class="status <?php if($alm_cache_status == 'valid'){echo 'valid';}else{echo 'invalid';} ?> "></div>
44
- <h2><?php _e('Cache', 'ajax-load-more'); ?></h2>
45
- </div>
46
- <div class="license-wrap">
47
- <form method="post" action="options.php">
48
-
49
- <?php if( $alm_cache_status !== false && $alm_cache_status == 'valid' ) { ?>
50
- <!-- nothing -->
51
- <?php } else { ?>
52
- <div class="no-license">
53
- <h4><?php _e('Don\'t have a license?', 'ajax-load-more'); ?></h4>
54
- <p><?php _e('A valid license is required to activate and receive plugin updates directly in your WordPress dashboard', 'ajax-load-more'); ?> &rarr; <a href="<?php echo $alm_cache_url; ?>?utm_source=WP%20Admin&utm_medium=Licenses&utm_campaign=Cache" target="blank"><strong><?php _e('Purchase Now', 'ajax-load-more'); ?>!</strong></a></p>
55
- </div>
56
- <?php } ?>
57
-
58
- <?php settings_fields('alm_cache_license'); ?>
59
-
60
- <label class="description offscreen" for="alm_cache_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
61
- <div class="license-key-field">
62
- <input id="alm_cache_license_key" name="alm_cache_license_key" type="text" class="regular-text" value="<?php esc_attr_e( $alm_cache_license ); ?>" placeholder="<?php _e('Enter License Key', 'ajax-load-more'); ?>" />
63
- <?php if( $alm_cache_status !== false && $alm_cache_status == 'valid' ) { ?>
64
- <span class="status active">
65
- <?php _e('Active', 'ajax-load-more'); ?>
66
- </span>
67
- <?php } else { ?>
68
- <span class="status inactive">
69
- <?php _e('Inactive', 'ajax-load-more'); ?>
70
- </span>
71
- <?php } ?>
72
- </div>
73
-
74
- <?php wp_nonce_field( 'alm_cache_license_nonce', 'alm_cache_license_nonce' ); ?>
75
- <div class="license-btn-wrap"
76
- data-name="<?php echo ALM_CACHE_ITEM_NAME; ?>"
77
- data-url="<?php echo ALM_STORE_URL; ?>"
78
- data-option-status="alm_cache_license_status"
79
- data-option-key="alm_cache_license_key"
80
- data-upgrade-url="<?php echo $alm_cache_url; ?>">
81
- <button type="button" class="activate license-btn <?php if($alm_cache_status === 'valid'){ echo 'hide'; } ?> button-primary" data-type="activate">
82
- <?php _e('Activate License', 'ajax-load-more'); ?>
83
- </button>
84
-
85
- <button type="button" class="deactivate license-btn <?php if($alm_cache_status !== 'valid'){ echo 'hide'; } ?> button-secondary" data-type="deactivate">
86
- <?php _e('Deactivate License', 'ajax-load-more'); ?>
87
- </button>
88
- </div>
89
-
90
- </form>
91
- </div>
92
- <div class="loading"></div>
93
- </div>
94
- <?php
95
- }
96
- // End CACHE
 
 
97
  ?>
98
-
99
- <?php
100
- if (has_action('alm_cta_installed')){
101
- // Call to Actions
102
- $alm_cta_license = get_option( 'alm_cta_license_key' );
103
- $alm_cta_status = get_option( 'alm_cta_license_status' );
104
- $alm_cta_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/call-to-actions/';
105
- ?>
106
- <div class="license" id="license-cta">
107
- <div class="license-title">
108
- <div class="status <?php if($alm_cta_status == 'valid'){echo 'valid';}else{echo 'invalid';} ?> "></div>
109
- <h2><?php _e('Call to Actions', 'ajax-load-more'); ?></h2>
110
- </div>
111
- <div class="license-wrap">
112
- <form method="post" action="options.php">
113
-
114
- <?php if( $alm_cta_status !== false && $alm_cta_status == 'valid' ) { ?>
115
- <!-- nothing -->
116
- <?php } else { ?>
117
- <div class="no-license">
118
- <h4><?php _e('Don\'t have a license?', 'ajax-load-more'); ?></h4>
119
- <p><?php _e('A valid license is required to activate and receive plugin updates directly in your WordPress dashboard', 'ajax-load-more'); ?> &rarr; <a href="<?php echo $alm_cta_url; ?>?utm_source=WP%20Admin&utm_medium=Licenses&utm_campaign=CTA" target="blank"><strong><?php _e('Purchase Now', 'ajax-load-more'); ?>!</strong></a></p>
120
- </div>
121
- <?php } ?>
122
-
123
- <?php settings_fields('alm_cta_license'); ?>
124
-
125
- <label class="description offscreen" for="alm_cta_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
126
- <div class="license-key-field">
127
- <input id="alm_cta_license_key" name="alm_cta_license_key" type="text" class="regular-text" value="<?php esc_attr_e( $alm_cta_license ); ?>" placeholder="<?php _e('Enter License Key', 'ajax-load-more'); ?>" />
128
- <?php if( $alm_cta_status !== false && $alm_cta_status == 'valid' ) { ?>
129
- <span class="status active">
130
- <?php _e('Active', 'ajax-load-more'); ?>
131
- </span>
132
- <?php } else { ?>
133
- <span class="status inactive">
134
- <?php _e('Inactive', 'ajax-load-more'); ?>
135
- </span>
136
- <?php } ?>
137
- </div>
138
-
139
- <?php wp_nonce_field( 'alm_cta_license_nonce', 'alm_cta_license_nonce' ); ?>
140
- <div class="license-btn-wrap"
141
- data-name="<?php echo ALM_CTA_ITEM_NAME; ?>"
142
- data-url="<?php echo ALM_STORE_URL; ?>"
143
- data-option-status="alm_cta_license_status"
144
- data-option-key="alm_cta_license_key"
145
- data-upgrade-url="<?php echo $alm_cta_url; ?>">
146
- <button type="button" class="activate license-btn <?php if($alm_cta_status === 'valid'){ echo 'hide'; } ?> button-primary" data-type="activate">
147
- <?php _e('Activate License', 'ajax-load-more'); ?>
148
- </button>
149
-
150
- <button type="button" class="deactivate license-btn <?php if($alm_cta_status !== 'valid'){ echo 'hide'; } ?> button-secondary" data-type="deactivate">
151
- <?php _e('Deactivate License', 'ajax-load-more'); ?>
152
- </button>
153
- </div>
154
-
155
- </form>
156
- </div>
157
- <div class="loading"></div>
158
- </div>
159
- <?php
160
- }
161
- // End Call to Actions
162
- ?>
163
-
164
- <?php
165
- if (has_action('alm_comments_installed')){
166
- // Comments
167
- $alm_comments_license = get_option( 'alm_comments_license_key' );
168
- $alm_comments_status = get_option( 'alm_comments_license_status' );
169
- $alm_comments_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/comments/';
170
- ?>
171
- <div class="license" id="license-comments">
172
- <div class="license-title">
173
- <div class="status <?php if($alm_comments_status == 'valid'){echo 'valid';}else{echo 'invalid';} ?> "></div>
174
- <h2><?php _e('Comments', 'ajax-load-more'); ?></h2>
175
- </div>
176
- <div class="license-wrap">
177
- <form method="post" action="options.php">
178
-
179
- <?php if( $alm_comments_status !== false && $alm_comments_status == 'valid' ) { ?>
180
- <!-- nothing -->
181
- <?php } else { ?>
182
- <div class="no-license">
183
- <h4><?php _e('Don\'t have a license?', 'ajax-load-more'); ?></h4>
184
- <p><?php _e('A valid license is required to activate and receive plugin updates directly in your WordPress dashboard', 'ajax-load-more'); ?> &rarr; <a href="<?php echo $alm_comments_url; ?>?utm_source=WP%20Admin&utm_medium=Licenses&utm_campaign=Comments" target="blank"><strong><?php _e('Purchase Now', 'ajax-load-more'); ?>!</strong></a></p>
185
- </div>
186
- <?php } ?>
187
-
188
- <?php settings_fields('alm_comments_license'); ?>
189
-
190
- <label class="description offscreen" for="alm_comments_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
191
- <div class="license-key-field">
192
- <input id="alm_comments_license_key" name="alm_comments_license_key" type="text" class="regular-text" value="<?php esc_attr_e( $alm_comments_license ); ?>" placeholder="<?php _e('Enter License Key', 'ajax-load-more'); ?>" />
193
- <?php if( $alm_comments_status !== false && $alm_comments_status == 'valid' ) { ?>
194
- <span class="status active">
195
- <?php _e('Active', 'ajax-load-more'); ?>
196
- </span>
197
- <?php } else { ?>
198
- <span class="status inactive">
199
- <?php _e('Inactive', 'ajax-load-more'); ?>
200
- </span>
201
- <?php } ?>
202
- </div>
203
-
204
- <?php wp_nonce_field( 'alm_comments_license_nonce', 'alm_comments_license_nonce' ); ?>
205
- <div class="license-btn-wrap"
206
- data-name="<?php echo ALM_COMMENTS_ITEM_NAME; ?>"
207
- data-url="<?php echo ALM_STORE_URL; ?>"
208
- data-option-status="alm_comments_license_status"
209
- data-option-key="alm_comments_license_key"
210
- data-upgrade-url="<?php echo $alm_comments_url; ?>">
211
- <button type="button" class="activate license-btn <?php if($alm_comments_status === 'valid'){ echo 'hide'; } ?> button-primary" data-type="activate">
212
- <?php _e('Activate License', 'ajax-load-more'); ?>
213
- </button>
214
-
215
- <button type="button" class="deactivate license-btn <?php if($alm_comments_status !== 'valid'){ echo 'hide'; } ?> button-secondary" data-type="deactivate">
216
- <?php _e('Deactivate License', 'ajax-load-more'); ?>
217
- </button>
218
- </div>
219
-
220
- </form>
221
- </div>
222
- <div class="loading"></div>
223
- </div>
224
- <?php
225
- }
226
- // End Comments
227
- ?>
228
-
229
-
230
- <?php
231
- if (has_action('alm_unlimited_installed')){
232
- // Custom Repeaters
233
- $alm_unlimited_license = get_option( 'alm_unlimited_license_key' );
234
- $alm_unlimited_status = get_option( 'alm_unlimited_license_status' );
235
- $alm_unlimited_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/custom-repeaters/';
236
- ?>
237
- <div class="license" id="license-repeaters">
238
- <div class="license-title">
239
- <div class="status <?php if($alm_unlimited_status == 'valid'){echo 'valid';}else{echo 'invalid';} ?> "></div>
240
- <h2><?php _e('Custom Repeaters', 'ajax-load-more'); ?></h2>
241
- </div>
242
- <div class="license-wrap">
243
- <form method="post" action="options.php">
244
-
245
- <?php if( $alm_unlimited_status !== false && $alm_unlimited_status == 'valid' ) { ?>
246
- <!-- nothing -->
247
- <?php } else { ?>
248
- <div class="no-license">
249
- <h4><?php _e('Don\'t have a license?', 'ajax-load-more'); ?></h4>
250
- <p><?php _e('A valid license is required to activate and receive plugin updates directly in your WordPress dashboard', 'ajax-load-more'); ?> &rarr; <a href="<?php echo $alm_unlimited_url; ?>?utm_source=WP%20Admin&utm_medium=Licenses&utm_campaign=Custom Repeaters" target="blank"><strong><?php _e('Purchase Now', 'ajax-load-more'); ?>!</strong></a></p>
251
- </div>
252
- <?php } ?>
253
-
254
- <?php settings_fields('alm_unlimited_license'); ?>
255
-
256
- <label class="description offscreen" for="alm_unlimited_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
257
- <div class="license-key-field">
258
- <input id="alm_unlimited_license_key" name="alm_unlimited_license_key" type="text" class="regular-text" value="<?php esc_attr_e( $alm_unlimited_license ); ?>" placeholder="<?php _e('Enter License Key', 'ajax-load-more'); ?>" />
259
- <?php if( $alm_unlimited_status !== false && $alm_unlimited_status == 'valid' ) { ?>
260
- <span class="status active">
261
- <?php _e('Active', 'ajax-load-more'); ?>
262
- </span>
263
- <?php } else { ?>
264
- <span class="status inactive">
265
- <?php _e('Inactive', 'ajax-load-more'); ?>
266
- </span>
267
- <?php } ?>
268
- </div>
269
-
270
- <?php wp_nonce_field( 'alm_unlimited_license_nonce', 'alm_unlimited_license_nonce' ); ?>
271
- <div class="license-btn-wrap"
272
- data-name="<?php echo ALM_UNLIMITED_ITEM_NAME; ?>"
273
- data-url="<?php echo ALM_STORE_URL; ?>"
274
- data-option-status="alm_unlimited_license_status"
275
- data-option-key="alm_unlimited_license_key"
276
- data-upgrade-url="<?php echo $alm_unlimited_url; ?>">
277
- <button type="button" class="activate license-btn <?php if($alm_unlimited_status === 'valid'){ echo 'hide'; } ?> button-primary" data-type="activate">
278
- <?php _e('Activate License', 'ajax-load-more'); ?>
279
- </button>
280
-
281
- <button type="button" class="deactivate license-btn <?php if($alm_unlimited_status !== 'valid'){ echo 'hide'; } ?> button-secondary" data-type="deactivate">
282
- <?php _e('Deactivate License', 'ajax-load-more'); ?>
283
- </button>
284
- </div>
285
-
286
- </form>
287
- </div>
288
- <div class="loading"></div>
289
- </div>
290
- <?php
291
- }
292
- // End Custom Repeaters v2
293
- ?>
294
-
295
-
296
-
297
- <?php
298
- if (has_action('alm_layouts_installed')){
299
- // LAYOUTS
300
- $alm_layouts_license = get_option( 'alm_layouts_license_key' );
301
- $alm_layouts_status = get_option( 'alm_layouts_license_status' );
302
- $alm_layouts_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/layouts/';
303
- ?>
304
- <div class="license" id="license-layouts">
305
- <div class="license-title">
306
- <div class="status <?php if($alm_layouts_status == 'valid'){echo 'valid';}else{echo 'invalid';} ?> "></div>
307
- <h2><?php _e('Layouts', 'ajax-load-more'); ?></h2>
308
- </div>
309
- <div class="license-wrap">
310
- <form method="post" action="options.php">
311
-
312
- <?php if( $alm_layouts_status !== false && $alm_layouts_status == 'valid' ) { ?>
313
- <!-- nothing -->
314
- <?php } else { ?>
315
- <div class="no-license">
316
- <h4><?php _e('Don\'t have a license?', 'ajax-load-more'); ?></h4>
317
- <p><?php _e('A valid license is required to activate and receive plugin updates directly in your WordPress dashboard', 'ajax-load-more'); ?> &rarr; <a href="<?php echo $alm_layouts_url; ?>?utm_source=WP%20Admin&utm_medium=Licenses&utm_campaign=Layouts" target="blank"><strong><?php _e('Purchase Now', 'ajax-load-more'); ?>!</strong></a></p>
318
- </div>
319
- <?php } ?>
320
-
321
- <?php settings_fields('alm_layouts_license'); ?>
322
-
323
- <label class="description offscreen" for="alm_layouts_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
324
- <div class="license-key-field">
325
- <input id="alm_layouts_license_key" name="alm_layouts_license_key" type="text" class="regular-text" value="<?php esc_attr_e( $alm_layouts_license ); ?>" placeholder="<?php _e('Enter License Key', 'ajax-load-more'); ?>" />
326
- <?php if( $alm_layouts_status !== false && $alm_layouts_status == 'valid' ) { ?>
327
- <span class="status active">
328
- <?php _e('Active', 'ajax-load-more'); ?>
329
- </span>
330
- <?php } else { ?>
331
- <span class="status inactive">
332
- <?php _e('Inactive', 'ajax-load-more'); ?>
333
- </span>
334
- <?php } ?>
335
- </div>
336
-
337
- <?php wp_nonce_field( 'alm_layouts_license_nonce', 'alm_layouts_license_nonce' ); ?>
338
- <div class="license-btn-wrap"
339
- data-name="<?php echo ALM_LAYOUTS_ITEM_NAME; ?>"
340
- data-url="<?php echo ALM_STORE_URL; ?>"
341
- data-option-status="alm_layouts_license_status"
342
- data-option-key="alm_layouts_license_key"
343
- data-upgrade-url="<?php echo $alm_layouts_url; ?>">
344
- <button type="button" class="activate license-btn <?php if($alm_layouts_status === 'valid'){ echo 'hide'; } ?> button-primary" data-type="activate">
345
- <?php _e('Activate License', 'ajax-load-more'); ?>
346
- </button>
347
-
348
- <button type="button" class="deactivate license-btn <?php if($alm_layouts_status !== 'valid'){ echo 'hide'; } ?> button-secondary" data-type="deactivate">
349
- <?php _e('Deactivate License', 'ajax-load-more'); ?>
350
- </button>
351
- </div>
352
-
353
- </form>
354
- </div>
355
- <div class="loading"></div>
356
- </div>
357
- <?php
358
- }
359
- // End LAYOUTS
360
- ?>
361
-
362
-
363
- <?php
364
- if (has_action('alm_nextpage_installed')){
365
- // NEXT PAGE
366
- $alm_nextpage_license = get_option( 'alm_nextpage_license_key' );
367
- $alm_nextpage_status = get_option( 'alm_nextpage_license_status' );
368
- $alm_nextpage_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/next-page/';
369
- ?>
370
- <div class="license" id="license-nextpage">
371
- <div class="license-title">
372
- <div class="status <?php if($alm_nextpage_status == 'valid'){echo 'valid';}else{echo 'invalid';} ?> "></div>
373
- <h2><?php _e('Next Page', 'ajax-load-more'); ?></h2>
374
- </div>
375
- <div class="license-wrap">
376
- <form method="post" action="options.php">
377
-
378
- <?php if( $alm_nextpage_status !== false && $alm_nextpage_status == 'valid' ) { ?>
379
- <!-- nothing -->
380
- <?php } else { ?>
381
- <div class="no-license">
382
- <h4><?php _e('Don\'t have a license?', 'ajax-load-more'); ?></h4>
383
- <p><?php _e('A valid license is required to activate and receive plugin updates directly in your WordPress dashboard', 'ajax-load-more'); ?> &rarr; <a href="<?php echo $alm_nextpage_url; ?>?utm_source=WP%20Admin&utm_medium=Licenses&utm_campaign=nextpage" target="blank"><strong><?php _e('Purchase Now', 'ajax-load-more'); ?>!</strong></a></p>
384
- </div>
385
- <?php } ?>
386
-
387
- <?php settings_fields('alm_nextpage_license'); ?>
388
-
389
- <label class="description offscreen" for="alm_nextpage_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
390
- <div class="license-key-field">
391
- <input id="alm_nextpage_license_key" name="alm_nextpage_license_key" type="text" class="regular-text" value="<?php esc_attr_e( $alm_nextpage_license ); ?>" placeholder="<?php _e('Enter License Key', 'ajax-load-more'); ?>" />
392
- <?php if( $alm_nextpage_status !== false && $alm_nextpage_status == 'valid' ) { ?>
393
- <span class="status active">
394
- <?php _e('Active', 'ajax-load-more'); ?>
395
- </span>
396
- <?php } else { ?>
397
- <span class="status inactive">
398
- <?php _e('Inactive', 'ajax-load-more'); ?>
399
- </span>
400
- <?php } ?>
401
- </div>
402
-
403
- <?php wp_nonce_field( 'alm_nextpage_license_nonce', 'alm_nextpage_license_nonce' ); ?>
404
- <div class="license-btn-wrap"
405
- data-name="<?php echo ALM_NEXTPAGE_ITEM_NAME; ?>"
406
- data-url="<?php echo ALM_STORE_URL; ?>"
407
- data-option-status="alm_nextpage_license_status"
408
- data-option-key="alm_nextpage_license_key"
409
- data-upgrade-url="<?php echo $alm_nextpage_url; ?>">
410
- <button type="button" class="activate license-btn <?php if($alm_nextpage_status === 'valid'){ echo 'hide'; } ?> button-primary" data-type="activate">
411
- <?php _e('Activate License', 'ajax-load-more'); ?>
412
- </button>
413
-
414
- <button type="button" class="deactivate license-btn <?php if($alm_nextpage_status !== 'valid'){ echo 'hide'; } ?> button-secondary" data-type="deactivate">
415
- <?php _e('Deactivate License', 'ajax-load-more'); ?>
416
- </button>
417
- </div>
418
-
419
- </form>
420
- </div>
421
- <div class="loading"></div>
422
- </div>
423
- <?php
424
- }
425
- // End NEXT PAGE
426
- ?>
427
-
428
-
429
-
430
- <?php
431
- if (has_action('alm_paging_installed')){
432
- // PAGING
433
- $alm_paging_license = get_option( 'alm_paging_license_key' );
434
- $alm_paging_status = get_option( 'alm_paging_license_status' );
435
- $alm_paging_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/paging/';
436
- ?>
437
- <div class="license" id="license-paging">
438
- <div class="license-title">
439
- <div class="status <?php if($alm_paging_status == 'valid'){echo 'valid';}else{echo 'invalid';} ?> "></div>
440
- <h2><?php _e('Paging', 'ajax-load-more'); ?></h2>
441
- </div>
442
- <div class="license-wrap">
443
- <form method="post" action="options.php">
444
-
445
- <?php if( $alm_paging_status !== false && $alm_paging_status == 'valid' ) { ?>
446
- <!-- nothing -->
447
- <?php } else { ?>
448
- <div class="no-license">
449
- <h4><?php _e('Don\'t have a license?', 'ajax-load-more'); ?></h4>
450
- <p><?php _e('A valid license is required to activate and receive plugin updates directly in your WordPress dashboard', 'ajax-load-more'); ?> &rarr; <a href="<?php echo $alm_paging_url; ?>?utm_source=WP%20Admin&utm_medium=Licenses&utm_campaign=Paging" target="blank"><strong><?php _e('Purchase Now', 'ajax-load-more'); ?>!</strong></a></p>
451
- </div>
452
- <?php } ?>
453
-
454
- <?php settings_fields('alm_paging_license'); ?>
455
-
456
- <label class="description offscreen" for="alm_paging_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
457
- <div class="license-key-field">
458
- <input id="alm_paging_license_key" name="alm_paging_license_key" type="text" class="regular-text" value="<?php esc_attr_e( $alm_paging_license ); ?>" placeholder="<?php _e('Enter License Key', 'ajax-load-more'); ?>" />
459
- <?php if( $alm_paging_status !== false && $alm_paging_status == 'valid' ) { ?>
460
- <span class="status active">
461
- <?php _e('Active', 'ajax-load-more'); ?>
462
- </span>
463
- <?php } else { ?>
464
- <span class="status inactive">
465
- <?php _e('Inactive', 'ajax-load-more'); ?>
466
- </span>
467
- <?php } ?>
468
- </div>
469
-
470
- <?php wp_nonce_field( 'alm_paging_license_nonce', 'alm_paging_license_nonce' ); ?>
471
- <div class="license-btn-wrap"
472
- data-name="<?php echo ALM_PAGING_ITEM_NAME; ?>"
473
- data-url="<?php echo ALM_STORE_URL; ?>"
474
- data-option-status="alm_paging_license_status"
475
- data-option-key="alm_paging_license_key"
476
- data-upgrade-url="<?php echo $alm_paging_url; ?>">
477
- <button type="button" class="activate license-btn <?php if($alm_paging_status === 'valid'){ echo 'hide'; } ?> button-primary" data-type="activate">
478
- <?php _e('Activate License', 'ajax-load-more'); ?>
479
- </button>
480
-
481
- <button type="button" class="deactivate license-btn <?php if($alm_paging_status !== 'valid'){ echo 'hide'; } ?> button-secondary" data-type="deactivate">
482
- <?php _e('Deactivate License', 'ajax-load-more'); ?>
483
- </button>
484
- </div>
485
-
486
- </form>
487
- </div>
488
- <div class="loading"></div>
489
- </div>
490
- <?php
491
- }
492
- // End PAGING
493
- ?>
494
-
495
- <?php
496
- if (has_action('alm_preload_installed')){
497
- // PRELOADED
498
- $alm_preloaded_license = get_option( 'alm_preloaded_license_key' );
499
- $alm_preloaded_status = get_option( 'alm_preloaded_license_status' );
500
- $alm_preloaded_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/preloaded/';
501
- ?>
502
- <div class="license" id="license-preloaded">
503
- <div class="license-title">
504
- <div class="status <?php if($alm_preloaded_status == 'valid'){echo 'valid';}else{echo 'invalid';} ?> "></div>
505
- <h2><?php _e('Preloaded', 'ajax-load-more'); ?></h2>
506
- </div>
507
- <div class="license-wrap">
508
- <form method="post" action="options.php">
509
-
510
- <?php if( $alm_preloaded_status !== false && $alm_preloaded_status == 'valid' ) { ?>
511
- <!-- nothing -->
512
- <?php } else { ?>
513
- <div class="no-license">
514
- <h4><?php _e('Don\'t have a license?', 'ajax-load-more'); ?></h4>
515
- <p><?php _e('A valid license is required to activate and receive plugin updates directly in your WordPress dashboard', 'ajax-load-more'); ?> &rarr; <a href="<?php echo $alm_preloaded_url; ?>?utm_source=WP%20Admin&utm_medium=Licenses&utm_campaign=Preloaded" target="blank"><strong><?php _e('Purchase Now', 'ajax-load-more'); ?>!</strong></a></p>
516
- </div>
517
- <?php } ?>
518
-
519
- <?php settings_fields('alm_preloaded_license'); ?>
520
-
521
- <label class="description offscreen" for="alm_preloaded_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
522
- <div class="license-key-field">
523
- <input id="alm_preloaded_license_key" name="alm_preloaded_license_key" type="text" class="regular-text" value="<?php esc_attr_e( $alm_preloaded_license ); ?>" placeholder="<?php _e('Enter License Key', 'ajax-load-more'); ?>" />
524
- <?php if( $alm_preloaded_status !== false && $alm_preloaded_status == 'valid' ) { ?>
525
- <span class="status active">
526
- <?php _e('Active', 'ajax-load-more'); ?>
527
- </span>
528
- <?php } else { ?>
529
- <span class="status inactive">
530
- <?php _e('Inactive', 'ajax-load-more'); ?>
531
- </span>
532
- <?php } ?>
533
- </div>
534
- <?php wp_nonce_field( 'alm_preloaded_license_nonce', 'alm_preloaded_license_nonce' ); ?>
535
- <div class="license-btn-wrap"
536
- data-name="<?php echo ALM_PRELOADED_ITEM_NAME; ?>"
537
- data-url="<?php echo ALM_STORE_URL; ?>"
538
- data-option-status="alm_preloaded_license_status"
539
- data-option-key="alm_preloaded_license_key"
540
- data-upgrade-url="<?php echo $alm_preloaded_url; ?>">
541
- <button type="button" class="activate license-btn <?php if($alm_preloaded_status === 'valid'){ echo 'hide'; } ?> button-primary" data-type="activate">
542
- <?php _e('Activate License', 'ajax-load-more'); ?>
543
- </button>
544
-
545
- <button type="button" class="deactivate license-btn <?php if($alm_preloaded_status !== 'valid'){ echo 'hide'; } ?> button-secondary" data-type="deactivate">
546
- <?php _e('Deactivate License', 'ajax-load-more'); ?>
547
- </button>
548
- </div>
549
-
550
- </form>
551
- </div>
552
- <div class="loading"></div>
553
- </div>
554
- <?php
555
- }
556
- // End PRELOADED
557
- ?>
558
-
559
- <?php
560
- if (has_action('alm_prev_post_installed')){
561
- // PREVIOUS POST
562
- $alm_prev_post_license = get_option( 'alm_prev_post_license_key' );
563
- $alm_prev_post_status = get_option( 'alm_prev_post_license_status' );
564
- $alm_prev_post_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/';
565
- ?>
566
- <div class="license" id="license-previous-post">
567
- <div class="license-title">
568
- <div class="status <?php if($alm_prev_post_status == 'valid'){echo 'valid';}else{echo 'invalid';} ?> "></div>
569
- <h2><?php _e('Previous Post', 'ajax-load-more'); ?></h2>
570
- </div>
571
- <div class="license-wrap">
572
- <form method="post" action="options.php">
573
-
574
- <?php if( $alm_prev_post_status !== false && $alm_prev_post_status == 'valid' ) { ?>
575
- <!-- nothing -->
576
- <?php } else { ?>
577
- <div class="no-license">
578
- <h4><?php _e('Don\'t have a license?', 'ajax-load-more'); ?></h4>
579
- <p><?php _e('A valid license is required to activate and receive plugin updates directly in your WordPress dashboard', 'ajax-load-more'); ?> &rarr; <a href="<?php echo $alm_prev_post_url; ?>?utm_source=WP%20Admin&utm_medium=Licenses&utm_campaign=Previous Post" target="blank"><strong><?php _e('Purchase Now', 'ajax-load-more'); ?>!</strong></a></p>
580
- </div>
581
- <?php } ?>
582
-
583
- <?php settings_fields('alm_prev_post_license'); ?>
584
-
585
- <label class="description offscreen" for="alm_prev_post_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
586
- <div class="license-key-field">
587
- <input id="alm_prev_post_license_key" name="alm_prev_post_license_key" type="text" class="regular-text" value="<?php esc_attr_e( $alm_prev_post_license ); ?>" placeholder="<?php _e('Enter License Key', 'ajax-load-more'); ?>" />
588
- <?php if( $alm_prev_post_status !== false && $alm_prev_post_status == 'valid' ) { ?>
589
- <span class="status active">
590
- <?php _e('Active', 'ajax-load-more'); ?>
591
- </span>
592
- <?php } else { ?>
593
- <span class="status inactive">
594
- <?php _e('Inactive', 'ajax-load-more'); ?>
595
- </span>
596
- <?php } ?>
597
- </div>
598
-
599
- <?php wp_nonce_field( 'alm_prev_post_license_nonce', 'alm_prev_post_license_nonce' ); ?>
600
- <div class="license-btn-wrap"
601
- data-name="<?php echo ALM_PREV_POST_ITEM_NAME; ?>"
602
- data-url="<?php echo ALM_STORE_URL; ?>"
603
- data-option-status="alm_prev_post_license_status"
604
- data-option-key="alm_prev_post_license_key"
605
- data-upgrade-url="<?php echo $alm_prev_post_url; ?>">
606
- <button type="button" class="activate license-btn <?php if($alm_prev_post_status === 'valid'){ echo 'hide'; } ?> button-primary" data-type="activate">
607
- <?php _e('Activate License', 'ajax-load-more'); ?>
608
- </button>
609
-
610
- <button type="button" class="deactivate license-btn <?php if($alm_prev_post_status !== 'valid'){ echo 'hide'; } ?> button-secondary" data-type="deactivate">
611
- <?php _e('Deactivate License', 'ajax-load-more'); ?>
612
- </button>
613
- </div>
614
-
615
- </form>
616
- </div>
617
- <div class="loading"></div>
618
- </div>
619
- <?php
620
- }
621
- // End PREVIOUS POST
622
- ?>
623
-
624
-
625
- <?php
626
- if (has_action('alm_seo_installed')){
627
- // SEO
628
- $alm_seo_license = get_option( 'alm_seo_license_key' );
629
- $alm_seo_status = get_option( 'alm_seo_license_status' );
630
- $alm_seo_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/search-engine-optimization/';
631
- ?>
632
- <div class="license" id="license-seo">
633
- <div class="license-title">
634
- <div class="status <?php if($alm_seo_status == 'valid'){echo 'valid';}else{echo 'invalid';} ?> "></div>
635
- <h2><?php _e('Search Engine Optimization', 'ajax-load-more'); ?></h2>
636
- </div>
637
- <div class="license-wrap">
638
- <form method="post" action="options.php">
639
-
640
- <?php if( $alm_seo_status !== false && $alm_seo_status == 'valid' ) { ?>
641
- <!-- nothing -->
642
- <?php } else { ?>
643
- <div class="no-license">
644
- <h4><?php _e('Don\'t have a license?', 'ajax-load-more'); ?></h4>
645
- <p><?php _e('A valid license is required to activate and receive plugin updates directly in your WordPress dashboard', 'ajax-load-more'); ?> &rarr; <a href="<?php echo $alm_seo_url; ?>?utm_source=WP%20Admin&utm_medium=Licenses&utm_campaign=SEO" target="blank"><strong><?php _e('Purchase Now', 'ajax-load-more'); ?>!</strong></a></p>
646
- </div>
647
- <?php } ?>
648
-
649
- <?php settings_fields('alm_seo_license'); ?>
650
-
651
- <label class="description offscreen" for="alm_seo_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
652
- <div class="license-key-field">
653
- <input id="alm_seo_license_key" name="alm_seo_license_key" type="text" class="regular-text" value="<?php esc_attr_e( $alm_seo_license ); ?>" placeholder="<?php _e('Enter License Key', 'ajax-load-more'); ?>" />
654
- <?php if( $alm_seo_status !== false && $alm_seo_status == 'valid' ) { ?>
655
- <span class="status active">
656
- <?php _e('Active', 'ajax-load-more'); ?>
657
- </span>
658
- <?php } else { ?>
659
- <span class="status inactive">
660
- <?php _e('Inactive', 'ajax-load-more'); ?>
661
- </span>
662
- <?php } ?>
663
- </div>
664
-
665
- <?php wp_nonce_field( 'alm_seo_license_nonce', 'alm_seo_license_nonce' ); ?>
666
- <div class="license-btn-wrap"
667
- data-name="<?php echo ALM_SEO_ITEM_NAME; ?>"
668
- data-url="<?php echo ALM_STORE_URL; ?>"
669
- data-option-status="alm_seo_license_status"
670
- data-option-key="alm_seo_license_key"
671
- data-upgrade-url="<?php echo $alm_seo_url; ?>">
672
- <button type="button" class="activate license-btn <?php if($alm_seo_status === 'valid'){ echo 'hide'; } ?> button-primary" data-type="activate">
673
- <?php _e('Activate License', 'ajax-load-more'); ?>
674
- </button>
675
-
676
- <button type="button" class="deactivate license-btn <?php if($alm_seo_status !== 'valid'){ echo 'hide'; } ?> button-secondary" data-type="deactivate">
677
- <?php _e('Deactivate License', 'ajax-load-more'); ?>
678
- </button>
679
- </div>
680
-
681
- </form>
682
- </div>
683
-
684
- <div class="loading"></div>
685
- </div>
686
- <?php
687
- }
688
- // End SEO
689
- ?>
690
-
691
-
692
- <?php
693
- if (has_action('alm_theme_repeaters_installed')){
694
- // Theme Templates
695
-
696
- $alm_theme_repeaters_license = get_option( 'alm_theme_repeaters_license_key' );
697
- $alm_theme_repeaters_status = get_option( 'alm_theme_repeaters_license_status' );
698
- $alm_theme_repeaters_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/theme-repeaters/';
699
- ?>
700
- <div class="license" id="license-theme_repeaters">
701
- <div class="license-title">
702
- <div class="status <?php if($alm_theme_repeaters_status == 'valid'){echo 'valid';}else{echo 'invalid';} ?> "></div>
703
- <h2><?php _e('Theme Repeaters', 'ajax-load-more'); ?> </h2>
704
- </div>
705
- <div class="license-wrap">
706
- <form method="post" action="options.php">
707
-
708
- <?php if( $alm_theme_repeaters_status !== false && $alm_theme_repeaters_status == 'valid' ) { ?>
709
- <!-- nothing -->
710
- <?php } else { ?>
711
- <div class="no-license">
712
- <h4><?php _e('Don\'t have a license?', 'ajax-load-more'); ?></h4>
713
- <p><?php _e('A valid license is required to activate and receive plugin updates directly in your WordPress dashboard', 'ajax-load-more'); ?> &rarr; <a href="<?php echo $alm_theme_repeaters_url; ?>?utm_source=WP%20Admin&utm_medium=Licenses&utm_campaign=Theme Repeaters" target="blank"><strong><?php _e('Purchase Now', 'ajax-load-more'); ?>!</strong></a></p>
714
- </div>
715
- <?php } ?>
716
-
717
- <?php settings_fields('alm_theme_repeaters_license'); ?>
718
-
719
- <label class="description offscreen" for="alm_theme_repeaters_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
720
- <div class="license-key-field">
721
- <input id="alm_theme_repeaters_license_key" name="alm_theme_repeaters_license_key" type="text" class="regular-text" value="<?php esc_attr_e( $alm_theme_repeaters_license ); ?>" placeholder="<?php _e('Enter License Key', 'ajax-load-more'); ?>" />
722
- <?php if( $alm_theme_repeaters_status !== false && $alm_theme_repeaters_status == 'valid' ) { ?>
723
- <span class="status active">
724
- <?php _e('Active', 'ajax-load-more'); ?>
725
- </span>
726
- <?php } else { ?>
727
- <span class="status inactive">
728
- <?php _e('Inactive', 'ajax-load-more'); ?>
729
- </span>
730
- <?php } ?>
731
- </div>
732
- <?php wp_nonce_field( 'alm_theme_repeaters_license_nonce', 'alm_theme_repeaters_license_nonce' ); ?>
733
-
734
- <div class="license-btn-wrap"
735
- data-name="<?php echo ALM_THEME_REPEATERS_ITEM_NAME; ?>"
736
- data-url="<?php echo ALM_STORE_URL; ?>"
737
- data-upgrade-url="<?php echo $alm_theme_repeaters_url; ?>"
738
- data-option-status="alm_theme_repeaters_license_status"
739
- data-option-key="alm_theme_repeaters_license_key"
740
- >
741
- <button type="button" class="activate license-btn <?php if($alm_theme_repeaters_status === 'valid'){ echo 'hide'; } ?> button-primary" data-type="activate">
742
- <?php _e('Activate License', 'ajax-load-more'); ?>
743
- </button>
744
-
745
- <button type="button" class="deactivate license-btn <?php if($alm_theme_repeaters_status !== 'valid'){ echo 'hide'; } ?> button-secondary" data-type="deactivate">
746
- <?php _e('Deactivate License', 'ajax-load-more'); ?>
747
- </button>
748
- </div>
749
-
750
- </form>
751
-
752
- </div>
753
- <div class="loading"></div>
754
- </div>
755
- <?php
756
- }
757
- // End Theme Repeaters
758
- ?>
759
-
760
-
761
- <?php else : ?>
762
-
763
  <div class="license-no-addons">
764
  <p><?php _e('You do not have any Ajax Load More add-ons installed', 'ajax-load-more'); ?>. &raquo; <a href="admin.php?page=ajax-load-more-add-ons"><strong><?php _e('Browse Add-ons', 'ajax-load-more'); ?></strong></a></p>
765
  </div>
766
-
767
- <?php endif; ?>
768
-
769
-
770
- </div>
771
- </div>
772
-
773
- <div class="cnkt-sidebar">
774
- <div class="cta">
775
- <h3><?php _e('About Licenses', 'ajax-load-more'); ?></h3>
776
- <div class="cta-inner">
777
- <ul>
778
- <li><?php _e('Add-on licenses will enable updates directly in your WP dashboard.', 'ajax-load-more');?></li>
779
- <li><?php _e('License keys are found in the purchase receipt email that was sent immediately after your successful purchase and in the <a target="_blank" href="https://connekthq.com/account/">Account</a> section on our website', 'ajax-load-more');?></li>
780
- <li><?php _e('If you cannot locate your key please open a support ticket by filling out the <a href="https://connekthq.com/contact/">form</a> on our website and reference the email address used when you completed the purchase.', 'ajax-load-more'); ?></li>
781
- </ul>
782
- <p style="padding-top: 10px;">
783
- <a class="button button-primary button-large" target="_blank" href="https://connekthq.com/account/">
784
- <i class="fa fa-chevron-circle-right"></i> <?php _e('Sign Into Your Account', 'ajax-load-more'); ?>
785
- </a>
786
- </p>
787
- </div>
788
- </div>
789
- </div>
 
 
 
790
 
791
  </div>
792
  </div>
1
  <div class="admin ajax-load-more" id="alm-licenses">
2
+ <div class="wrap main-cnkt-wrap">
3
+ <header class="header-wrap">
4
+ <h1>
5
+ <?php echo ALM_TITLE; ?>: <strong><?php _e('Licenses', 'ajax-load-more'); ?></strong>
6
+ <em><?php _e('Enter your license keys to enable automatic <a href="admin.php?page=ajax-load-more-add-ons">add-on</a> updates', 'ajax-load-more'); ?>.</em>
7
+ </h1>
8
+ </header>
9
+
10
+ <div class="ajax-load-more-inner-wrapper">
11
+
12
+ <div class="cnkt-main">
13
+
14
  <h3><?php _e('License Keys', 'ajax-load-more'); ?></h3>
15
 
16
+ <p><?php _e('Manage your Ajax Load More license key\'s below - enter a key for each of your add-ons to receive plugin update notifications directly within the <a href="plugins.php">WP Plugins dashboard</a>.', 'ajax-load-more'); ?></p>
17
+
18
+ <?php
19
+ $addons = alm_get_addons();
20
+ $addon_count = 0;
21
+
22
+ foreach($addons as $addon){
23
+ $name = $addon['name'];
24
+ $intro = $addon['intro'];
25
+ $desc = $addon['desc'];
26
+ $action = $addon['action'];
27
+ $key = $addon['key'];
28
+ $license = get_option($key);
29
+ $status = $addon['status'];
30
+ $license_status = get_option($status);
31
+ $settings_field = $addon['settings_field'];
32
+ $url = $addon['url'];
33
+ $img = $addon['img'];
34
+ $item_id = $addon['item_id'];
35
+
36
+ if(has_action($action)){
37
+ $addon_count++;
38
+ ?>
39
+
40
+ <div class="license" id="license-<?php echo sanitize_title_with_dashes($name); ?>">
41
+ <div class="license-title">
42
+ <div class="status <?php if($license_status == 'valid'){echo 'valid';}else{echo 'invalid';} ?> "></div>
43
+ <h2><?php echo $name; ?></h2>
44
+ </div>
45
+ <div class="license-wrap">
46
+ <form method="post" action="options.php">
47
+
48
+ <?php if( $license_status !== false && $license_status == 'valid' ) { ?>
49
+ <!-- nothing -->
50
+ <?php } else { ?>
51
+ <div class="no-license">
52
+ <h4><?php _e('Don\'t have a license?', 'ajax-load-more'); ?></h4>
53
+ <p><?php _e('A valid license is required to activate and receive plugin updates directly in your WordPress dashboard', 'ajax-load-more'); ?> &rarr; <a href="<?php echo $url; ?>?utm_source=WP%20Admin&utm_medium=Licenses&utm_campaign=<?php echo $name; ?>" target="blank"><strong><?php _e('Purchase Now', 'ajax-load-more'); ?>!</strong></a></p>
54
+ </div>
55
+ <?php } ?>
56
+
57
+ <?php settings_fields($settings_field); ?>
58
+
59
+ <label class="description offscreen" for="<?php echo $key; ?>"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
60
+ <div class="license-key-field">
61
+ <input id="<?php echo $key; ?>" name="<?php echo $key; ?>" type="text" class="regular-text" value="<?php esc_attr_e( $license ); ?>" placeholder="<?php _e('Enter License Key', 'ajax-load-more'); ?>" />
62
+ <?php if( $license_status !== false && $license_status == 'valid' ) { ?>
63
+ <span class="status active">
64
+ <?php _e('Active', 'ajax-load-more'); ?>
65
+ </span>
66
+ <?php } else { ?>
67
+ <span class="status inactive">
68
+ <?php _e('Inactive', 'ajax-load-more'); ?>
69
+ </span>
70
+ <?php } ?>
71
+ </div>
72
+
73
+ <?php
74
+ $nonce = 'alm_'. $item_id .'_license_nonce';
75
+ wp_nonce_field( $nonce, $nonce );
76
+ ?>
77
+
78
+ <div class="license-btn-wrap"
79
+ data-name="<?php echo $item_id; ?>"
80
+ data-url="<?php echo ALM_STORE_URL; ?>"
81
+ data-option-status="<?php echo $status; ?>"
82
+ data-option-key="<?php echo $key; ?>"
83
+ data-upgrade-url="<?php echo $url; ?>">
84
+ <button type="button" class="activate license-btn <?php if($license_status === 'valid'){ echo 'hide'; } ?> button-primary" data-type="activate">
85
+ <?php _e('Activate License', 'ajax-load-more'); ?>
86
+ </button>
87
+ <button type="button" class="deactivate license-btn <?php if($license_status !== 'valid'){ echo 'hide'; } ?> button-secondary" data-type="deactivate">
88
+ <?php _e('Deactivate License', 'ajax-load-more'); ?>
89
+ </button>
90
+ </div>
91
+ </form>
92
+ </div>
93
+ <div class="loading"></div>
94
+ </div>
95
+ <?php } ?>
96
+ <?php } ?>
97
+
98
+
99
+ <?php
100
+ // No add-ons installed
101
+ if($addon_count == 0) :
102
  ?>
103
+ <div class="spacer"></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
104
  <div class="license-no-addons">
105
  <p><?php _e('You do not have any Ajax Load More add-ons installed', 'ajax-load-more'); ?>. &raquo; <a href="admin.php?page=ajax-load-more-add-ons"><strong><?php _e('Browse Add-ons', 'ajax-load-more'); ?></strong></a></p>
106
  </div>
107
+ <?php endif; ?>
108
+
109
+ </div>
110
+
111
+ <aside class="cnkt-sidebar">
112
+ <div id="cnkt-sticky-wrapper">
113
+ <div id="cnkt-sticky">
114
+ <div class="cta">
115
+ <h3><?php _e('About Licenses', 'ajax-load-more'); ?></h3>
116
+ <div class="cta-inner">
117
+ <ul>
118
+ <li><?php _e('License keys are found in the purchase receipt email that was sent immediately after your successful purchase and in the <a target="_blank" href="https://connekthq.com/account/">Account</a> section on our website', 'ajax-load-more');?></li>
119
+ <li><?php _e('If you cannot locate your key please open a support ticket by filling out the <a href="https://connekthq.com/contact/">form</a> on our website and reference the email address used when you completed the purchase.', 'ajax-load-more'); ?></li>
120
+ </ul>
121
+ </div>
122
+ <div class="major-publishing-actions">
123
+ <a class="button button-primary button-large" target="_blank" href="https://connekthq.com/account/">
124
+ <?php _e('Your Account', 'ajax-load-more'); ?>
125
+ </a>
126
+ </div>
127
+ </div>
128
+ </div>
129
+ </div>
130
+ </div>
131
+
132
+ <div class="clear"></div>
133
+ </aside>
134
 
135
  </div>
136
  </div>
admin/views/repeater-templates.php CHANGED
@@ -12,432 +12,443 @@
12
  ?>
13
 
14
  <div class="admin ajax-load-more" id="alm-repeaters">
15
- <div class="wrap">
16
- <div class="header-wrap">
 
17
  <h1>
18
  <?php echo ALM_TITLE; ?>: <strong><?php _e('Repeater Templates', 'ajax-load-more'); ?></strong>
19
  <em><?php _e('The library of editable templates for use within your theme', 'ajax-load-more'); ?></em>
20
  </h1>
21
- </div>
22
 
23
- <div class="cnkt-main form-table repeaters">
24
-
25
- <?php if(has_action('alm_get_theme_repeater')){ ?>
26
- <ul class="alm-toggle-switch">
27
- <li><a href="?page=ajax-load-more-repeaters" class="<?php if(!$theme_repeaters){ echo 'active'; } ?>"><?php _e('Repeater Templates', 'ajax-load-more'); ?></a></li>
28
- <li><a href="?page=ajax-load-more-repeaters&theme-repeaters=true" class="<?php if($theme_repeaters){ echo 'active'; } ?>"><?php _e('Theme Repeaters', 'ajax-load-more'); ?></a></li>
29
- </ul>
30
- <?php } ?>
31
-
32
-
33
- <?php
34
- // List Theme Repeaters
35
-
36
- if($theme_repeaters){ ?>
37
- <div class="group">
38
-
39
- <?php
40
- $options = get_option( 'alm_settings' );
41
 
42
- if(!isset($options['_alm_theme_repeaters_dir']))
43
- $options['_alm_theme_repeaters_dir'] = 'alm_templates';
44
-
45
- // Get template location
46
- if(is_child_theme()){
47
- $dir = get_stylesheet_directory() . '/' . $options['_alm_theme_repeaters_dir'];
48
- }else{
49
- $dir = get_template_directory() . '/' . $options['_alm_theme_repeaters_dir'];
50
- }
51
-
52
- $count = 0;
53
-
54
- foreach (glob($dir.'/*') as $file) {
55
- $count++;
56
- $file = realpath($file);
57
- $link = substr($file, strlen($dir) + 1);
58
-
59
- $file_extension = strtolower(substr(basename($file), strrpos(basename($file), '.') + 1));
60
- $file_directory = get_option('stylesheet') .'/'. strtolower(substr(basename($dir), strrpos(basename($dir), '/')));
61
-
62
- $id = preg_replace('/\\.[^.\\s]{3,4}$/', '', $link);
63
 
64
- if($file_extension == 'php'){ // Only display .php files files ?>
65
-
66
- <div class="row template" id="tr-<?php echo $id; ?>">
67
- <h3 class="heading"><?php echo basename($file); ?></h3>
68
- <div class="expand-wrap">
69
- <div class="wrap repeater-wrap cm-readonly">
70
- <?php
71
- $template = fopen ($file, "r"); // Open file
72
- $tr_contents = '';
73
- if(filesize ($file) != 0){
74
- $tr_contents = fread ($template, filesize ($file));
75
- }
76
- fclose ($template);
77
- ?>
78
- <textarea rows="10" id="template-tr-<?php echo $id; ?>" class="_alm_repeater"><?php echo $tr_contents; ?></textarea>
79
- <script>
80
- var editorDefault = CodeMirror.fromTextArea(document.getElementById("template-tr-<?php echo $id; ?>"), {
81
- mode: "application/x-httpd-php",
82
- lineNumbers: true,
83
- lineWrapping: true,
84
- indentUnit: 0,
85
- matchBrackets: true,
86
- readOnly: true,
87
- viewportMargin: Infinity,
88
- extraKeys: {"Ctrl-Space": "autocomplete"},
89
- });
90
- </script>
91
- <p class="file-location" title="<?php echo $file; ?>"><?php _e('File Location', 'ajax-load-more'); ?>:<code><?php echo $file_directory; ?>/<?php echo basename($file); ?></code></p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
  </div>
93
- </div>
94
- </div>
95
- <?php
96
- unset($template);
97
- unset($file);
98
- }
99
- }
100
-
101
- if($count > 1){?>
102
- <span class="toggle-all">
103
- <span class="inner-wrap">
104
- <em class="collapse"><?php _e('Collapse All', 'ajax-load-more'); ?></em>
105
- <em class="expand"><?php _e('Expand All', 'ajax-load-more'); ?></em>
106
  </span>
107
- </span>
108
- <?php
109
- }
110
-
111
- if($count == 0){ ?>
112
- <div style="padding: 20px;">
113
- <h3><?php _e('Templates Not Found', 'ajax-load-more'); ?></h3>
114
- <p>
115
- <?php _e('Oh no - looks like you haven\'t added any Theme Repeater templates - you need to create and upload templates to your theme directory before you can access them in Ajax Load More', 'ajax-load-more'); ?>.
116
- </p>
117
- <p style="margin: 20px 0 0;">
118
- <a href="https://connekthq.com/plugins/ajax-load-more/add-ons/theme-repeaters/" class="button button-primary button-large" target="_blank"><?php _e('Learn More About Theme Repeaters', 'ajax-load-more'); ?></a>
119
- </p>
120
- </div>
121
- <?php }
122
- ?>
123
- </div>
124
-
125
- <?php } else { ?>
126
-
127
- <!-- Repeaters -->
128
- <div class="group">
129
-
130
- <?php
131
- if (has_action('alm_custom_repeaters') || has_action('alm_unlimited_repeaters')){ ?>
132
- <span class="toggle-all">
133
- <span class="inner-wrap">
134
- <em class="collapse"><?php _e('Collapse All', 'ajax-load-more'); ?></em>
135
- <em class="expand"><?php _e('Expand All', 'ajax-load-more'); ?></em>
136
  </span>
137
- </span>
138
- <?php } ?>
139
-
140
- <!-- Default Template -->
141
- <div class="row template default-repeater" id="default-template">
142
-
143
- <?php
144
- // Check for local repeater template
145
- $local_template = false;
146
- $readOnly = 'false';
147
- $template_dir = 'alm_templates';
148
- if(is_child_theme()){
149
- $template_theme_file = get_stylesheet_directory().'/'. $template_dir .'/default.php';
150
- if(!file_exists($template_theme_file)){
151
- $template_theme_file = get_template_directory().'/'. $template_dir .'/default.php';
152
- }
153
- }
154
- else{
155
- $template_theme_file = get_template_directory().'/'. $template_dir .'/default.php';
156
- }
157
- // if theme or child theme contains the template, use that file
158
- if(file_exists($template_theme_file)){
159
- $local_template = true;
160
- $readOnly = true;
161
- }
162
-
163
- $filename = alm_get_default_repeater(); // Get default repeater template
164
-
165
- $handle = fopen ($filename, "r"); // Open file
166
- $contents = '';
167
- if(filesize ($filename) != 0){
168
- $contents = fread ($handle, filesize ($filename));
169
- }
170
- fclose ($handle);
171
- ?>
172
- <h3 class="heading"><?php _e('Default Template', 'ajax-load-more'); ?></h3>
173
- <div class="expand-wrap">
174
- <div class="wrap repeater-wrap<?php if($local_template){ echo ' cm-readonly'; } ?>" data-name="default" data-type="default">
175
- <?php
176
- if(!$local_template){
177
-
178
- // Add Label
179
- echo '<label class="template-title" for="template-default">';
180
- _e('Enter the HTML and PHP code for the default template', 'ajax-load-more');
181
- echo ':</label>';
182
-
183
- // Layouts - Template Selection
184
- do_action('alm_get_layouts');
185
- }
186
- ?>
187
- <textarea rows="10" id="template-default" class="_alm_repeater"><?php echo $contents; ?></textarea>
188
- <script>
189
- var editorDefault = CodeMirror.fromTextArea(document.getElementById("template-default"), {
190
- mode: "application/x-httpd-php",
191
- lineNumbers: true,
192
- lineWrapping: true,
193
- indentUnit: 0,
194
- matchBrackets: true,
195
- readOnly: <?php echo $readOnly; ?>,
196
- viewportMargin: Infinity,
197
- extraKeys: {"Ctrl-Space": "autocomplete"},
198
- });
199
- </script>
200
-
201
- <?php if(!$local_template){ ?>
202
-
203
- <input type="submit" value="<?php _e('Save Template', 'ajax-load-more'); ?>" class="button button-primary save-repeater" data-editor-id="template-default">
204
- <div class="saved-response">&nbsp;</div>
205
- <?php include( ALM_PATH . 'admin/includes/components/repeater-options.php'); ?>
206
-
207
- <?php } else {
208
- $file_directory = get_option('stylesheet') .'/'. strtolower(substr(basename($template_dir), strrpos(basename($template_dir), '/')));
209
- ?>
210
-
211
- <p class="warning-callout"><?php _e('It appears you are loading the <a href="https://connekthq.com/plugins/ajax-load-more/docs/repeater-templates/#default-template" target="_blank"><b>default template</b></a> (<em>default.php</em>) from your current theme directory. To modify this template, you must edit the file directly on your server.', 'ajax-load-more'); ?></p>
212
- <p class="file-location" title="<?php echo $filename; ?>" style="margin-top: 20px;"><?php _e('File Location', 'ajax-load-more'); ?>:<code><?php echo $file_directory; ?>/default.php</code></p>
213
-
214
- <?php } ?>
215
-
216
  </div>
217
- </div>
218
- </div>
219
-
220
- <!-- End Default Template -->
221
-
222
- <!-- Custom Repeaters -->
223
- <?php
224
-
225
- if (!has_action('alm_get_unlimited_repeaters') && !has_action('alm_get_custom_repeaters')){
226
- // If Custom Repeaters & Theme Repeaters is NOT installed
227
- echo '<div class="row no-brd">';
228
- include( ALM_PATH . 'admin/includes/cta/extend.php');
229
- echo '</div>';
230
- }
231
-
232
- if (has_action('alm_custom_repeaters')){ // List custom repeaters v1
233
- do_action('alm_custom_repeaters');
234
- }
235
- if (has_action('alm_unlimited_repeaters')){ // List custom repeaters v2
236
- do_action('alm_unlimited_repeaters');
237
- }
238
- ?>
239
-
240
- <script>
241
- jQuery(document).ready(function($) {
242
- "use strict";
243
- var _alm_admin = {};
244
-
245
- /*
246
- * _alm_admin.saveRepeater
247
- * Save Custom Repeater Value
248
- *
249
- * @since 2.0.0
250
- */
251
-
252
- _alm_admin.saveRepeater = function(btn, editorId) {
253
- var container = btn.parent('.repeater-wrap'),
254
- el = $('textarea._alm_repeater', container),
255
- textarea = el.next('.CodeMirror'),
256
- btn = btn,
257
- value = '',
258
- repeater = container.data('name'), // Get templete name
259
- type = container.data('type'), // Get template type (default/repeater/unlimited)
260
- alias = ($('input._alm_repeater_alias', container).length) ? $('input._alm_repeater_alias', container).val() : '',
261
- responseText = $(".saved-response", container);
262
-
263
- if(type === undefined) // Fix for custom repeaters v1
264
- type = 'undefined';
265
-
266
- //Get value from CodeMirror textarea
267
- var id = editorId.replace('template-', ''); // Editor ID
268
-
269
- if(id === 'default'){ // Default Template
270
- value = editorDefault.getValue();
271
- }else{ // Repeater Templates
272
- var eid = window['editor_'+id]; // Set editor ID
273
- value = eid.getValue();
274
- }
275
-
276
- // if value is null, then set repeater to non breaking space
277
- if(value === '' || value === 'undefined'){
278
- value = '&nbsp;';
279
- }
280
-
281
- //If template is not already saving, then proceed
282
- if (!btn.hasClass('saving')) {
283
- btn.addClass('saving');
284
- textarea.addClass('loading');
285
- responseText.addClass('loading').html('<?php _e('Saving template...', 'ajax-load-more') ?>');
286
- responseText.animate({'opacity' : 1});
287
-
288
- $.ajax({
289
- type: 'POST',
290
- url: alm_admin_localize.ajax_admin_url,
291
- data: {
292
- action: 'alm_save_repeater',
293
- value: value,
294
- repeater: repeater,
295
- type: type,
296
- alias: alias,
297
- nonce: alm_admin_localize.alm_admin_nonce,
298
- },
299
- success: function(response) {
300
-
301
- $('textarea#'+editorId).val(value); // Set the target textarea val to 'value'
302
-
303
- setTimeout(function() {
304
- responseText.delay(500).html(response).removeClass('loading');
305
- textarea.removeClass('loading');
306
- }, 250);
307
-
308
- setTimeout(function() {
309
- responseText.animate({'opacity': 0}, function(){
310
- responseText.html('&nbsp;');
311
- btn.removeClass('saving');
312
- });
313
-
314
- }, 4500);
315
-
316
- },
317
- error: function(xhr, status, error) {
318
- responseText.html('<?php _e('Something went wrong and the data could not be saved.', 'ajax-load-more') ?>').removeClass('loading');
319
- btn.removeClass('saving');
320
- textarea.removeClass('loading');
321
- }
322
- });
323
- }
324
  }
325
-
326
-
327
- $(document).on('click', 'input.save-repeater', function(){
328
- var btn = $(this),
329
- editorId = btn.data('editor-id');
330
- _alm_admin.saveRepeater(btn, editorId);
331
- });
332
-
333
-
334
- /*
335
- * _alm_admin.updateRepeater
336
- * Update Repeater Value
337
- *
338
- * @since 2.5
339
- */
340
-
341
- _alm_admin.updateRepeater = function(btn, editorId) {
342
- var container = btn.closest('.repeater-wrap'),
343
- el = $('textarea._alm_repeater', container),
344
- btn = btn,
345
- btn_text = btn.html(),
346
- editor = $('.CodeMirror', container),
347
- repeater = container.data('name'), // Get templete name
348
- type = container.data('type'); // Get template type (default/repeater/unlimited)
349
-
350
- //Get value from CodeMirror textarea
351
- var editorId = repeater,
352
- id = editorId.replace('template-', ''); // Editor ID
353
-
354
- //If template is not already saving, then proceed
355
- if (!btn.hasClass('updating')) {
356
- btn.addClass('updating').text("<?php _e('Updating template...', 'ajax-load-more'); ?>");
357
- editor.addClass('loading');
358
- $.ajax({
359
- type: 'POST',
360
- url: alm_admin_localize.ajax_admin_url,
361
- data: {
362
- action: 'alm_update_repeater',
363
- repeater: repeater,
364
- type: type,
365
- nonce: alm_admin_localize.alm_admin_nonce,
366
- },
367
- success: function(response) {
368
- if(id === 'default'){ // Default Template
369
- editorDefault.setValue(response);
370
- }else{ // Repeater Templates
371
- var eid = window['editor_'+id]; // Set editor ID
372
- eid.setValue(response);
373
- }
374
-
375
- // Clear button styles
376
- setTimeout(function() {
377
- btn.text("<?php _e('Template Updated', 'ajax-load-more'); ?>").blur();
378
- setTimeout(function() {
379
- btn.closest('.alm-drop-btn').trigger('click'); // CLose drop menu
380
- btn.removeClass('updating').html(btn_text).blur();
381
- editor.removeClass('loading');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
382
  }, 400);
383
- }, 400);
384
-
385
- },
386
- error: function(xhr, status, error) {
387
- btn.removeClass('updating').html(btn_text).blur();
388
- editor.removeClass('loading');
389
- }
390
- });
391
  }
392
- }
393
-
394
- $('.option-update a').click(function(){
395
- var btn = $(this);
396
- _alm_admin.updateRepeater(btn);
 
397
  });
398
-
399
- });
400
- </script>
401
-
 
 
 
402
  </div>
403
- <!-- End Repeaters -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
404
 
405
- <?php } ?>
406
-
407
- </div>
408
-
409
- <div class="cnkt-sidebar">
410
- <?php
411
- // Add TOC if users has Custom Repeaters
412
- if (has_action('alm_unlimited_repeaters') || $theme_repeaters){
413
- ?>
414
- <div class="table-of-contents repeaters-toc">
415
- <div class="cta">
416
- <div class="cta-inner">
417
- <select class="toc"></select>
418
- </div>
419
- </div>
420
- <?php } ?>
421
- <div class="cta padding-bottom">
422
- <h3><?php _e('Repeater Template Help', 'ajax-load-more'); ?></h3>
423
- <div class="cta-inner">
424
- <p><strong><?php _e('What is a repeater template?', 'ajax-load-more'); ?></strong></p>
425
- <p><?php _e('A <a href="https://connekthq.com/plugins/ajax-load-more/docs/repeater-templates/" target="_blank">repeater template</a> is a snippet of code that will execute over and over within a <a href="http://codex.wordpress.org/The_Loop" target="_blank">WordPress loop</a>', 'ajax-load-more'); ?>.</p>
426
- </div>
427
- <a class="visit" href="https://connekthq.com/plugins/ajax-load-more/docs/repeater-templates/" target="_blank"><i class="fa fa-chevron-circle-right"></i> <?php _e('More About Templating', 'ajax-load-more'); ?></a>
428
- </div>
429
-
430
- <?php
431
- if(!$theme_repeaters){
432
- include_once( ALM_PATH . 'admin/includes/cta/writeable.php');
433
- }
434
- ?>
435
-
436
- <?php if (has_action('alm_unlimited_repeaters')){ ?>
437
- </div>
438
- <?php } ?>
439
-
440
- </div>
441
 
442
  </div>
443
  </div>
12
  ?>
13
 
14
  <div class="admin ajax-load-more" id="alm-repeaters">
15
+ <div class="wrap main-cnkt-wrap">
16
+
17
+ <header class="header-wrap">
18
  <h1>
19
  <?php echo ALM_TITLE; ?>: <strong><?php _e('Repeater Templates', 'ajax-load-more'); ?></strong>
20
  <em><?php _e('The library of editable templates for use within your theme', 'ajax-load-more'); ?></em>
21
  </h1>
22
+ </header>
23
 
24
+ <div class="ajax-load-more-inner-wrapper">
25
+
26
+ <div class="cnkt-main repeaters">
27
+
28
+ <?php if(has_action('alm_get_theme_repeater')){ ?>
29
+ <ul class="alm-toggle-switch">
30
+ <li><a href="?page=ajax-load-more-repeaters" class="<?php if(!$theme_repeaters){ echo 'active'; } ?>"><?php _e('Repeater Templates', 'ajax-load-more'); ?></a></li>
31
+ <li><a href="?page=ajax-load-more-repeaters&theme-repeaters=true" class="<?php if($theme_repeaters){ echo 'active'; } ?>"><?php _e('Theme Repeaters', 'ajax-load-more'); ?></a></li>
32
+ </ul>
33
+ <?php } ?>
 
 
 
 
 
 
 
 
34
 
35
+
36
+ <?php
37
+ // List Theme Repeaters
38
+
39
+ if($theme_repeaters){ ?>
40
+ <div class="group no-shadow">
41
+
42
+ <?php
43
+ $options = get_option( 'alm_settings' );
 
 
 
 
 
 
 
 
 
 
 
 
44
 
45
+ if(!isset($options['_alm_theme_repeaters_dir']))
46
+ $options['_alm_theme_repeaters_dir'] = 'alm_templates';
47
+
48
+ // Get template location
49
+ if(is_child_theme()){
50
+ $dir = get_stylesheet_directory() . '/' . $options['_alm_theme_repeaters_dir'];
51
+ }else{
52
+ $dir = get_template_directory() . '/' . $options['_alm_theme_repeaters_dir'];
53
+ }
54
+
55
+ $count = 0;
56
+
57
+ foreach (glob($dir.'/*') as $file) {
58
+ $count++;
59
+ $file = realpath($file);
60
+ $link = substr($file, strlen($dir) + 1);
61
+
62
+ $file_extension = strtolower(substr(basename($file), strrpos(basename($file), '.') + 1));
63
+ $file_directory = get_option('stylesheet') .'/'. strtolower(substr(basename($dir), strrpos(basename($dir), '/')));
64
+
65
+ $id = preg_replace('/\\.[^.\\s]{3,4}$/', '', $link);
66
+
67
+ if($file_extension == 'php'){ // Only display .php files files ?>
68
+
69
+ <div class="row template" id="tr-<?php echo $id; ?>">
70
+ <h3 class="heading"><?php echo basename($file); ?></h3>
71
+ <div class="expand-wrap">
72
+ <div class="wrap repeater-wrap cm-readonly">
73
+ <?php
74
+ $template = fopen ($file, "r"); // Open file
75
+ $tr_contents = '';
76
+ if(filesize ($file) != 0){
77
+ $tr_contents = fread ($template, filesize ($file));
78
+ }
79
+ fclose ($template);
80
+ ?>
81
+ <textarea rows="10" id="template-tr-<?php echo $id; ?>" class="_alm_repeater"><?php echo $tr_contents; ?></textarea>
82
+ <script>
83
+ var editorDefault = CodeMirror.fromTextArea(document.getElementById("template-tr-<?php echo $id; ?>"), {
84
+ mode: "application/x-httpd-php",
85
+ lineNumbers: true,
86
+ lineWrapping: true,
87
+ indentUnit: 0,
88
+ matchBrackets: true,
89
+ readOnly: true,
90
+ viewportMargin: Infinity,
91
+ extraKeys: {"Ctrl-Space": "autocomplete"},
92
+ });
93
+ </script>
94
+ <p class="file-location" title="<?php echo $file; ?>"><?php _e('File Location', 'ajax-load-more'); ?>:<code><?php echo $file_directory; ?>/<?php echo basename($file); ?></code></p>
95
+ </div>
96
  </div>
97
+ </div>
98
+ <?php
99
+ unset($template);
100
+ unset($file);
101
+ }
102
+ }
103
+
104
+ if($count > 1){?>
105
+ <span class="toggle-all">
106
+ <span class="inner-wrap">
107
+ <em class="collapse"><?php _e('Collapse All', 'ajax-load-more'); ?></em>
108
+ <em class="expand"><?php _e('Expand All', 'ajax-load-more'); ?></em>
109
+ </span>
110
  </span>
111
+ <?php
112
+ }
113
+
114
+ if($count == 0){ ?>
115
+ <div style="padding: 20px;">
116
+ <h3><?php _e('Templates Not Found', 'ajax-load-more'); ?></h3>
117
+ <p>
118
+ <?php _e('Oh no - looks like you haven\'t added any Theme Repeater templates - you need to create and upload templates to your theme directory before you can access them in Ajax Load More', 'ajax-load-more'); ?>.
119
+ </p>
120
+ <p style="margin: 20px 0 0;">
121
+ <a href="https://connekthq.com/plugins/ajax-load-more/add-ons/theme-repeaters/" class="button button-primary button-large" target="_blank"><?php _e('Learn More About Theme Repeaters', 'ajax-load-more'); ?></a>
122
+ </p>
123
+ </div>
124
+ <?php }
125
+ ?>
126
+ </div>
127
+
128
+ <?php } else { ?>
129
+
130
+ <!-- Repeaters -->
131
+ <div class="group no-shadow">
132
+
133
+ <?php
134
+ if (has_action('alm_custom_repeaters') || has_action('alm_unlimited_repeaters')){ ?>
135
+ <span class="toggle-all">
136
+ <span class="inner-wrap">
137
+ <em class="collapse"><?php _e('Collapse All', 'ajax-load-more'); ?></em>
138
+ <em class="expand"><?php _e('Expand All', 'ajax-load-more'); ?></em>
139
+ </span>
140
  </span>
141
+ <?php } ?>
142
+
143
+ <!-- Default Template -->
144
+ <div class="row template default-repeater" id="default-template">
145
+
146
+ <?php
147
+ // Check for local repeater template
148
+ $local_template = false;
149
+ $readOnly = 'false';
150
+ $template_dir = 'alm_templates';
151
+ if(is_child_theme()){
152
+ $template_theme_file = get_stylesheet_directory().'/'. $template_dir .'/default.php';
153
+ if(!file_exists($template_theme_file)){
154
+ $template_theme_file = get_template_directory().'/'. $template_dir .'/default.php';
155
+ }
156
+ }
157
+ else{
158
+ $template_theme_file = get_template_directory().'/'. $template_dir .'/default.php';
159
+ }
160
+ // if theme or child theme contains the template, use that file
161
+ if(file_exists($template_theme_file)){
162
+ $local_template = true;
163
+ $readOnly = true;
164
+ }
165
+
166
+ $filename = alm_get_default_repeater(); // Get default repeater template
167
+
168
+ $handle = fopen ($filename, "r"); // Open file
169
+ $contents = '';
170
+ if(filesize ($filename) != 0){
171
+ $contents = fread ($handle, filesize ($filename));
172
+ }
173
+ fclose ($handle);
174
+ ?>
175
+ <h3 class="heading"><?php _e('Default Template', 'ajax-load-more'); ?></h3>
176
+ <div class="expand-wrap">
177
+ <div class="wrap repeater-wrap<?php if($local_template){ echo ' cm-readonly'; } ?>" data-name="default" data-type="default">
178
+ <?php
179
+ if(!$local_template){
180
+ // Add Label
181
+ echo '<label class="template-title" for="template-default">';
182
+ _e('Enter the HTML and PHP code for the default template', 'ajax-load-more');
183
+ echo ':</label>';
184
+
185
+ // Layouts - Template Selection
186
+ do_action('alm_get_layouts');
187
+ }
188
+ ?>
189
+ <textarea rows="10" id="template-default" class="_alm_repeater"><?php echo $contents; ?></textarea>
190
+ <script>
191
+ var editorDefault = CodeMirror.fromTextArea(document.getElementById("template-default"), {
192
+ mode: "application/x-httpd-php",
193
+ lineNumbers: true,
194
+ lineWrapping: true,
195
+ indentUnit: 0,
196
+ matchBrackets: true,
197
+ readOnly: <?php echo $readOnly; ?>,
198
+ viewportMargin: Infinity,
199
+ extraKeys: {"Ctrl-Space": "autocomplete"},
200
+ });
201
+ </script>
202
+
203
+ <?php if(!$local_template){ ?>
204
+
205
+ <input type="submit" value="<?php _e('Save Template', 'ajax-load-more'); ?>" class="button button-primary save-repeater" data-editor-id="template-default">
206
+ <div class="saved-response">&nbsp;</div>
207
+ <?php include( ALM_PATH . 'admin/includes/components/repeater-options.php'); ?>
208
+
209
+ <?php } else {
210
+ $file_directory = get_option('stylesheet') .'/'. strtolower(substr(basename($template_dir), strrpos(basename($template_dir), '/')));
211
+ ?>
212
+
213
+ <p class="warning-callout"><?php _e('It appears you are loading the <a href="https://connekthq.com/plugins/ajax-load-more/docs/repeater-templates/#default-template" target="_blank"><b>default template</b></a> (<em>default.php</em>) from your current theme directory. To modify this template, you must edit the file directly on your server.', 'ajax-load-more'); ?></p>
214
+ <p class="file-location" title="<?php echo $filename; ?>" style="margin-top: 20px;"><?php _e('File Location', 'ajax-load-more'); ?>:<code><?php echo $file_directory; ?>/default.php</code></p>
215
+
216
+ <?php } ?>
217
+
218
+ </div>
 
219
  </div>
220
+ </div>
221
+
222
+ <!-- End Default Template -->
223
+
224
+ <!-- Custom Repeaters -->
225
+ <?php
226
+
227
+ if (!has_action('alm_get_unlimited_repeaters') && !has_action('alm_get_custom_repeaters')){
228
+ // If Custom Repeaters & Theme Repeaters is NOT installed
229
+ echo '<div class="row no-brd">';
230
+ include( ALM_PATH . 'admin/includes/cta/extend.php');
231
+ echo '</div>';
232
+ }
233
+
234
+ if (has_action('alm_custom_repeaters')){ // List custom repeaters v1
235
+ do_action('alm_custom_repeaters');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
236
  }
237
+ if (has_action('alm_unlimited_repeaters')){ // List custom repeaters v2
238
+ do_action('alm_unlimited_repeaters');
239
+ }
240
+ ?>
241
+
242
+ <script>
243
+ jQuery(document).ready(function($) {
244
+ "use strict";
245
+ var _alm_admin = {};
246
+
247
+ /*
248
+ * _alm_admin.saveRepeater
249
+ * Save Custom Repeater Value
250
+ *
251
+ * @since 2.0.0
252
+ */
253
+
254
+ _alm_admin.saveRepeater = function(btn, editorId) {
255
+ var container = btn.parent('.repeater-wrap'),
256
+ el = $('textarea._alm_repeater', container),
257
+ textarea = el.next('.CodeMirror'),
258
+ btn = btn,
259
+ value = '',
260
+ repeater = container.data('name'), // Get templete name
261
+ type = container.data('type'), // Get template type (default/repeater/unlimited)
262
+ alias = ($('input._alm_repeater_alias', container).length) ? $('input._alm_repeater_alias', container).val() : '',
263
+ responseText = $(".saved-response", container);
264
+
265
+ if(type === undefined) // Fix for custom repeaters v1
266
+ type = 'undefined';
267
+
268
+ //Get value from CodeMirror textarea
269
+ var id = editorId.replace('template-', ''); // Editor ID
270
+
271
+ if(id === 'default'){ // Default Template
272
+ value = editorDefault.getValue();
273
+ }else{ // Repeater Templates
274
+ var eid = window['editor_'+id]; // Set editor ID
275
+ value = eid.getValue();
276
+ }
277
+
278
+ // if value is null, then set repeater to non breaking space
279
+ if(value === '' || value === 'undefined'){
280
+ value = '&nbsp;';
281
+ }
282
+
283
+ //If template is not already saving, then proceed
284
+ if (!btn.hasClass('saving')) {
285
+ btn.addClass('saving');
286
+ textarea.addClass('loading');
287
+ responseText.addClass('loading').html('<?php _e('Saving template...', 'ajax-load-more') ?>');
288
+ responseText.animate({'opacity' : 1});
289
+
290
+ $.ajax({
291
+ type: 'POST',
292
+ url: alm_admin_localize.ajax_admin_url,
293
+ data: {
294
+ action: 'alm_save_repeater',
295
+ value: value,
296
+ repeater: repeater,
297
+ type: type,
298
+ alias: alias,
299
+ nonce: alm_admin_localize.alm_admin_nonce,
300
+ },
301
+ success: function(response) {
302
+
303
+ $('textarea#'+editorId).val(value); // Set the target textarea val to 'value'
304
+
305
+ setTimeout(function() {
306
+ responseText.delay(500).html(response).removeClass('loading');
307
+ textarea.removeClass('loading');
308
+ }, 250);
309
+
310
+ setTimeout(function() {
311
+ responseText.animate({'opacity': 0}, function(){
312
+ responseText.html('&nbsp;');
313
+ btn.removeClass('saving');
314
+ });
315
+
316
+ }, 4500);
317
+
318
+ },
319
+ error: function(xhr, status, error) {
320
+ responseText.html('<?php _e('Something went wrong and the data could not be saved.', 'ajax-load-more') ?>').removeClass('loading');
321
+ btn.removeClass('saving');
322
+ textarea.removeClass('loading');
323
+ }
324
+ });
325
+ }
326
+ }
327
+
328
+
329
+ $(document).on('click', 'input.save-repeater', function(){
330
+ var btn = $(this),
331
+ editorId = btn.data('editor-id');
332
+ _alm_admin.saveRepeater(btn, editorId);
333
+ });
334
+
335
+
336
+ /*
337
+ * _alm_admin.updateRepeater
338
+ * Update Repeater Value
339
+ *
340
+ * @since 2.5
341
+ */
342
+
343
+ _alm_admin.updateRepeater = function(btn, editorId) {
344
+ var container = btn.closest('.repeater-wrap'),
345
+ el = $('textarea._alm_repeater', container),
346
+ btn = btn,
347
+ btn_text = btn.html(),
348
+ editor = $('.CodeMirror', container),
349
+ repeater = container.data('name'), // Get templete name
350
+ type = container.data('type'); // Get template type (default/repeater/unlimited)
351
+
352
+ //Get value from CodeMirror textarea
353
+ var editorId = repeater,
354
+ id = editorId.replace('template-', ''); // Editor ID
355
+
356
+ //If template is not already saving, then proceed
357
+ if (!btn.hasClass('updating')) {
358
+ btn.addClass('updating').text("<?php _e('Updating template...', 'ajax-load-more'); ?>");
359
+ editor.addClass('loading');
360
+ $.ajax({
361
+ type: 'POST',
362
+ url: alm_admin_localize.ajax_admin_url,
363
+ data: {
364
+ action: 'alm_update_repeater',
365
+ repeater: repeater,
366
+ type: type,
367
+ nonce: alm_admin_localize.alm_admin_nonce,
368
+ },
369
+ success: function(response) {
370
+ if(id === 'default'){ // Default Template
371
+ editorDefault.setValue(response);
372
+ }else{ // Repeater Templates
373
+ var eid = window['editor_'+id]; // Set editor ID
374
+ eid.setValue(response);
375
+ }
376
+
377
+ // Clear button styles
378
+ setTimeout(function() {
379
+ btn.text("<?php _e('Template Updated', 'ajax-load-more'); ?>").blur();
380
+ setTimeout(function() {
381
+ btn.closest('.alm-drop-btn').trigger('click'); // CLose drop menu
382
+ btn.removeClass('updating').html(btn_text).blur();
383
+ editor.removeClass('loading');
384
+ }, 400);
385
  }, 400);
386
+
387
+ },
388
+ error: function(xhr, status, error) {
389
+ btn.removeClass('updating').html(btn_text).blur();
390
+ editor.removeClass('loading');
391
+ }
392
+ });
393
+ }
394
  }
395
+
396
+ $('.option-update a').click(function(){
397
+ var btn = $(this);
398
+ _alm_admin.updateRepeater(btn);
399
+ });
400
+
401
  });
402
+ </script>
403
+
404
+ </div>
405
+ <!-- End Repeaters -->
406
+
407
+ <?php } ?>
408
+
409
  </div>
410
+
411
+ <aside class="cnkt-sidebar">
412
+
413
+ <div id="cnkt-sticky-wrapper">
414
+ <div id="cnkt-sticky">
415
+
416
+ <?php
417
+ // Add TOC if users has Custom Repeaters
418
+ if (has_action('alm_unlimited_repeaters') || $theme_repeaters){
419
+ ?>
420
+ <div class="table-of-contents repeaters-toc">
421
+ <div class="cta">
422
+ <div class="cta-inner">
423
+ <select class="toc"></select>
424
+ </div>
425
+ </div>
426
+ </div>
427
+ <?php } ?>
428
+
429
+ <div class="cta">
430
+ <h3><?php _e('What\'s a Repeater Template?', 'ajax-load-more'); ?></h3>
431
+ <div class="cta-inner">
432
+ <p><?php _e('A <a href="https://connekthq.com/plugins/ajax-load-more/docs/repeater-templates/" target="_blank">Repeater Template</a> is a snippet of code that will execute over and over within a <a href="http://codex.wordpress.org/The_Loop" target="_blank">WordPress loop</a>', 'ajax-load-more'); ?>.</p>
433
+ </div>
434
+ <div class="major-publishing-actions">
435
+ <a class="button button-primary" href="https://connekthq.com/plugins/ajax-load-more/docs/repeater-templates/" target="_blank"><?php _e('Learn More', 'ajax-load-more'); ?></a>
436
+ </div>
437
+ </div>
438
+
439
+ <?php
440
+ if(!$theme_repeaters){
441
+ include_once( ALM_PATH . 'admin/includes/cta/writeable.php');
442
+ }
443
+ ?>
444
+
445
+ </div>
446
+ </div>
447
+
448
+ </aside>
449
 
450
+ <div class="clear"></div>
451
+ </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
452
 
453
  </div>
454
  </div>
admin/views/settings.php CHANGED
@@ -1,48 +1,49 @@
1
  <div class="alm-settings-feedback"></div>
2
 
3
  <div class="admin ajax-load-more settings" id="alm-settings">
4
- <div class="wrap">
 
5
 
6
- <div class="header-wrap">
7
  <h1><?php echo ALM_TITLE; ?> <span><?php echo ALM_VERSION; ?></span>
8
  <em><?php _e('A powerful plugin to add infinite scroll functionality to your website.', 'ajax-load-more'); ?></em>
9
  </h1>
10
- </div>
11
-
12
- <div class="cnkt-main">
13
-
14
- <?php
15
- $alm_share_notification = get_transient( 'alm_dismiss_sharing');
16
- if(!isset($alm_share_notification) || empty($alm_share_notification)){
17
- // If transient has not been set - display this notice.
18
- ?>
19
- <div class="group share-alm" style="display: none !important;">
20
- <div class="dotted">
21
- <h2 style="padding: 0; margin: 0 0 20px;">
22
- 👋 &nbsp;<?php _e('Thanks for installing Ajax Load More 3.0!', 'ajax-load-more'); ?>
23
- </h2>
24
- <p>Version 3 is a big step forward for Ajax Load More and I really hope you like the changes and new features - be sure to check out the new <a href="admin.php?page=ajax-load-more-extensions">Extensions</a> section for 1-click installs of all currently available extensions for Ajax Load More.</p>
25
- </div>
26
- <p>Please consider helping <a href="https://twitter.com/KaptonKaos" target="_blank">me</a> widen the reach of Ajax Load More by sharing with your networks.</p>
27
-
28
- <ul class="share">
29
- <li class="twitter">
30
- <a target="blank" title="Share on Twitter" href="//twitter.com/home?status=I'm infinite scrolling with Ajax Load More for %23WordPress - https://connekthq.com/plugins/ajax-load-more/" class="share-twitter"><i class="fa fa-twitter"></i> Twitter</a>
31
- </li>
32
- <li class="facebook">
33
- <a target="blank" title="Share on Facebook" href="//facebook.com/share.php?u=https://connekthq.com/plugins/ajax-load-more/" class="share-facebook"><i class="fa fa-facebook"></i> Facebook</a>
34
- </li>
35
- </ul>
36
-
37
- <div class="clear"></div>
38
 
39
- <a href="javascript: void(0);" class="dismiss" id="alm_dismiss_sharing" title="<?php _e('Don\'t show me this again!', 'ajax-load-more');?>">&times;</a>
40
-
41
- </div>
42
- <?php } ?>
43
-
44
-
45
- <div class="group">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  <?php
47
  if(has_action('alm_cache_settings') || has_action('alm_layouts_installed') || has_action('alm_prev_post_settings') || has_action('alm_paging_settings') || has_action('alm_seo_settings') || has_action('alm_theme_repeaters_settings')) {
48
  ?>
@@ -77,22 +78,25 @@
77
  ?>
78
  <?php settings_errors(); ?>
79
  <form action="options.php" method="post" id="alm_OptionsForm">
80
- <?php
81
- settings_fields( 'alm-setting-group' );
82
- do_settings_sections( 'ajax-load-more' );
83
- //get the older values, wont work the first time
84
- $options = get_option( '_alm_settings' ); ?>
85
- <div class="save-in-progress"></div>
86
  </form>
87
-
88
- </div>
89
- </div>
90
- <div class="cnkt-sidebar">
91
- <?php //include_once( ALM_PATH . 'admin/includes/cta/mailinglist.php'); ?>
92
- <?php include_once( ALM_PATH . 'admin/includes/cta/resources.php'); ?>
93
- <?php include_once( ALM_PATH . 'admin/includes/cta/dyk.php'); ?>
94
- <?php include_once( ALM_PATH . 'admin/includes/cta/add-ons.php'); ?>
95
- <?php include_once( ALM_PATH . 'admin/includes/cta/about.php'); ?>
96
- </div>
 
 
 
97
  </div>
98
  </div>
1
  <div class="alm-settings-feedback"></div>
2
 
3
  <div class="admin ajax-load-more settings" id="alm-settings">
4
+
5
+ <div class="wrap main-cnkt-wrap">
6
 
7
+ <header class="header-wrap">
8
  <h1><?php echo ALM_TITLE; ?> <span><?php echo ALM_VERSION; ?></span>
9
  <em><?php _e('A powerful plugin to add infinite scroll functionality to your website.', 'ajax-load-more'); ?></em>
10
  </h1>
11
+ </header>
12
+
13
+ <div class="ajax-load-more-inner-wrapper">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
 
15
+ <div class="cnkt-main">
16
+ <?php
17
+ $alm_share_notification = get_transient( 'alm_dismiss_sharing');
18
+ if(isset($alm_share_notification) || empty($alm_share_notification)){
19
+ // If transient has not been set - display this notice.
20
+ ?>
21
+ <div class="group share-alm" style="display: none !important;">
22
+ <div class="dotted">
23
+ <h2 style="padding: 0; margin: 0 0 20px;">
24
+ 👋 &nbsp;<?php _e('Thanks for installing Ajax Load More 3.0!', 'ajax-load-more'); ?>
25
+ </h2>
26
+ <p>Version 3 is a big step forward for Ajax Load More and I really hope you like the changes and new features - be sure to check out the new <a href="admin.php?page=ajax-load-more-extensions">Extensions</a> section for 1-click installs of all currently available extensions for Ajax Load More.</p>
27
+ </div>
28
+ <p>Please consider helping <a href="https://twitter.com/KaptonKaos" target="_blank">me</a> widen the reach of Ajax Load More by sharing with your networks.</p>
29
+
30
+ <ul class="share">
31
+ <li class="twitter">
32
+ <a target="blank" title="Share on Twitter" href="//twitter.com/home?status=I'm infinite scrolling with Ajax Load More for %23WordPress - https://connekthq.com/plugins/ajax-load-more/" class="share-twitter"><i class="fa fa-twitter"></i> Twitter</a>
33
+ </li>
34
+ <li class="facebook">
35
+ <a target="blank" title="Share on Facebook" href="//facebook.com/share.php?u=https://connekthq.com/plugins/ajax-load-more/" class="share-facebook"><i class="fa fa-facebook"></i> Facebook</a>
36
+ </li>
37
+ </ul>
38
+
39
+ <div class="clear"></div>
40
+
41
+ <a href="javascript: void(0);" class="dismiss" id="alm_dismiss_sharing" title="<?php _e('Don\'t show me this again!', 'ajax-load-more');?>">&times;</a>
42
+
43
+ </div>
44
+ <?php } ?>
45
+
46
+
47
  <?php
48
  if(has_action('alm_cache_settings') || has_action('alm_layouts_installed') || has_action('alm_prev_post_settings') || has_action('alm_paging_settings') || has_action('alm_seo_settings') || has_action('alm_theme_repeaters_settings')) {
49
  ?>
78
  ?>
79
  <?php settings_errors(); ?>
80
  <form action="options.php" method="post" id="alm_OptionsForm">
81
+ <?php
82
+ settings_fields( 'alm-setting-group' );
83
+ do_settings_sections( 'ajax-load-more' );
84
+ //get the older values, wont work the first time
85
+ $options = get_option( '_alm_settings' ); ?>
86
+ <div class="save-in-progress"></div>
87
  </form>
88
+
89
+ </div>
90
+ <aside class="cnkt-sidebar">
91
+ <?php //include_once( ALM_PATH . 'admin/includes/cta/mailinglist.php'); ?>
92
+ <?php include_once( ALM_PATH . 'admin/includes/cta/sharing.php'); ?>
93
+ <?php include_once( ALM_PATH . 'admin/includes/cta/resources.php'); ?>
94
+ <?php include_once( ALM_PATH . 'admin/includes/cta/dyk.php'); ?>
95
+ <?php include_once( ALM_PATH . 'admin/includes/cta/about.php'); ?>
96
+ </aside>
97
+
98
+ <div class="clear"></div>
99
+ </div>
100
+
101
  </div>
102
  </div>
admin/views/shortcode-builder.php CHANGED
@@ -1,36 +1,49 @@
1
  <div class="admin ajax-load-more shortcode-builder" id="alm-builder">
2
- <div class="wrap">
3
- <div class="header-wrap">
 
4
  <h1>
5
  <?php echo ALM_TITLE; ?>: <strong><?php _e('Shortcode Builder', 'ajax-load-more'); ?></strong>
6
  <em><?php _e('Create your own Ajax Load More <a href="http://en.support.wordpress.com/shortcodes/" target="_blank">shortcode</a> by adjusting the values below', 'ajax-load-more'); ?></em>
7
  </h1>
8
- </div>
9
- <div class="cnkt-main">
10
- <form id="alm-shortcode-builder-form">
11
- <?php include_once( ALM_PATH . 'admin/shortcode-builder/shortcode-builder.php'); ?>
12
- </form>
13
- <p class="back2top"><a href="#wpcontent" class="group"><i class="fa fa-angle-up"></i> <?php _e('Back to Top', 'ajax-load-more'); ?></a></p>
14
- </div>
15
- <div class="cnkt-sidebar">
16
- <div class="table-of-contents">
17
- <div class="cta">
18
- <div class="cta-inner">
19
- <select class="toc"></select>
20
- </div>
21
- </div>
22
- <div class="cta">
23
- <h3><?php _e('Shortcode Output', 'ajax-load-more'); ?></h3>
24
- <div class="cta-inner">
25
- <p><?php _e('Place the following shortcode into the content editor or widget area of your theme.', 'ajax-load-more'); ?></p>
26
- <div class="output-wrap">
27
- <div id="shortcode_output"></div>
28
- <span class="copy"><?php _e('Copy', 'ajax-load-more'); ?></span>
29
- </div>
30
- <p class="small reset-shortcode-builder"><a href="javascript:void(0);"><i class="fa fa-refresh"></i> <?php _e('Reset Shortcode Builder', 'ajax-load-more'); ?></a></p>
31
- </div>
32
- </div>
33
- </div>
34
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
35
  </div>
36
  </div>
1
  <div class="admin ajax-load-more shortcode-builder" id="alm-builder">
2
+ <div class="wrap main-cnkt-wrap">
3
+
4
+ <header class="header-wrap">
5
  <h1>
6
  <?php echo ALM_TITLE; ?>: <strong><?php _e('Shortcode Builder', 'ajax-load-more'); ?></strong>
7
  <em><?php _e('Create your own Ajax Load More <a href="http://en.support.wordpress.com/shortcodes/" target="_blank">shortcode</a> by adjusting the values below', 'ajax-load-more'); ?></em>
8
  </h1>
9
+ </header>
10
+
11
+ <div class="ajax-load-more-inner-wrapper">
12
+
13
+ <div class="cnkt-main">
14
+ <form id="alm-shortcode-builder-form">
15
+ <?php include_once( ALM_PATH . 'admin/shortcode-builder/shortcode-builder.php'); ?>
16
+ </form>
17
+ <p class="back2top"><a href="#wpcontent" class="group no-shadow"><i class="fa fa-angle-up"></i> <?php _e('Back to Top', 'ajax-load-more'); ?></a></p>
18
+ </div>
19
+
20
+ <aside class="cnkt-sidebar">
21
+ <div id="cnkt-sticky-wrapper" class="table-of-contents">
22
+ <div id="cnkt-sticky">
23
+ <div class="cta">
24
+ <div class="cta-inner">
25
+ <select class="toc"></select>
26
+ </div>
27
+ </div>
28
+ <div class="cta">
29
+ <h3><?php _e('Shortcode Output', 'ajax-load-more'); ?></h3>
30
+ <div class="cta-inner">
31
+ <p><?php _e('Place the following shortcode into the content editor or widget area of your theme.', 'ajax-load-more'); ?></p>
32
+ <div class="output-wrap">
33
+ <div id="shortcode_output"></div>
34
+ </div>
35
+ <p class="small reset-shortcode-builder"><a href="javascript:void(0);"><i class="fa fa-refresh"></i> <?php _e('Reset', 'ajax-load-more'); ?></a></p>
36
+ </div>
37
+ <div class="major-publishing-actions">
38
+ <a class="button button-primary copy"><?php _e('Copy Shortcode', 'ajax-load-more'); ?></a>
39
+ </div>
40
+ </div>
41
+ </div>
42
+ </div>
43
+ </aside>
44
+
45
+ <div class="clear"></div>
46
+ </div>
47
+
48
  </div>
49
  </div>
ajax-load-more.php CHANGED
@@ -7,16 +7,15 @@ Text Domain: ajax-load-more
7
  Author: Darren Cooney
8
  Twitter: @KaptonKaos
9
  Author URI: https://connekthq.com
10
- Version: 3.2.1
11
  License: GPL
12
  Copyright: Darren Cooney & Connekt Media
13
-
14
  */
15
 
16
 
17
 
18
- define('ALM_VERSION', '3.2.1');
19
- define('ALM_RELEASE', 'October 5, 2017');
20
  define('ALM_STORE_URL', 'https://connekthq.com');
21
 
22
 
@@ -161,6 +160,7 @@ if( !class_exists('AjaxLoadMore') ):
161
  if (!defined('ALM_RESTAPI_ITEM_NAME')) define('ALM_RESTAPI_ITEM_NAME', '17105');
162
  if (!defined('ALM_SEO_ITEM_NAME')) define('ALM_SEO_ITEM_NAME', '3482');
163
  if (!defined('ALM_THEME_REPEATERS_ITEM_NAME')) define('ALM_THEME_REPEATERS_ITEM_NAME', '8860');
 
164
 
165
  }
166
 
@@ -173,15 +173,18 @@ if( !class_exists('AjaxLoadMore') ):
173
  */
174
 
175
  public function alm_includes(){
176
- include_once( ALM_PATH . 'core/functions.php'); // Functions
177
- include_once( ALM_PATH . 'core/classes/class.alm-shortcode.php'); // Shortcode
178
- include_once( ALM_PATH . 'core/classes/class.alm-enqueue.php'); // Enqueue
179
 
180
  if( is_admin() ){
181
  include_once('admin/editor/editor.php');
182
  include_once('admin/admin.php');
183
  include_once('admin/admin-functions.php');
184
  include_once('vendor/connekt-plugin-installer/class-connekt-plugin-installer.php');
 
 
 
185
  }
186
  }
187
 
@@ -214,10 +217,8 @@ if( !class_exists('AjaxLoadMore') ):
214
  '<a href="admin.php?page=ajax-load-more-shortcode-builder">Shortcode Builder</a>',
215
  '<a href="admin.php?page=ajax-load-more-add-ons">Add-ons</a>',
216
  );
217
-
218
  $links = array_merge( $links, $new_links );
219
  }
220
-
221
  return $links;
222
  }
223
 
@@ -317,22 +318,10 @@ if( !class_exists('AjaxLoadMore') ):
317
 
318
  public function alm_query_posts() {
319
 
320
- $nonce = $_GET['nonce'];
321
  $options = get_option( 'alm_settings' );
322
 
323
- // Nonce removed in ALM 3.2.1
324
- /*
325
- if(!is_user_logged_in()){ // Skip nonce verification if user is logged in
326
- $options = get_option( 'alm_settings' );
327
- // check alm_settings for _alm_nonce_security
328
- if(isset($options['_alm_nonce_security']) & $options['_alm_nonce_security'] == '1'){
329
- if (! wp_verify_nonce( $nonce, 'ajax_load_more_nonce' )) // Check our nonce, if they don't match then bounce!
330
- die('Error, could not verify WP nonce.');
331
- }
332
- }
333
- */
334
-
335
  $id = (isset($_GET['id'])) ? $_GET['id'] : '';
 
336
  $slug = (isset($_GET['slug'])) ? $_GET['slug'] : '';
337
  $canonical_url = (isset($_GET['canonical_url'])) ? $_GET['canonical_url'] : $_SERVER['HTTP_REFERER'];
338
 
@@ -667,12 +656,8 @@ if( !class_exists('AjaxLoadMore') ):
667
  }
668
 
669
 
670
- // Set current page number for determining item number
671
- if($page == 0){
672
- $alm_page_count = 1;
673
- }else{
674
- $alm_page_count = $page + 1;
675
- }
676
 
677
 
678
 
@@ -696,6 +681,7 @@ if( !class_exists('AjaxLoadMore') ):
696
  * ALM Core Filter Hook
697
  *
698
  * @return $args;
 
699
  */
700
  $args = apply_filters('alm_modify_query_args', $args, $slug); // ALM Core Filter Hook
701
 
@@ -708,7 +694,7 @@ if( !class_exists('AjaxLoadMore') ):
708
  *
709
  * @return $args;
710
  */
711
- $args = apply_filters('alm_query_args_'.$id, $args); // ALM Core Filter Hook
712
 
713
 
714
 
@@ -773,7 +759,7 @@ if( !class_exists('AjaxLoadMore') ):
773
  while ($alm_query->have_posts()): $alm_query->the_post();
774
 
775
  $alm_loop_count++;
776
- $alm_current++;
777
  $alm_page = $alm_page_count; // Get page number
778
  $alm_item = ($alm_page_count * $posts_per_page) - $posts_per_page + $alm_loop_count; // Get current item
779
 
7
  Author: Darren Cooney
8
  Twitter: @KaptonKaos
9
  Author URI: https://connekthq.com
10
+ Version: 3.3.0
11
  License: GPL
12
  Copyright: Darren Cooney & Connekt Media
 
13
  */
14
 
15
 
16
 
17
+ define('ALM_VERSION', '3.3.0');
18
+ define('ALM_RELEASE', 'November 20, 2017');
19
  define('ALM_STORE_URL', 'https://connekthq.com');
20
 
21
 
160
  if (!defined('ALM_RESTAPI_ITEM_NAME')) define('ALM_RESTAPI_ITEM_NAME', '17105');
161
  if (!defined('ALM_SEO_ITEM_NAME')) define('ALM_SEO_ITEM_NAME', '3482');
162
  if (!defined('ALM_THEME_REPEATERS_ITEM_NAME')) define('ALM_THEME_REPEATERS_ITEM_NAME', '8860');
163
+ if (!defined('ALM_USERS_ITEM_NAME')) define('ALM_USERS_ITEM_NAME', '32311');
164
 
165
  }
166
 
173
  */
174
 
175
  public function alm_includes(){
176
+ include_once( ALM_PATH . 'core/functions.php'); // Core Functions
177
+ include_once( ALM_PATH . 'core/classes/class.alm-shortcode.php'); // Shortcode Class
178
+ include_once( ALM_PATH . 'core/classes/class.alm-enqueue.php'); // Enqueue Class
179
 
180
  if( is_admin() ){
181
  include_once('admin/editor/editor.php');
182
  include_once('admin/admin.php');
183
  include_once('admin/admin-functions.php');
184
  include_once('vendor/connekt-plugin-installer/class-connekt-plugin-installer.php');
185
+ if( !class_exists( 'EDD_SL_Plugin_Updater' ) ) {
186
+ include( dirname( __FILE__ ) . '/vendor/EDD_SL_Plugin_Updater.php' );
187
+ }
188
  }
189
  }
190
 
217
  '<a href="admin.php?page=ajax-load-more-shortcode-builder">Shortcode Builder</a>',
218
  '<a href="admin.php?page=ajax-load-more-add-ons">Add-ons</a>',
219
  );
 
220
  $links = array_merge( $links, $new_links );
221
  }
 
222
  return $links;
223
  }
224
 
318
 
319
  public function alm_query_posts() {
320
 
 
321
  $options = get_option( 'alm_settings' );
322
 
 
 
 
 
 
 
 
 
 
 
 
 
323
  $id = (isset($_GET['id'])) ? $_GET['id'] : '';
324
+ $post_id = (isset($_GET['post_id'])) ? $_GET['post_id'] : '';
325
  $slug = (isset($_GET['slug'])) ? $_GET['slug'] : '';
326
  $canonical_url = (isset($_GET['canonical_url'])) ? $_GET['canonical_url'] : $_SERVER['HTTP_REFERER'];
327
 
656
  }
657
 
658
 
659
+ // Get current page number for determining item number
660
+ $alm_page_count = ($page == 0) ? 1 : $page + 1;
 
 
 
 
661
 
662
 
663
 
681
  * ALM Core Filter Hook
682
  *
683
  * @return $args;
684
+ * Deprecated 2.10
685
  */
686
  $args = apply_filters('alm_modify_query_args', $args, $slug); // ALM Core Filter Hook
687
 
694
  *
695
  * @return $args;
696
  */
697
+ $args = apply_filters('alm_query_args_'.$id, $args, $post_id); // ALM Core Filter Hook
698
 
699
 
700
 
759
  while ($alm_query->have_posts()): $alm_query->the_post();
760
 
761
  $alm_loop_count++;
762
+ $alm_current++; // Current item in loop
763
  $alm_page = $alm_page_count; // Get page number
764
  $alm_item = ($alm_page_count * $posts_per_page) - $posts_per_page + $alm_loop_count; // Get current item
765
 
core/classes/class.alm-shortcode.php CHANGED
@@ -57,6 +57,13 @@ if( !class_exists('ALM_SHORTCODE') ):
57
  'restapi_endpoint' => 'posts',
58
  'restapi_template_id' => '',
59
  'restapi_debug' => false,
 
 
 
 
 
 
 
60
  'comments' => false,
61
  'comments_per_page' => '5',
62
  'comments_type' => 'comment',
@@ -133,7 +140,7 @@ if( !class_exists('ALM_SHORTCODE') ):
133
  'transition_container_classes' => '',
134
  'masonry_selector' => '',
135
  'masonry_animation' => '',
136
- 'masonry_horizontalorder' => 'true',
137
  'progress_bar' => 'false',
138
  'progress_bar_color' => 'ed7070',
139
  'images_loaded' => 'false',
@@ -234,6 +241,9 @@ if( !class_exists('ALM_SHORTCODE') ):
234
  $posts_per_page = 1;
235
  $container_element = 'div';
236
  }
 
 
 
237
 
238
  // Comments
239
  if($comments === 'true'){
@@ -268,7 +278,7 @@ if( !class_exists('ALM_SHORTCODE') ):
268
  // Get btn classnames
269
  $button_classname = '';
270
  if(isset($options['_alm_btn_classname'])){
271
- $button_classname = $options['_alm_btn_classname'];
272
  }
273
 
274
  // Language support
@@ -378,7 +388,7 @@ if( !class_exists('ALM_SHORTCODE') ):
378
  $preload_offset = $offset;
379
 
380
  // If SEO, set $preloaded_amount to $posts_per_page
381
- if(has_action('alm_seo_installed') && $seo === 'true'){
382
  $preloaded_amount = $posts_per_page;
383
  }
384
 
@@ -401,15 +411,22 @@ if( !class_exists('ALM_SHORTCODE') ):
401
  if($cta_pos != 'after'){
402
  $cta_pos = 'before';
403
  }
404
- }
405
-
406
- $preloaded_arr = array( // Create preload data array
 
 
407
  'post_id' => $post_id,
408
  'acf' => $acf,
409
  'acf_post_id' => $acf_post_id,
410
  'acf_field_type' => $acf_field_type,
411
  'acf_field_name' => $acf_field_name,
412
- 'comments' => $comments,
 
 
 
 
 
413
  'comments_per_page' => $comments_per_page,
414
  'comments_type' => $comments_type,
415
  'comments_style' => $comments_style,
@@ -476,6 +493,37 @@ if( !class_exists('ALM_SHORTCODE') ):
476
  }
477
 
478
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
479
 
480
  elseif($acf && ($acf_field_type !== 'relationship')){ // Advanced Custom Fields
481
 
@@ -525,6 +573,7 @@ if( !class_exists('ALM_SHORTCODE') ):
525
  * ALM Core Filter Hook
526
  *
527
  * @return $args;
 
528
  */
529
  $args = apply_filters('alm_modify_query_args', $args, $slug);
530
 
@@ -537,7 +586,7 @@ if( !class_exists('ALM_SHORTCODE') ):
537
  *
538
  * @return $args;
539
  */
540
- $args = apply_filters('alm_query_args_'.$id, $args);
541
 
542
 
543
  $alm_preload_query = new WP_Query($args);
@@ -546,15 +595,14 @@ if( !class_exists('ALM_SHORTCODE') ):
546
  $noscript = '';
547
 
548
  if ($alm_preload_query->have_posts()) :
549
- $alm_loop_count = 0; // Count var
550
  $alm_page = 0; // Set page to 0
551
  $alm_found_posts = $alm_total_posts;
552
  $alm_current = 0;
553
  while ($alm_preload_query->have_posts()) : $alm_preload_query->the_post();
554
 
555
- $alm_loop_count++;
556
  $alm_current++;
557
- $alm_item = $alm_loop_count; // Get current item in loop
558
 
559
  // Call to Action [Before]
560
  if($cta && has_action('alm_cta_inc') && $cta_pos == 'before'){
@@ -755,6 +803,25 @@ if( !class_exists('ALM_SHORTCODE') ):
755
  );
756
  $ajaxloadmore .= $nextpage_return;
757
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
758
 
759
 
760
  $ajaxloadmore .= ' data-repeater="'.$repeater.'"';
@@ -804,7 +871,6 @@ if( !class_exists('ALM_SHORTCODE') ):
804
  if(!empty($button_loading_label)){
805
  $ajaxloadmore .= ' data-button-loading-label="'.$button_loading_label.'"';
806
  }
807
- $ajaxloadmore .= ' data-button-class="'.$button_classname.'"';
808
  $ajaxloadmore .= ' data-destroy-after="'.$destroy_after.'"';
809
  $ajaxloadmore .= ' data-transition="'.$transition.'"';
810
  if($transition_speed !== '250'){
@@ -895,6 +961,28 @@ if( !class_exists('ALM_SHORTCODE') ):
895
  * @return html;
896
  */
897
  $ajaxloadmore .= apply_filters('alm_before_button', '');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
898
 
899
 
900
  // Close #ajax-load-more
57
  'restapi_endpoint' => 'posts',
58
  'restapi_template_id' => '',
59
  'restapi_debug' => false,
60
+ 'users' => false,
61
+ 'users_role' => '',
62
+ 'users_include' => '',
63
+ 'users_exclude' => '',
64
+ 'users_per_page' => '5',
65
+ 'users_order' => 'ASC',
66
+ 'users_orderby' => 'login',
67
  'comments' => false,
68
  'comments_per_page' => '5',
69
  'comments_type' => 'comment',
140
  'transition_container_classes' => '',
141
  'masonry_selector' => '',
142
  'masonry_animation' => '',
143
+ 'masonry_horizontalorder' => '',
144
  'progress_bar' => 'false',
145
  'progress_bar_color' => 'ed7070',
146
  'images_loaded' => 'false',
241
  $posts_per_page = 1;
242
  $container_element = 'div';
243
  }
244
+
245
+ // Users
246
+ $users = ($users === 'true') ? true : false;
247
 
248
  // Comments
249
  if($comments === 'true'){
278
  // Get btn classnames
279
  $button_classname = '';
280
  if(isset($options['_alm_btn_classname'])){
281
+ $button_classname = ' '.$options['_alm_btn_classname'];
282
  }
283
 
284
  // Language support
388
  $preload_offset = $offset;
389
 
390
  // If SEO, set $preloaded_amount to $posts_per_page
391
+ if(has_action('alm_seo_installed') && $seo === 'true' && !$users){
392
  $preloaded_amount = $posts_per_page;
393
  }
394
 
411
  if($cta_pos != 'after'){
412
  $cta_pos = 'before';
413
  }
414
+ }
415
+
416
+
417
+ // Create preloaded data array
418
+ $preloaded_arr = array(
419
  'post_id' => $post_id,
420
  'acf' => $acf,
421
  'acf_post_id' => $acf_post_id,
422
  'acf_field_type' => $acf_field_type,
423
  'acf_field_name' => $acf_field_name,
424
+ 'users' => $users,
425
+ 'users_include' => $users_include,
426
+ 'users_exclude' => $users_exclude,
427
+ 'users_per_page' => $users_per_page,
428
+ 'users_order' => $users_order,
429
+ 'users_orderby' => $users_orderby,
430
  'comments_per_page' => $comments_per_page,
431
  'comments_type' => $comments_type,
432
  'comments_style' => $comments_style,
493
  }
494
 
495
  }
496
+
497
+ elseif($users){ // Users
498
+ if(has_action('alm_users_preloaded') && $users){
499
+
500
+ // Encrypt User Role
501
+ if(!empty($users_role) && function_exists('alm_role_encrypt')){
502
+ $preloaded_arr['users_role'] = alm_role_encrypt($users_role);
503
+ }
504
+
505
+
506
+
507
+ /*
508
+ * alm_users_preloaded
509
+ *
510
+ * Preloaded Users Filter
511
+ *
512
+ * @return $preloaded_users;
513
+ */
514
+ $preloaded_users = apply_filters('alm_users_preloaded', $preloaded_arr, $preloaded_amount, $repeater, $theme_repeater); // located in Users add-on
515
+ $preloaded_output .= '<'.$container_element.' class="alm-listing alm-preloaded alm-users-preloaded'. $classname . $css_classes .'">';
516
+ if($seo === "true"){
517
+ $preloaded_output .= '<div class="alm-reveal alm-seo'. $transition_container_classes .'" data-page="1" data-url="'.$canonicalURL.'">';
518
+ }
519
+ $preloaded_output .= $preloaded_users;
520
+ if($seo === "true"){
521
+ $preloaded_output .= '</div>';
522
+ }
523
+ $preloaded_output .= '</'.$container_element.'>';
524
+
525
+ }
526
+ }
527
 
528
  elseif($acf && ($acf_field_type !== 'relationship')){ // Advanced Custom Fields
529
 
573
  * ALM Core Filter Hook
574
  *
575
  * @return $args;
576
+ * Deprecated 2.10
577
  */
578
  $args = apply_filters('alm_modify_query_args', $args, $slug);
579
 
586
  *
587
  * @return $args;
588
  */
589
+ $args = apply_filters('alm_query_args_'.$id, $args, $post_id);
590
 
591
 
592
  $alm_preload_query = new WP_Query($args);
595
  $noscript = '';
596
 
597
  if ($alm_preload_query->have_posts()) :
598
+ $alm_item = 0; // Count var
599
  $alm_page = 0; // Set page to 0
600
  $alm_found_posts = $alm_total_posts;
601
  $alm_current = 0;
602
  while ($alm_preload_query->have_posts()) : $alm_preload_query->the_post();
603
 
604
+ $alm_item++;
605
  $alm_current++;
 
606
 
607
  // Call to Action [Before]
608
  if($cta && has_action('alm_cta_inc') && $cta_pos == 'before'){
803
  );
804
  $ajaxloadmore .= $nextpage_return;
805
  }
806
+
807
+
808
+ // Users Add-on
809
+ if(has_action('alm_users_installed') && $users){
810
+
811
+ $posts_per_page = $users_per_page; // Update $posts_per_page var to be $users_per_page
812
+
813
+ $users_return = apply_filters(
814
+ 'alm_users_shortcode',
815
+ $users_role,
816
+ $users_include,
817
+ $users_exclude,
818
+ $posts_per_page,
819
+ $users_order,
820
+ $users_orderby,
821
+ $options
822
+ );
823
+ $ajaxloadmore .= $users_return;
824
+ }
825
 
826
 
827
  $ajaxloadmore .= ' data-repeater="'.$repeater.'"';
871
  if(!empty($button_loading_label)){
872
  $ajaxloadmore .= ' data-button-loading-label="'.$button_loading_label.'"';
873
  }
 
874
  $ajaxloadmore .= ' data-destroy-after="'.$destroy_after.'"';
875
  $ajaxloadmore .= ' data-transition="'.$transition.'"';
876
  if($transition_speed !== '250'){
961
  * @return html;
962
  */
963
  $ajaxloadmore .= apply_filters('alm_before_button', '');
964
+
965
+
966
+
967
+ // Create Load More button
968
+ $ajaxloadmore .= '<div class="alm-btn-wrap">';
969
+
970
+ if($paging !== 'true'){
971
+
972
+ $btn_element = 'button';
973
+ $btn_href = '';
974
+ if($seo === 'true'){
975
+ $btn_element = 'a'; // Convert to link for SEO
976
+ $btn_href = 'href="'.$canonicalURL.'"';
977
+ }
978
+
979
+
980
+ $ajaxloadmore .= '<'. $btn_element .' class="alm-load-more-btn more'. $button_classname .'"'. $btn_href .'>'. $button_label .'</'. $btn_element .'>';
981
+
982
+ }
983
+
984
+ $ajaxloadmore .= '</div>';
985
+
986
 
987
 
988
  // Close #ajax-load-more
core/dist/css/ajax-load-more.css CHANGED
@@ -9,7 +9,7 @@
9
  * Author: Darren Cooney
10
  * Twitter: @KaptonKaos
11
  */
12
- button.alm-load-more-btn {
13
  font-size: 15px;
14
  font-weight: 600;
15
  width: auto;
@@ -39,29 +39,29 @@ button.alm-load-more-btn {
39
  /* Loaded / Done */
40
  /* Loading Icon */
41
  /* Loading :before */ }
42
- button.alm-load-more-btn:hover {
43
  background-color: #e06464;
44
  color: #fff;
45
  text-decoration: none; }
46
- button.alm-load-more-btn:active {
47
  -webkit-box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.1);
48
  box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.1);
49
  text-decoration: none; }
50
- button.alm-load-more-btn:focus, button.alm-load-more-btn:active {
51
  outline: none; }
52
- button.alm-load-more-btn.loading {
53
  padding-left: 44px; }
54
- button.alm-load-more-btn.done {
55
  cursor: default;
56
  opacity: 0.2;
57
  background-color: #ed7070;
58
  outline: none !important;
59
  -webkit-box-shadow: none !important;
60
  box-shadow: none !important; }
61
- button.alm-load-more-btn:before, button.alm-load-more-btn.done:before {
62
  background: none;
63
  width: 0; }
64
- button.alm-load-more-btn.loading:before {
65
  background: #fff url("../../../core/img/ajax-loader.gif") no-repeat center center;
66
  width: 30px;
67
  height: 30px;
@@ -88,48 +88,48 @@ button.alm-load-more-btn {
88
  padding: 10px 0 25px; }
89
 
90
  /* Blue */
91
- .ajax-load-more-wrap.blue button.alm-load-more-btn {
92
  background-color: #0081bf; }
93
- .ajax-load-more-wrap.blue button.alm-load-more-btn:hover, .ajax-load-more-wrap.blue button.alm-load-more-btn.done {
94
  background-color: #0073aa; }
95
 
96
  /* green */
97
- .ajax-load-more-wrap.green button.alm-load-more-btn {
98
  background-color: #6fca68; }
99
- .ajax-load-more-wrap.green button.alm-load-more-btn:hover, .ajax-load-more-wrap.green button.alm-load-more-btn.done {
100
  background-color: #64b95e; }
101
 
102
  /* red */
103
- .ajax-load-more-wrap.red button.alm-load-more-btn {
104
  background-color: #ca4b4b; }
105
- .ajax-load-more-wrap.red button.alm-load-more-btn:hover, .ajax-load-more-wrap.red button.alm-load-more-btn.done {
106
  background-color: #b13b3b; }
107
 
108
  /* purple */
109
- .ajax-load-more-wrap.purple button.alm-load-more-btn {
110
  background-color: #a86bb9; }
111
- .ajax-load-more-wrap.purple button.alm-load-more-btn:hover, .ajax-load-more-wrap.purple button.alm-load-more-btn.done {
112
  background-color: #9963a8; }
113
 
114
  /* grey */
115
- .ajax-load-more-wrap.grey button.alm-load-more-btn {
116
  background-color: #888; }
117
- .ajax-load-more-wrap.grey button.alm-load-more-btn:hover, .ajax-load-more-wrap.grey button.alm-load-more-btn.done {
118
  background-color: #777; }
119
 
120
  /* white */
121
- .ajax-load-more-wrap.white button.alm-load-more-btn {
122
  background-color: #fff;
123
  color: #666;
124
  border: 1px solid #efefef; }
125
- .ajax-load-more-wrap.white button.alm-load-more-btn:hover, .ajax-load-more-wrap.white button.alm-load-more-btn.done {
126
  background-color: #efefef;
127
  color: #333; }
128
- .ajax-load-more-wrap.white button.alm-load-more-btn.done {
129
  border-color: #fff; }
130
 
131
  /* Infinite */
132
- .ajax-load-more-wrap.infinite button.alm-load-more-btn {
133
  width: 100%;
134
  background-color: transparent !important;
135
  background-position: center center;
@@ -145,29 +145,29 @@ button.alm-load-more-btn {
145
  text-indent: -9999px;
146
  cursor: default !important;
147
  outline: none !important; }
148
- .ajax-load-more-wrap.infinite button.alm-load-more-btn:before {
149
  display: none !important; }
150
- .ajax-load-more-wrap.infinite button.alm-load-more-btn:active {
151
  -webkit-box-shadow: none;
152
  box-shadow: none; }
153
- .ajax-load-more-wrap.infinite button.alm-load-more-btn.done {
154
  opacity: 0; }
155
- .ajax-load-more-wrap.infinite button.alm-load-more-btn.loading {
156
  opacity: 1; }
157
 
158
- .ajax-load-more-wrap.infinite.skype button.alm-load-more-btn {
159
  background-image: url("../../../core/img/spinner-skype.gif"); }
160
 
161
- .ajax-load-more-wrap.infinite.ring button.alm-load-more-btn {
162
  background-image: url("../../../core/img/spinner-ring.gif"); }
163
 
164
- .ajax-load-more-wrap.infinite.fading-blocks button.alm-load-more-btn {
165
  background-image: url("../../../core/img/loader-fading-blocks.gif"); }
166
 
167
- .ajax-load-more-wrap.infinite.fading-circles button.alm-load-more-btn {
168
  background-image: url("../../../core/img/loader-fading-circles.gif"); }
169
 
170
- .ajax-load-more-wrap.infinite.chasing-arrows button.alm-load-more-btn {
171
  background-image: url("../../../core/img/spinner-chasing-arrows.gif"); }
172
 
173
  /*
9
  * Author: Darren Cooney
10
  * Twitter: @KaptonKaos
11
  */
12
+ .alm-btn-wrap .alm-load-more-btn {
13
  font-size: 15px;
14
  font-weight: 600;
15
  width: auto;
39
  /* Loaded / Done */
40
  /* Loading Icon */
41
  /* Loading :before */ }
42
+ .alm-btn-wrap .alm-load-more-btn:hover {
43
  background-color: #e06464;
44
  color: #fff;
45
  text-decoration: none; }
46
+ .alm-btn-wrap .alm-load-more-btn:active {
47
  -webkit-box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.1);
48
  box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.1);
49
  text-decoration: none; }
50
+ .alm-btn-wrap .alm-load-more-btn:focus, .alm-btn-wrap .alm-load-more-btn:active {
51
  outline: none; }
52
+ .alm-btn-wrap .alm-load-more-btn.loading {
53
  padding-left: 44px; }
54
+ .alm-btn-wrap .alm-load-more-btn.done {
55
  cursor: default;
56
  opacity: 0.2;
57
  background-color: #ed7070;
58
  outline: none !important;
59
  -webkit-box-shadow: none !important;
60
  box-shadow: none !important; }
61
+ .alm-btn-wrap .alm-load-more-btn:before, .alm-btn-wrap .alm-load-more-btn.done:before {
62
  background: none;
63
  width: 0; }
64
+ .alm-btn-wrap .alm-load-more-btn.loading:before {
65
  background: #fff url("../../../core/img/ajax-loader.gif") no-repeat center center;
66
  width: 30px;
67
  height: 30px;
88
  padding: 10px 0 25px; }
89
 
90
  /* Blue */
91
+ .ajax-load-more-wrap.blue .alm-load-more-btn {
92
  background-color: #0081bf; }
93
+ .ajax-load-more-wrap.blue .alm-load-more-btn:hover, .ajax-load-more-wrap.blue .alm-load-more-btn.done {
94
  background-color: #0073aa; }
95
 
96
  /* green */
97
+ .ajax-load-more-wrap.green .alm-load-more-btn {
98
  background-color: #6fca68; }
99
+ .ajax-load-more-wrap.green .alm-load-more-btn:hover, .ajax-load-more-wrap.green .alm-load-more-btn.done {
100
  background-color: #64b95e; }
101
 
102
  /* red */
103
+ .ajax-load-more-wrap.red .alm-load-more-btn {
104
  background-color: #ca4b4b; }
105
+ .ajax-load-more-wrap.red .alm-load-more-btn:hover, .ajax-load-more-wrap.red .alm-load-more-btn.done {
106
  background-color: #b13b3b; }
107
 
108
  /* purple */
109
+ .ajax-load-more-wrap.purple .alm-load-more-btn {
110
  background-color: #a86bb9; }
111
+ .ajax-load-more-wrap.purple .alm-load-more-btn:hover, .ajax-load-more-wrap.purple .alm-load-more-btn.done {
112
  background-color: #9963a8; }
113
 
114
  /* grey */
115
+ .ajax-load-more-wrap.grey .alm-load-more-btn {
116
  background-color: #888; }
117
+ .ajax-load-more-wrap.grey .alm-load-more-btn:hover, .ajax-load-more-wrap.grey .alm-load-more-btn.done {
118
  background-color: #777; }
119
 
120
  /* white */
121
+ .ajax-load-more-wrap.white .alm-load-more-btn {
122
  background-color: #fff;
123
  color: #666;
124
  border: 1px solid #efefef; }
125
+ .ajax-load-more-wrap.white .alm-load-more-btn:hover, .ajax-load-more-wrap.white .alm-load-more-btn.done {
126
  background-color: #efefef;
127
  color: #333; }
128
+ .ajax-load-more-wrap.white .alm-load-more-btn.done {
129
  border-color: #fff; }
130
 
131
  /* Infinite */
132
+ .ajax-load-more-wrap.infinite .alm-load-more-btn {
133
  width: 100%;
134
  background-color: transparent !important;
135
  background-position: center center;
145
  text-indent: -9999px;
146
  cursor: default !important;
147
  outline: none !important; }
148
+ .ajax-load-more-wrap.infinite .alm-load-more-btn:before {
149
  display: none !important; }
150
+ .ajax-load-more-wrap.infinite .alm-load-more-btn:active {
151
  -webkit-box-shadow: none;
152
  box-shadow: none; }
153
+ .ajax-load-more-wrap.infinite .alm-load-more-btn.done {
154
  opacity: 0; }
155
+ .ajax-load-more-wrap.infinite .alm-load-more-btn.loading {
156
  opacity: 1; }
157
 
158
+ .ajax-load-more-wrap.infinite.skype .alm-load-more-btn {
159
  background-image: url("../../../core/img/spinner-skype.gif"); }
160
 
161
+ .ajax-load-more-wrap.infinite.ring .alm-load-more-btn {
162
  background-image: url("../../../core/img/spinner-ring.gif"); }
163
 
164
+ .ajax-load-more-wrap.infinite.fading-blocks .alm-load-more-btn {
165
  background-image: url("../../../core/img/loader-fading-blocks.gif"); }
166
 
167
+ .ajax-load-more-wrap.infinite.fading-circles .alm-load-more-btn {
168
  background-image: url("../../../core/img/loader-fading-circles.gif"); }
169
 
170
+ .ajax-load-more-wrap.infinite.chasing-arrows .alm-load-more-btn {
171
  background-image: url("../../../core/img/spinner-chasing-arrows.gif"); }
172
 
173
  /*
core/dist/css/ajax-load-more.min.css CHANGED
@@ -1 +1 @@
1
- button.alm-load-more-btn{font-size:15px;font-weight:600;width:auto;height:42px;line-height:42px;background:#ed7070;color:#fff;border:none;border-radius:3px;margin:0 0 4px;padding:0 20px;display:inline-block;position:relative;-webkit-transition:padding .25s ease-in-out,width .25s ease-in-out;transition:padding .25s ease-in-out,width .25s ease-in-out;text-align:center;text-decoration:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}button.alm-load-more-btn:hover{background-color:#e06464;color:#fff;text-decoration:none}button.alm-load-more-btn:active{-webkit-box-shadow:inset 0 2px 1px rgba(0,0,0,.1);box-shadow:inset 0 2px 1px rgba(0,0,0,.1);text-decoration:none}button.alm-load-more-btn:active,button.alm-load-more-btn:focus{outline:0}button.alm-load-more-btn.loading{padding-left:44px}button.alm-load-more-btn.done{cursor:default;opacity:.2;background-color:#ed7070;outline:0!important;-webkit-box-shadow:none!important;box-shadow:none!important}button.alm-load-more-btn.done:before,button.alm-load-more-btn:before{background:0 0;width:0}button.alm-load-more-btn.loading:before{background:#fff url(../../img/ajax-loader.gif) no-repeat center center;width:30px;height:30px;margin:6px;border-radius:2px;display:inline-block;z-index:0;content:'';position:absolute;left:0;top:0;overflow:hidden;-webkit-transition:width .5s ease-in-out;transition:width .5s ease-in-out}.alm-btn-wrap,.alm-masonry{display:block;overflow:hidden;clear:both}.alm-btn-wrap{text-align:center;padding:10px 0 25px}.ajax-load-more-wrap.blue button.alm-load-more-btn{background-color:#0081bf}.ajax-load-more-wrap.blue button.alm-load-more-btn.done,.ajax-load-more-wrap.blue button.alm-load-more-btn:hover{background-color:#0073aa}.ajax-load-more-wrap.green button.alm-load-more-btn{background-color:#6fca68}.ajax-load-more-wrap.green button.alm-load-more-btn.done,.ajax-load-more-wrap.green button.alm-load-more-btn:hover{background-color:#64b95e}.ajax-load-more-wrap.red button.alm-load-more-btn{background-color:#ca4b4b}.ajax-load-more-wrap.red button.alm-load-more-btn.done,.ajax-load-more-wrap.red button.alm-load-more-btn:hover{background-color:#b13b3b}.ajax-load-more-wrap.purple button.alm-load-more-btn{background-color:#a86bb9}.ajax-load-more-wrap.purple button.alm-load-more-btn.done,.ajax-load-more-wrap.purple button.alm-load-more-btn:hover{background-color:#9963a8}.ajax-load-more-wrap.grey button.alm-load-more-btn{background-color:#888}.ajax-load-more-wrap.grey button.alm-load-more-btn.done,.ajax-load-more-wrap.grey button.alm-load-more-btn:hover{background-color:#777}.ajax-load-more-wrap.white button.alm-load-more-btn{background-color:#fff;color:#666;border:1px solid #efefef}.ajax-load-more-wrap.white button.alm-load-more-btn.done,.ajax-load-more-wrap.white button.alm-load-more-btn:hover{background-color:#efefef;color:#333}.ajax-load-more-wrap.white button.alm-load-more-btn.done{border-color:#fff}.ajax-load-more-wrap.infinite button.alm-load-more-btn{width:100%;background-color:transparent!important;background-position:center center;background-repeat:no-repeat;background-image:url(../../img/spinner.gif);border:none!important;opacity:0;-webkit-transition:opacity .25s ease;transition:opacity .25s ease;-webkit-box-shadow:none!important;box-shadow:none!important;overflow:hidden;text-indent:-9999px;cursor:default!important;outline:0!important}.ajax-load-more-wrap.infinite button.alm-load-more-btn:before{display:none!important}.ajax-load-more-wrap.infinite button.alm-load-more-btn:active{-webkit-box-shadow:none;box-shadow:none}.ajax-load-more-wrap.infinite button.alm-load-more-btn.done{opacity:0}.ajax-load-more-wrap.infinite button.alm-load-more-btn.loading{opacity:1}.ajax-load-more-wrap.infinite.skype button.alm-load-more-btn{background-image:url(../../img/spinner-skype.gif)}.ajax-load-more-wrap.infinite.ring button.alm-load-more-btn{background-image:url(../../img/spinner-ring.gif)}.ajax-load-more-wrap.infinite.fading-blocks button.alm-load-more-btn{background-image:url(../../img/loader-fading-blocks.gif)}.ajax-load-more-wrap.infinite.fading-circles button.alm-load-more-btn{background-image:url(../../img/loader-fading-circles.gif)}.ajax-load-more-wrap.infinite.chasing-arrows button.alm-load-more-btn{background-image:url(../../img/spinner-chasing-arrows.gif)}.alm-listing{margin:0;padding:0}.alm-listing li{background:0 0;margin:0 0 30px;padding:0 0 0 170px;overflow:hidden;position:relative;list-style:none}.alm-listing li.no-img{padding:0}.alm-listing li p{margin:0}.alm-listing li h3{margin:0 0 10px}.alm-listing li img{position:absolute;left:0;top:0;border-radius:2px}
1
+ .alm-btn-wrap .alm-load-more-btn{font-size:15px;font-weight:600;width:auto;height:42px;line-height:42px;background:#ed7070;color:#fff;border:none;border-radius:3px;margin:0 0 4px;padding:0 20px;display:inline-block;position:relative;-webkit-transition:padding .25s ease-in-out,width .25s ease-in-out;transition:padding .25s ease-in-out,width .25s ease-in-out;text-align:center;text-decoration:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.alm-btn-wrap .alm-load-more-btn:hover{background-color:#e06464;color:#fff;text-decoration:none}.alm-btn-wrap .alm-load-more-btn:active{-webkit-box-shadow:inset 0 2px 1px rgba(0,0,0,.1);box-shadow:inset 0 2px 1px rgba(0,0,0,.1);text-decoration:none}.alm-btn-wrap .alm-load-more-btn:active,.alm-btn-wrap .alm-load-more-btn:focus{outline:0}.alm-btn-wrap .alm-load-more-btn.loading{padding-left:44px}.alm-btn-wrap .alm-load-more-btn.done{cursor:default;opacity:.2;background-color:#ed7070;outline:0!important;-webkit-box-shadow:none!important;box-shadow:none!important}.alm-btn-wrap .alm-load-more-btn.done:before,.alm-btn-wrap .alm-load-more-btn:before{background:0 0;width:0}.alm-btn-wrap .alm-load-more-btn.loading:before{background:#fff url(../../img/ajax-loader.gif) no-repeat center center;width:30px;height:30px;margin:6px;border-radius:2px;display:inline-block;z-index:0;content:'';position:absolute;left:0;top:0;overflow:hidden;-webkit-transition:width .5s ease-in-out;transition:width .5s ease-in-out}.alm-btn-wrap,.alm-masonry{display:block;overflow:hidden;clear:both}.alm-btn-wrap{text-align:center;padding:10px 0 25px}.ajax-load-more-wrap.blue .alm-load-more-btn{background-color:#0081bf}.ajax-load-more-wrap.blue .alm-load-more-btn.done,.ajax-load-more-wrap.blue .alm-load-more-btn:hover{background-color:#0073aa}.ajax-load-more-wrap.green .alm-load-more-btn{background-color:#6fca68}.ajax-load-more-wrap.green .alm-load-more-btn.done,.ajax-load-more-wrap.green .alm-load-more-btn:hover{background-color:#64b95e}.ajax-load-more-wrap.red .alm-load-more-btn{background-color:#ca4b4b}.ajax-load-more-wrap.red .alm-load-more-btn.done,.ajax-load-more-wrap.red .alm-load-more-btn:hover{background-color:#b13b3b}.ajax-load-more-wrap.purple .alm-load-more-btn{background-color:#a86bb9}.ajax-load-more-wrap.purple .alm-load-more-btn.done,.ajax-load-more-wrap.purple .alm-load-more-btn:hover{background-color:#9963a8}.ajax-load-more-wrap.grey .alm-load-more-btn{background-color:#888}.ajax-load-more-wrap.grey .alm-load-more-btn.done,.ajax-load-more-wrap.grey .alm-load-more-btn:hover{background-color:#777}.ajax-load-more-wrap.white .alm-load-more-btn{background-color:#fff;color:#666;border:1px solid #efefef}.ajax-load-more-wrap.white .alm-load-more-btn.done,.ajax-load-more-wrap.white .alm-load-more-btn:hover{background-color:#efefef;color:#333}.ajax-load-more-wrap.white .alm-load-more-btn.done{border-color:#fff}.ajax-load-more-wrap.infinite .alm-load-more-btn{width:100%;background-color:transparent!important;background-position:center center;background-repeat:no-repeat;background-image:url(../../img/spinner.gif);border:none!important;opacity:0;-webkit-transition:opacity .25s ease;transition:opacity .25s ease;-webkit-box-shadow:none!important;box-shadow:none!important;overflow:hidden;text-indent:-9999px;cursor:default!important;outline:0!important}.ajax-load-more-wrap.infinite .alm-load-more-btn:before{display:none!important}.ajax-load-more-wrap.infinite .alm-load-more-btn:active{-webkit-box-shadow:none;box-shadow:none}.ajax-load-more-wrap.infinite .alm-load-more-btn.done{opacity:0}.ajax-load-more-wrap.infinite .alm-load-more-btn.loading{opacity:1}.ajax-load-more-wrap.infinite.skype .alm-load-more-btn{background-image:url(../../img/spinner-skype.gif)}.ajax-load-more-wrap.infinite.ring .alm-load-more-btn{background-image:url(../../img/spinner-ring.gif)}.ajax-load-more-wrap.infinite.fading-blocks .alm-load-more-btn{background-image:url(../../img/loader-fading-blocks.gif)}.ajax-load-more-wrap.infinite.fading-circles .alm-load-more-btn{background-image:url(../../img/loader-fading-circles.gif)}.ajax-load-more-wrap.infinite.chasing-arrows .alm-load-more-btn{background-image:url(../../img/spinner-chasing-arrows.gif)}.alm-listing{margin:0;padding:0}.alm-listing li{background:0 0;margin:0 0 30px;padding:0 0 0 170px;overflow:hidden;position:relative;list-style:none}.alm-listing li.no-img{padding:0}.alm-listing li p{margin:0}.alm-listing li h3{margin:0 0 10px}.alm-listing li img{position:absolute;left:0;top:0;border-radius:2px}
core/dist/js/ajax-load-more.js CHANGED
@@ -1,5 +1,198 @@
1
  'use strict';
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  /*
4
  almMasonry
5
 
@@ -47,7 +240,6 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
47
  horizontalOrder = horizontalOrder === 'true' ? true : false;
48
 
49
  if (!filtering) {
50
-
51
  // First Run
52
  if (almMasonryInit && init) {
53
  almMasonryInit = false;
@@ -70,7 +262,6 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
70
  container.masonry('reloadItems');
71
  });
72
  }
73
-
74
  // Standard
75
  else {
76
  container.append(items); // Append new items
@@ -89,24 +280,24 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
89
  };
90
  'use strict';
91
 
 
 
92
  /*
93
  * Ajax Load More
94
  * http://wordpress.org/plugins/ajax-load-more/
95
  * https://connekthq.com/plugins/ajax-load-more/
96
  *
97
  * Copyright 2017 Connekt Media - https://connekthq.com
98
- * Free to use under the GPLv2 license.
99
  * http://www.gnu.org/licenses/gpl-2.0.html
100
  *
101
  * Author: Darren Cooney
102
- * Twitter: @KaptonKaos, @ajaxloadmore, @connekthq
103
  */
104
 
105
  (function ($) {
106
  "use strict";
107
 
108
- var alm_is_filtering = false; // Global Masonry var
109
-
110
  $.ajaxloadmore = function (el, e) {
111
 
112
  //Prevent loading of unnessasry posts - move user to top of page
@@ -114,7 +305,7 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
114
  $(window).scrollTop(0);
115
  }
116
 
117
- //Set variables
118
  var alm = this;
119
  alm.AjaxLoadMore = {};
120
  alm.window = $(window);
@@ -126,7 +317,6 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
126
  alm.init = true;
127
  alm.loading = true;
128
  alm.finished = false;
129
- alm.button_label = '';
130
  alm.el = el;
131
  alm.container = el;
132
  alm.container.addClass('alm-' + e).attr('data-alm-id', e); // Add unique classname and data id
@@ -138,14 +328,15 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
138
  alm.post_id = alm.el.attr('data-post-id');
139
  alm.prefix = 'alm-';
140
 
141
- alm.cache = alm.content.attr('data-cache'); // Cache add-on
142
- alm.cache_id = alm.content.attr('data-cache-id'); // cache value
143
- alm.cache_path = alm.content.attr('data-cache-path'); // cache path
144
- alm.cache_logged_in = alm.content.attr('data-cache-logged-in'); // cache logged in (settings)
145
-
146
  alm.repeater = alm.content.attr('data-repeater'); // Repeaters
147
  alm.theme_repeater = alm.content.attr('data-theme-repeater');
148
 
 
 
 
 
 
 
149
  alm.scroll_distance = parseInt(alm.content.attr('data-scroll-distance'));
150
  alm.scroll_container = alm.content.attr('data-scroll-container');
151
  alm.max_pages = parseInt(alm.content.attr('data-max-pages'));
@@ -160,20 +351,23 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
160
  alm.lang = alm.content.attr('data-lang');
161
  alm.orginal_posts_per_page = alm.content.attr('data-posts-per-page'); // Used for paging add-on
162
  alm.posts_per_page = alm.content.attr('data-posts-per-page');
 
 
 
 
 
 
163
 
164
- alm.cta_array = '';
165
  alm.cta = alm.content.attr('data-cta'); // CTA add-on
166
  alm.cta_position = alm.content.attr('data-cta-position');
167
  alm.cta_repeater = alm.content.attr('data-cta-repeater');
168
  alm.cta_theme_repeater = alm.content.attr('data-cta-theme-repeater');
169
 
170
- alm.acf_array = '';
171
  alm.acf = alm.content.attr('data-acf'); // ACF add-on
172
  alm.acf_field_type = alm.content.attr('data-acf-field-type'); // Field Type
173
  alm.acf_field_name = alm.content.attr('data-acf-field-name'); // Field Name
174
  alm.acf_post_id = alm.content.attr('data-acf-post-id'); // Get the Post ID
175
 
176
- alm.nextpage_array = '';
177
  alm.nextpage = alm.content.attr('data-nextpage'); // Nextpage add-on
178
  alm.nextpage_urls = alm.content.attr('data-nextpage-urls'); // Update url
179
  alm.nextpage_scroll = alm.content.attr('data-nextpage-scroll'); // Scroll
@@ -191,7 +385,6 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
191
  // if comments, then set alm.content to comments wrap
192
  alm.content = $('.alm-comments', alm.container);
193
  }
194
- alm.comments_array = '';
195
  alm.comments_post_id = alm.content.attr('data-comments_post_id'); // current post id
196
  alm.comments_per_page = alm.content.attr('data-comments_per_page');
197
  alm.comments_type = alm.content.attr('data-comments_type');
@@ -217,6 +410,13 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
217
  alm.paging_classes = alm.content.attr('data-paging-classes');
218
  alm.paging_init = true;
219
 
 
 
 
 
 
 
 
220
  /* REST API */
221
  if (alm.restapi === 'true') {
222
  alm.restapi = true;
@@ -238,18 +438,14 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
238
  alm.paging_show_at_most = 7;
239
  }
240
  if (alm.preloaded === 'true') {
241
- // Ifpreloaded, pause.
242
  alm.pause = true;
243
  }
244
  } else {
245
  alm.paging = false;
246
  }
247
 
248
- if (alm.paging_controls === 'true') {
249
- alm.paging_controls = true;
250
- } else {
251
- alm.paging_controls = false;
252
- }
253
  /* End Paging */
254
 
255
  /* Cache */
@@ -301,10 +497,10 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
301
  alm.trailing_slash = alm.content.attr('data-seo-trailing-slash') === 'false' ? '' : '/';
302
 
303
  if (alm.start_page) {
304
-
305
  alm.seo_scroll = alm.content.attr('data-seo-scroll');
306
  alm.seo_scroll_speed = alm.content.attr('data-seo-scroll-speed');
307
  alm.seo_scrolltop = alm.content.attr('data-seo-scrolltop');
 
308
 
309
  alm.isPaged = false;
310
 
@@ -312,8 +508,8 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
312
  alm.isPaged = true; // Is this a $paged page > 1 ?
313
  alm.posts_per_page = alm.start_page * alm.posts_per_page;
314
  }
315
- // If paging is enabled, reset our posts_per_page
316
  if (alm.paging) {
 
317
  alm.posts_per_page = alm.orginal_posts_per_page;
318
  }
319
  } else {
@@ -322,7 +518,6 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
322
  /* End SEO */
323
 
324
  /* Nextpage */
325
-
326
  if (alm.nextpage === 'true') {
327
  alm.nextpage = true;
328
  alm.posts_per_page = 1;
@@ -330,7 +525,7 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
330
  alm.nextpage = false;
331
  }
332
  if (alm.nextpage_urls === undefined) {
333
- alm.nextpage = 'true';
334
  }
335
  if (alm.nextpage_scroll === undefined) {
336
  alm.nextpage_scroll = '250:30';
@@ -348,20 +543,14 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
348
  if (alm.nextpage_startpage > 1) {
349
  alm.isPaged = true;
350
  }
351
-
352
  /* End Nextpage */
353
 
354
  /* Advanced Custom Fields */
355
-
356
- if (alm.acf === 'true') {
357
- alm.acf = true;
358
- } else {
359
- alm.acf = false;
360
- }
361
  if (alm.acf_field_type === undefined || alm.acf_field_name === undefined || alm.acf_post_id === undefined) {
362
  alm.acf = false;
363
  }
364
-
365
  /* End Advanced Custom Fields */
366
 
367
  /* Previous Post */
@@ -391,16 +580,10 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
391
  alm.previous_post_scroll_top = alm.content.attr('data-previous-post-scrolltop');
392
  /* End Previous Post */
393
 
394
- /* Define offset */
395
- if (alm.content.attr('data-offset') === undefined) {
396
- alm.offset = 0;
397
- } else {
398
- alm.offset = alm.content.attr('data-offset');
399
- }
400
 
401
- /* Check for pause on init
402
- * Pause could be used to hold the loading of posts for a button click.
403
- */
404
  if (alm.pause === undefined || alm.seo && alm.start_page > 1) {
405
  // SEO only
406
  alm.pause = false;
@@ -413,7 +596,7 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
413
  alm.pause = true;
414
  }
415
 
416
- /* Select the repeater template */
417
  if (alm.repeater === undefined) {
418
  alm.repeater = 'default';
419
  }
@@ -421,33 +604,22 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
421
  alm.theme_repeater = 'null';
422
  }
423
 
424
- /* Max number of pages to load while scrolling */
425
- if (alm.max_pages === undefined) {
426
- alm.max_pages = 0;
427
- }
428
- if (alm.max_pages === 0) {
429
- alm.max_pages = 10000;
430
- }
431
 
432
  /* Scroll Distance */
433
- if (alm.scroll_distance === undefined) {
434
- alm.scroll_distance = 150;
435
- }
436
 
437
  /* Scroll Container */
438
- if (alm.scroll_container === undefined) {
439
- alm.scroll_container = '';
440
- }
441
 
442
- /* Transition Params */
443
- if (alm.transition === undefined) {
444
- alm.transition = 'slide';
445
- }
446
- if (alm.tcc === undefined) {
447
- // transition_container_classes
448
- alm.tcc = '';
449
- }
450
 
 
451
  alm.is_masonry_preloaded = false;
452
  if (alm.transition === 'masonry') {
453
  alm.masonry_selector = alm.content.attr('data-masonry-selector');
@@ -468,47 +640,9 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
468
  }
469
 
470
  /* Speed */
471
- if (alm.speed === undefined) {
472
- alm.speed = 250;
473
- } else {
474
- alm.speed = parseInt(alm.speed);
475
- }
476
-
477
- /* Transition Container */
478
- if (alm.transition_container === undefined || alm.transition_container === 'true') {
479
- alm.transition_container = true;
480
- } else {
481
- alm.transition_container = false;
482
- }
483
-
484
- /* Images Loaded */
485
- if (alm.images_loaded === undefined) {
486
- alm.images_loaded = 'false';
487
- }
488
-
489
- /* Destroy After */
490
- if (alm.destroy_after !== undefined) {}
491
-
492
- /* Button Labels */
493
- if (alm.content.attr('data-button-label') === undefined) {
494
- alm.button_label = 'Older Posts';
495
- } else {
496
- alm.button_label = alm.content.attr('data-button-label');
497
- }
498
 
499
- alm.button_loading_label = alm.content.attr('data-button-loading-label');
500
- if (alm.button_loading_label === undefined) {
501
- alm.button_loading_label = false;
502
- }
503
-
504
- /* Button Class */
505
- if (alm.content.attr('data-button-class') === undefined) {
506
- alm.button_class = '';
507
- } else {
508
- alm.button_class = ' ' + alm.content.attr('data-button-class');
509
- }
510
-
511
- /* Define scroll event */
512
  if (alm.content.attr('data-scroll') === undefined) {
513
  alm.scroll = true;
514
  } else if (alm.content.attr('data-scroll') === 'false') {
@@ -517,24 +651,21 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
517
  alm.scroll = true;
518
  }
519
 
520
- /* Parse multiple Post Types */
521
- alm.post_type = alm.content.attr('data-post-type');
522
- alm.post_type = alm.post_type.split(",");
523
 
524
- /* Sticky Posts */
525
- alm.sticky_posts = alm.content.attr('data-sticky-posts');
526
 
527
- /* Append 'load More' button to .ajax-load-more-wrap */
528
- alm.container.append('<div class="' + alm.prefix + 'btn-wrap"/>');
529
- alm.btnWrap = $('.' + alm.prefix + 'btn-wrap', alm.container);
530
 
531
  // Paging add-on
532
  if (alm.paging) {
533
  alm.content.parent().addClass('loading'); // add loading class to main container
534
  } else {
535
- // If paging is false
536
- $('.' + alm.prefix + 'btn-wrap', alm.container).append('<button id="load-more" class="' + alm.prefix + 'load-more-btn more' + alm.button_class + '">' + alm.button_label + '</button>');
537
- alm.button = $('.alm-load-more-btn', alm.container);
538
  }
539
 
540
  /* loadPosts()
@@ -600,7 +731,6 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
600
  };
601
 
602
  /* ajax()
603
- *
604
  * Ajax Load Moe Ajax function
605
  *
606
  * @param queryType The type of Ajax request (standard/totalposts)
@@ -613,8 +743,8 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
613
  var action = 'alm_query_posts';
614
 
615
  // ACF Params
 
616
  if (alm.acf) {
617
-
618
  // Custom query for the Repeater / Gallery / Flexible Content field types
619
  if (alm.acf_field_type !== 'relationship') {
620
  action = 'alm_acf_query';
@@ -628,6 +758,7 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
628
  }
629
 
630
  // Nextpage Params
 
631
  if (alm.nextpage) {
632
  action = 'alm_nextpage_query';
633
  alm.nextpage_array = {
@@ -641,6 +772,7 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
641
  }
642
 
643
  // Previous Post Params
 
644
  if (alm.previous_post) {
645
  alm.previous_post_array = {
646
  'previous_post': 'true',
@@ -650,6 +782,7 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
650
  }
651
 
652
  // Comment query
 
653
  if (alm.comments === 'true') {
654
  action = 'alm_comments_query';
655
  alm.posts_per_page = alm.comments_per_page;
@@ -664,7 +797,23 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
664
  };
665
  }
666
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
667
  // CTA Add-on Query params
 
668
  if (alm.cta === 'true') {
669
  alm.cta_array = {
670
  'cta': 'true',
@@ -679,6 +828,8 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
679
  var alm_template = wp.template(alm.restapi_template_id),
680
  rest_url = alm.restapi_base_url + '/' + alm.restapi_namespace + '/' + alm.restapi_endpoint,
681
  rest_data = {
 
 
682
  posts_per_page: alm.posts_per_page,
683
  page: alm.page,
684
  offset: alm.offset,
@@ -713,8 +864,7 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
713
  lang: alm.lang,
714
  preloaded: alm.preloaded,
715
  preloaded_amount: alm.preloaded_amount,
716
- seo_start_page: alm.start_page,
717
- id: el.attr('data-id')
718
  };
719
 
720
  $.ajax({
@@ -764,8 +914,12 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
764
  dataType: "JSON",
765
  data: {
766
  action: action,
767
- query_type: queryType,
768
  nonce: alm_localize.alm_nonce,
 
 
 
 
 
769
  cache_id: alm.cache_id,
770
  cache_logged_in: alm.cache_logged_in,
771
  repeater: alm.repeater,
@@ -774,6 +928,7 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
774
  nextpage: alm.nextpage_array,
775
  cta: alm.cta_array,
776
  comments: alm.comments_array,
 
777
  post_type: alm.post_type,
778
  sticky_posts: alm.sticky_posts,
779
  post_format: alm.content.attr('data-post-format'),
@@ -810,10 +965,7 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
810
  seo_start_page: alm.start_page,
811
  paging: alm.paging,
812
  previous_post: alm.previous_post_array,
813
- lang: alm.lang,
814
- slug: alm.slug,
815
- canonical_url: alm.canonical_url,
816
- id: el.attr('data-id')
817
  },
818
 
819
  beforeSend: function beforeSend() {
@@ -933,7 +1085,12 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
933
 
934
  // isPaged
935
  if (alm.isPaged) {
936
- alm.posts_per_page = alm.content.attr('data-posts-per-page'); // Reset our posts per page variable
 
 
 
 
 
937
  alm.page = alm.start_page - 1; // Set our new page #
938
  }
939
  }
@@ -1319,7 +1476,7 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
1319
  */
1320
  alm.AjaxLoadMore.triggerAddons = function (alm) {
1321
  if ($.isFunction($.fn.almSEO) && alm.seo) {
1322
- $.fn.almSEO(alm);
1323
  }
1324
  if ($.isFunction($.fn.almSetNextPage)) {
1325
  $.fn.almSetNextPage(alm);
@@ -1382,7 +1539,8 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
1382
  */
1383
 
1384
  if (!alm.paging && !alm.fetchingPreviousPost) {
1385
- alm.button.on('click', function () {
 
1386
  if (alm.pause === 'true') {
1387
  alm.pause = false;
1388
  alm.pause_override = false;
@@ -1502,6 +1660,15 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
1502
  alm.loading = false;
1503
  }
1504
 
 
 
 
 
 
 
 
 
 
1505
  // Next Page Add-on
1506
  if (alm.nextpage) {
1507
  if ($('.alm-nextpage').length > 1) {
@@ -1535,7 +1702,6 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
1535
  * Update current page - triggered from paging add-on
1536
  * @since 2.7.0
1537
  */
1538
-
1539
  $.fn.almUpdateCurrentPage = function (current, obj, alm) {
1540
  alm.page = current;
1541
 
@@ -1621,131 +1787,6 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
1621
  // End $.ajaxloadmore
1622
 
1623
 
1624
- /* $.fn.almFilter(type, speed, data)
1625
- *
1626
- * Filter Ajax Load More
1627
- * @type ('slide', 'fade', null);
1628
- * @speed '300';
1629
- * @data obj;
1630
- *
1631
- * @since 2.6.1
1632
- */
1633
- $.fn.almFilter = function (transition, speed, data) {
1634
-
1635
- if (data.target) {
1636
- // if a target has been specified
1637
- $(".ajax-load-more-wrap[data-id='" + data.target + "']").each(function (e) {
1638
- var el = $(this);
1639
- $.fn.almFilterTransition(transition, speed, data, el);
1640
- });
1641
- } else {
1642
- // Target not specified
1643
- $(".ajax-load-more-wrap").each(function (e) {
1644
- var el = $(this);
1645
- $.fn.almFilterTransition(transition, speed, data, el);
1646
- });
1647
- }
1648
- };
1649
-
1650
- /* $.fn.almFilterTransition(transition, speed, data, el)
1651
- *
1652
- * Transition Ajax Load More
1653
- *
1654
- * @since 2.13.1
1655
- */
1656
- $.fn.almFilterTransition = function (transition, speed, data, el) {
1657
- if (transition === 'slide') {
1658
- // Slide transition
1659
- el.slideUp(speed, function () {
1660
- $('.alm-listing', el).html(''); // Clear listings
1661
- $('.alm-btn-wrap', el).remove(); // remove buttons
1662
- el.fadeIn(speed);
1663
-
1664
- almSetFilters(el, data);
1665
- });
1666
- } else if (transition === 'fade') {
1667
- // Fade transition
1668
- el.fadeOut(speed, function () {
1669
- $('.alm-listing', el).html(''); // Clear listings
1670
- $('.alm-btn-wrap', el).remove(); // remove buttons
1671
- el.fadeIn(speed);
1672
-
1673
- almSetFilters(el, data);
1674
- });
1675
- } else if (transition === 'masonry') {
1676
- // Masonry transition
1677
- el.fadeOut(speed, function () {
1678
- $('.alm-listing', el).html(''); // Clear listings
1679
- $('.alm-btn-wrap', el).remove(); // remove buttons
1680
- el.fadeIn(speed);
1681
-
1682
- almSetFilters(el, data);
1683
- });
1684
- } else {
1685
- $('.alm-listing', el).html(''); // Clear listings
1686
- $('.alm-btn-wrap', el).remove(); // remove buttons
1687
- el.fadeIn(speed);
1688
-
1689
- almSetFilters(el, data);
1690
- }
1691
- };
1692
-
1693
- /* almSetFilters(el, data)
1694
- *
1695
- * Set filter parameters on .alm-listing element
1696
- *
1697
- * @updated 3.1.1
1698
- * @since 2.6.1
1699
- */
1700
- var almSetFilters = function almSetFilters(el, data) {
1701
- $.each(data, function (key, value) {
1702
- key = key.replace(/\W+/g, '-').replace(/([a-z\d])([A-Z])/g, '$1-$2'); // Convert camelCase data() object back to dash (-)
1703
- $('.alm-listing', el).attr('data-' + key, value);
1704
- });
1705
-
1706
- if ($.isFunction($.fn.almFilterComplete)) {
1707
- $.fn.almFilterComplete();
1708
- }
1709
-
1710
- alm_is_filtering = true;
1711
-
1712
- if (data.target) {
1713
- // if a target has been specified
1714
- $(".ajax-load-more-wrap[data-id=" + data.target + "]").ajaxloadmore(); // re-initiate Ajax Load More
1715
- } else {
1716
- // Target not specified
1717
- $(".ajax-load-more-wrap").ajaxloadmore(); // re-initiate Ajax Load More
1718
- }
1719
- };
1720
-
1721
- /* $.fn.ajaxloadmore()
1722
- *
1723
- * Initiate instances of Ajax load More via filters or external functions
1724
- * @since 2.1.2
1725
- */
1726
- /*
1727
- $.fn.ajaxloadmore = function () {
1728
- //$(this).data('alm', new $.ajaxloadmore($(this), 0));
1729
- };
1730
- */
1731
-
1732
- /*
1733
- * Initiate Ajax load More instances
1734
- *
1735
- * @updated 3.1.1
1736
- * @since 2.1.2
1737
- */
1738
-
1739
- /*
1740
- let alm = [...document.querySelectorAll('.ajax-load-more-wrap')];
1741
- if(alm){
1742
- // Loop each alm element
1743
- alm.forEach((alm, e) => {
1744
- $(alm).data('alm', new $.ajaxloadmore($(alm), e));
1745
- });
1746
- }
1747
- */
1748
-
1749
  /* $.fn.ajaxloadmore()
1750
  *
1751
  * Initiate all instances of Ajax load More
@@ -1753,7 +1794,7 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
1753
  */
1754
  $.fn.ajaxloadmore = function () {
1755
  return this.each(function (e) {
1756
- $(this).data('alm', new $.ajaxloadmore($(this), e));
1757
  });
1758
  };
1759
 
@@ -1761,9 +1802,20 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
1761
  * Initiate Ajax load More if div is present on screen
1762
  * @since 2.1.2
1763
  */
1764
- if ($(".ajax-load-more-wrap").length) {
1765
- $(".ajax-load-more-wrap").ajaxloadmore();
 
 
 
 
 
1766
  }
 
 
 
 
 
 
1767
  })(jQuery);
1768
  'use strict';
1769
 
1
  'use strict';
2
 
3
+ if (!Array.from) {
4
+ Array.from = function () {
5
+ var toStr = Object.prototype.toString;
6
+ var isCallable = function isCallable(fn) {
7
+ return typeof fn === 'function' || toStr.call(fn) === '[object Function]';
8
+ };
9
+ var toInteger = function toInteger(value) {
10
+ var number = Number(value);
11
+ if (isNaN(number)) {
12
+ return 0;
13
+ }
14
+ if (number === 0 || !isFinite(number)) {
15
+ return number;
16
+ }
17
+ return (number > 0 ? 1 : -1) * Math.floor(Math.abs(number));
18
+ };
19
+ var maxSafeInteger = Math.pow(2, 53) - 1;
20
+ var toLength = function toLength(value) {
21
+ var len = toInteger(value);
22
+ return Math.min(Math.max(len, 0), maxSafeInteger);
23
+ };
24
+
25
+ // The length property of the from method is 1.
26
+ return function from(arrayLike /*, mapFn, thisArg */) {
27
+ // 1. Let C be the this value.
28
+ var C = this;
29
+
30
+ // 2. Let items be ToObject(arrayLike).
31
+ var items = Object(arrayLike);
32
+
33
+ // 3. ReturnIfAbrupt(items).
34
+ if (arrayLike == null) {
35
+ throw new TypeError('Array.from requires an array-like object - not null or undefined');
36
+ }
37
+
38
+ // 4. If mapfn is undefined, then let mapping be false.
39
+ var mapFn = arguments.length > 1 ? arguments[1] : void undefined;
40
+ var T;
41
+ if (typeof mapFn !== 'undefined') {
42
+ // 5. else
43
+ // 5. a If IsCallable(mapfn) is false, throw a TypeError exception.
44
+ if (!isCallable(mapFn)) {
45
+ throw new TypeError('Array.from: when provided, the second argument must be a function');
46
+ }
47
+
48
+ // 5. b. If thisArg was supplied, let T be thisArg; else let T be undefined.
49
+ if (arguments.length > 2) {
50
+ T = arguments[2];
51
+ }
52
+ }
53
+
54
+ // 10. Let lenValue be Get(items, "length").
55
+ // 11. Let len be ToLength(lenValue).
56
+ var len = toLength(items.length);
57
+
58
+ // 13. If IsConstructor(C) is true, then
59
+ // 13. a. Let A be the result of calling the [[Construct]] internal method
60
+ // of C with an argument list containing the single item len.
61
+ // 14. a. Else, Let A be ArrayCreate(len).
62
+ var A = isCallable(C) ? Object(new C(len)) : new Array(len);
63
+
64
+ // 16. Let k be 0.
65
+ var k = 0;
66
+ // 17. Repeat, while k < len… (also steps a - h)
67
+ var kValue;
68
+ while (k < len) {
69
+ kValue = items[k];
70
+ if (mapFn) {
71
+ A[k] = typeof T === 'undefined' ? mapFn(kValue, k) : mapFn.call(T, kValue, k);
72
+ } else {
73
+ A[k] = kValue;
74
+ }
75
+ k += 1;
76
+ }
77
+ // 18. Let putStatus be Put(A, "length", len, true).
78
+ A.length = len;
79
+ // 20. Return A.
80
+ return A;
81
+ };
82
+ }();
83
+ }
84
+ "use strict";
85
+
86
+ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
87
+
88
+ var alm_is_filtering = false; // Global Masonry/Filtering var
89
+
90
+ (function ($) {
91
+
92
+ /* $.fn.almFilter(type, speed, data)
93
+ *
94
+ * Filter Ajax Load More
95
+ *
96
+ * @param transition string;
97
+ * @param speed number;
98
+ * @param data obj;
99
+ * @since 2.6.1
100
+ */
101
+ $.fn.almFilter = function (transition, speed, data) {
102
+ if (data.target) {
103
+ // if a target has been specified
104
+ $(".ajax-load-more-wrap[data-id='" + data.target + "']").each(function (e) {
105
+ var el = $(this);
106
+ $.fn.almFilterTransition(transition, speed, data, el);
107
+ });
108
+ } else {
109
+ // Target not specified
110
+ $(".ajax-load-more-wrap").each(function (e) {
111
+ var el = $(this);
112
+ $.fn.almFilterTransition(transition, speed, data, el);
113
+ });
114
+ }
115
+ };
116
+
117
+ /* $.fn.almFilterTransition(transition, speed, data, el)
118
+ *
119
+ * Transition Ajax Load More
120
+ *
121
+ * @param transition string;
122
+ * @param speed number;
123
+ * @param data obj;
124
+ * @param el element;
125
+ * @since 2.13.1
126
+ */
127
+ $.fn.almFilterTransition = function (transition, speed, data, el) {
128
+ if (transition === 'slide') {
129
+ // Slide transition
130
+ el.slideUp(speed, function () {
131
+ almCompleteFilterTransition(speed, data, el);
132
+ });
133
+ } else if (transition === 'fade' || transition === 'masonry') {
134
+ // Fade, Masonry transition
135
+ el.fadeOut(speed, function () {
136
+ almCompleteFilterTransition(speed, data, el);
137
+ });
138
+ } else {
139
+ // No transition
140
+ almCompleteFilterTransition(speed, data, el);
141
+ }
142
+ };
143
+
144
+ /* almCompleteFilterTransition
145
+ * Complete the filter transition
146
+ *
147
+ * @param speed number;
148
+ * @param data obj;
149
+ * @param el element;
150
+ * @since 3.3
151
+ */
152
+ var almCompleteFilterTransition = function almCompleteFilterTransition(speed, data, el) {
153
+ var container = el.get(0);
154
+ var listing = container.querySelectorAll('.alm-listing');
155
+ // Loop over all .alm-listing divs
156
+ [].concat(_toConsumableArray(listing)).forEach(function (e) {
157
+ e.innerHTML = ''; // Clear listings
158
+ });
159
+ var button = container.querySelector('.alm-load-more-btn');
160
+ button.classList.remove('done'); // Reset Button
161
+ almSetFilters(speed, data, el);
162
+ };
163
+
164
+ /* almSetFilters
165
+ * Set filter parameters on .alm-listing element
166
+ *
167
+ * @param speed number;
168
+ * @param el element;
169
+ * @param data string;
170
+ * @updated 3.3
171
+ * @since 2.6.1
172
+ */
173
+ var almSetFilters = function almSetFilters(speed, data, el) {
174
+ $.each(data, function (key, value) {
175
+ key = key.replace(/\W+/g, '-').replace(/([a-z\d])([A-Z])/g, '$1-$2'); // Convert camelCase data() object back to dash (-)
176
+ $('.alm-listing', el).attr('data-' + key, value);
177
+ });
178
+ if ($.isFunction($.fn.almFilterComplete)) {
179
+ $.fn.almFilterComplete();
180
+ }
181
+ alm_is_filtering = true;
182
+ el.fadeIn(speed); // Fade ALM back in
183
+
184
+ // re-initiate Ajax Load More
185
+ if (data.target) {
186
+ // if a target has been specified
187
+ $(".ajax-load-more-wrap[data-id=" + data.target + "]").ajaxloadmore();
188
+ } else {
189
+ // Target not specified
190
+ $(".ajax-load-more-wrap").ajaxloadmore();
191
+ }
192
+ };
193
+ })(jQuery);
194
+ 'use strict';
195
+
196
  /*
197
  almMasonry
198
 
240
  horizontalOrder = horizontalOrder === 'true' ? true : false;
241
 
242
  if (!filtering) {
 
243
  // First Run
244
  if (almMasonryInit && init) {
245
  almMasonryInit = false;
262
  container.masonry('reloadItems');
263
  });
264
  }
 
265
  // Standard
266
  else {
267
  container.append(items); // Append new items
280
  };
281
  'use strict';
282
 
283
+ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
284
+
285
  /*
286
  * Ajax Load More
287
  * http://wordpress.org/plugins/ajax-load-more/
288
  * https://connekthq.com/plugins/ajax-load-more/
289
  *
290
  * Copyright 2017 Connekt Media - https://connekthq.com
291
+ * Free to use under the GPLv2 license.
292
  * http://www.gnu.org/licenses/gpl-2.0.html
293
  *
294
  * Author: Darren Cooney
295
+ * Twitter: @KaptonKaos, @ajaxloadmore, @connekthq
296
  */
297
 
298
  (function ($) {
299
  "use strict";
300
 
 
 
301
  $.ajaxloadmore = function (el, e) {
302
 
303
  //Prevent loading of unnessasry posts - move user to top of page
305
  $(window).scrollTop(0);
306
  }
307
 
308
+ //Set ALM Variables
309
  var alm = this;
310
  alm.AjaxLoadMore = {};
311
  alm.window = $(window);
317
  alm.init = true;
318
  alm.loading = true;
319
  alm.finished = false;
 
320
  alm.el = el;
321
  alm.container = el;
322
  alm.container.addClass('alm-' + e).attr('data-alm-id', e); // Add unique classname and data id
328
  alm.post_id = alm.el.attr('data-post-id');
329
  alm.prefix = 'alm-';
330
 
 
 
 
 
 
331
  alm.repeater = alm.content.attr('data-repeater'); // Repeaters
332
  alm.theme_repeater = alm.content.attr('data-theme-repeater');
333
 
334
+ alm.post_type = alm.content.attr('data-post-type');
335
+ alm.post_type = alm.post_type.split(",");
336
+ alm.sticky_posts = alm.content.attr('data-sticky-posts');
337
+ alm.btnWrap = $('.alm-btn-wrap', alm.container);
338
+ alm.button_label = alm.content.attr('data-button-label');
339
+ alm.button_loading_label = alm.content.attr('data-button-loading-label');
340
  alm.scroll_distance = parseInt(alm.content.attr('data-scroll-distance'));
341
  alm.scroll_container = alm.content.attr('data-scroll-container');
342
  alm.max_pages = parseInt(alm.content.attr('data-max-pages'));
351
  alm.lang = alm.content.attr('data-lang');
352
  alm.orginal_posts_per_page = alm.content.attr('data-posts-per-page'); // Used for paging add-on
353
  alm.posts_per_page = alm.content.attr('data-posts-per-page');
354
+ alm.offset = alm.content.attr('data-offset');
355
+
356
+ alm.cache = alm.content.attr('data-cache'); // Cache add-on
357
+ alm.cache_id = alm.content.attr('data-cache-id'); // cache value
358
+ alm.cache_path = alm.content.attr('data-cache-path'); // cache path
359
+ alm.cache_logged_in = alm.content.attr('data-cache-logged-in'); // cache logged in (settings)
360
 
 
361
  alm.cta = alm.content.attr('data-cta'); // CTA add-on
362
  alm.cta_position = alm.content.attr('data-cta-position');
363
  alm.cta_repeater = alm.content.attr('data-cta-repeater');
364
  alm.cta_theme_repeater = alm.content.attr('data-cta-theme-repeater');
365
 
 
366
  alm.acf = alm.content.attr('data-acf'); // ACF add-on
367
  alm.acf_field_type = alm.content.attr('data-acf-field-type'); // Field Type
368
  alm.acf_field_name = alm.content.attr('data-acf-field-name'); // Field Name
369
  alm.acf_post_id = alm.content.attr('data-acf-post-id'); // Get the Post ID
370
 
 
371
  alm.nextpage = alm.content.attr('data-nextpage'); // Nextpage add-on
372
  alm.nextpage_urls = alm.content.attr('data-nextpage-urls'); // Update url
373
  alm.nextpage_scroll = alm.content.attr('data-nextpage-scroll'); // Scroll
385
  // if comments, then set alm.content to comments wrap
386
  alm.content = $('.alm-comments', alm.container);
387
  }
 
388
  alm.comments_post_id = alm.content.attr('data-comments_post_id'); // current post id
389
  alm.comments_per_page = alm.content.attr('data-comments_per_page');
390
  alm.comments_type = alm.content.attr('data-comments_type');
410
  alm.paging_classes = alm.content.attr('data-paging-classes');
411
  alm.paging_init = true;
412
 
413
+ alm.users = alm.content.attr('data-users') === 'true' ? true : false; // Users add-on
414
+ if (alm.users) {
415
+ // Override paging params for users
416
+ alm.orginal_posts_per_page = alm.content.attr('data-users-per-page');
417
+ alm.posts_per_page = alm.content.attr('data-users-per-page');
418
+ }
419
+
420
  /* REST API */
421
  if (alm.restapi === 'true') {
422
  alm.restapi = true;
438
  alm.paging_show_at_most = 7;
439
  }
440
  if (alm.preloaded === 'true') {
441
+ // If preloaded, pause ALM
442
  alm.pause = true;
443
  }
444
  } else {
445
  alm.paging = false;
446
  }
447
 
448
+ alm.paging_controls = alm.paging_controls === 'true' ? true : false;
 
 
 
 
449
  /* End Paging */
450
 
451
  /* Cache */
497
  alm.trailing_slash = alm.content.attr('data-seo-trailing-slash') === 'false' ? '' : '/';
498
 
499
  if (alm.start_page) {
 
500
  alm.seo_scroll = alm.content.attr('data-seo-scroll');
501
  alm.seo_scroll_speed = alm.content.attr('data-seo-scroll-speed');
502
  alm.seo_scrolltop = alm.content.attr('data-seo-scrolltop');
503
+ alm.seo_controls = alm.content.attr('data-seo-controls');
504
 
505
  alm.isPaged = false;
506
 
508
  alm.isPaged = true; // Is this a $paged page > 1 ?
509
  alm.posts_per_page = alm.start_page * alm.posts_per_page;
510
  }
 
511
  if (alm.paging) {
512
+ // If paging, reset posts_per_page
513
  alm.posts_per_page = alm.orginal_posts_per_page;
514
  }
515
  } else {
518
  /* End SEO */
519
 
520
  /* Nextpage */
 
521
  if (alm.nextpage === 'true') {
522
  alm.nextpage = true;
523
  alm.posts_per_page = 1;
525
  alm.nextpage = false;
526
  }
527
  if (alm.nextpage_urls === undefined) {
528
+ alm.nextpage_urls = 'true';
529
  }
530
  if (alm.nextpage_scroll === undefined) {
531
  alm.nextpage_scroll = '250:30';
543
  if (alm.nextpage_startpage > 1) {
544
  alm.isPaged = true;
545
  }
 
546
  /* End Nextpage */
547
 
548
  /* Advanced Custom Fields */
549
+ alm.acf = alm.acf === 'true' ? true : false;
550
+ // if field type, name or post ID is empty
 
 
 
 
551
  if (alm.acf_field_type === undefined || alm.acf_field_name === undefined || alm.acf_post_id === undefined) {
552
  alm.acf = false;
553
  }
 
554
  /* End Advanced Custom Fields */
555
 
556
  /* Previous Post */
580
  alm.previous_post_scroll_top = alm.content.attr('data-previous-post-scrolltop');
581
  /* End Previous Post */
582
 
583
+ /* Offset */
584
+ alm.offset = alm.offset === undefined ? 0 : alm.offset;
 
 
 
 
585
 
586
+ /* Pause */
 
 
587
  if (alm.pause === undefined || alm.seo && alm.start_page > 1) {
588
  // SEO only
589
  alm.pause = false;
596
  alm.pause = true;
597
  }
598
 
599
+ /* Repeater and Theme Repeater */
600
  if (alm.repeater === undefined) {
601
  alm.repeater = 'default';
602
  }
604
  alm.theme_repeater = 'null';
605
  }
606
 
607
+ /* Max Pages (while scrolling) */
608
+ alm.max_pages = alm.max_pages === undefined || alm.max_pages === 0 ? 10000 : alm.max_pages;
 
 
 
 
 
609
 
610
  /* Scroll Distance */
611
+ alm.scroll_distance = alm.scroll_distance === undefined ? 150 : alm.scroll_distance;
 
 
612
 
613
  /* Scroll Container */
614
+ alm.scroll_container = alm.scroll_container === undefined ? '' : alm.scroll_container;
 
 
615
 
616
+ /* Transition */
617
+ alm.transition = alm.transition === undefined ? 'slide' : alm.transition;
618
+
619
+ /* Transition Container Class */
620
+ alm.tcc = alm.tcc === undefined ? '' : alm.tcc;
 
 
 
621
 
622
+ /* Masonry */
623
  alm.is_masonry_preloaded = false;
624
  if (alm.transition === 'masonry') {
625
  alm.masonry_selector = alm.content.attr('data-masonry-selector');
640
  }
641
 
642
  /* Speed */
643
+ alm.speed = alm.speed === undefined || alm.speed === '' ? 250 : parseInt(alm.speed);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
644
 
645
+ /* Scroll */
 
 
 
 
 
 
 
 
 
 
 
 
646
  if (alm.content.attr('data-scroll') === undefined) {
647
  alm.scroll = true;
648
  } else if (alm.content.attr('data-scroll') === 'false') {
651
  alm.scroll = true;
652
  }
653
 
654
+ /* Transition Container */
655
+ alm.transition_container = alm.transition_container === undefined || alm.transition_container === 'true' ? true : false;
 
656
 
657
+ /* Images Loaded */
658
+ alm.images_loaded = alm.images_loaded === undefined ? 'false' : alm.images_loaded;
659
 
660
+ /* Button Labels */
661
+ alm.button_label = alm.button_label === undefined ? 'Older Posts' : alm.button_label;
662
+ alm.button_loading_label = alm.button_loading_label === undefined ? false : alm.button_loading_label;
663
 
664
  // Paging add-on
665
  if (alm.paging) {
666
  alm.content.parent().addClass('loading'); // add loading class to main container
667
  } else {
668
+ alm.button = $('.alm-load-more-btn', alm.container); // Set button element
 
 
669
  }
670
 
671
  /* loadPosts()
731
  };
732
 
733
  /* ajax()
 
734
  * Ajax Load Moe Ajax function
735
  *
736
  * @param queryType The type of Ajax request (standard/totalposts)
743
  var action = 'alm_query_posts';
744
 
745
  // ACF Params
746
+ alm.acf_array = '';
747
  if (alm.acf) {
 
748
  // Custom query for the Repeater / Gallery / Flexible Content field types
749
  if (alm.acf_field_type !== 'relationship') {
750
  action = 'alm_acf_query';
758
  }
759
 
760
  // Nextpage Params
761
+ alm.nextpage_array = '';
762
  if (alm.nextpage) {
763
  action = 'alm_nextpage_query';
764
  alm.nextpage_array = {
772
  }
773
 
774
  // Previous Post Params
775
+ alm.previous_post_array = '';
776
  if (alm.previous_post) {
777
  alm.previous_post_array = {
778
  'previous_post': 'true',
782
  }
783
 
784
  // Comment query
785
+ alm.comments_array = '';
786
  if (alm.comments === 'true') {
787
  action = 'alm_comments_query';
788
  alm.posts_per_page = alm.comments_per_page;
797
  };
798
  }
799
 
800
+ // Users query
801
+ alm.users_array = '';
802
+ if (alm.users) {
803
+ action = 'alm_users_query';
804
+ alm.users_array = {
805
+ 'users': 'true',
806
+ 'role': alm.content.attr('data-users-role'),
807
+ 'include': alm.content.attr('data-users-include'),
808
+ 'exclude': alm.content.attr('data-users-exclude'),
809
+ 'per_page': alm.posts_per_page,
810
+ 'order': alm.content.attr('data-users-order'),
811
+ 'orderby': alm.content.attr('data-users-orderby')
812
+ };
813
+ }
814
+
815
  // CTA Add-on Query params
816
+ alm.cta_array = '';
817
  if (alm.cta === 'true') {
818
  alm.cta_array = {
819
  'cta': 'true',
828
  var alm_template = wp.template(alm.restapi_template_id),
829
  rest_url = alm.restapi_base_url + '/' + alm.restapi_namespace + '/' + alm.restapi_endpoint,
830
  rest_data = {
831
+ id: el.attr('data-id'),
832
+ post_id: alm.post_id,
833
  posts_per_page: alm.posts_per_page,
834
  page: alm.page,
835
  offset: alm.offset,
864
  lang: alm.lang,
865
  preloaded: alm.preloaded,
866
  preloaded_amount: alm.preloaded_amount,
867
+ seo_start_page: alm.start_page
 
868
  };
869
 
870
  $.ajax({
914
  dataType: "JSON",
915
  data: {
916
  action: action,
 
917
  nonce: alm_localize.alm_nonce,
918
+ query_type: queryType,
919
+ post_id: alm.post_id,
920
+ id: el.attr('data-id'),
921
+ slug: alm.slug,
922
+ canonical_url: alm.canonical_url,
923
  cache_id: alm.cache_id,
924
  cache_logged_in: alm.cache_logged_in,
925
  repeater: alm.repeater,
928
  nextpage: alm.nextpage_array,
929
  cta: alm.cta_array,
930
  comments: alm.comments_array,
931
+ users: alm.users_array,
932
  post_type: alm.post_type,
933
  sticky_posts: alm.sticky_posts,
934
  post_format: alm.content.attr('data-post-format'),
965
  seo_start_page: alm.start_page,
966
  paging: alm.paging,
967
  previous_post: alm.previous_post_array,
968
+ lang: alm.lang
 
 
 
969
  },
970
 
971
  beforeSend: function beforeSend() {
1085
 
1086
  // isPaged
1087
  if (alm.isPaged) {
1088
+ // Reset our posts per page variable
1089
+ if (alm.users) {
1090
+ alm.posts_per_page = alm.content.attr('data-users-per-page');
1091
+ } else {
1092
+ alm.posts_per_page = alm.content.attr('data-posts-per-page');
1093
+ }
1094
  alm.page = alm.start_page - 1; // Set our new page #
1095
  }
1096
  }
1476
  */
1477
  alm.AjaxLoadMore.triggerAddons = function (alm) {
1478
  if ($.isFunction($.fn.almSEO) && alm.seo) {
1479
+ $.fn.almSEO(alm, false);
1480
  }
1481
  if ($.isFunction($.fn.almSetNextPage)) {
1482
  $.fn.almSetNextPage(alm);
1539
  */
1540
 
1541
  if (!alm.paging && !alm.fetchingPreviousPost) {
1542
+ alm.button.on('click', function (e) {
1543
+ e.preventDefault();
1544
  if (alm.pause === 'true') {
1545
  alm.pause = false;
1546
  alm.pause_override = false;
1660
  alm.loading = false;
1661
  }
1662
 
1663
+ // Preloaded + SEO && !Paging
1664
+ if (alm.preloaded === 'true' && alm.seo && !alm.paging) {
1665
+ setTimeout(function () {
1666
+ if ($.isFunction($.fn.almSEO) && alm.start_page < 1) {
1667
+ $.fn.almSEO(alm, true);
1668
+ }
1669
+ }, 300);
1670
+ }
1671
+
1672
  // Next Page Add-on
1673
  if (alm.nextpage) {
1674
  if ($('.alm-nextpage').length > 1) {
1702
  * Update current page - triggered from paging add-on
1703
  * @since 2.7.0
1704
  */
 
1705
  $.fn.almUpdateCurrentPage = function (current, obj, alm) {
1706
  alm.page = current;
1707
 
1787
  // End $.ajaxloadmore
1788
 
1789
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1790
  /* $.fn.ajaxloadmore()
1791
  *
1792
  * Initiate all instances of Ajax load More
1794
  */
1795
  $.fn.ajaxloadmore = function () {
1796
  return this.each(function (e) {
1797
+ new $.ajaxloadmore($(this), e);
1798
  });
1799
  };
1800
 
1802
  * Initiate Ajax load More if div is present on screen
1803
  * @since 2.1.2
1804
  */
1805
+
1806
+ var ajaxloadmore = document.querySelectorAll('.ajax-load-more-wrap');
1807
+ if (ajaxloadmore.length) {
1808
+ [].concat(_toConsumableArray(ajaxloadmore)).forEach(function (alm, e) {
1809
+ //$(alm).data('alm', new $.ajaxloadmore($(alm), e));
1810
+ new $.ajaxloadmore($(alm), e);
1811
+ });
1812
  }
1813
+
1814
+ /*
1815
+ if ($(".ajax-load-more-wrap").length){
1816
+ $(".ajax-load-more-wrap").ajaxloadmore();
1817
+ }
1818
+ */
1819
  })(jQuery);
1820
  'use strict';
1821
 
core/dist/js/ajax-load-more.min.js CHANGED
@@ -1 +1 @@
1
- "use strict";var almMasonryInit=!0,almMasonry=function t(a,e,o,n,r,s,i,l){var d=(s+100)/1e3+"s",p="scale(0.5)",c="scale(1)";"zoom-out"===n&&(p="translateY(-20px) scale(1.25)",c="translateY(0) scale(1)"),"slide-up"===n&&(p="translateY(50px)",c="translateY(0)"),"slide-down"===n&&(p="translateY(-50px)",c="translateY(0)"),"none"===n&&(p="translateY(0)",c="translateY(0)"),r="true"===r,l?(a.masonry("destroy"),almMasonryInit=!0,a.append(e),t(a,e,o,n,r,s,!0,!1)):almMasonryInit&&i?(almMasonryInit=!1,a.imagesLoaded(function(){e.fadeIn(s),a.masonry({itemSelector:o,transitionDuration:d,columnWidth:o,horizontalOrder:r,hiddenStyle:{transform:p,opacity:0},visibleStyle:{transform:c,opacity:1}}),a.masonry("reloadItems")})):(a.append(e),a.imagesLoaded(function(){e.show(),a.masonry("appended",e)}))};!function(t){var a=!1;t.ajaxloadmore=function(e,o){"true"===alm_localize.scrolltop&&t(window).scrollTop(0);var n=this;n.AjaxLoadMore={},n.window=t(window),n.page=0,n.posts=0,n.totalposts=0,n.proceed=!1,n.disable_ajax=!1,n.init=!0,n.loading=!0,n.finished=!1,n.button_label="",n.el=e,n.container=e,n.container.addClass("alm-"+o).attr("data-alm-id",o),n.content=t(".alm-ajax",n.container),n.content_preloaded=t(".alm-listing.alm-preloaded",n.container),n.canonical_url=n.el.attr("data-canonical-url"),n.is_search=n.el.attr("data-search"),n.slug=n.el.attr("data-slug"),n.post_id=n.el.attr("data-post-id"),n.prefix="alm-",n.cache=n.content.attr("data-cache"),n.cache_id=n.content.attr("data-cache-id"),n.cache_path=n.content.attr("data-cache-path"),n.cache_logged_in=n.content.attr("data-cache-logged-in"),n.repeater=n.content.attr("data-repeater"),n.theme_repeater=n.content.attr("data-theme-repeater"),n.scroll_distance=parseInt(n.content.attr("data-scroll-distance")),n.scroll_container=n.content.attr("data-scroll-container"),n.max_pages=parseInt(n.content.attr("data-max-pages")),n.pause_override=n.content.attr("data-pause-override"),n.pause=n.content.attr("data-pause"),n.transition=n.content.attr("data-transition"),n.transition_container=n.content.attr("data-transition-container"),n.tcc=n.content.attr("data-transition-container-classes"),n.speed=n.content.attr("data-transition-speed"),n.images_loaded=n.content.attr("data-images-loaded"),n.destroy_after=n.content.attr("data-destroy-after"),n.lang=n.content.attr("data-lang"),n.orginal_posts_per_page=n.content.attr("data-posts-per-page"),n.posts_per_page=n.content.attr("data-posts-per-page"),n.cta_array="",n.cta=n.content.attr("data-cta"),n.cta_position=n.content.attr("data-cta-position"),n.cta_repeater=n.content.attr("data-cta-repeater"),n.cta_theme_repeater=n.content.attr("data-cta-theme-repeater"),n.acf_array="",n.acf=n.content.attr("data-acf"),n.acf_field_type=n.content.attr("data-acf-field-type"),n.acf_field_name=n.content.attr("data-acf-field-name"),n.acf_post_id=n.content.attr("data-acf-post-id"),n.nextpage_array="",n.nextpage=n.content.attr("data-nextpage"),n.nextpage_urls=n.content.attr("data-nextpage-urls"),n.nextpage_scroll=n.content.attr("data-nextpage-scroll"),n.nextpage_pageviews=n.content.attr("data-nextpage-pageviews"),n.nextpage_post_id=n.content.attr("data-nextpage-post-id"),n.nextpage_startpage=n.content.attr("data-nextpage-startpage"),n.previous_post=n.content.attr("data-previous-post"),n.previous_post_id=n.content.attr("data-previous-post-id"),n.previous_post_taxonomy=n.content.attr("data-previous-post-taxonomy"),n.previous_post_excluded_terms=n.content.attr("data-previous-post-excluded-terms"),n.comments=n.content.attr("data-comments"),"true"===n.comments&&(n.content=t(".alm-comments",n.container)),n.comments_array="",n.comments_post_id=n.content.attr("data-comments_post_id"),n.comments_per_page=n.content.attr("data-comments_per_page"),n.comments_type=n.content.attr("data-comments_type"),n.comments_style=n.content.attr("data-comments_style"),n.comments_template=n.content.attr("data-comments_template"),n.comments_callback=n.content.attr("data-comments_callback"),n.restapi=n.content.attr("data-restapi"),n.restapi_base_url=n.content.attr("data-restapi-base-url"),n.restapi_namespace=n.content.attr("data-restapi-namespace"),n.restapi_endpoint=n.content.attr("data-restapi-endpoint"),n.restapi_template_id=n.content.attr("data-restapi-template-id"),n.restapi_debug=n.content.attr("data-restapi-debug"),n.seo=n.content.attr("data-seo"),n.preloaded=n.content.attr("data-preloaded"),n.preloaded_amount=n.content.attr("data-preloaded-amount"),n.paging=n.content.attr("data-paging"),n.paging_controls=n.content.attr("data-paging-controls"),n.paging_show_at_most=n.content.attr("data-paging-show-at-most"),n.paging_classes=n.content.attr("data-paging-classes"),n.paging_init=!0,"true"===n.restapi?(n.restapi=!0,void 0===n.restapi_debug&&(n.restapi_debug=!1),""===n.restapi_template_id&&(n.restapi=!1)):n.restapi=!1,"true"===n.paging?(n.paging=!0,void 0===n.paging_show_at_most&&(n.paging_show_at_most=7),"true"===n.preloaded&&(n.pause=!0)):n.paging=!1,"true"===n.paging_controls?n.paging_controls=!0:n.paging_controls=!1,void 0===n.cache&&(n.cache=!1),void 0===n.cache_logged_in&&(n.cache_logged_in=!1),void 0===n.comments_per_page&&(n.comments_per_page="5"),"true"===n.preloaded?(n.preload_wrap=n.content.prev(".alm-preloaded"),n.preloaded_total_posts=parseInt(n.preload_wrap.attr("data-total-posts")),void 0===n.preloaded_amount&&(n.preloaded_amount=!1),n.preloaded_total_posts<=n.preloaded_amount&&(n.disable_ajax=!0)):n.preloaded="false",void 0===n.seo&&(n.seo=!1),"true"===n.seo&&(n.seo=!0),void 0===n.is_search&&(n.is_search=!1),n.search_value="true"===n.is_search?n.slug:"",n.permalink=n.content.attr("data-seo-permalink"),n.pageview=n.content.attr("data-seo-pageview"),n.start_page=n.content.attr("data-seo-start-page"),n.trailing_slash="false"===n.content.attr("data-seo-trailing-slash")?"":"/",n.start_page?(n.seo_scroll=n.content.attr("data-seo-scroll"),n.seo_scroll_speed=n.content.attr("data-seo-scroll-speed"),n.seo_scrolltop=n.content.attr("data-seo-scrolltop"),n.isPaged=!1,n.start_page>1&&(n.isPaged=!0,n.posts_per_page=n.start_page*n.posts_per_page),n.paging&&(n.posts_per_page=n.orginal_posts_per_page)):n.start_page=1,"true"===n.nextpage?(n.nextpage=!0,n.posts_per_page=1):n.nextpage=!1,void 0===n.nextpage_urls&&(n.nextpage="true"),void 0===n.nextpage_scroll&&(n.nextpage_scroll="250:30"),void 0===n.nextpage_pageviews&&(n.nextpage_pageviews="true"),void 0===n.nextpage_post_id&&(n.nextpage=!1,n.nextpage_post_id=null),void 0===n.nextpage_startpage&&(n.nextpage_startpage=1),n.nextpage_startpage>1&&(n.isPaged=!0),"true"===n.acf?n.acf=!0:n.acf=!1,void 0!==n.acf_field_type&&void 0!==n.acf_field_name&&void 0!==n.acf_post_id||(n.acf=!1),"true"===n.previous_post?(n.previous_post=!0,n.previous_post_permalink="",n.previous_post_title="",n.previous_post_slug=""):n.previous_post=!1,void 0===n.previous_post_id&&(n.previous_post_id=""),void 0===n.previous_post_taxonomy&&(n.previous_post_taxonomy=""),void 0===n.previous_post_excluded_terms&&(n.previous_post_excluded_terms=""),n.previous_post_title_template=n.content.attr("data-previous-post-title-template"),n.siteTitle=n.content.attr("data-previous-post-site-title"),n.siteTagline=n.content.attr("data-previous-post-site-tagline"),n.previous_post_pageview=n.content.attr("data-previous-post-pageview"),n.previous_post_scroll=n.content.attr("data-previous-post-scroll"),n.previous_post_scroll_speed=n.content.attr("data-previous-post-scroll-speed"),n.previous_post_scroll_top=n.content.attr("data-previous-post-scrolltop"),void 0===n.content.attr("data-offset")?n.offset=0:n.offset=n.content.attr("data-offset"),(void 0===n.pause||n.seo&&n.start_page>1)&&(n.pause=!1),"true"===n.preloaded&&n.seo&&n.start_page>0&&(n.pause=!1),"true"===n.preloaded&&n.paging&&(n.pause=!0),void 0===n.repeater&&(n.repeater="default"),void 0===n.theme_repeater&&(n.theme_repeater="null"),void 0===n.max_pages&&(n.max_pages=0),0===n.max_pages&&(n.max_pages=1e4),void 0===n.scroll_distance&&(n.scroll_distance=150),void 0===n.scroll_container&&(n.scroll_container=""),void 0===n.transition&&(n.transition="slide"),void 0===n.tcc&&(n.tcc=""),n.is_masonry_preloaded=!1,"masonry"===n.transition&&(n.masonry_selector=n.content.attr("data-masonry-selector"),n.masonry_animation=n.content.attr("data-masonry-animation"),n.masonry_horizontalorder=n.content.attr("data-masonry-horizontalorder"),void 0===n.masonry_animation&&(n.masonry_animation="standard"),void 0===n.masonry_horizontalorder&&(n.masonry_horizontalorder="true"),n.masonry_wrap=n.content,n.transition_container=!1,document.body.contains(n.content_preloaded.get(0))&&(n.masonry_wrap=n.content_preloaded,n.is_masonry_preloaded=!0)),void 0===n.speed?n.speed=250:n.speed=parseInt(n.speed),void 0===n.transition_container||"true"===n.transition_container?n.transition_container=!0:n.transition_container=!1,void 0===n.images_loaded&&(n.images_loaded="false"),n.destroy_after,void 0===n.content.attr("data-button-label")?n.button_label="Older Posts":n.button_label=n.content.attr("data-button-label"),n.button_loading_label=n.content.attr("data-button-loading-label"),void 0===n.button_loading_label&&(n.button_loading_label=!1),void 0===n.content.attr("data-button-class")?n.button_class="":n.button_class=" "+n.content.attr("data-button-class"),void 0===n.content.attr("data-scroll")?n.scroll=!0:"false"===n.content.attr("data-scroll")?n.scroll=!1:n.scroll=!0,n.post_type=n.content.attr("data-post-type"),n.post_type=n.post_type.split(","),n.sticky_posts=n.content.attr("data-sticky-posts"),n.container.append('<div class="'+n.prefix+'btn-wrap"/>'),n.btnWrap=t("."+n.prefix+"btn-wrap",n.container),n.paging?n.content.parent().addClass("loading"):(t("."+n.prefix+"btn-wrap",n.container).append('<button id="load-more" class="'+n.prefix+"load-more-btn more"+n.button_class+'">'+n.button_label+"</button>"),n.button=t(".alm-load-more-btn",n.container)),n.AjaxLoadMore.loadPosts=function(){if(!n.disable_ajax)if(n.paging||(n.button.addClass("loading"),!1!==n.button_loading_label&&n.button.html(n.button_loading_label)),n.container.addClass("alm-loading"),n.loading=!0,"true"!==n.cache||n.cache_logged_in)n.AjaxLoadMore.ajax("standard");else{var a;if(n.init&&n.seo&&n.isPaged){a=n.cache_path+n.cache_id+"/page-1-"+n.start_page+".html"}else if(n.nextpage){var e;n.paging?e=parseInt(n.page)+1:(e=parseInt(n.page)+2,n.isPaged&&(e=parseInt(n.page)+parseInt(n.nextpage_startpage)+1)),a=n.cache_path+n.cache_id+"/page-"+e+".html"}else a=n.previous_post?n.cache_path+n.cache_id+"/"+n.previous_post_slug+".html":n.cache_path+n.cache_id+"/page-"+(n.page+1)+".html";t.get(a,function(t){n.AjaxLoadMore.success(t,!0)}).fail(function(){n.AjaxLoadMore.ajax("standard")})}},n.AjaxLoadMore.ajax=function(a){var o="alm_query_posts";if(n.acf&&("relationship"!==n.acf_field_type&&(o="alm_acf_query"),n.acf_array={acf:"true",post_id:n.acf_post_id,field_type:n.acf_field_type,field_name:n.acf_field_name}),n.nextpage&&(o="alm_nextpage_query",n.nextpage_array={nextpage:"true",urls:n.nextpage_urls,scroll:n.nextpage_scroll,pageviews:n.nextpage_pageviews,post_id:n.nextpage_post_id,startpage:n.nextpage_startpage}),n.previous_post&&(n.previous_post_array={previous_post:"true",id:n.previous_post_id,slug:n.previous_post_slug}),"true"===n.comments&&(o="alm_comments_query",n.posts_per_page=n.comments_per_page,n.comments_array={comments:"true",post_id:n.comments_post_id,per_page:n.comments_per_page,type:n.comments_type,style:n.comments_style,template:n.comments_template,callback:n.comments_callback}),"true"===n.cta&&(n.cta_array={cta:"true",cta_position:n.cta_position,cta_repeater:n.cta_repeater,cta_theme_repeater:n.cta_theme_repeater}),n.restapi){var r=wp.template(n.restapi_template_id),s=n.restapi_base_url+"/"+n.restapi_namespace+"/"+n.restapi_endpoint,i={posts_per_page:n.posts_per_page,page:n.page,offset:n.offset,slug:n.slug,canonical_url:n.canonical_url,post_type:n.post_type,post_format:n.content.attr("data-post-format"),category:n.content.attr("data-category"),category__not_in:n.content.attr("data-category-not-in"),tag:n.content.attr("data-tag"),tag__not_in:n.content.attr("data-tag-not-in"),taxonomy:n.content.attr("data-taxonomy"),taxonomy_terms:n.content.attr("data-taxonomy-terms"),taxonomy_operator:n.content.attr("data-taxonomy-operator"),taxonomy_relation:n.content.attr("data-taxonomy-relation"),meta_key:n.content.attr("data-meta-key"),meta_value:n.content.attr("data-meta-value"),meta_compare:n.content.attr("data-meta-compare"),meta_relation:n.content.attr("data-meta-relation"),meta_type:n.content.attr("data-meta-type"),author:n.content.attr("data-author"),year:n.content.attr("data-year"),month:n.content.attr("data-month"),day:n.content.attr("data-day"),post_status:n.content.attr("data-post-status"),order:n.content.attr("data-order"),orderby:n.content.attr("data-orderby"),post__in:n.content.attr("data-post-in"),post__not_in:n.content.attr("data-post-not-in"),search:n.content.attr("data-search"),custom_args:n.content.attr("data-custom-args"),lang:n.lang,preloaded:n.preloaded,preloaded_amount:n.preloaded_amount,seo_start_page:n.start_page,id:e.attr("data-id")};t.ajax({type:"GET",url:s,data:i,dataType:"JSON",beforeSend:function(){1==n.page||n.paging||n.button.addClass("loading")},success:function(a){var e,o=a.html,s=a.meta,i=s.postcount,l=s.totalposts;t.each(o,function(t){var a=o[t];"true"===n.restapi_debug&&console.log(a),e+=r(a)});var d={html:e,meta:{postcount:i,totalposts:l}};n.AjaxLoadMore.success(d,!1)}})}else t.ajax({type:"GET",url:alm_localize.ajaxurl,dataType:"JSON",data:{action:o,query_type:a,nonce:alm_localize.alm_nonce,cache_id:n.cache_id,cache_logged_in:n.cache_logged_in,repeater:n.repeater,theme_repeater:n.theme_repeater,acf:n.acf_array,nextpage:n.nextpage_array,cta:n.cta_array,comments:n.comments_array,post_type:n.post_type,sticky_posts:n.sticky_posts,post_format:n.content.attr("data-post-format"),category:n.content.attr("data-category"),category__not_in:n.content.attr("data-category-not-in"),tag:n.content.attr("data-tag"),tag__not_in:n.content.attr("data-tag-not-in"),taxonomy:n.content.attr("data-taxonomy"),taxonomy_terms:n.content.attr("data-taxonomy-terms"),taxonomy_operator:n.content.attr("data-taxonomy-operator"),taxonomy_relation:n.content.attr("data-taxonomy-relation"),meta_key:n.content.attr("data-meta-key"),meta_value:n.content.attr("data-meta-value"),meta_compare:n.content.attr("data-meta-compare"),meta_relation:n.content.attr("data-meta-relation"),meta_type:n.content.attr("data-meta-type"),author:n.content.attr("data-author"),year:n.content.attr("data-year"),month:n.content.attr("data-month"),day:n.content.attr("data-day"),post_status:n.content.attr("data-post-status"),order:n.content.attr("data-order"),orderby:n.content.attr("data-orderby"),post__in:n.content.attr("data-post-in"),post__not_in:n.content.attr("data-post-not-in"),exclude:n.content.attr("data-exclude"),search:n.content.attr("data-search"),custom_args:n.content.attr("data-custom-args"),posts_per_page:n.posts_per_page,page:n.page,offset:n.offset,preloaded:n.preloaded,preloaded_amount:n.preloaded_amount,seo_start_page:n.start_page,paging:n.paging,previous_post:n.previous_post_array,lang:n.lang,slug:n.slug,canonical_url:n.canonical_url,id:e.attr("data-id")},beforeSend:function(){1==n.page||n.paging||n.button.addClass("loading")},success:function(e){"standard"===a?n.AjaxLoadMore.success(e,!1):"totalpages"===a&&n.paging&&n.nextpage?t.isFunction(t.fn.almBuildPagination)&&t.fn.almBuildPagination(e,n):"totalposts"===a&&n.paging&&t.isFunction(t.fn.almBuildPagination)&&t.fn.almBuildPagination(e,n)},error:function(t,a,e){n.AjaxLoadMore.error(t,a,e)}})},n.paging&&(n.nextpage?n.AjaxLoadMore.ajax("totalpages"):n.AjaxLoadMore.ajax("totalposts")),n.AjaxLoadMore.success=function(e,o){n.previous_post&&n.AjaxLoadMore.getPreviousPost();var r,s,i;if(o?r=e:(r=e.html,s=e.meta,n.posts=n.posts+s.postcount,i=s.postcount,n.totalposts=s.totalposts,"true"===n.preloaded&&(n.totalposts=n.totalposts-n.preloaded_amount)),n.data=t(r),o&&(i=n.data.length),n.init&&(n.paging?i>0&&(n.el=t('<div class="alm-reveal'+n.tcc+'"/>'),n.el.append('<div class="alm-paging-content"></div><div class="alm-paging-loading"></div>'),t(".alm-paging-content",n.el).append(n.data).hide(),n.content.append(n.el),n.content.parent().removeClass("loading"),n.AjaxLoadMore.resetBtnText(),t(".alm-paging-content",n.el).fadeIn(n.speed,"alm_easeInOutQuad",function(){var a=parseInt(n.content.css("padding-top")),e=parseInt(n.content.css("padding-bottom"));n.content.css("height",n.el.height()+a+e+"px"),t.isFunction(t.fn.almFadePageControls)&&t.fn.almFadePageControls(n.btnWrap)})):n.button.html(n.button_label),0===i&&t.isFunction(t.fn.almEmpty)&&t.fn.almEmpty(n),n.isPaged&&(n.posts_per_page=n.content.attr("data-posts-per-page"),n.page=n.start_page-1)),i>0){if(n.paging)n.init?(n.container.removeClass("alm-loading"),n.AjaxLoadMore.triggerAddons(n)):t(".alm-paging-content",n.el).html("").append(n.data).almWaitForImages().done(function(){t(".alm-paging-loading",n.el).fadeOut(n.speed),t.isFunction(t.fn.almOnPagingComplete)&&t.fn.almOnPagingComplete(n),n.container.removeClass("alm-loading"),n.AjaxLoadMore.triggerAddons(n)});else{if(n.previous_post)n.el=t('<div class="alm-reveal alm-previous-post post-'+n.previous_post_id+'" data-id="'+n.previous_post_id+'" data-title="'+n.previous_post_title+'" data-url="'+n.previous_post_permalink+'" data-page="'+n.page+'"/>'),n.el.append(n.data).hide();else if(n.transition_container){var l;if(n.init&&n.start_page>1){var d=[],p=parseInt(n.posts_per_page);"true"===n.cta&&(p+=1);Math.ceil(i/p);for(var c=0;c<i;c+=p)d.push(n.data.slice(c,p+c));n.el=n.content;for(var g=0;g<d.length;g++){var _,m="true"===n.preloaded?1:0;g>0||"true"===n.preloaded?(l=g+1+m,_=t("default"===n.permalink?'<div class="alm-reveal alm-seo'+n.tcc+'" data-url="'+n.canonical_url+n.search_value+"&paged="+l+'" data-page="'+l+'" />':'<div class="alm-reveal alm-seo'+n.tcc+'" data-url="'+n.canonical_url+"page/"+l+n.trailing_slash+n.search_value+'" data-page="'+l+'" />')):_=t('<div class="alm-reveal alm-seo'+n.tcc+'" data-url="'+n.canonical_url+n.search_value+'" data-page="1" />'),_.append(d[g]),_=t(_),n.el.append(_).hide()}}else{if(n.seo&&n.page>0||"true"===n.preloaded){var u="true"===n.preloaded?1:0;l=n.page+1+u,n.seo?"default"===n.permalink?n.el=t('<div class="alm-reveal alm-seo'+n.tcc+'" data-url="'+n.canonical_url+n.search_value+"&paged="+l+'" data-page="'+l+'" />'):n.el=t('<div class="alm-reveal alm-seo'+n.tcc+'" data-url="'+n.canonical_url+"page/"+l+n.trailing_slash+n.search_value+'" data-page="'+l+'" />'):n.el=t('<div class="alm-reveal'+n.tcc+'" />')}else n.seo?n.el=t('<div class="alm-reveal alm-seo'+n.tcc+'" data-url="'+n.canonical_url+n.search_value+'" data-page="1" />'):n.el=t('<div class="alm-reveal'+n.tcc+'" />');n.el.append(n.data).hide()}}else n.data.hide(),n.el=n.data;("masonry"!==n.transition||n.init&&!n.is_masonry_preloaded)&&n.content.append(n.el),"fade"===n.transition?"true"===n.images_loaded?n.el.almWaitForImages().done(function(){n.el.fadeIn(n.speed,"alm_easeInOutQuad",function(){n.loading=!1,n.paging||(n.button.delay(n.speed).removeClass("loading"),n.AjaxLoadMore.resetBtnText()),n.container.removeClass("alm-loading"),n.AjaxLoadMore.triggerAddons(n)})}):n.el.fadeIn(n.speed,"alm_easeInOutQuad",function(){n.loading=!1,n.paging||(n.button.delay(n.speed).removeClass("loading"),n.AjaxLoadMore.resetBtnText()),n.container.removeClass("alm-loading"),n.AjaxLoadMore.triggerAddons(n)}):"masonry"===n.transition?(almMasonry(n.masonry_wrap,n.el,n.masonry_selector,n.masonry_animation,n.masonry_horizontalorder,n.speed,n.init,a),n.paging||(n.button.delay(n.speed).removeClass("loading"),n.AjaxLoadMore.resetBtnText()),n.loading=!1,n.container.removeClass("alm-loading"),n.AjaxLoadMore.triggerAddons(n)):"none"===n.transition?("true"===n.images_loaded?n.el.almWaitForImages().done(function(){n.el.show(),n.AjaxLoadMore.triggerAddons(n)}):(n.el.show(),n.AjaxLoadMore.triggerAddons(n)),n.loading=!1,n.paging||(n.button.delay(n.speed).removeClass("loading"),n.AjaxLoadMore.resetBtnText())):"true"===n.images_loaded?n.el.almWaitForImages().done(function(){n.el.slideDown(n.speed,"alm_easeInOutQuad",function(){n.loading=!1,n.paging||(n.button.delay(n.speed).removeClass("loading"),n.AjaxLoadMore.resetBtnText()),n.container.removeClass("alm-loading"),n.AjaxLoadMore.triggerAddons(n)})}):n.el.slideDown(n.speed,"alm_easeInOutQuad",function(){n.loading=!1,n.paging||(n.button.delay(n.speed).removeClass("loading"),n.AjaxLoadMore.resetBtnText()),n.container.removeClass("alm-loading"),n.AjaxLoadMore.triggerAddons(n)})}t.isFunction(t.fn.almComplete)&&("true"===n.images_loaded?n.el.almWaitForImages().done(function(){t.fn.almComplete(n)}):t.fn.almComplete(n)),n.cache?i<n.posts_per_page&&n.AjaxLoadMore.triggerDone():n.posts>=n.totalposts&&!n.previous_post&&n.AjaxLoadMore.triggerDone()}else n.paging||(n.button.delay(n.speed).removeClass("loading").addClass("done"),n.AjaxLoadMore.resetBtnText()),n.AjaxLoadMore.triggerDone();if(void 0!==n.destroy_after&&""!==n.destroy_after){var f=n.page+1;n.preload&&f++,f==n.destroy_after&&(n.disable_ajax=!0,n.paging||(n.button.delay(n.speed).fadeOut(n.speed),t.isFunction(t.fn.almDestroyed)&&t.fn.almDestroyed(n)))}a=!1,n.init=!1},n.AjaxLoadMore.pagingPreloadedInit=function(a){n.el=t('<div class="alm-reveal'+n.tcc+'"/>'),n.el.append('<div class="alm-paging-content">'+a+'</div><div class="alm-paging-loading"></div>'),n.content.append(n.el),n.content.parent().removeClass("loading"),n.AjaxLoadMore.resetBtnText();var e=parseInt(n.content.css("padding-top")),o=parseInt(n.content.css("padding-bottom"));n.content.css("height",n.el.height()+e+o+"px"),t.isFunction(t.fn.almFadePageControls)&&t.fn.almFadePageControls(n.btnWrap)},n.AjaxLoadMore.pagingNextpageInit=function(a){n.el=t('<div class="alm-reveal alm-nextpage"/>'),n.el.append('<div class="alm-paging-content">'+a+'</div><div class="alm-paging-loading"></div>'),n.el.appendTo(n.content),n.content.parent().removeClass("loading"),n.AjaxLoadMore.resetBtnText();var e=parseInt(n.content.css("padding-top")),o=parseInt(n.content.css("padding-bottom"));n.content.css("height",n.el.height()+e+o+"px"),t.isFunction(t.fn.almSetNextPageVars)&&t.fn.almSetNextPageVars(n),setTimeout(function(){t.isFunction(t.fn.almFadePageControls)&&t.fn.almFadePageControls(n.btnWrap),t.isFunction(t.fn.almOnWindowResize)&&t.fn.almOnWindowResize(n)},200)},n.fetchingPreviousPost=!1,n.AjaxLoadMore.getPreviousPost=function(){n.fetchingPreviousPost=!0;var a={action:"alm_query_previous_post",id:n.previous_post_id,taxonomy:n.previous_post_taxonomy,excluded_terms:n.previous_post_excluded_terms};t.ajax({type:"GET",dataType:"JSON",url:alm_localize.ajaxurl,data:a,success:function(a){a.has_previous_post?(n.content.attr("data-previous-post-id",a.prev_id),n.previous_post_id=a.prev_id,n.previous_post_permalink=a.prev_permalink,n.previous_post_title=a.prev_title,n.previous_post_slug=a.prev_slug):a.has_previous_post||n.AjaxLoadMore.triggerDone(),t.isFunction(t.fn.almSetPreviousPost)&&t.fn.almSetPreviousPost(n,a.current_id,a.permalink,a.title),n.fetchingPreviousPost=!1},error:function(t,a,e){n.AjaxLoadMore.error(t,a,e),n.fetchingPreviousPost=!1}})},n.AjaxLoadMore.triggerAddons=function(a){t.isFunction(t.fn.almSEO)&&a.seo&&t.fn.almSEO(a),t.isFunction(t.fn.almSetNextPage)&&t.fn.almSetNextPage(a)},n.AjaxLoadMore.triggerDone=function(){n.loading=!1,n.finished=!0,n.paging||n.button.addClass("done"),t.isFunction(t.fn.almDone)&&setTimeout(function(){t.fn.almDone(n)},n.speed+10)},n.AjaxLoadMore.resetBtnText=function(){!1!==n.button_loading_label&&(n.paging||n.button.html(n.button_label))},n.AjaxLoadMore.error=function(t,a,e){n.loading=!1,n.paging||(n.button.removeClass("loading"),n.AjaxLoadMore.resetBtnText()),console.log(e)},n.paging||n.fetchingPreviousPost||n.button.on("click",function(){"true"===n.pause&&(n.pause=!1,n.pause_override=!1,n.AjaxLoadMore.loadPosts()),n.loading||n.finished||t(this).hasClass("done")||(n.loading=!0,n.page++,n.AjaxLoadMore.loadPosts())}),n.paging&&(n.window.bind("resizeEnd",function(){t.isFunction(t.fn.almOnWindowResize)&&t.fn.almOnWindowResize(n)}),n.window.resize(function(){this.resizeTO&&clearTimeout(this.resizeTO),this.resizeTO=setTimeout(function(){t(this).trigger("resizeEnd")},250)})),n.AjaxLoadMore.isVisible=function(){return n.visible=!1,n.el.is(":visible")&&(n.visible=!0),n.visible},n.scroll&&!n.paging&&(""!==n.scroll_container&&(n.window=t(n.scroll_container)),n.window.bind("scroll touchstart",function(){if(n.AjaxLoadMore.isVisible()&&!n.fetchingPreviousPost){var t=n.button.offset().top,a=Math.round(t-(n.window.height()-n.scroll_distance)),e=n.window.scrollTop()>=a;""!==n.scroll_container&&(e=n.button.offset().top-(n.window.height()-n.scroll_distance)<n.window.offset().top),!n.loading&&!n.finished&&e&&n.page<n.max_pages-1&&n.proceed&&"true"===n.pause&&"true"===n.pause_override?n.button.trigger("click"):!n.loading&&!n.finished&&e&&n.page<n.max_pages-1&&n.proceed&&"true"!==n.pause&&(n.page++,n.AjaxLoadMore.loadPosts())}})),n.AjaxLoadMore.init=function(){n.paging||n.previous_post||(n.disable_ajax?(n.finished=!0,n.button.addClass("done")):"true"===n.pause?(n.button.html(n.button_label),n.loading=!1):n.AjaxLoadMore.loadPosts()),n.previous_post&&(n.AjaxLoadMore.getPreviousPost(),n.loading=!1),n.nextpage&&t(".alm-nextpage").length>1&&t(".alm-nextpage").length==t(".alm-nextpage").eq(0).data("total-pages")&&n.AjaxLoadMore.triggerDone(),n.window.bind("load",function(){n.is_masonry_preloaded&&almMasonry(n.masonry_wrap,n.el,n.masonry_selector,n.masonry_animation,n.masonry_horizontalorder,n.speed,!0,!1)})},n.AjaxLoadMore.init(),setTimeout(function(){n.proceed=!0},300),t.fn.almUpdateCurrentPage=function(a,e,o){o.page=a,o.nextpage&&!o.paging&&(o.page=o.page-1);var n="";o.paging_init&&"true"===o.preloaded?(n=t(".alm-preloaded .alm-reveal",o.el).html(),t(".alm-preloaded",o.el).remove(),o.preloaded_amount=0,o.AjaxLoadMore.pagingPreloadedInit(n),o.paging_init=!1,o.init=!1):o.paging_init&&o.nextpage?(n=t(".alm-nextpage",o.el).html(),t(".alm-nextpage",o.el).remove(),o.AjaxLoadMore.pagingNextpageInit(n),o.paging_init=!1,o.init=!1):o.AjaxLoadMore.loadPosts()},t.fn.almGetParentContainer=function(){return n.el.closest("#ajax-load-more")},t.fn.almGetObj=function(){return n},t.fn.almTriggerClick=function(){n.button.trigger("click")},t.easing.alm_easeInOutQuad=function(t,a,e,o,n){return(a/=n/2)<1?o/2*a*a+e:-o/2*(--a*(a-2)-1)+e}},t.fn.almFilter=function(a,e,o){o.target?t(".ajax-load-more-wrap[data-id='"+o.target+"']").each(function(n){var r=t(this);t.fn.almFilterTransition(a,e,o,r)}):t(".ajax-load-more-wrap").each(function(n){var r=t(this);t.fn.almFilterTransition(a,e,o,r)})},t.fn.almFilterTransition=function(a,o,n,r){"slide"===a?r.slideUp(o,function(){t(".alm-listing",r).html(""),t(".alm-btn-wrap",r).remove(),r.fadeIn(o),e(r,n)}):"fade"===a?r.fadeOut(o,function(){t(".alm-listing",r).html(""),t(".alm-btn-wrap",r).remove(),r.fadeIn(o),e(r,n)}):"masonry"===a?r.fadeOut(o,function(){t(".alm-listing",r).html(""),t(".alm-btn-wrap",r).remove(),r.fadeIn(o),e(r,n)}):(t(".alm-listing",r).html(""),t(".alm-btn-wrap",r).remove(),r.fadeIn(o),e(r,n))};var e=function(e,o){t.each(o,function(a,o){a=a.replace(/\W+/g,"-").replace(/([a-z\d])([A-Z])/g,"$1-$2"),t(".alm-listing",e).attr("data-"+a,o)}),t.isFunction(t.fn.almFilterComplete)&&t.fn.almFilterComplete(),a=!0,o.target?t(".ajax-load-more-wrap[data-id="+o.target+"]").ajaxloadmore():t(".ajax-load-more-wrap").ajaxloadmore()};t.fn.ajaxloadmore=function(){return this.each(function(a){t(this).data("alm",new t.ajaxloadmore(t(this),a))})},t(".ajax-load-more-wrap").length&&t(".ajax-load-more-wrap").ajaxloadmore()}(jQuery);var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"===("undefined"==typeof exports?"undefined":_typeof(exports))?module.exports=t(require("jquery")):t(jQuery)}(function(t){t.almWaitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage","cursor"],hasImageAttributes:["srcset"]},t.expr[":"]["has-src"]=function(a){return t(a).is('img[src][src!=""]')},t.expr[":"].uncached=function(a){return!!t(a).is(":has-src")&&!a.complete},t.fn.almWaitForImages=function(){var a,e,o,n=0,r=0,s=t.Deferred();if(t.isPlainObject(arguments[0])?(o=arguments[0].waitForAll,e=arguments[0].each,a=arguments[0].finished):1===arguments.length&&"boolean"===t.type(arguments[0])?o=arguments[0]:(a=arguments[0],e=arguments[1],o=arguments[2]),a=a||t.noop,e=e||t.noop,o=!!o,!t.isFunction(a)||!t.isFunction(e))throw new TypeError("An invalid callback was supplied.");return this.each(function(){var i=t(this),l=[],d=t.almWaitForImages.hasImageProperties||[],p=t.almWaitForImages.hasImageAttributes||[],c=/url\(\s*(['"]?)(.*?)\1\s*\)/g;o?i.find("*").addBack().each(function(){var a=t(this);a.is("img:has-src")&&l.push({src:a.attr("src"),element:a[0]}),t.each(d,function(t,e){var o,n=a.css(e);if(!n)return!0;for(;o=c.exec(n);)l.push({src:o[2],element:a[0]})}),t.each(p,function(e,o){var n,r=a.attr(o);if(!r)return!0;n=r.split(","),t.each(n,function(e,o){o=t.trim(o).split(" ")[0],l.push({src:o,element:a[0]})})})}):i.find("img:has-src").each(function(){l.push({src:this.src,element:this})}),n=l.length,r=0,0===n&&(a.call(i[0]),s.resolveWith(i[0])),t.each(l,function(o,l){var d=new Image,p="load.almWaitForImages error.almWaitForImages";t(d).one(p,function o(d){var c=[r,n,"load"==d.type];if(r++,e.apply(l.element,c),s.notifyWith(l.element,c),t(this).off(p,o),r==n)return a.call(i[0]),s.resolveWith(i[0]),!1}),d.src=l.src})}),s.promise()}});
1
+ "use strict";function _toConsumableArray(t){if(Array.isArray(t)){for(var a=0,e=Array(t.length);a<t.length;a++)e[a]=t[a];return e}return Array.from(t)}function _toConsumableArray(t){if(Array.isArray(t)){for(var a=0,e=Array(t.length);a<t.length;a++)e[a]=t[a];return e}return Array.from(t)}Array.from||(Array.from=function(){var t=Object.prototype.toString,a=function(a){return"function"==typeof a||"[object Function]"===t.call(a)},e=function(t){var a=Number(t);return isNaN(a)?0:0!==a&&isFinite(a)?(a>0?1:-1)*Math.floor(Math.abs(a)):a},o=Math.pow(2,53)-1,n=function(t){var a=e(t);return Math.min(Math.max(a,0),o)};return function(t){var e=this,o=Object(t);if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r,s=arguments.length>1?arguments[1]:void 0;if(void 0!==s){if(!a(s))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(r=arguments[2])}for(var i,l=n(o.length),d=a(e)?Object(new e(l)):new Array(l),p=0;p<l;)i=o[p],d[p]=s?void 0===r?s(i,p):s.call(r,i,p):i,p+=1;return d.length=l,d}}());var alm_is_filtering=!1;!function(t){t.fn.almFilter=function(a,e,o){o.target?t(".ajax-load-more-wrap[data-id='"+o.target+"']").each(function(n){var r=t(this);t.fn.almFilterTransition(a,e,o,r)}):t(".ajax-load-more-wrap").each(function(n){var r=t(this);t.fn.almFilterTransition(a,e,o,r)})},t.fn.almFilterTransition=function(t,e,o,n){"slide"===t?n.slideUp(e,function(){a(e,o,n)}):"fade"===t||"masonry"===t?n.fadeOut(e,function(){a(e,o,n)}):a(e,o,n)};var a=function(t,a,o){var n=o.get(0),r=n.querySelectorAll(".alm-listing");[].concat(_toConsumableArray(r)).forEach(function(t){t.innerHTML=""}),n.querySelector(".alm-load-more-btn").classList.remove("done"),e(t,a,o)},e=function(a,e,o){t.each(e,function(a,e){a=a.replace(/\W+/g,"-").replace(/([a-z\d])([A-Z])/g,"$1-$2"),t(".alm-listing",o).attr("data-"+a,e)}),t.isFunction(t.fn.almFilterComplete)&&t.fn.almFilterComplete(),alm_is_filtering=!0,o.fadeIn(a),e.target?t(".ajax-load-more-wrap[data-id="+e.target+"]").ajaxloadmore():t(".ajax-load-more-wrap").ajaxloadmore()}}(jQuery);var almMasonryInit=!0,almMasonry=function t(a,e,o,n,r,s,i,l){var d=(s+100)/1e3+"s",p="scale(0.5)",c="scale(1)";"zoom-out"===n&&(p="translateY(-20px) scale(1.25)",c="translateY(0) scale(1)"),"slide-up"===n&&(p="translateY(50px)",c="translateY(0)"),"slide-down"===n&&(p="translateY(-50px)",c="translateY(0)"),"none"===n&&(p="translateY(0)",c="translateY(0)"),r="true"===r,l?(a.masonry("destroy"),almMasonryInit=!0,a.append(e),t(a,e,o,n,r,s,!0,!1)):almMasonryInit&&i?(almMasonryInit=!1,a.imagesLoaded(function(){e.fadeIn(s),a.masonry({itemSelector:o,transitionDuration:d,columnWidth:o,horizontalOrder:r,hiddenStyle:{transform:p,opacity:0},visibleStyle:{transform:c,opacity:1}}),a.masonry("reloadItems")})):(a.append(e),a.imagesLoaded(function(){e.show(),a.masonry("appended",e)}))};!function(t){t.ajaxloadmore=function(a,e){"true"===alm_localize.scrolltop&&t(window).scrollTop(0);var o=this;o.AjaxLoadMore={},o.window=t(window),o.page=0,o.posts=0,o.totalposts=0,o.proceed=!1,o.disable_ajax=!1,o.init=!0,o.loading=!0,o.finished=!1,o.el=a,o.container=a,o.container.addClass("alm-"+e).attr("data-alm-id",e),o.content=t(".alm-ajax",o.container),o.content_preloaded=t(".alm-listing.alm-preloaded",o.container),o.canonical_url=o.el.attr("data-canonical-url"),o.is_search=o.el.attr("data-search"),o.slug=o.el.attr("data-slug"),o.post_id=o.el.attr("data-post-id"),o.prefix="alm-",o.repeater=o.content.attr("data-repeater"),o.theme_repeater=o.content.attr("data-theme-repeater"),o.post_type=o.content.attr("data-post-type"),o.post_type=o.post_type.split(","),o.sticky_posts=o.content.attr("data-sticky-posts"),o.btnWrap=t(".alm-btn-wrap",o.container),o.button_label=o.content.attr("data-button-label"),o.button_loading_label=o.content.attr("data-button-loading-label"),o.scroll_distance=parseInt(o.content.attr("data-scroll-distance")),o.scroll_container=o.content.attr("data-scroll-container"),o.max_pages=parseInt(o.content.attr("data-max-pages")),o.pause_override=o.content.attr("data-pause-override"),o.pause=o.content.attr("data-pause"),o.transition=o.content.attr("data-transition"),o.transition_container=o.content.attr("data-transition-container"),o.tcc=o.content.attr("data-transition-container-classes"),o.speed=o.content.attr("data-transition-speed"),o.images_loaded=o.content.attr("data-images-loaded"),o.destroy_after=o.content.attr("data-destroy-after"),o.lang=o.content.attr("data-lang"),o.orginal_posts_per_page=o.content.attr("data-posts-per-page"),o.posts_per_page=o.content.attr("data-posts-per-page"),o.offset=o.content.attr("data-offset"),o.cache=o.content.attr("data-cache"),o.cache_id=o.content.attr("data-cache-id"),o.cache_path=o.content.attr("data-cache-path"),o.cache_logged_in=o.content.attr("data-cache-logged-in"),o.cta=o.content.attr("data-cta"),o.cta_position=o.content.attr("data-cta-position"),o.cta_repeater=o.content.attr("data-cta-repeater"),o.cta_theme_repeater=o.content.attr("data-cta-theme-repeater"),o.acf=o.content.attr("data-acf"),o.acf_field_type=o.content.attr("data-acf-field-type"),o.acf_field_name=o.content.attr("data-acf-field-name"),o.acf_post_id=o.content.attr("data-acf-post-id"),o.nextpage=o.content.attr("data-nextpage"),o.nextpage_urls=o.content.attr("data-nextpage-urls"),o.nextpage_scroll=o.content.attr("data-nextpage-scroll"),o.nextpage_pageviews=o.content.attr("data-nextpage-pageviews"),o.nextpage_post_id=o.content.attr("data-nextpage-post-id"),o.nextpage_startpage=o.content.attr("data-nextpage-startpage"),o.previous_post=o.content.attr("data-previous-post"),o.previous_post_id=o.content.attr("data-previous-post-id"),o.previous_post_taxonomy=o.content.attr("data-previous-post-taxonomy"),o.previous_post_excluded_terms=o.content.attr("data-previous-post-excluded-terms"),o.comments=o.content.attr("data-comments"),"true"===o.comments&&(o.content=t(".alm-comments",o.container)),o.comments_post_id=o.content.attr("data-comments_post_id"),o.comments_per_page=o.content.attr("data-comments_per_page"),o.comments_type=o.content.attr("data-comments_type"),o.comments_style=o.content.attr("data-comments_style"),o.comments_template=o.content.attr("data-comments_template"),o.comments_callback=o.content.attr("data-comments_callback"),o.restapi=o.content.attr("data-restapi"),o.restapi_base_url=o.content.attr("data-restapi-base-url"),o.restapi_namespace=o.content.attr("data-restapi-namespace"),o.restapi_endpoint=o.content.attr("data-restapi-endpoint"),o.restapi_template_id=o.content.attr("data-restapi-template-id"),o.restapi_debug=o.content.attr("data-restapi-debug"),o.seo=o.content.attr("data-seo"),o.preloaded=o.content.attr("data-preloaded"),o.preloaded_amount=o.content.attr("data-preloaded-amount"),o.paging=o.content.attr("data-paging"),o.paging_controls=o.content.attr("data-paging-controls"),o.paging_show_at_most=o.content.attr("data-paging-show-at-most"),o.paging_classes=o.content.attr("data-paging-classes"),o.paging_init=!0,o.users="true"===o.content.attr("data-users"),o.users&&(o.orginal_posts_per_page=o.content.attr("data-users-per-page"),o.posts_per_page=o.content.attr("data-users-per-page")),"true"===o.restapi?(o.restapi=!0,void 0===o.restapi_debug&&(o.restapi_debug=!1),""===o.restapi_template_id&&(o.restapi=!1)):o.restapi=!1,"true"===o.paging?(o.paging=!0,void 0===o.paging_show_at_most&&(o.paging_show_at_most=7),"true"===o.preloaded&&(o.pause=!0)):o.paging=!1,o.paging_controls="true"===o.paging_controls,void 0===o.cache&&(o.cache=!1),void 0===o.cache_logged_in&&(o.cache_logged_in=!1),void 0===o.comments_per_page&&(o.comments_per_page="5"),"true"===o.preloaded?(o.preload_wrap=o.content.prev(".alm-preloaded"),o.preloaded_total_posts=parseInt(o.preload_wrap.attr("data-total-posts")),void 0===o.preloaded_amount&&(o.preloaded_amount=!1),o.preloaded_total_posts<=o.preloaded_amount&&(o.disable_ajax=!0)):o.preloaded="false",void 0===o.seo&&(o.seo=!1),"true"===o.seo&&(o.seo=!0),void 0===o.is_search&&(o.is_search=!1),o.search_value="true"===o.is_search?o.slug:"",o.permalink=o.content.attr("data-seo-permalink"),o.pageview=o.content.attr("data-seo-pageview"),o.start_page=o.content.attr("data-seo-start-page"),o.trailing_slash="false"===o.content.attr("data-seo-trailing-slash")?"":"/",o.start_page?(o.seo_scroll=o.content.attr("data-seo-scroll"),o.seo_scroll_speed=o.content.attr("data-seo-scroll-speed"),o.seo_scrolltop=o.content.attr("data-seo-scrolltop"),o.seo_controls=o.content.attr("data-seo-controls"),o.isPaged=!1,o.start_page>1&&(o.isPaged=!0,o.posts_per_page=o.start_page*o.posts_per_page),o.paging&&(o.posts_per_page=o.orginal_posts_per_page)):o.start_page=1,"true"===o.nextpage?(o.nextpage=!0,o.posts_per_page=1):o.nextpage=!1,void 0===o.nextpage_urls&&(o.nextpage_urls="true"),void 0===o.nextpage_scroll&&(o.nextpage_scroll="250:30"),void 0===o.nextpage_pageviews&&(o.nextpage_pageviews="true"),void 0===o.nextpage_post_id&&(o.nextpage=!1,o.nextpage_post_id=null),void 0===o.nextpage_startpage&&(o.nextpage_startpage=1),o.nextpage_startpage>1&&(o.isPaged=!0),o.acf="true"===o.acf,void 0!==o.acf_field_type&&void 0!==o.acf_field_name&&void 0!==o.acf_post_id||(o.acf=!1),"true"===o.previous_post?(o.previous_post=!0,o.previous_post_permalink="",o.previous_post_title="",o.previous_post_slug=""):o.previous_post=!1,void 0===o.previous_post_id&&(o.previous_post_id=""),void 0===o.previous_post_taxonomy&&(o.previous_post_taxonomy=""),void 0===o.previous_post_excluded_terms&&(o.previous_post_excluded_terms=""),o.previous_post_title_template=o.content.attr("data-previous-post-title-template"),o.siteTitle=o.content.attr("data-previous-post-site-title"),o.siteTagline=o.content.attr("data-previous-post-site-tagline"),o.previous_post_pageview=o.content.attr("data-previous-post-pageview"),o.previous_post_scroll=o.content.attr("data-previous-post-scroll"),o.previous_post_scroll_speed=o.content.attr("data-previous-post-scroll-speed"),o.previous_post_scroll_top=o.content.attr("data-previous-post-scrolltop"),o.offset=void 0===o.offset?0:o.offset,(void 0===o.pause||o.seo&&o.start_page>1)&&(o.pause=!1),"true"===o.preloaded&&o.seo&&o.start_page>0&&(o.pause=!1),"true"===o.preloaded&&o.paging&&(o.pause=!0),void 0===o.repeater&&(o.repeater="default"),void 0===o.theme_repeater&&(o.theme_repeater="null"),o.max_pages=void 0===o.max_pages||0===o.max_pages?1e4:o.max_pages,o.scroll_distance=void 0===o.scroll_distance?150:o.scroll_distance,o.scroll_container=void 0===o.scroll_container?"":o.scroll_container,o.transition=void 0===o.transition?"slide":o.transition,o.tcc=void 0===o.tcc?"":o.tcc,o.is_masonry_preloaded=!1,"masonry"===o.transition&&(o.masonry_selector=o.content.attr("data-masonry-selector"),o.masonry_animation=o.content.attr("data-masonry-animation"),o.masonry_horizontalorder=o.content.attr("data-masonry-horizontalorder"),void 0===o.masonry_animation&&(o.masonry_animation="standard"),void 0===o.masonry_horizontalorder&&(o.masonry_horizontalorder="true"),o.masonry_wrap=o.content,o.transition_container=!1,document.body.contains(o.content_preloaded.get(0))&&(o.masonry_wrap=o.content_preloaded,o.is_masonry_preloaded=!0)),o.speed=void 0===o.speed||""===o.speed?250:parseInt(o.speed),void 0===o.content.attr("data-scroll")?o.scroll=!0:"false"===o.content.attr("data-scroll")?o.scroll=!1:o.scroll=!0,o.transition_container=void 0===o.transition_container||"true"===o.transition_container,o.images_loaded=void 0===o.images_loaded?"false":o.images_loaded,o.button_label=void 0===o.button_label?"Older Posts":o.button_label,o.button_loading_label=void 0!==o.button_loading_label&&o.button_loading_label,o.paging?o.content.parent().addClass("loading"):o.button=t(".alm-load-more-btn",o.container),o.AjaxLoadMore.loadPosts=function(){if(!o.disable_ajax)if(o.paging||(o.button.addClass("loading"),!1!==o.button_loading_label&&o.button.html(o.button_loading_label)),o.container.addClass("alm-loading"),o.loading=!0,"true"!==o.cache||o.cache_logged_in)o.AjaxLoadMore.ajax("standard");else{var a;if(o.init&&o.seo&&o.isPaged){a=o.cache_path+o.cache_id+"/page-1-"+o.start_page+".html"}else if(o.nextpage){var e;o.paging?e=parseInt(o.page)+1:(e=parseInt(o.page)+2,o.isPaged&&(e=parseInt(o.page)+parseInt(o.nextpage_startpage)+1)),a=o.cache_path+o.cache_id+"/page-"+e+".html"}else a=o.previous_post?o.cache_path+o.cache_id+"/"+o.previous_post_slug+".html":o.cache_path+o.cache_id+"/page-"+(o.page+1)+".html";t.get(a,function(t){o.AjaxLoadMore.success(t,!0)}).fail(function(){o.AjaxLoadMore.ajax("standard")})}},o.AjaxLoadMore.ajax=function(e){var n="alm_query_posts";if(o.acf_array="",o.acf&&("relationship"!==o.acf_field_type&&(n="alm_acf_query"),o.acf_array={acf:"true",post_id:o.acf_post_id,field_type:o.acf_field_type,field_name:o.acf_field_name}),o.nextpage_array="",o.nextpage&&(n="alm_nextpage_query",o.nextpage_array={nextpage:"true",urls:o.nextpage_urls,scroll:o.nextpage_scroll,pageviews:o.nextpage_pageviews,post_id:o.nextpage_post_id,startpage:o.nextpage_startpage}),o.previous_post_array="",o.previous_post&&(o.previous_post_array={previous_post:"true",id:o.previous_post_id,slug:o.previous_post_slug}),o.comments_array="","true"===o.comments&&(n="alm_comments_query",o.posts_per_page=o.comments_per_page,o.comments_array={comments:"true",post_id:o.comments_post_id,per_page:o.comments_per_page,type:o.comments_type,style:o.comments_style,template:o.comments_template,callback:o.comments_callback}),o.users_array="",o.users&&(n="alm_users_query",o.users_array={users:"true",role:o.content.attr("data-users-role"),include:o.content.attr("data-users-include"),exclude:o.content.attr("data-users-exclude"),per_page:o.posts_per_page,order:o.content.attr("data-users-order"),orderby:o.content.attr("data-users-orderby")}),o.cta_array="","true"===o.cta&&(o.cta_array={cta:"true",cta_position:o.cta_position,cta_repeater:o.cta_repeater,cta_theme_repeater:o.cta_theme_repeater}),o.restapi){var r=wp.template(o.restapi_template_id),s=o.restapi_base_url+"/"+o.restapi_namespace+"/"+o.restapi_endpoint,i={id:a.attr("data-id"),post_id:o.post_id,posts_per_page:o.posts_per_page,page:o.page,offset:o.offset,slug:o.slug,canonical_url:o.canonical_url,post_type:o.post_type,post_format:o.content.attr("data-post-format"),category:o.content.attr("data-category"),category__not_in:o.content.attr("data-category-not-in"),tag:o.content.attr("data-tag"),tag__not_in:o.content.attr("data-tag-not-in"),taxonomy:o.content.attr("data-taxonomy"),taxonomy_terms:o.content.attr("data-taxonomy-terms"),taxonomy_operator:o.content.attr("data-taxonomy-operator"),taxonomy_relation:o.content.attr("data-taxonomy-relation"),meta_key:o.content.attr("data-meta-key"),meta_value:o.content.attr("data-meta-value"),meta_compare:o.content.attr("data-meta-compare"),meta_relation:o.content.attr("data-meta-relation"),meta_type:o.content.attr("data-meta-type"),author:o.content.attr("data-author"),year:o.content.attr("data-year"),month:o.content.attr("data-month"),day:o.content.attr("data-day"),post_status:o.content.attr("data-post-status"),order:o.content.attr("data-order"),orderby:o.content.attr("data-orderby"),post__in:o.content.attr("data-post-in"),post__not_in:o.content.attr("data-post-not-in"),search:o.content.attr("data-search"),custom_args:o.content.attr("data-custom-args"),lang:o.lang,preloaded:o.preloaded,preloaded_amount:o.preloaded_amount,seo_start_page:o.start_page};t.ajax({type:"GET",url:s,data:i,dataType:"JSON",beforeSend:function(){1==o.page||o.paging||o.button.addClass("loading")},success:function(a){var e,n=a.html,s=a.meta,i=s.postcount,l=s.totalposts;t.each(n,function(t){var a=n[t];"true"===o.restapi_debug&&console.log(a),e+=r(a)});var d={html:e,meta:{postcount:i,totalposts:l}};o.AjaxLoadMore.success(d,!1)}})}else t.ajax({type:"GET",url:alm_localize.ajaxurl,dataType:"JSON",data:{action:n,nonce:alm_localize.alm_nonce,query_type:e,post_id:o.post_id,id:a.attr("data-id"),slug:o.slug,canonical_url:o.canonical_url,cache_id:o.cache_id,cache_logged_in:o.cache_logged_in,repeater:o.repeater,theme_repeater:o.theme_repeater,acf:o.acf_array,nextpage:o.nextpage_array,cta:o.cta_array,comments:o.comments_array,users:o.users_array,post_type:o.post_type,sticky_posts:o.sticky_posts,post_format:o.content.attr("data-post-format"),category:o.content.attr("data-category"),category__not_in:o.content.attr("data-category-not-in"),tag:o.content.attr("data-tag"),tag__not_in:o.content.attr("data-tag-not-in"),taxonomy:o.content.attr("data-taxonomy"),taxonomy_terms:o.content.attr("data-taxonomy-terms"),taxonomy_operator:o.content.attr("data-taxonomy-operator"),taxonomy_relation:o.content.attr("data-taxonomy-relation"),meta_key:o.content.attr("data-meta-key"),meta_value:o.content.attr("data-meta-value"),meta_compare:o.content.attr("data-meta-compare"),meta_relation:o.content.attr("data-meta-relation"),meta_type:o.content.attr("data-meta-type"),author:o.content.attr("data-author"),year:o.content.attr("data-year"),month:o.content.attr("data-month"),day:o.content.attr("data-day"),post_status:o.content.attr("data-post-status"),order:o.content.attr("data-order"),orderby:o.content.attr("data-orderby"),post__in:o.content.attr("data-post-in"),post__not_in:o.content.attr("data-post-not-in"),exclude:o.content.attr("data-exclude"),search:o.content.attr("data-search"),custom_args:o.content.attr("data-custom-args"),posts_per_page:o.posts_per_page,page:o.page,offset:o.offset,preloaded:o.preloaded,preloaded_amount:o.preloaded_amount,seo_start_page:o.start_page,paging:o.paging,previous_post:o.previous_post_array,lang:o.lang},beforeSend:function(){1==o.page||o.paging||o.button.addClass("loading")},success:function(a){"standard"===e?o.AjaxLoadMore.success(a,!1):"totalpages"===e&&o.paging&&o.nextpage?t.isFunction(t.fn.almBuildPagination)&&t.fn.almBuildPagination(a,o):"totalposts"===e&&o.paging&&t.isFunction(t.fn.almBuildPagination)&&t.fn.almBuildPagination(a,o)},error:function(t,a,e){o.AjaxLoadMore.error(t,a,e)}})},o.paging&&(o.nextpage?o.AjaxLoadMore.ajax("totalpages"):o.AjaxLoadMore.ajax("totalposts")),o.AjaxLoadMore.success=function(a,e){o.previous_post&&o.AjaxLoadMore.getPreviousPost();var n,r,s;if(e?n=a:(n=a.html,r=a.meta,o.posts=o.posts+r.postcount,s=r.postcount,o.totalposts=r.totalposts,"true"===o.preloaded&&(o.totalposts=o.totalposts-o.preloaded_amount)),o.data=t(n),e&&(s=o.data.length),o.init&&(o.paging?s>0&&(o.el=t('<div class="alm-reveal'+o.tcc+'"/>'),o.el.append('<div class="alm-paging-content"></div><div class="alm-paging-loading"></div>'),t(".alm-paging-content",o.el).append(o.data).hide(),o.content.append(o.el),o.content.parent().removeClass("loading"),o.AjaxLoadMore.resetBtnText(),t(".alm-paging-content",o.el).fadeIn(o.speed,"alm_easeInOutQuad",function(){var a=parseInt(o.content.css("padding-top")),e=parseInt(o.content.css("padding-bottom"));o.content.css("height",o.el.height()+a+e+"px"),t.isFunction(t.fn.almFadePageControls)&&t.fn.almFadePageControls(o.btnWrap)})):o.button.html(o.button_label),0===s&&t.isFunction(t.fn.almEmpty)&&t.fn.almEmpty(o),o.isPaged&&(o.users?o.posts_per_page=o.content.attr("data-users-per-page"):o.posts_per_page=o.content.attr("data-posts-per-page"),o.page=o.start_page-1)),s>0){if(o.paging)o.init?(o.container.removeClass("alm-loading"),o.AjaxLoadMore.triggerAddons(o)):t(".alm-paging-content",o.el).html("").append(o.data).almWaitForImages().done(function(){t(".alm-paging-loading",o.el).fadeOut(o.speed),t.isFunction(t.fn.almOnPagingComplete)&&t.fn.almOnPagingComplete(o),o.container.removeClass("alm-loading"),o.AjaxLoadMore.triggerAddons(o)});else{if(o.previous_post)o.el=t('<div class="alm-reveal alm-previous-post post-'+o.previous_post_id+'" data-id="'+o.previous_post_id+'" data-title="'+o.previous_post_title+'" data-url="'+o.previous_post_permalink+'" data-page="'+o.page+'"/>'),o.el.append(o.data).hide();else if(o.transition_container){var i;if(o.init&&o.start_page>1){var l=[],d=parseInt(o.posts_per_page);"true"===o.cta&&(d+=1);Math.ceil(s/d);for(var p=0;p<s;p+=d)l.push(o.data.slice(p,d+p));o.el=o.content;for(var c=0;c<l.length;c++){var g,_="true"===o.preloaded?1:0;c>0||"true"===o.preloaded?(i=c+1+_,g=t("default"===o.permalink?'<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+o.search_value+"&paged="+i+'" data-page="'+i+'" />':'<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+"page/"+i+o.trailing_slash+o.search_value+'" data-page="'+i+'" />')):g=t('<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+o.search_value+'" data-page="1" />'),g.append(l[c]),g=t(g),o.el.append(g).hide()}}else{if(o.seo&&o.page>0||"true"===o.preloaded){var u="true"===o.preloaded?1:0;i=o.page+1+u,o.seo?"default"===o.permalink?o.el=t('<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+o.search_value+"&paged="+i+'" data-page="'+i+'" />'):o.el=t('<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+"page/"+i+o.trailing_slash+o.search_value+'" data-page="'+i+'" />'):o.el=t('<div class="alm-reveal'+o.tcc+'" />')}else o.seo?o.el=t('<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+o.search_value+'" data-page="1" />'):o.el=t('<div class="alm-reveal'+o.tcc+'" />');o.el.append(o.data).hide()}}else o.data.hide(),o.el=o.data;("masonry"!==o.transition||o.init&&!o.is_masonry_preloaded)&&o.content.append(o.el),"fade"===o.transition?"true"===o.images_loaded?o.el.almWaitForImages().done(function(){o.el.fadeIn(o.speed,"alm_easeInOutQuad",function(){o.loading=!1,o.paging||(o.button.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText()),o.container.removeClass("alm-loading"),o.AjaxLoadMore.triggerAddons(o)})}):o.el.fadeIn(o.speed,"alm_easeInOutQuad",function(){o.loading=!1,o.paging||(o.button.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText()),o.container.removeClass("alm-loading"),o.AjaxLoadMore.triggerAddons(o)}):"masonry"===o.transition?(almMasonry(o.masonry_wrap,o.el,o.masonry_selector,o.masonry_animation,o.masonry_horizontalorder,o.speed,o.init,alm_is_filtering),o.paging||(o.button.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText()),o.loading=!1,o.container.removeClass("alm-loading"),o.AjaxLoadMore.triggerAddons(o)):"none"===o.transition?("true"===o.images_loaded?o.el.almWaitForImages().done(function(){o.el.show(),o.AjaxLoadMore.triggerAddons(o)}):(o.el.show(),o.AjaxLoadMore.triggerAddons(o)),o.loading=!1,o.paging||(o.button.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText())):"true"===o.images_loaded?o.el.almWaitForImages().done(function(){o.el.slideDown(o.speed,"alm_easeInOutQuad",function(){o.loading=!1,o.paging||(o.button.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText()),o.container.removeClass("alm-loading"),o.AjaxLoadMore.triggerAddons(o)})}):o.el.slideDown(o.speed,"alm_easeInOutQuad",function(){o.loading=!1,o.paging||(o.button.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText()),o.container.removeClass("alm-loading"),o.AjaxLoadMore.triggerAddons(o)})}t.isFunction(t.fn.almComplete)&&("true"===o.images_loaded?o.el.almWaitForImages().done(function(){t.fn.almComplete(o)}):t.fn.almComplete(o)),o.cache?s<o.posts_per_page&&o.AjaxLoadMore.triggerDone():o.posts>=o.totalposts&&!o.previous_post&&o.AjaxLoadMore.triggerDone()}else o.paging||(o.button.delay(o.speed).removeClass("loading").addClass("done"),o.AjaxLoadMore.resetBtnText()),o.AjaxLoadMore.triggerDone();if(void 0!==o.destroy_after&&""!==o.destroy_after){var m=o.page+1;o.preload&&m++,m==o.destroy_after&&(o.disable_ajax=!0,o.paging||(o.button.delay(o.speed).fadeOut(o.speed),t.isFunction(t.fn.almDestroyed)&&t.fn.almDestroyed(o)))}alm_is_filtering=!1,o.init=!1},o.AjaxLoadMore.pagingPreloadedInit=function(a){o.el=t('<div class="alm-reveal'+o.tcc+'"/>'),o.el.append('<div class="alm-paging-content">'+a+'</div><div class="alm-paging-loading"></div>'),o.content.append(o.el),o.content.parent().removeClass("loading"),o.AjaxLoadMore.resetBtnText();var e=parseInt(o.content.css("padding-top")),n=parseInt(o.content.css("padding-bottom"));o.content.css("height",o.el.height()+e+n+"px"),t.isFunction(t.fn.almFadePageControls)&&t.fn.almFadePageControls(o.btnWrap)},o.AjaxLoadMore.pagingNextpageInit=function(a){o.el=t('<div class="alm-reveal alm-nextpage"/>'),o.el.append('<div class="alm-paging-content">'+a+'</div><div class="alm-paging-loading"></div>'),o.el.appendTo(o.content),o.content.parent().removeClass("loading"),o.AjaxLoadMore.resetBtnText();var e=parseInt(o.content.css("padding-top")),n=parseInt(o.content.css("padding-bottom"));o.content.css("height",o.el.height()+e+n+"px"),t.isFunction(t.fn.almSetNextPageVars)&&t.fn.almSetNextPageVars(o),setTimeout(function(){t.isFunction(t.fn.almFadePageControls)&&t.fn.almFadePageControls(o.btnWrap),t.isFunction(t.fn.almOnWindowResize)&&t.fn.almOnWindowResize(o)},200)},o.fetchingPreviousPost=!1,o.AjaxLoadMore.getPreviousPost=function(){o.fetchingPreviousPost=!0;var a={action:"alm_query_previous_post",id:o.previous_post_id,taxonomy:o.previous_post_taxonomy,excluded_terms:o.previous_post_excluded_terms};t.ajax({type:"GET",dataType:"JSON",url:alm_localize.ajaxurl,data:a,success:function(a){a.has_previous_post?(o.content.attr("data-previous-post-id",a.prev_id),o.previous_post_id=a.prev_id,o.previous_post_permalink=a.prev_permalink,o.previous_post_title=a.prev_title,o.previous_post_slug=a.prev_slug):a.has_previous_post||o.AjaxLoadMore.triggerDone(),t.isFunction(t.fn.almSetPreviousPost)&&t.fn.almSetPreviousPost(o,a.current_id,a.permalink,a.title),o.fetchingPreviousPost=!1},error:function(t,a,e){o.AjaxLoadMore.error(t,a,e),o.fetchingPreviousPost=!1}})},o.AjaxLoadMore.triggerAddons=function(a){t.isFunction(t.fn.almSEO)&&a.seo&&t.fn.almSEO(a,!1),t.isFunction(t.fn.almSetNextPage)&&t.fn.almSetNextPage(a)},o.AjaxLoadMore.triggerDone=function(){o.loading=!1,o.finished=!0,o.paging||o.button.addClass("done"),t.isFunction(t.fn.almDone)&&setTimeout(function(){t.fn.almDone(o)},o.speed+10)},o.AjaxLoadMore.resetBtnText=function(){!1!==o.button_loading_label&&(o.paging||o.button.html(o.button_label))},o.AjaxLoadMore.error=function(t,a,e){o.loading=!1,o.paging||(o.button.removeClass("loading"),o.AjaxLoadMore.resetBtnText()),console.log(e)},o.paging||o.fetchingPreviousPost||o.button.on("click",function(a){a.preventDefault(),"true"===o.pause&&(o.pause=!1,o.pause_override=!1,o.AjaxLoadMore.loadPosts()),o.loading||o.finished||t(this).hasClass("done")||(o.loading=!0,o.page++,o.AjaxLoadMore.loadPosts())}),o.paging&&(o.window.bind("resizeEnd",function(){t.isFunction(t.fn.almOnWindowResize)&&t.fn.almOnWindowResize(o)}),o.window.resize(function(){this.resizeTO&&clearTimeout(this.resizeTO),this.resizeTO=setTimeout(function(){t(this).trigger("resizeEnd")},250)})),o.AjaxLoadMore.isVisible=function(){return o.visible=!1,o.el.is(":visible")&&(o.visible=!0),o.visible},o.scroll&&!o.paging&&(""!==o.scroll_container&&(o.window=t(o.scroll_container)),o.window.bind("scroll touchstart",function(){if(o.AjaxLoadMore.isVisible()&&!o.fetchingPreviousPost){var t=o.button.offset().top,a=Math.round(t-(o.window.height()-o.scroll_distance)),e=o.window.scrollTop()>=a;""!==o.scroll_container&&(e=o.button.offset().top-(o.window.height()-o.scroll_distance)<o.window.offset().top),!o.loading&&!o.finished&&e&&o.page<o.max_pages-1&&o.proceed&&"true"===o.pause&&"true"===o.pause_override?o.button.trigger("click"):!o.loading&&!o.finished&&e&&o.page<o.max_pages-1&&o.proceed&&"true"!==o.pause&&(o.page++,o.AjaxLoadMore.loadPosts())}})),o.AjaxLoadMore.init=function(){o.paging||o.previous_post||(o.disable_ajax?(o.finished=!0,o.button.addClass("done")):"true"===o.pause?(o.button.html(o.button_label),o.loading=!1):o.AjaxLoadMore.loadPosts()),o.previous_post&&(o.AjaxLoadMore.getPreviousPost(),o.loading=!1),"true"===o.preloaded&&o.seo&&!o.paging&&setTimeout(function(){t.isFunction(t.fn.almSEO)&&o.start_page<1&&t.fn.almSEO(o,!0)},300),o.nextpage&&t(".alm-nextpage").length>1&&t(".alm-nextpage").length==t(".alm-nextpage").eq(0).data("total-pages")&&o.AjaxLoadMore.triggerDone(),o.window.bind("load",function(){o.is_masonry_preloaded&&almMasonry(o.masonry_wrap,o.el,o.masonry_selector,o.masonry_animation,o.masonry_horizontalorder,o.speed,!0,!1)})},o.AjaxLoadMore.init(),setTimeout(function(){o.proceed=!0},300),t.fn.almUpdateCurrentPage=function(a,e,o){o.page=a,o.nextpage&&!o.paging&&(o.page=o.page-1);var n="";o.paging_init&&"true"===o.preloaded?(n=t(".alm-preloaded .alm-reveal",o.el).html(),t(".alm-preloaded",o.el).remove(),o.preloaded_amount=0,o.AjaxLoadMore.pagingPreloadedInit(n),o.paging_init=!1,o.init=!1):o.paging_init&&o.nextpage?(n=t(".alm-nextpage",o.el).html(),t(".alm-nextpage",o.el).remove(),o.AjaxLoadMore.pagingNextpageInit(n),o.paging_init=!1,o.init=!1):o.AjaxLoadMore.loadPosts()},t.fn.almGetParentContainer=function(){return o.el.closest("#ajax-load-more")},t.fn.almGetObj=function(){return o},t.fn.almTriggerClick=function(){o.button.trigger("click")},t.easing.alm_easeInOutQuad=function(t,a,e,o,n){return(a/=n/2)<1?o/2*a*a+e:-o/2*(--a*(a-2)-1)+e}},t.fn.ajaxloadmore=function(){return this.each(function(a){new t.ajaxloadmore(t(this),a)})};var a=document.querySelectorAll(".ajax-load-more-wrap");a.length&&[].concat(_toConsumableArray(a)).forEach(function(a,e){new t.ajaxloadmore(t(a),e)})}(jQuery);var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"===("undefined"==typeof exports?"undefined":_typeof(exports))?module.exports=t(require("jquery")):t(jQuery)}(function(t){t.almWaitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage","cursor"],hasImageAttributes:["srcset"]},t.expr[":"]["has-src"]=function(a){return t(a).is('img[src][src!=""]')},t.expr[":"].uncached=function(a){return!!t(a).is(":has-src")&&!a.complete},t.fn.almWaitForImages=function(){var a,e,o,n=0,r=0,s=t.Deferred();if(t.isPlainObject(arguments[0])?(o=arguments[0].waitForAll,e=arguments[0].each,a=arguments[0].finished):1===arguments.length&&"boolean"===t.type(arguments[0])?o=arguments[0]:(a=arguments[0],e=arguments[1],o=arguments[2]),a=a||t.noop,e=e||t.noop,o=!!o,!t.isFunction(a)||!t.isFunction(e))throw new TypeError("An invalid callback was supplied.");return this.each(function(){var i=t(this),l=[],d=t.almWaitForImages.hasImageProperties||[],p=t.almWaitForImages.hasImageAttributes||[],c=/url\(\s*(['"]?)(.*?)\1\s*\)/g;o?i.find("*").addBack().each(function(){var a=t(this);a.is("img:has-src")&&l.push({src:a.attr("src"),element:a[0]}),t.each(d,function(t,e){var o,n=a.css(e);if(!n)return!0;for(;o=c.exec(n);)l.push({src:o[2],element:a[0]})}),t.each(p,function(e,o){var n,r=a.attr(o);if(!r)return!0;n=r.split(","),t.each(n,function(e,o){o=t.trim(o).split(" ")[0],l.push({src:o,element:a[0]})})})}):i.find("img:has-src").each(function(){l.push({src:this.src,element:this})}),n=l.length,r=0,0===n&&(a.call(i[0]),s.resolveWith(i[0])),t.each(l,function(o,l){var d=new Image,p="load.almWaitForImages error.almWaitForImages";t(d).one(p,function o(d){var c=[r,n,"load"==d.type];if(r++,e.apply(l.element,c),s.notifyWith(l.element,c),t(this).off(p,o),r==n)return a.call(i[0]),s.resolveWith(i[0]),!1}),d.src=l.src})}),s.promise()}});
core/repeater/default.php CHANGED
@@ -9,4 +9,4 @@
9
  <?php the_time("F d, Y"); ?>
10
  </p>
11
  <?php the_excerpt(); ?>
12
- </li>
9
  <?php the_time("F d, Y"); ?>
10
  </p>
11
  <?php the_excerpt(); ?>
12
+ </li>
core/src/js/ajax-load-more.js CHANGED
@@ -4,26 +4,24 @@
4
  * https://connekthq.com/plugins/ajax-load-more/
5
  *
6
  * Copyright 2017 Connekt Media - https://connekthq.com
7
- * Free to use under the GPLv2 license.
8
  * http://www.gnu.org/licenses/gpl-2.0.html
9
  *
10
  * Author: Darren Cooney
11
- * Twitter: @KaptonKaos, @ajaxloadmore, @connekthq
12
  */
13
 
14
  (function ($) {
15
- "use strict";
16
 
17
- let alm_is_filtering = false; // Global Masonry var
18
-
19
- $.ajaxloadmore = function (el, e) {
20
 
21
  //Prevent loading of unnessasry posts - move user to top of page
22
  if(alm_localize.scrolltop === 'true'){
23
  $(window).scrollTop(0);
24
  }
25
-
26
- //Set variables
27
  let alm = this;
28
  alm.AjaxLoadMore = {};
29
  alm.window = $(window);
@@ -35,7 +33,6 @@
35
  alm.init = true;
36
  alm.loading = true;
37
  alm.finished = false;
38
- alm.button_label = '';
39
  alm.el = el;
40
  alm.container = el;
41
  alm.container.addClass('alm-'+e).attr('data-alm-id', e); // Add unique classname and data id
@@ -47,14 +44,15 @@
47
  alm.post_id = alm.el.attr('data-post-id');
48
  alm.prefix = 'alm-';
49
 
50
- alm.cache = alm.content.attr('data-cache'); // Cache add-on
51
- alm.cache_id = alm.content.attr('data-cache-id'); // cache value
52
- alm.cache_path = alm.content.attr('data-cache-path'); // cache path
53
- alm.cache_logged_in = alm.content.attr('data-cache-logged-in'); // cache logged in (settings)
54
-
55
  alm.repeater = alm.content.attr('data-repeater'); // Repeaters
56
  alm.theme_repeater = alm.content.attr('data-theme-repeater');
57
-
 
 
 
 
 
 
58
  alm.scroll_distance = parseInt(alm.content.attr('data-scroll-distance'));
59
  alm.scroll_container = alm.content.attr('data-scroll-container');
60
  alm.max_pages = parseInt(alm.content.attr('data-max-pages'));
@@ -69,20 +67,23 @@
69
  alm.lang = alm.content.attr('data-lang');
70
  alm.orginal_posts_per_page = alm.content.attr('data-posts-per-page'); // Used for paging add-on
71
  alm.posts_per_page = alm.content.attr('data-posts-per-page');
 
 
 
 
 
 
72
 
73
- alm.cta_array = '';
74
  alm.cta = alm.content.attr('data-cta'); // CTA add-on
75
  alm.cta_position = alm.content.attr('data-cta-position');
76
  alm.cta_repeater = alm.content.attr('data-cta-repeater');
77
- alm.cta_theme_repeater = alm.content.attr('data-cta-theme-repeater');
78
 
79
- alm.acf_array = '';
80
  alm.acf = alm.content.attr('data-acf'); // ACF add-on
81
  alm.acf_field_type = alm.content.attr('data-acf-field-type'); // Field Type
82
  alm.acf_field_name = alm.content.attr('data-acf-field-name'); // Field Name
83
  alm.acf_post_id = alm.content.attr('data-acf-post-id'); // Get the Post ID
84
 
85
- alm.nextpage_array = '';
86
  alm.nextpage = alm.content.attr('data-nextpage'); // Nextpage add-on
87
  alm.nextpage_urls = alm.content.attr('data-nextpage-urls'); // Update url
88
  alm.nextpage_scroll = alm.content.attr('data-nextpage-scroll'); // Scroll
@@ -99,7 +100,6 @@
99
  if(alm.comments === 'true'){ // if comments, then set alm.content to comments wrap
100
  alm.content = $('.alm-comments', alm.container);
101
  }
102
- alm.comments_array = '';
103
  alm.comments_post_id = alm.content.attr('data-comments_post_id'); // current post id
104
  alm.comments_per_page = alm.content.attr('data-comments_per_page');
105
  alm.comments_type = alm.content.attr('data-comments_type');
@@ -124,7 +124,14 @@
124
  alm.paging_show_at_most = alm.content.attr('data-paging-show-at-most');
125
  alm.paging_classes = alm.content.attr('data-paging-classes');
126
  alm.paging_init = true;
127
-
 
 
 
 
 
 
 
128
 
129
  /* REST API */
130
  if(alm.restapi === 'true'){
@@ -147,19 +154,14 @@
147
  if(alm.paging_show_at_most === undefined){
148
  alm.paging_show_at_most = 7;
149
  }
150
- if(alm.preloaded === 'true'){ // Ifpreloaded, pause.
151
  alm.pause = true;
152
  }
153
  }else{
154
  alm.paging = false;
155
  }
156
 
157
-
158
- if(alm.paging_controls === 'true'){
159
- alm.paging_controls = true;
160
- }else{
161
- alm.paging_controls = false;
162
- }
163
  /* End Paging */
164
 
165
 
@@ -215,10 +217,10 @@
215
  alm.trailing_slash = (alm.content.attr('data-seo-trailing-slash') === 'false') ? '' : '/';
216
 
217
  if(alm.start_page){
218
-
219
  alm.seo_scroll = alm.content.attr('data-seo-scroll');
220
  alm.seo_scroll_speed = alm.content.attr('data-seo-scroll-speed');
221
  alm.seo_scrolltop = alm.content.attr('data-seo-scrolltop');
 
222
 
223
  alm.isPaged = false;
224
 
@@ -226,11 +228,9 @@
226
  alm.isPaged = true; // Is this a $paged page > 1 ?
227
  alm.posts_per_page = alm.start_page * alm.posts_per_page;
228
  }
229
- // If paging is enabled, reset our posts_per_page
230
- if(alm.paging){
231
  alm.posts_per_page = alm.orginal_posts_per_page;
232
  }
233
-
234
  }else{
235
  alm.start_page = 1;
236
  }
@@ -238,7 +238,6 @@
238
 
239
 
240
  /* Nextpage */
241
-
242
  if (alm.nextpage === 'true'){
243
  alm.nextpage = true;
244
  alm.posts_per_page = 1;
@@ -246,7 +245,7 @@
246
  alm.nextpage = false;
247
  }
248
  if (alm.nextpage_urls === undefined){
249
- alm.nextpage = 'true';
250
  }
251
  if (alm.nextpage_scroll === undefined){
252
  alm.nextpage_scroll = '250:30';
@@ -264,21 +263,15 @@
264
  if (alm.nextpage_startpage > 1) {
265
  alm.isPaged = true;
266
  }
267
-
268
  /* End Nextpage */
269
 
270
 
271
  /* Advanced Custom Fields */
272
-
273
- if (alm.acf === 'true'){
274
- alm.acf = true;
275
- }else{
276
- alm.acf = false;
277
- }
278
  if (alm.acf_field_type === undefined || alm.acf_field_name === undefined || alm.acf_post_id === undefined){
279
  alm.acf = false;
280
  }
281
-
282
  /* End Advanced Custom Fields */
283
 
284
 
@@ -309,17 +302,10 @@
309
  alm.previous_post_scroll_top = alm.content.attr('data-previous-post-scrolltop');
310
  /* End Previous Post */
311
 
 
 
312
 
313
- /* Define offset */
314
- if (alm.content.attr('data-offset') === undefined){
315
- alm.offset = 0;
316
- }else{
317
- alm.offset = alm.content.attr('data-offset');
318
- }
319
-
320
- /* Check for pause on init
321
- * Pause could be used to hold the loading of posts for a button click.
322
- */
323
  if (alm.pause === undefined || (alm.seo && alm.start_page > 1)){// SEO only
324
  alm.pause = false;
325
  }
@@ -330,8 +316,7 @@
330
  alm.pause = true;
331
  }
332
 
333
-
334
- /* Select the repeater template */
335
  if (alm.repeater === undefined){
336
  alm.repeater = 'default';
337
  }
@@ -339,36 +324,22 @@
339
  alm.theme_repeater = 'null';
340
  }
341
 
342
-
343
- /* Max number of pages to load while scrolling */
344
- if (alm.max_pages === undefined){
345
- alm.max_pages = 0;
346
- }
347
- if (alm.max_pages === 0){
348
- alm.max_pages = 10000;
349
- }
350
-
351
 
352
  /* Scroll Distance */
353
- if (alm.scroll_distance === undefined){
354
- alm.scroll_distance = 150;
355
- }
356
-
357
 
358
  /* Scroll Container */
359
- if (alm.scroll_container === undefined){
360
- alm.scroll_container = '';
361
- }
362
-
363
-
364
- /* Transition Params */
365
- if (alm.transition === undefined){
366
- alm.transition = 'slide';
367
- }
368
- if(alm.tcc === undefined){ // transition_container_classes
369
- alm.tcc = '';
370
- }
371
-
372
  alm.is_masonry_preloaded = false;
373
  if(alm.transition === 'masonry'){
374
  alm.masonry_selector = alm.content.attr('data-masonry-selector');
@@ -388,54 +359,10 @@
388
  }
389
  }
390
 
391
- /* Speed */
392
- if (alm.speed === undefined){
393
- alm.speed = 250;
394
- } else{
395
- alm.speed = parseInt(alm.speed);
396
- }
397
-
398
- /* Transition Container */
399
- if (alm.transition_container === undefined || alm.transition_container === 'true'){
400
- alm.transition_container = true;
401
- }else {
402
- alm.transition_container = false;
403
- }
404
-
405
-
406
- /* Images Loaded */
407
- if (alm.images_loaded === undefined){
408
- alm.images_loaded = 'false';
409
- }
410
-
411
-
412
- /* Destroy After */
413
- if (alm.destroy_after !== undefined) {}
414
-
415
-
416
- /* Button Labels */
417
- if (alm.content.attr('data-button-label') === undefined){
418
- alm.button_label = 'Older Posts';
419
- }else{
420
- alm.button_label = alm.content.attr('data-button-label');
421
- }
422
-
423
-
424
- alm.button_loading_label = alm.content.attr('data-button-loading-label');
425
- if (alm.button_loading_label === undefined){
426
- alm.button_loading_label = false;
427
- }
428
-
429
-
430
- /* Button Class */
431
- if (alm.content.attr('data-button-class') === undefined){
432
- alm.button_class = '';
433
- }else{
434
- alm.button_class = ' ' + alm.content.attr('data-button-class');
435
- }
436
-
437
-
438
- /* Define scroll event */
439
  if (alm.content.attr('data-scroll') === undefined){
440
  alm.scroll = true;
441
  }else if (alm.content.attr('data-scroll') === 'false'){
@@ -444,28 +371,22 @@
444
  alm.scroll = true;
445
  }
446
 
 
 
447
 
448
- /* Parse multiple Post Types */
449
- alm.post_type = alm.content.attr('data-post-type');
450
- alm.post_type = alm.post_type.split(",");
451
-
452
-
453
- /* Sticky Posts */
454
- alm.sticky_posts = alm.content.attr('data-sticky-posts');
455
-
456
-
457
- /* Append 'load More' button to .ajax-load-more-wrap */
458
- alm.container.append('<div class="' + alm.prefix + 'btn-wrap"/>');
459
- alm.btnWrap = $('.' + alm.prefix + 'btn-wrap', alm.container);
460
 
 
 
 
 
461
 
462
  // Paging add-on
463
- if(alm.paging){
464
- alm.content.parent().addClass('loading'); // add loading class to main container
465
  }else{
466
- // If paging is false
467
- $('.'+ alm.prefix + 'btn-wrap', alm.container).append('<button id="load-more" class="' + alm.prefix + 'load-more-btn more'+ alm.button_class +'">' + alm.button_label + '</button>');
468
- alm.button = $('.alm-load-more-btn', alm.container);
469
  }
470
 
471
 
@@ -540,9 +461,7 @@
540
  };
541
 
542
 
543
-
544
  /* ajax()
545
- *
546
  * Ajax Load Moe Ajax function
547
  *
548
  * @param queryType The type of Ajax request (standard/totalposts)
@@ -552,12 +471,11 @@
552
  alm.AjaxLoadMore.ajax = function (queryType) {
553
 
554
  // Default action
555
- var action = 'alm_query_posts';
556
-
557
 
558
  // ACF Params
 
559
  if(alm.acf){
560
-
561
  // Custom query for the Repeater / Gallery / Flexible Content field types
562
  if(alm.acf_field_type !== 'relationship'){
563
  action = 'alm_acf_query';
@@ -568,10 +486,10 @@
568
  'field_type' : alm.acf_field_type,
569
  'field_name' : alm.acf_field_name
570
  };
571
- }
572
-
573
 
574
  // Nextpage Params
 
575
  if(alm.nextpage){
576
  action = 'alm_nextpage_query';
577
  alm.nextpage_array = {
@@ -584,8 +502,8 @@
584
  };
585
  }
586
 
587
-
588
  // Previous Post Params
 
589
  if(alm.previous_post){
590
  alm.previous_post_array = {
591
  'previous_post' : 'true',
@@ -594,8 +512,8 @@
594
  };
595
  }
596
 
597
-
598
  // Comment query
 
599
  if(alm.comments === 'true'){
600
  action = 'alm_comments_query';
601
  alm.posts_per_page = alm.comments_per_page;
@@ -609,9 +527,24 @@
609
  'callback': alm.comments_callback,
610
  };
611
  }
612
-
613
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
614
  // CTA Add-on Query params
 
615
  if(alm.cta === 'true'){
616
  alm.cta_array = {
617
  'cta': 'true',
@@ -620,13 +553,15 @@
620
  'cta_theme_repeater': alm.cta_theme_repeater,
621
  };
622
  }
623
-
624
 
625
  // REST API
626
  if(alm.restapi){
627
  var alm_template = wp.template(alm.restapi_template_id),
628
  rest_url = alm.restapi_base_url + '/' + alm.restapi_namespace + '/' + alm.restapi_endpoint,
629
  rest_data = {
 
 
630
  posts_per_page : alm.posts_per_page,
631
  page : alm.page,
632
  offset : alm.offset,
@@ -661,8 +596,7 @@
661
  lang : alm.lang,
662
  preloaded : alm.preloaded,
663
  preloaded_amount : alm.preloaded_amount,
664
- seo_start_page : alm.start_page,
665
- id : el.attr('data-id')
666
  };
667
 
668
  $.ajax({
@@ -711,8 +645,12 @@
711
  dataType: "JSON",
712
  data: {
713
  action : action,
 
714
  query_type : queryType,
715
- nonce : alm_localize.alm_nonce,
 
 
 
716
  cache_id : alm.cache_id,
717
  cache_logged_in : alm.cache_logged_in,
718
  repeater : alm.repeater,
@@ -721,6 +659,7 @@
721
  nextpage : alm.nextpage_array,
722
  cta : alm.cta_array,
723
  comments : alm.comments_array,
 
724
  post_type : alm.post_type,
725
  sticky_posts : alm.sticky_posts,
726
  post_format : alm.content.attr('data-post-format'),
@@ -757,10 +696,7 @@
757
  seo_start_page : alm.start_page,
758
  paging : alm.paging,
759
  previous_post : alm.previous_post_array,
760
- lang : alm.lang,
761
- slug : alm.slug,
762
- canonical_url : alm.canonical_url,
763
- id : el.attr('data-id')
764
  },
765
 
766
  beforeSend: function () {
@@ -886,7 +822,12 @@
886
 
887
  // isPaged
888
  if(alm.isPaged){
889
- alm.posts_per_page = alm.content.attr('data-posts-per-page'); // Reset our posts per page variable
 
 
 
 
 
890
  alm.page = alm.start_page - 1; // Set our new page #
891
  }
892
 
@@ -1289,7 +1230,7 @@
1289
  */
1290
  alm.AjaxLoadMore.triggerAddons = function(alm){
1291
  if ($.isFunction($.fn.almSEO) && alm.seo) {
1292
- $.fn.almSEO(alm);
1293
  }
1294
  if($.isFunction($.fn.almSetNextPage)){
1295
  $.fn.almSetNextPage(alm);
@@ -1360,7 +1301,8 @@
1360
  */
1361
 
1362
  if(!alm.paging && !alm.fetchingPreviousPost){
1363
- alm.button.on('click', function () {
 
1364
  if (alm.pause === 'true') {
1365
  alm.pause = false;
1366
  alm.pause_override = false;
@@ -1491,6 +1433,15 @@
1491
  alm.AjaxLoadMore.getPreviousPost(); // Set next post on load
1492
  alm.loading = false;
1493
  }
 
 
 
 
 
 
 
 
 
1494
 
1495
  // Next Page Add-on
1496
  if(alm.nextpage){
@@ -1530,7 +1481,6 @@
1530
  * Update current page - triggered from paging add-on
1531
  * @since 2.7.0
1532
  */
1533
-
1534
  $.fn.almUpdateCurrentPage = function(current, obj, alm){
1535
  alm.page = current;
1536
 
@@ -1614,7 +1564,7 @@
1614
  $.fn.almTriggerClick = function(){
1615
  alm.button.trigger('click');
1616
  };
1617
-
1618
 
1619
 
1620
  //Custom easing function
@@ -1626,145 +1576,8 @@
1626
  };
1627
 
1628
  // End $.ajaxloadmore
1629
-
1630
-
1631
-
1632
-
1633
-
1634
-
1635
-
1636
- /* $.fn.almFilter(type, speed, data)
1637
- *
1638
- * Filter Ajax Load More
1639
- * @type ('slide', 'fade', null);
1640
- * @speed '300';
1641
- * @data obj;
1642
- *
1643
- * @since 2.6.1
1644
- */
1645
- $.fn.almFilter = function (transition, speed, data) {
1646
-
1647
- if(data.target){
1648
- // if a target has been specified
1649
- $(".ajax-load-more-wrap[data-id='" + data.target + "']").each(function (e) {
1650
- var el = $(this);
1651
- $.fn.almFilterTransition(transition, speed, data, el);
1652
- });
1653
- } else {
1654
- // Target not specified
1655
- $(".ajax-load-more-wrap").each(function (e) {
1656
- var el = $(this);
1657
- $.fn.almFilterTransition(transition, speed, data, el);
1658
- });
1659
- }
1660
- };
1661
-
1662
-
1663
- /* $.fn.almFilterTransition(transition, speed, data, el)
1664
- *
1665
- * Transition Ajax Load More
1666
- *
1667
- * @since 2.13.1
1668
- */
1669
- $.fn.almFilterTransition = function(transition, speed, data, el){
1670
- if(transition === 'slide'){ // Slide transition
1671
- el.slideUp(speed, function(){
1672
- $('.alm-listing', el).html(''); // Clear listings
1673
- $('.alm-btn-wrap', el).remove(); // remove buttons
1674
- el.fadeIn(speed);
1675
-
1676
- almSetFilters(el, data);
1677
-
1678
- });
1679
- }else if(transition === 'fade'){ // Fade transition
1680
- el.fadeOut(speed, function(){
1681
- $('.alm-listing', el).html(''); // Clear listings
1682
- $('.alm-btn-wrap', el).remove(); // remove buttons
1683
- el.fadeIn(speed);
1684
-
1685
- almSetFilters(el, data);
1686
-
1687
- });
1688
- }else if(transition === 'masonry'){ // Masonry transition
1689
- el.fadeOut(speed, function(){
1690
- $('.alm-listing', el).html(''); // Clear listings
1691
- $('.alm-btn-wrap', el).remove(); // remove buttons
1692
- el.fadeIn(speed);
1693
-
1694
- almSetFilters(el, data);
1695
-
1696
- });
1697
- }else{
1698
- $('.alm-listing', el).html(''); // Clear listings
1699
- $('.alm-btn-wrap', el).remove(); // remove buttons
1700
- el.fadeIn(speed);
1701
-
1702
- almSetFilters(el, data);
1703
-
1704
- }
1705
- };
1706
-
1707
-
1708
-
1709
- /* almSetFilters(el, data)
1710
- *
1711
- * Set filter parameters on .alm-listing element
1712
- *
1713
- * @updated 3.1.1
1714
- * @since 2.6.1
1715
- */
1716
- let almSetFilters = function(el, data){
1717
- $.each(data, function(key, value) {
1718
- key = key.replace(/\W+/g, '-').replace(/([a-z\d])([A-Z])/g, '$1-$2'); // Convert camelCase data() object back to dash (-)
1719
- $('.alm-listing', el).attr('data-'+key, value);
1720
- });
1721
-
1722
- if ($.isFunction($.fn.almFilterComplete)){
1723
- $.fn.almFilterComplete();
1724
- }
1725
-
1726
- alm_is_filtering = true;
1727
-
1728
- if(data.target){
1729
- // if a target has been specified
1730
- $(".ajax-load-more-wrap[data-id="+data.target+"]").ajaxloadmore(); // re-initiate Ajax Load More
1731
- } else {
1732
- // Target not specified
1733
- $(".ajax-load-more-wrap").ajaxloadmore(); // re-initiate Ajax Load More
1734
- }
1735
- };
1736
-
1737
-
1738
-
1739
- /* $.fn.ajaxloadmore()
1740
- *
1741
- * Initiate instances of Ajax load More via filters or external functions
1742
- * @since 2.1.2
1743
- */
1744
- /*
1745
- $.fn.ajaxloadmore = function () {
1746
- //$(this).data('alm', new $.ajaxloadmore($(this), 0));
1747
- };
1748
- */
1749
-
1750
-
1751
-
1752
- /*
1753
- * Initiate Ajax load More instances
1754
- *
1755
- * @updated 3.1.1
1756
- * @since 2.1.2
1757
- */
1758
-
1759
- /*
1760
- let alm = [...document.querySelectorAll('.ajax-load-more-wrap')];
1761
- if(alm){
1762
- // Loop each alm element
1763
- alm.forEach((alm, e) => {
1764
- $(alm).data('alm', new $.ajaxloadmore($(alm), e));
1765
- });
1766
- }
1767
- */
1768
 
1769
 
1770
  /* $.fn.ajaxloadmore()
@@ -1774,7 +1587,7 @@
1774
  */
1775
  $.fn.ajaxloadmore = function () {
1776
  return this.each(function (e) {
1777
- $(this).data('alm', new $.ajaxloadmore($(this), e));
1778
  });
1779
  };
1780
 
@@ -1784,9 +1597,23 @@
1784
  * Initiate Ajax load More if div is present on screen
1785
  * @since 2.1.2
1786
  */
1787
- if ($(".ajax-load-more-wrap").length){
1788
- $(".ajax-load-more-wrap").ajaxloadmore();
 
 
 
 
 
1789
  }
 
 
 
 
 
 
 
 
 
1790
 
1791
 
1792
- })(jQuery);
4
  * https://connekthq.com/plugins/ajax-load-more/
5
  *
6
  * Copyright 2017 Connekt Media - https://connekthq.com
7
+ * Free to use under the GPLv2 license.
8
  * http://www.gnu.org/licenses/gpl-2.0.html
9
  *
10
  * Author: Darren Cooney
11
+ * Twitter: @KaptonKaos, @ajaxloadmore, @connekthq
12
  */
13
 
14
  (function ($) {
15
+ "use strict";
16
 
17
+ $.ajaxloadmore = function (el, e) {
 
 
18
 
19
  //Prevent loading of unnessasry posts - move user to top of page
20
  if(alm_localize.scrolltop === 'true'){
21
  $(window).scrollTop(0);
22
  }
23
+
24
+ //Set ALM Variables
25
  let alm = this;
26
  alm.AjaxLoadMore = {};
27
  alm.window = $(window);
33
  alm.init = true;
34
  alm.loading = true;
35
  alm.finished = false;
 
36
  alm.el = el;
37
  alm.container = el;
38
  alm.container.addClass('alm-'+e).attr('data-alm-id', e); // Add unique classname and data id
44
  alm.post_id = alm.el.attr('data-post-id');
45
  alm.prefix = 'alm-';
46
 
 
 
 
 
 
47
  alm.repeater = alm.content.attr('data-repeater'); // Repeaters
48
  alm.theme_repeater = alm.content.attr('data-theme-repeater');
49
+
50
+ alm.post_type = alm.content.attr('data-post-type');
51
+ alm.post_type = alm.post_type.split(",");
52
+ alm.sticky_posts = alm.content.attr('data-sticky-posts');
53
+ alm.btnWrap = $('.alm-btn-wrap', alm.container);
54
+ alm.button_label = alm.content.attr('data-button-label');
55
+ alm.button_loading_label = alm.content.attr('data-button-loading-label');
56
  alm.scroll_distance = parseInt(alm.content.attr('data-scroll-distance'));
57
  alm.scroll_container = alm.content.attr('data-scroll-container');
58
  alm.max_pages = parseInt(alm.content.attr('data-max-pages'));
67
  alm.lang = alm.content.attr('data-lang');
68
  alm.orginal_posts_per_page = alm.content.attr('data-posts-per-page'); // Used for paging add-on
69
  alm.posts_per_page = alm.content.attr('data-posts-per-page');
70
+ alm.offset = alm.content.attr('data-offset');
71
+
72
+ alm.cache = alm.content.attr('data-cache'); // Cache add-on
73
+ alm.cache_id = alm.content.attr('data-cache-id'); // cache value
74
+ alm.cache_path = alm.content.attr('data-cache-path'); // cache path
75
+ alm.cache_logged_in = alm.content.attr('data-cache-logged-in'); // cache logged in (settings)
76
 
 
77
  alm.cta = alm.content.attr('data-cta'); // CTA add-on
78
  alm.cta_position = alm.content.attr('data-cta-position');
79
  alm.cta_repeater = alm.content.attr('data-cta-repeater');
80
+ alm.cta_theme_repeater = alm.content.attr('data-cta-theme-repeater');
81
 
 
82
  alm.acf = alm.content.attr('data-acf'); // ACF add-on
83
  alm.acf_field_type = alm.content.attr('data-acf-field-type'); // Field Type
84
  alm.acf_field_name = alm.content.attr('data-acf-field-name'); // Field Name
85
  alm.acf_post_id = alm.content.attr('data-acf-post-id'); // Get the Post ID
86
 
 
87
  alm.nextpage = alm.content.attr('data-nextpage'); // Nextpage add-on
88
  alm.nextpage_urls = alm.content.attr('data-nextpage-urls'); // Update url
89
  alm.nextpage_scroll = alm.content.attr('data-nextpage-scroll'); // Scroll
100
  if(alm.comments === 'true'){ // if comments, then set alm.content to comments wrap
101
  alm.content = $('.alm-comments', alm.container);
102
  }
 
103
  alm.comments_post_id = alm.content.attr('data-comments_post_id'); // current post id
104
  alm.comments_per_page = alm.content.attr('data-comments_per_page');
105
  alm.comments_type = alm.content.attr('data-comments_type');
124
  alm.paging_show_at_most = alm.content.attr('data-paging-show-at-most');
125
  alm.paging_classes = alm.content.attr('data-paging-classes');
126
  alm.paging_init = true;
127
+
128
+ alm.users = (alm.content.attr('data-users') === 'true') ? true : false; // Users add-on
129
+ if(alm.users){
130
+ // Override paging params for users
131
+ alm.orginal_posts_per_page = alm.content.attr('data-users-per-page');
132
+ alm.posts_per_page = alm.content.attr('data-users-per-page');
133
+ }
134
+
135
 
136
  /* REST API */
137
  if(alm.restapi === 'true'){
154
  if(alm.paging_show_at_most === undefined){
155
  alm.paging_show_at_most = 7;
156
  }
157
+ if(alm.preloaded === 'true'){ // If preloaded, pause ALM
158
  alm.pause = true;
159
  }
160
  }else{
161
  alm.paging = false;
162
  }
163
 
164
+ alm.paging_controls = (alm.paging_controls === 'true') ? true : false;
 
 
 
 
 
165
  /* End Paging */
166
 
167
 
217
  alm.trailing_slash = (alm.content.attr('data-seo-trailing-slash') === 'false') ? '' : '/';
218
 
219
  if(alm.start_page){
 
220
  alm.seo_scroll = alm.content.attr('data-seo-scroll');
221
  alm.seo_scroll_speed = alm.content.attr('data-seo-scroll-speed');
222
  alm.seo_scrolltop = alm.content.attr('data-seo-scrolltop');
223
+ alm.seo_controls = alm.content.attr('data-seo-controls');
224
 
225
  alm.isPaged = false;
226
 
228
  alm.isPaged = true; // Is this a $paged page > 1 ?
229
  alm.posts_per_page = alm.start_page * alm.posts_per_page;
230
  }
231
+ if(alm.paging){ // If paging, reset posts_per_page
 
232
  alm.posts_per_page = alm.orginal_posts_per_page;
233
  }
 
234
  }else{
235
  alm.start_page = 1;
236
  }
238
 
239
 
240
  /* Nextpage */
 
241
  if (alm.nextpage === 'true'){
242
  alm.nextpage = true;
243
  alm.posts_per_page = 1;
245
  alm.nextpage = false;
246
  }
247
  if (alm.nextpage_urls === undefined){
248
+ alm.nextpage_urls = 'true';
249
  }
250
  if (alm.nextpage_scroll === undefined){
251
  alm.nextpage_scroll = '250:30';
263
  if (alm.nextpage_startpage > 1) {
264
  alm.isPaged = true;
265
  }
 
266
  /* End Nextpage */
267
 
268
 
269
  /* Advanced Custom Fields */
270
+ alm.acf = (alm.acf === 'true') ? true : false;
271
+ // if field type, name or post ID is empty
 
 
 
 
272
  if (alm.acf_field_type === undefined || alm.acf_field_name === undefined || alm.acf_post_id === undefined){
273
  alm.acf = false;
274
  }
 
275
  /* End Advanced Custom Fields */
276
 
277
 
302
  alm.previous_post_scroll_top = alm.content.attr('data-previous-post-scrolltop');
303
  /* End Previous Post */
304
 
305
+ /* Offset */
306
+ alm.offset = (alm.offset === undefined) ? 0 : alm.offset;
307
 
308
+ /* Pause */
 
 
 
 
 
 
 
 
 
309
  if (alm.pause === undefined || (alm.seo && alm.start_page > 1)){// SEO only
310
  alm.pause = false;
311
  }
316
  alm.pause = true;
317
  }
318
 
319
+ /* Repeater and Theme Repeater */
 
320
  if (alm.repeater === undefined){
321
  alm.repeater = 'default';
322
  }
324
  alm.theme_repeater = 'null';
325
  }
326
 
327
+ /* Max Pages (while scrolling) */
328
+ alm.max_pages = (alm.max_pages === undefined || alm.max_pages === 0) ? 10000 : alm.max_pages;
 
 
 
 
 
 
 
329
 
330
  /* Scroll Distance */
331
+ alm.scroll_distance = (alm.scroll_distance === undefined) ? 150 : alm.scroll_distance;
 
 
 
332
 
333
  /* Scroll Container */
334
+ alm.scroll_container = (alm.scroll_container === undefined) ? '' : alm.scroll_container;
335
+
336
+ /* Transition */
337
+ alm.transition = (alm.transition === undefined) ? 'slide' : alm.transition;
338
+
339
+ /* Transition Container Class */
340
+ alm.tcc = (alm.tcc === undefined) ? '' : alm.tcc;
341
+
342
+ /* Masonry */
 
 
 
 
343
  alm.is_masonry_preloaded = false;
344
  if(alm.transition === 'masonry'){
345
  alm.masonry_selector = alm.content.attr('data-masonry-selector');
359
  }
360
  }
361
 
362
+ /* Speed */
363
+ alm.speed = (alm.speed === undefined || alm.speed === '') ? 250 : parseInt(alm.speed);
364
+
365
+ /* Scroll */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
366
  if (alm.content.attr('data-scroll') === undefined){
367
  alm.scroll = true;
368
  }else if (alm.content.attr('data-scroll') === 'false'){
371
  alm.scroll = true;
372
  }
373
 
374
+ /* Transition Container */
375
+ alm.transition_container = (alm.transition_container === undefined || alm.transition_container === 'true') ? true : false;
376
 
377
+ /* Images Loaded */
378
+ alm.images_loaded = (alm.images_loaded === undefined) ? 'false' : alm.images_loaded;
 
 
 
 
 
 
 
 
 
 
379
 
380
+ /* Button Labels */
381
+ alm.button_label = (alm.button_label === undefined) ? 'Older Posts' : alm.button_label;
382
+ alm.button_loading_label = (alm.button_loading_label === undefined) ? false : alm.button_loading_label;
383
+
384
 
385
  // Paging add-on
386
+ if(alm.paging){
387
+ alm.content.parent().addClass('loading'); // add loading class to main container
388
  }else{
389
+ alm.button = $('.alm-load-more-btn', alm.container); // Set button element
 
 
390
  }
391
 
392
 
461
  };
462
 
463
 
 
464
  /* ajax()
 
465
  * Ajax Load Moe Ajax function
466
  *
467
  * @param queryType The type of Ajax request (standard/totalposts)
471
  alm.AjaxLoadMore.ajax = function (queryType) {
472
 
473
  // Default action
474
+ var action = 'alm_query_posts';
 
475
 
476
  // ACF Params
477
+ alm.acf_array = '';
478
  if(alm.acf){
 
479
  // Custom query for the Repeater / Gallery / Flexible Content field types
480
  if(alm.acf_field_type !== 'relationship'){
481
  action = 'alm_acf_query';
486
  'field_type' : alm.acf_field_type,
487
  'field_name' : alm.acf_field_name
488
  };
489
+ }
 
490
 
491
  // Nextpage Params
492
+ alm.nextpage_array = '';
493
  if(alm.nextpage){
494
  action = 'alm_nextpage_query';
495
  alm.nextpage_array = {
502
  };
503
  }
504
 
 
505
  // Previous Post Params
506
+ alm.previous_post_array = '';
507
  if(alm.previous_post){
508
  alm.previous_post_array = {
509
  'previous_post' : 'true',
512
  };
513
  }
514
 
 
515
  // Comment query
516
+ alm.comments_array = '';
517
  if(alm.comments === 'true'){
518
  action = 'alm_comments_query';
519
  alm.posts_per_page = alm.comments_per_page;
527
  'callback': alm.comments_callback,
528
  };
529
  }
530
+
531
+ // Users query
532
+ alm.users_array = '';
533
+ if(alm.users){
534
+ action = 'alm_users_query';
535
+ alm.users_array = {
536
+ 'users': 'true',
537
+ 'role': alm.content.attr('data-users-role'),
538
+ 'include': alm.content.attr('data-users-include'),
539
+ 'exclude': alm.content.attr('data-users-exclude'),
540
+ 'per_page': alm.posts_per_page,
541
+ 'order': alm.content.attr('data-users-order'),
542
+ 'orderby': alm.content.attr('data-users-orderby'),
543
+ };
544
+ }
545
+
546
  // CTA Add-on Query params
547
+ alm.cta_array = '';
548
  if(alm.cta === 'true'){
549
  alm.cta_array = {
550
  'cta': 'true',
553
  'cta_theme_repeater': alm.cta_theme_repeater,
554
  };
555
  }
556
+
557
 
558
  // REST API
559
  if(alm.restapi){
560
  var alm_template = wp.template(alm.restapi_template_id),
561
  rest_url = alm.restapi_base_url + '/' + alm.restapi_namespace + '/' + alm.restapi_endpoint,
562
  rest_data = {
563
+ id : el.attr('data-id'),
564
+ post_id : alm.post_id,
565
  posts_per_page : alm.posts_per_page,
566
  page : alm.page,
567
  offset : alm.offset,
596
  lang : alm.lang,
597
  preloaded : alm.preloaded,
598
  preloaded_amount : alm.preloaded_amount,
599
+ seo_start_page : alm.start_page
 
600
  };
601
 
602
  $.ajax({
645
  dataType: "JSON",
646
  data: {
647
  action : action,
648
+ nonce : alm_localize.alm_nonce,
649
  query_type : queryType,
650
+ post_id : alm.post_id,
651
+ id : el.attr('data-id'),
652
+ slug : alm.slug,
653
+ canonical_url : alm.canonical_url,
654
  cache_id : alm.cache_id,
655
  cache_logged_in : alm.cache_logged_in,
656
  repeater : alm.repeater,
659
  nextpage : alm.nextpage_array,
660
  cta : alm.cta_array,
661
  comments : alm.comments_array,
662
+ users : alm.users_array,
663
  post_type : alm.post_type,
664
  sticky_posts : alm.sticky_posts,
665
  post_format : alm.content.attr('data-post-format'),
696
  seo_start_page : alm.start_page,
697
  paging : alm.paging,
698
  previous_post : alm.previous_post_array,
699
+ lang : alm.lang
 
 
 
700
  },
701
 
702
  beforeSend: function () {
822
 
823
  // isPaged
824
  if(alm.isPaged){
825
+ // Reset our posts per page variable
826
+ if(alm.users){
827
+ alm.posts_per_page = alm.content.attr('data-users-per-page');
828
+ } else {
829
+ alm.posts_per_page = alm.content.attr('data-posts-per-page');
830
+ }
831
  alm.page = alm.start_page - 1; // Set our new page #
832
  }
833
 
1230
  */
1231
  alm.AjaxLoadMore.triggerAddons = function(alm){
1232
  if ($.isFunction($.fn.almSEO) && alm.seo) {
1233
+ $.fn.almSEO(alm, false);
1234
  }
1235
  if($.isFunction($.fn.almSetNextPage)){
1236
  $.fn.almSetNextPage(alm);
1301
  */
1302
 
1303
  if(!alm.paging && !alm.fetchingPreviousPost){
1304
+ alm.button.on('click', function (e) {
1305
+ e.preventDefault();
1306
  if (alm.pause === 'true') {
1307
  alm.pause = false;
1308
  alm.pause_override = false;
1433
  alm.AjaxLoadMore.getPreviousPost(); // Set next post on load
1434
  alm.loading = false;
1435
  }
1436
+
1437
+ // Preloaded + SEO && !Paging
1438
+ if(alm.preloaded === 'true' && alm.seo && !alm.paging){
1439
+ setTimeout(function () {
1440
+ if ($.isFunction($.fn.almSEO) && alm.start_page < 1) {
1441
+ $.fn.almSEO(alm, true);
1442
+ }
1443
+ }, 300);
1444
+ }
1445
 
1446
  // Next Page Add-on
1447
  if(alm.nextpage){
1481
  * Update current page - triggered from paging add-on
1482
  * @since 2.7.0
1483
  */
 
1484
  $.fn.almUpdateCurrentPage = function(current, obj, alm){
1485
  alm.page = current;
1486
 
1564
  $.fn.almTriggerClick = function(){
1565
  alm.button.trigger('click');
1566
  };
1567
+
1568
 
1569
 
1570
  //Custom easing function
1576
  };
1577
 
1578
  // End $.ajaxloadmore
1579
+
1580
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1581
 
1582
 
1583
  /* $.fn.ajaxloadmore()
1587
  */
1588
  $.fn.ajaxloadmore = function () {
1589
  return this.each(function (e) {
1590
+ new $.ajaxloadmore($(this), e);
1591
  });
1592
  };
1593
 
1597
  * Initiate Ajax load More if div is present on screen
1598
  * @since 2.1.2
1599
  */
1600
+
1601
+ let ajaxloadmore = document.querySelectorAll('.ajax-load-more-wrap');
1602
+ if(ajaxloadmore.length){
1603
+ [...ajaxloadmore].forEach((alm, e) => {
1604
+ //$(alm).data('alm', new $.ajaxloadmore($(alm), e));
1605
+ new $.ajaxloadmore($(alm), e);
1606
+ });
1607
  }
1608
+
1609
+
1610
+
1611
+ /*
1612
+ if ($(".ajax-load-more-wrap").length){
1613
+ $(".ajax-load-more-wrap").ajaxloadmore();
1614
+ }
1615
+ */
1616
+
1617
 
1618
 
1619
+ })(jQuery);
core/src/js/helpers/helpers.js ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ if (!Array.from) {
2
+ Array.from = (function () {
3
+ var toStr = Object.prototype.toString;
4
+ var isCallable = function (fn) {
5
+ return typeof fn === 'function' || toStr.call(fn) === '[object Function]';
6
+ };
7
+ var toInteger = function (value) {
8
+ var number = Number(value);
9
+ if (isNaN(number)) { return 0; }
10
+ if (number === 0 || !isFinite(number)) { return number; }
11
+ return (number > 0 ? 1 : -1) * Math.floor(Math.abs(number));
12
+ };
13
+ var maxSafeInteger = Math.pow(2, 53) - 1;
14
+ var toLength = function (value) {
15
+ var len = toInteger(value);
16
+ return Math.min(Math.max(len, 0), maxSafeInteger);
17
+ };
18
+
19
+ // The length property of the from method is 1.
20
+ return function from(arrayLike/*, mapFn, thisArg */) {
21
+ // 1. Let C be the this value.
22
+ var C = this;
23
+
24
+ // 2. Let items be ToObject(arrayLike).
25
+ var items = Object(arrayLike);
26
+
27
+ // 3. ReturnIfAbrupt(items).
28
+ if (arrayLike == null) {
29
+ throw new TypeError('Array.from requires an array-like object - not null or undefined');
30
+ }
31
+
32
+ // 4. If mapfn is undefined, then let mapping be false.
33
+ var mapFn = arguments.length > 1 ? arguments[1] : void undefined;
34
+ var T;
35
+ if (typeof mapFn !== 'undefined') {
36
+ // 5. else
37
+ // 5. a If IsCallable(mapfn) is false, throw a TypeError exception.
38
+ if (!isCallable(mapFn)) {
39
+ throw new TypeError('Array.from: when provided, the second argument must be a function');
40
+ }
41
+
42
+ // 5. b. If thisArg was supplied, let T be thisArg; else let T be undefined.
43
+ if (arguments.length > 2) {
44
+ T = arguments[2];
45
+ }
46
+ }
47
+
48
+ // 10. Let lenValue be Get(items, "length").
49
+ // 11. Let len be ToLength(lenValue).
50
+ var len = toLength(items.length);
51
+
52
+ // 13. If IsConstructor(C) is true, then
53
+ // 13. a. Let A be the result of calling the [[Construct]] internal method
54
+ // of C with an argument list containing the single item len.
55
+ // 14. a. Else, Let A be ArrayCreate(len).
56
+ var A = isCallable(C) ? Object(new C(len)) : new Array(len);
57
+
58
+ // 16. Let k be 0.
59
+ var k = 0;
60
+ // 17. Repeat, while k < len… (also steps a - h)
61
+ var kValue;
62
+ while (k < len) {
63
+ kValue = items[k];
64
+ if (mapFn) {
65
+ A[k] = typeof T === 'undefined' ? mapFn(kValue, k) : mapFn.call(T, kValue, k);
66
+ } else {
67
+ A[k] = kValue;
68
+ }
69
+ k += 1;
70
+ }
71
+ // 18. Let putStatus be Put(A, "length", len, true).
72
+ A.length = len;
73
+ // 20. Return A.
74
+ return A;
75
+ };
76
+ }());
77
+ }
core/src/js/modules/filtering.js ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ let alm_is_filtering = false; // Global Masonry/Filtering var
2
+
3
+ (function ($) {
4
+
5
+
6
+ /* $.fn.almFilter(type, speed, data)
7
+ *
8
+ * Filter Ajax Load More
9
+ *
10
+ * @param transition string;
11
+ * @param speed number;
12
+ * @param data obj;
13
+ * @since 2.6.1
14
+ */
15
+ $.fn.almFilter = function (transition, speed, data) {
16
+ if(data.target){ // if a target has been specified
17
+ $(".ajax-load-more-wrap[data-id='" + data.target + "']").each(function (e) {
18
+ var el = $(this);
19
+ $.fn.almFilterTransition(transition, speed, data, el);
20
+ });
21
+ } else { // Target not specified
22
+ $(".ajax-load-more-wrap").each(function (e) {
23
+ var el = $(this);
24
+ $.fn.almFilterTransition(transition, speed, data, el);
25
+ });
26
+ }
27
+ };
28
+
29
+
30
+
31
+ /* $.fn.almFilterTransition(transition, speed, data, el)
32
+ *
33
+ * Transition Ajax Load More
34
+ *
35
+ * @param transition string;
36
+ * @param speed number;
37
+ * @param data obj;
38
+ * @param el element;
39
+ * @since 2.13.1
40
+ */
41
+ $.fn.almFilterTransition = function(transition, speed, data, el){
42
+ if(transition === 'slide'){ // Slide transition
43
+ el.slideUp(speed, function(){
44
+ almCompleteFilterTransition(speed, data, el);
45
+ });
46
+ }else if(transition === 'fade' || transition === 'masonry'){ // Fade, Masonry transition
47
+ el.fadeOut(speed, function(){
48
+ almCompleteFilterTransition(speed, data, el);
49
+ });
50
+ }else{ // No transition
51
+ almCompleteFilterTransition(speed, data, el);
52
+ }
53
+ };
54
+
55
+
56
+
57
+ /* almCompleteFilterTransition
58
+ * Complete the filter transition
59
+ *
60
+ * @param speed number;
61
+ * @param data obj;
62
+ * @param el element;
63
+ * @since 3.3
64
+ */
65
+ let almCompleteFilterTransition = (speed, data, el) => {
66
+ let container = el.get(0);
67
+ let listing = container.querySelectorAll('.alm-listing');
68
+ // Loop over all .alm-listing divs
69
+ [...listing].forEach(function(e){
70
+ e.innerHTML = ''; // Clear listings
71
+ });
72
+ let button = container.querySelector('.alm-load-more-btn');
73
+ button.classList.remove('done');// Reset Button
74
+ almSetFilters(speed, data, el);
75
+ }
76
+
77
+
78
+
79
+ /* almSetFilters
80
+ * Set filter parameters on .alm-listing element
81
+ *
82
+ * @param speed number;
83
+ * @param el element;
84
+ * @param data string;
85
+ * @updated 3.3
86
+ * @since 2.6.1
87
+ */
88
+ let almSetFilters = function(speed, data, el){
89
+ $.each(data, function(key, value) {
90
+ key = key.replace(/\W+/g, '-').replace(/([a-z\d])([A-Z])/g, '$1-$2'); // Convert camelCase data() object back to dash (-)
91
+ $('.alm-listing', el).attr('data-'+key, value);
92
+ });
93
+ if ($.isFunction($.fn.almFilterComplete)){
94
+ $.fn.almFilterComplete();
95
+ }
96
+ alm_is_filtering = true;
97
+ el.fadeIn(speed); // Fade ALM back in
98
+
99
+ // re-initiate Ajax Load More
100
+ if(data.target){
101
+ // if a target has been specified
102
+ $(".ajax-load-more-wrap[data-id="+data.target+"]").ajaxloadmore();
103
+ } else {
104
+ // Target not specified
105
+ $(".ajax-load-more-wrap").ajaxloadmore();
106
+ }
107
+ };
108
+
109
+ })(jQuery);
core/src/js/modules/{almMasonry.js → masonry.js} RENAMED
@@ -45,7 +45,6 @@ let almMasonry = (container, items, selector, animation, horizontalOrder, speed,
45
  horizontalOrder = (horizontalOrder === 'true') ? true : false;
46
 
47
  if(!filtering){
48
-
49
  // First Run
50
  if(almMasonryInit && init){
51
  almMasonryInit = false;
@@ -68,7 +67,6 @@ let almMasonry = (container, items, selector, animation, horizontalOrder, speed,
68
  container.masonry('reloadItems');
69
  });
70
  }
71
-
72
  // Standard
73
  else{
74
  container.append( items ); // Append new items
@@ -84,7 +82,6 @@ let almMasonry = (container, items, selector, animation, horizontalOrder, speed,
84
  almMasonryInit = true; // reset almMasonryInit
85
  container.append( items );
86
  almMasonry(container, items, selector, animation, horizontalOrder, speed, true, false);
87
-
88
  }
89
 
90
  };
45
  horizontalOrder = (horizontalOrder === 'true') ? true : false;
46
 
47
  if(!filtering){
 
48
  // First Run
49
  if(almMasonryInit && init){
50
  almMasonryInit = false;
67
  container.masonry('reloadItems');
68
  });
69
  }
 
70
  // Standard
71
  else{
72
  container.append( items ); // Append new items
82
  almMasonryInit = true; // reset almMasonryInit
83
  container.append( items );
84
  almMasonry(container, items, selector, animation, horizontalOrder, speed, true, false);
 
85
  }
86
 
87
  };
core/src/scss/ajax-load-more.scss CHANGED
@@ -10,80 +10,81 @@
10
  * Twitter: @KaptonKaos
11
  */
12
 
13
-
14
- button.alm-load-more-btn{
15
- font-size:15px;
16
- font-weight: 600;
17
- width:auto;
18
- height: 42px;
19
- line-height: 42px;
20
- background: #ed7070;
21
- color:#fff;
22
- border: none;
23
- -webkit-border-radius:3px;
24
- -moz-border-radius:3px;
25
- border-radius:3px;
26
- margin: 0 0 4px;
27
- padding:0 20px;
28
- display: inline-block;
29
- position: relative;
30
- transition: padding 0.25s ease-in-out, width 0.25s ease-in-out;
31
- text-align: center;
32
- text-decoration: none;
33
- appearance: none;
34
- user-select: none;
35
- cursor: pointer;
36
- &:hover{
37
- background-color: #e06464;
38
- color: #fff;
39
- text-decoration: none;
40
- }
41
- &:active{
42
- box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.1);
43
- text-decoration: none;
44
- }
45
- &:focus,
46
- &:active{
47
- outline: none;
48
- }
49
-
50
- /* Loading */
51
- &.loading{
52
- padding-left: 44px;
53
- }
54
-
55
- /* Loaded / Done */
56
- &.done{
57
- cursor: default;
58
- opacity: 0.2;
59
- background-color: #ed7070;
60
- outline: none !important;
61
- box-shadow: none !important;
62
- }
63
-
64
- /* Loading Icon */
65
- &:before,
66
- &.done:before{
67
- background: none;
68
- width: 0;
69
- }
70
-
71
- /* Loading :before */
72
- &.loading:before {
73
- background: #fff url("../../../core/img/ajax-loader.gif") no-repeat center center;
74
- width: 30px;
75
- height: 30px;
76
- margin: 6px;
77
- border-radius:2px;
78
  display: inline-block;
79
- z-index: 0;
80
- content: '';
81
- position: absolute;
82
- left: 0;
83
- top: 0;
84
- overflow: hidden;
85
- transition: width 0.5s ease-in-out;
86
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
  }
88
 
89
  .alm-masonry,
@@ -98,7 +99,7 @@ button.alm-load-more-btn{
98
  }
99
 
100
  /* Blue */
101
- .ajax-load-more-wrap.blue button.alm-load-more-btn{
102
  background-color: #0081bf;
103
  &:hover,
104
  &.done{
@@ -107,7 +108,7 @@ button.alm-load-more-btn{
107
  }
108
 
109
  /* green */
110
- .ajax-load-more-wrap.green button.alm-load-more-btn{
111
  background-color: #6fca68;
112
  &:hover,
113
  &.done{
@@ -115,7 +116,7 @@ button.alm-load-more-btn{
115
  }
116
  }
117
  /* red */
118
- .ajax-load-more-wrap.red button.alm-load-more-btn{
119
  background-color: #ca4b4b;
120
  &:hover,
121
  &.done{
@@ -124,7 +125,7 @@ button.alm-load-more-btn{
124
  }
125
 
126
  /* purple */
127
- .ajax-load-more-wrap.purple button.alm-load-more-btn{
128
  background-color: #a86bb9;
129
  &:hover,
130
  &.done{
@@ -133,7 +134,7 @@ button.alm-load-more-btn{
133
  }
134
 
135
  /* grey */
136
- .ajax-load-more-wrap.grey button.alm-load-more-btn{
137
  background-color: #888;
138
  &:hover,
139
  &.done{
@@ -142,7 +143,7 @@ button.alm-load-more-btn{
142
  }
143
 
144
  /* white */
145
- .ajax-load-more-wrap.white button.alm-load-more-btn{
146
  background-color: #fff;
147
  color: #666;
148
  border: 1px solid #efefef;
@@ -158,7 +159,7 @@ button.alm-load-more-btn{
158
 
159
  /* Infinite */
160
  .ajax-load-more-wrap.infinite{
161
- button.alm-load-more-btn {
162
  width: 100%;
163
  background-color: transparent !important;
164
  background-position: center center;
@@ -185,19 +186,19 @@ button.alm-load-more-btn{
185
  opacity: 1;
186
  }
187
  }
188
- &.skype button.alm-load-more-btn {
189
  background-image: url("../../../core/img/spinner-skype.gif");
190
  }
191
- &.ring button.alm-load-more-btn {
192
  background-image: url("../../../core/img/spinner-ring.gif");
193
  }
194
- &.fading-blocks button.alm-load-more-btn {
195
  background-image: url("../../../core/img/loader-fading-blocks.gif");
196
  }
197
- &.fading-circles button.alm-load-more-btn {
198
  background-image: url("../../../core/img/loader-fading-circles.gif");
199
  }
200
- &.chasing-arrows button.alm-load-more-btn {
201
  background-image: url("../../../core/img/spinner-chasing-arrows.gif");
202
  }
203
  }
10
  * Twitter: @KaptonKaos
11
  */
12
 
13
+ .alm-btn-wrap{
14
+ .alm-load-more-btn{
15
+ font-size:15px;
16
+ font-weight: 600;
17
+ width:auto;
18
+ height: 42px;
19
+ line-height: 42px;
20
+ background: #ed7070;
21
+ color:#fff;
22
+ border: none;
23
+ -webkit-border-radius:3px;
24
+ -moz-border-radius:3px;
25
+ border-radius:3px;
26
+ margin: 0 0 4px;
27
+ padding:0 20px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  display: inline-block;
29
+ position: relative;
30
+ transition: padding 0.25s ease-in-out, width 0.25s ease-in-out;
31
+ text-align: center;
32
+ text-decoration: none;
33
+ appearance: none;
34
+ user-select: none;
35
+ cursor: pointer;
36
+ &:hover{
37
+ background-color: #e06464;
38
+ color: #fff;
39
+ text-decoration: none;
40
+ }
41
+ &:active{
42
+ box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.1);
43
+ text-decoration: none;
44
+ }
45
+ &:focus,
46
+ &:active{
47
+ outline: none;
48
+ }
49
+
50
+ /* Loading */
51
+ &.loading{
52
+ padding-left: 44px;
53
+ }
54
+
55
+ /* Loaded / Done */
56
+ &.done{
57
+ cursor: default;
58
+ opacity: 0.2;
59
+ background-color: #ed7070;
60
+ outline: none !important;
61
+ box-shadow: none !important;
62
+ }
63
+
64
+ /* Loading Icon */
65
+ &:before,
66
+ &.done:before{
67
+ background: none;
68
+ width: 0;
69
+ }
70
+
71
+ /* Loading :before */
72
+ &.loading:before {
73
+ background: #fff url("../../../core/img/ajax-loader.gif") no-repeat center center;
74
+ width: 30px;
75
+ height: 30px;
76
+ margin: 6px;
77
+ border-radius:2px;
78
+ display: inline-block;
79
+ z-index: 0;
80
+ content: '';
81
+ position: absolute;
82
+ left: 0;
83
+ top: 0;
84
+ overflow: hidden;
85
+ transition: width 0.5s ease-in-out;
86
+ }
87
+ }
88
  }
89
 
90
  .alm-masonry,
99
  }
100
 
101
  /* Blue */
102
+ .ajax-load-more-wrap.blue .alm-load-more-btn{
103
  background-color: #0081bf;
104
  &:hover,
105
  &.done{
108
  }
109
 
110
  /* green */
111
+ .ajax-load-more-wrap.green .alm-load-more-btn{
112
  background-color: #6fca68;
113
  &:hover,
114
  &.done{
116
  }
117
  }
118
  /* red */
119
+ .ajax-load-more-wrap.red .alm-load-more-btn{
120
  background-color: #ca4b4b;
121
  &:hover,
122
  &.done{
125
  }
126
 
127
  /* purple */
128
+ .ajax-load-more-wrap.purple .alm-load-more-btn{
129
  background-color: #a86bb9;
130
  &:hover,
131
  &.done{
134
  }
135
 
136
  /* grey */
137
+ .ajax-load-more-wrap.grey .alm-load-more-btn{
138
  background-color: #888;
139
  &:hover,
140
  &.done{
143
  }
144
 
145
  /* white */
146
+ .ajax-load-more-wrap.white .alm-load-more-btn{
147
  background-color: #fff;
148
  color: #666;
149
  border: 1px solid #efefef;
159
 
160
  /* Infinite */
161
  .ajax-load-more-wrap.infinite{
162
+ .alm-load-more-btn {
163
  width: 100%;
164
  background-color: transparent !important;
165
  background-position: center center;
186
  opacity: 1;
187
  }
188
  }
189
+ &.skype .alm-load-more-btn {
190
  background-image: url("../../../core/img/spinner-skype.gif");
191
  }
192
+ &.ring .alm-load-more-btn {
193
  background-image: url("../../../core/img/spinner-ring.gif");
194
  }
195
+ &.fading-blocks .alm-load-more-btn {
196
  background-image: url("../../../core/img/loader-fading-blocks.gif");
197
  }
198
+ &.fading-circles .alm-load-more-btn {
199
  background-image: url("../../../core/img/loader-fading-circles.gif");
200
  }
201
+ &.chasing-arrows .alm-load-more-btn {
202
  background-image: url("../../../core/img/spinner-chasing-arrows.gif");
203
  }
204
  }
gulpfile.js CHANGED
@@ -35,6 +35,7 @@ gulp.task('lint', () => {
35
  // JS [Concatenate JS]
36
  gulp.task('scripts', () => {
37
  return gulp.src([
 
38
  './core/src/js/modules/*.js',
39
  './core/src/js/'+ appname +'.js',
40
  './core/src/js/libs/*.js',
@@ -80,6 +81,7 @@ gulp.task('admin_lint', () => {
80
  gulp.task('admin_scripts', () => {
81
  return gulp.src([
82
  './admin/src/js/libs/*.js',
 
83
  './admin/src/js/admin.js',
84
  ])
85
  .pipe(babel())
35
  // JS [Concatenate JS]
36
  gulp.task('scripts', () => {
37
  return gulp.src([
38
+ './core/src/js/helpers/*.js',
39
  './core/src/js/modules/*.js',
40
  './core/src/js/'+ appname +'.js',
41
  './core/src/js/libs/*.js',
81
  gulp.task('admin_scripts', () => {
82
  return gulp.src([
83
  './admin/src/js/libs/*.js',
84
+ './admin/src/js/modules/*.js',
85
  './admin/src/js/admin.js',
86
  ])
87
  .pipe(babel())
lang/ajax-load-more.pot CHANGED
@@ -1,7 +1,8 @@
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Ajax Load More\n"
4
- "POT-Creation-Date: 2017-10-05 16:14-0500\n"
5
  "PO-Revision-Date: 2017-10-05 16:14-0500\n"
6
  "Last-Translator: Darren Cooney <dcooney@ecentricarts.com>\n"
7
  "Language-Team: \n"
@@ -9,204 +10,382 @@ msgstr ""
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.6.4\n"
13
  "X-Poedit-Basepath: .\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
  "X-Poedit-KeywordsList: __;_e\n"
16
  "X-Poedit-SearchPath-0: ..\n"
17
 
18
- #: ../admin/admin.php:94 ../admin/admin.php:153 ../admin/admin.php:737
19
- #: ../admin/admin.php:781 ../admin/admin.php:831
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  msgid "You don't belong here."
21
  msgstr ""
22
 
23
- #: ../admin/admin.php:182
24
  msgid "Ajax Load More"
25
  msgstr ""
26
 
27
- #: ../admin/admin.php:183 ../admin/editor/editor-build.php:69
28
- #: ../admin/views/licenses.php:65 ../admin/views/licenses.php:130
29
- #: ../admin/views/licenses.php:195 ../admin/views/licenses.php:261
30
- #: ../admin/views/licenses.php:328 ../admin/views/licenses.php:394
31
- #: ../admin/views/licenses.php:461 ../admin/views/licenses.php:526
32
- #: ../admin/views/licenses.php:590 ../admin/views/licenses.php:656
33
- #: ../admin/views/licenses.php:724
34
  msgid "Active"
35
  msgstr ""
36
 
37
- #: ../admin/admin.php:184 ../admin/editor/editor-build.php:70
38
- #: ../admin/views/licenses.php:69 ../admin/views/licenses.php:134
39
- #: ../admin/views/licenses.php:199 ../admin/views/licenses.php:265
40
- #: ../admin/views/licenses.php:332 ../admin/views/licenses.php:398
41
- #: ../admin/views/licenses.php:465 ../admin/views/licenses.php:530
42
- #: ../admin/views/licenses.php:594 ../admin/views/licenses.php:660
43
- #: ../admin/views/licenses.php:728
44
  msgid "Inactive"
45
  msgstr ""
46
 
47
- #: ../admin/admin.php:185 ../admin/editor/editor-build.php:71
48
  msgid "Applying layout"
49
  msgstr ""
50
 
51
- #: ../admin/admin.php:186 ../admin/editor/editor-build.php:72
52
- #: ../admin/views/repeater-templates.php:377
53
  msgid "Template Updated"
54
  msgstr ""
55
 
56
- #: ../admin/admin.php:188 ../admin/editor/editor-build.php:74
57
  msgid "Select Author(s)"
58
  msgstr ""
59
 
60
- #: ../admin/admin.php:189 ../admin/editor/editor-build.php:75
61
  msgid "Select Categories"
62
  msgstr ""
63
 
64
- #: ../admin/admin.php:190 ../admin/editor/editor-build.php:76
65
  msgid "Select Tags"
66
  msgstr ""
67
 
68
- #: ../admin/admin.php:191 ../admin/editor/editor-build.php:41
69
  #: ../admin/editor/editor-build.php:77
70
  msgid "Jump to Option"
71
  msgstr ""
72
 
73
- #: ../admin/admin.php:192 ../admin/editor/editor-build.php:78
74
  msgid "Jump to Template"
75
  msgstr ""
76
 
77
- #: ../admin/admin.php:193
78
  msgid "Are you sure you want to install this Ajax Load More extension?"
79
  msgstr ""
80
 
81
- #: ../admin/admin.php:194
82
  #: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:51
83
  #: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:379
84
  msgid "Install Now"
85
  msgstr ""
86
 
87
- #: ../admin/admin.php:195
88
  #: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:90
89
  #: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:380
90
  msgid "Activate"
91
  msgstr ""
92
 
93
- #: ../admin/admin.php:196
94
  msgid "Saving Settings"
95
  msgstr ""
96
 
97
- #: ../admin/admin.php:197
98
  msgid "Settings Saved Successfully"
99
  msgstr ""
100
 
101
- #: ../admin/admin.php:198
102
  msgid "Error Saving Settings"
103
  msgstr ""
104
 
105
- #: ../admin/admin.php:308
106
  msgid ""
107
  "[Ajax Load More] Error opening default repeater template - Please check your "
108
  "file path and ensure your server is configured to allow Ajax Load More to "
109
  "read and write files within the /ajax-load-more/core/repeater directory"
110
  msgstr ""
111
 
112
- #: ../admin/admin.php:312
113
  msgid ""
114
  "[Ajax Load More] Error updating default repeater template - Please check "
115
  "your file path and ensure your server is configured to allow Ajax Load More "
116
  "to read and write files within the /ajax-load-more/core/repeater directory."
117
  msgstr ""
118
 
119
- #: ../admin/admin.php:695
120
  msgid "[Ajax Load More] Unable to open repeater template - "
121
  msgstr ""
122
 
123
- #: ../admin/admin.php:699
124
  msgid "[Ajax Load More] Error saving repeater template - "
125
  msgstr ""
126
 
127
- #: ../admin/admin.php:732
128
  msgid "Error Writing File"
129
  msgstr ""
130
 
131
- #: ../admin/admin.php:935 ../admin/shortcode-builder/shortcode-builder.php:948
132
  msgid "Container Type"
133
  msgstr ""
134
 
135
- #: ../admin/admin.php:943 ../admin/shortcode-builder/shortcode-builder.php:979
136
  msgid "Container Classes"
137
  msgstr ""
138
 
139
- #: ../admin/admin.php:951
140
  msgid "Disable CSS"
141
  msgstr ""
142
 
143
- #: ../admin/admin.php:959
144
  msgid "Button/Loading Style"
145
  msgstr ""
146
 
147
- #: ../admin/admin.php:967
148
  msgid "Button Classes"
149
  msgstr ""
150
 
151
- #: ../admin/admin.php:986
152
  msgid "Top of Page"
153
  msgstr ""
154
 
155
- #: ../admin/admin.php:994
156
  msgid "Dynamic Content"
157
  msgstr ""
158
 
159
- #: ../admin/admin.php:1002
160
  msgid "Editor Button"
161
  msgstr ""
162
 
163
- #: ../admin/admin.php:1010
164
  msgid "Error Notices"
165
  msgstr ""
166
 
167
- #: ../admin/admin.php:1081
168
  msgid ""
169
  "Customize the user experience of Ajax Load More by updating the fields below."
170
  msgstr ""
171
 
172
- #: ../admin/admin.php:1094
173
  msgid "The following settings affect the WordPress admin area only."
174
  msgstr ""
175
 
176
- #: ../admin/admin.php:1125
177
  msgid "I want to use my own CSS styles."
178
  msgstr ""
179
 
180
- #: ../admin/admin.php:1125
181
  msgid "View Ajax Load More CSS"
182
  msgstr ""
183
 
184
- #: ../admin/admin.php:1145
185
  msgid "Hide shortcode button in WYSIWYG editor."
186
  msgstr ""
187
 
188
- #: ../admin/admin.php:1166
189
  msgid ""
190
  "Display error messaging regarding repeater template updates in the browser "
191
  "console."
192
  msgstr ""
193
 
194
- #: ../admin/admin.php:1187
195
  msgid ""
196
  "Disable dynamic population of categories, tags and authors in the Shortcode "
197
  "Builder.<span style=\"display:block\">Recommended if you have a large number "
198
  "of categories, tags and/or authors."
199
  msgstr ""
200
 
201
- #: ../admin/admin.php:1208 ../admin/admin.php:1211
202
  msgid "Ajax Posts Here"
203
  msgstr ""
204
 
205
- #: ../admin/admin.php:1213
206
  msgid "You can modify the container type when building a shortcode."
207
  msgstr ""
208
 
209
- #: ../admin/admin.php:1230
210
  msgid ""
211
  "Add custom classes to the <i>.alm-listing</i> container - classes are "
212
  "applied globally and will appear with every instance of Ajax Load More. "
@@ -214,42 +393,41 @@ msgid ""
214
  "shortcode.</span>"
215
  msgstr ""
216
 
217
- #: ../admin/admin.php:1292
218
  msgid ""
219
  "Select an Ajax loading style - you can choose between a <strong>Button</"
220
  "strong> or <strong>Infinite Scroll</strong>"
221
  msgstr ""
222
 
223
- #: ../admin/admin.php:1297
224
  msgid "Button"
225
  msgstr ""
226
 
227
- #: ../admin/admin.php:1305
228
  msgid "Infinite Scroll (No Button)"
229
  msgstr ""
230
 
231
- #: ../admin/admin.php:1316
232
  msgid "Preview"
233
  msgstr ""
234
 
235
- #: ../admin/admin.php:1316
236
- #: ../admin/shortcode-builder/shortcode-builder.php:1003
237
- #: ../core/classes/class.alm-shortcode.php:140
238
  msgid "Older Posts"
239
  msgstr ""
240
 
241
- #: ../admin/admin.php:1335
242
  msgid "Add classes to your <strong>Load More</strong> button"
243
  msgstr ""
244
 
245
- #: ../admin/admin.php:1378
246
  msgid ""
247
  "On initial page load, move the user's browser window to the top of the "
248
  "screen.<span style=\"display:block\">This <u>may</u> help prevent the "
249
  "loading of unnecessary posts.</span>"
250
  msgstr ""
251
 
252
- #: ../admin/admin.php:1399
253
  msgid ""
254
  "Enable <a href=\"https://codex.wordpress.org/WordPress_Nonces\" target="
255
  "\"_blank\">WP nonce</a> verification to help protect URLs against certain "
@@ -265,7 +443,7 @@ msgstr ""
265
  msgid "Insert Shortcode"
266
  msgstr ""
267
 
268
- #: ../admin/editor/editor-build.php:56 ../admin/views/shortcode-builder.php:28
269
  msgid "Copy"
270
  msgstr ""
271
 
@@ -275,15 +453,15 @@ msgstr ""
275
 
276
  #: ../admin/includes/components/example-list.php:2
277
  #: ../admin/shortcode-builder/shortcode-builder.php:3
278
- #: ../admin/views/repeater-templates.php:104
279
- #: ../admin/views/repeater-templates.php:134
280
  msgid "Collapse All"
281
  msgstr ""
282
 
283
  #: ../admin/includes/components/example-list.php:2
284
  #: ../admin/shortcode-builder/shortcode-builder.php:4
285
- #: ../admin/views/repeater-templates.php:105
286
- #: ../admin/views/repeater-templates.php:135
287
  msgid "Expand All"
288
  msgstr ""
289
 
@@ -349,7 +527,7 @@ msgid ""
349
  msgstr ""
350
 
351
  #: ../admin/includes/components/repeater-options.php:2
352
- #: ../admin/shortcode-builder/shortcode-builder.php:926
353
  msgid "Options"
354
  msgstr ""
355
 
@@ -361,6 +539,14 @@ msgstr ""
361
  msgid "Copy Template Data"
362
  msgstr ""
363
 
 
 
 
 
 
 
 
 
364
  #: ../admin/includes/cta/config.php:2
365
  msgid "Plugin Configurations"
366
  msgstr ""
@@ -402,7 +588,7 @@ msgid "Documentation"
402
  msgstr ""
403
 
404
  #: ../admin/includes/cta/resources.php:7
405
- msgid "Plugin Support and Issues"
406
  msgstr ""
407
 
408
  #: ../admin/includes/cta/resources.php:8
@@ -410,21 +596,19 @@ msgid "Reviews"
410
  msgstr ""
411
 
412
  #: ../admin/includes/cta/resources.php:9
413
- #, fuzzy
414
- msgid "Twitter"
415
- msgstr "Partager sur Twitter"
416
 
417
  #: ../admin/includes/cta/resources.php:10
418
- #, fuzzy
419
- msgid "Facebook"
420
- msgstr "Partager sur Facebook"
421
 
422
  #: ../admin/includes/cta/resources.php:11
423
- msgid "Github"
424
  msgstr ""
425
 
426
- #: ../admin/includes/cta/resources.php:14
427
- msgid "WordPress Repository"
428
  msgstr ""
429
 
430
  #: ../admin/includes/cta/reviews.php:1
@@ -441,15 +625,12 @@ msgstr ""
441
  msgid "Write Review"
442
  msgstr ""
443
 
444
- #: ../admin/includes/cta/sharing.php:1
445
  msgid "Share Ajax Load More"
446
  msgstr ""
447
 
448
- #: ../admin/includes/cta/sharing.php:2
449
- msgid ""
450
- "Help <a href=\"https://twitter.com/KaptonKaos\" target=\"_blank\">me</a> "
451
- "spread the word by sharing with your friends and colleagues on Twitter and "
452
- "Facebook."
453
  msgstr ""
454
 
455
  #: ../admin/includes/cta/writeable.php:2
@@ -527,364 +708,237 @@ msgid ""
527
  "Directory access may not be granted."
528
  msgstr ""
529
 
530
- #: ../admin/shortcode-builder/includes/meta-query-options.php:4
531
- msgid "Key (Name):"
532
- msgstr ""
533
-
534
- #: ../admin/shortcode-builder/includes/meta-query-options.php:5
535
- msgid "Enter custom field key(name)"
536
- msgstr ""
537
-
538
- #: ../admin/shortcode-builder/includes/meta-query-options.php:9
539
- msgid "Value:"
540
- msgstr ""
541
-
542
- #: ../admin/shortcode-builder/includes/meta-query-options.php:10
543
- msgid "Enter custom field value"
544
- msgstr ""
545
-
546
- #: ../admin/shortcode-builder/includes/meta-query-options.php:15
547
- msgid "Operator:"
548
- msgstr ""
549
-
550
- #: ../admin/shortcode-builder/includes/meta-query-options.php:35
551
- msgid "Type:"
552
- msgstr ""
553
-
554
- #: ../admin/shortcode-builder/includes/tax-query-options.php:3
555
- #: ../admin/shortcode-builder/includes/tax-query-options.php:47
556
- #: ../admin/shortcode-builder/includes/tax-query-options.php:78
557
- msgid "Taxonomy:"
558
- msgstr ""
559
-
560
- #: ../admin/shortcode-builder/includes/tax-query-options.php:5
561
- #: ../admin/shortcode-builder/includes/tax-query-options.php:50
562
- #: ../admin/shortcode-builder/includes/tax-query-options.php:81
563
- #: ../admin/shortcode-builder/shortcode-builder.php:681
564
- msgid "Select Taxonomy"
565
- msgstr ""
566
-
567
- #: ../admin/shortcode-builder/includes/tax-query-options.php:12
568
- #: ../admin/shortcode-builder/includes/tax-query-options.php:57
569
- #: ../admin/shortcode-builder/includes/tax-query-options.php:88
570
- msgid "Taxonomy Terms:"
571
- msgstr ""
572
-
573
- #: ../admin/shortcode-builder/includes/tax-query-options.php:17
574
- #: ../admin/shortcode-builder/includes/tax-query-options.php:62
575
- #: ../admin/shortcode-builder/includes/tax-query-options.php:93
576
- msgid "Taxonomy Operator:"
577
- msgstr ""
578
-
579
- #: ../admin/shortcode-builder/includes/tax-query-options.php:36
580
- #: ../admin/shortcode-builder/shortcode-builder.php:1705
581
- msgid "Relation:"
582
- msgstr ""
583
-
584
- #: ../admin/shortcode-builder/includes/tax-query-options.php:36
585
- msgid ""
586
- "The logical relationship between each taxonomy when there is more than one."
587
- msgstr ""
588
-
589
- #: ../admin/shortcode-builder/shortcode-builder.php:21
590
- msgid "Add-ons & Extensions"
591
- msgstr ""
592
-
593
- #: ../admin/shortcode-builder/shortcode-builder.php:26
594
  msgid "Advanced Custom Fields"
595
  msgstr ""
596
 
597
- #: ../admin/shortcode-builder/shortcode-builder.php:29
598
  msgid "Enable compatibility with Advanced Custom Fields."
599
  msgstr ""
600
 
601
- #: ../admin/shortcode-builder/shortcode-builder.php:36
602
- #: ../admin/shortcode-builder/shortcode-builder.php:116
603
- #: ../admin/shortcode-builder/shortcode-builder.php:160
604
- #: ../admin/shortcode-builder/shortcode-builder.php:254
605
- #: ../admin/shortcode-builder/shortcode-builder.php:405
606
- #: ../admin/shortcode-builder/shortcode-builder.php:522
607
- #: ../admin/shortcode-builder/shortcode-builder.php:545
608
- #: ../admin/shortcode-builder/shortcode-builder.php:599
609
- #: ../admin/shortcode-builder/shortcode-builder.php:640
610
- #: ../admin/shortcode-builder/shortcode-builder.php:746
611
- #: ../admin/shortcode-builder/shortcode-builder.php:826
612
- #: ../admin/shortcode-builder/shortcode-builder.php:860
613
- #: ../admin/shortcode-builder/shortcode-builder.php:1037
614
- #: ../admin/shortcode-builder/shortcode-builder.php:1097
615
- #: ../admin/shortcode-builder/shortcode-builder.php:1214
616
- #: ../admin/shortcode-builder/shortcode-builder.php:1294
617
- #: ../admin/shortcode-builder/shortcode-builder.php:1322
618
- #: ../admin/shortcode-builder/shortcode-builder.php:1370
 
619
  msgid "True"
620
  msgstr ""
621
 
622
- #: ../admin/shortcode-builder/shortcode-builder.php:40
623
- #: ../admin/shortcode-builder/shortcode-builder.php:120
624
- #: ../admin/shortcode-builder/shortcode-builder.php:164
625
- #: ../admin/shortcode-builder/shortcode-builder.php:258
626
- #: ../admin/shortcode-builder/shortcode-builder.php:409
627
- #: ../admin/shortcode-builder/shortcode-builder.php:526
628
- #: ../admin/shortcode-builder/shortcode-builder.php:549
629
- #: ../admin/shortcode-builder/shortcode-builder.php:603
630
- #: ../admin/shortcode-builder/shortcode-builder.php:644
631
- #: ../admin/shortcode-builder/shortcode-builder.php:750
632
- #: ../admin/shortcode-builder/shortcode-builder.php:830
633
- #: ../admin/shortcode-builder/shortcode-builder.php:864
634
- #: ../admin/shortcode-builder/shortcode-builder.php:1041
635
- #: ../admin/shortcode-builder/shortcode-builder.php:1101
636
- #: ../admin/shortcode-builder/shortcode-builder.php:1218
637
- #: ../admin/shortcode-builder/shortcode-builder.php:1298
638
- #: ../admin/shortcode-builder/shortcode-builder.php:1326
639
- #: ../admin/shortcode-builder/shortcode-builder.php:1374
 
640
  msgid "False"
641
  msgstr ""
642
 
643
- #: ../admin/shortcode-builder/shortcode-builder.php:52
644
- #: ../admin/shortcode-builder/shortcode-builder.php:269
645
- #: ../admin/shortcode-builder/shortcode-builder.php:422
646
- #: ../admin/shortcode-builder/shortcode-builder.php:654
647
  msgid "Post ID"
648
  msgstr ""
649
 
650
- #: ../admin/shortcode-builder/shortcode-builder.php:52
651
  msgid ""
652
- "Leave this field blank and Ajax Load More will get the ID from the global "
653
- "$post object"
654
  msgstr ""
655
 
656
- #: ../admin/shortcode-builder/shortcode-builder.php:53
657
- #: ../admin/shortcode-builder/shortcode-builder.php:423
658
  msgid "The ID of the current page/post."
659
  msgstr ""
660
 
661
- #: ../admin/shortcode-builder/shortcode-builder.php:66
662
- #: ../admin/shortcode-builder/shortcode-builder.php:71
663
- #: ../admin/shortcode-builder/shortcode-builder.php:92
664
  msgid "Field Type"
665
  msgstr ""
666
 
667
- #: ../admin/shortcode-builder/shortcode-builder.php:67
668
  msgid "Select the type of ACF field"
669
  msgstr ""
670
 
671
- #: ../admin/shortcode-builder/shortcode-builder.php:73
672
  msgid "Select Field Type"
673
  msgstr ""
674
 
675
- #: ../admin/shortcode-builder/shortcode-builder.php:74
676
  msgid "Flexible Content"
677
  msgstr ""
678
 
679
- #: ../admin/shortcode-builder/shortcode-builder.php:75
680
  msgid "Gallery"
681
  msgstr ""
682
 
683
- #: ../admin/shortcode-builder/shortcode-builder.php:76
684
  msgid "Relationship"
685
  msgstr ""
686
 
687
- #: ../admin/shortcode-builder/shortcode-builder.php:77
688
  msgid "Repeater"
689
  msgstr ""
690
 
691
- #: ../admin/shortcode-builder/shortcode-builder.php:87
692
  msgid "Field Name"
693
  msgstr ""
694
 
695
- #: ../admin/shortcode-builder/shortcode-builder.php:88
696
  msgid "Enter the name of the ACF field"
697
  msgstr ""
698
 
699
- #: ../admin/shortcode-builder/shortcode-builder.php:106
700
- #: ../admin/views/add-ons.php:21 ../admin/views/licenses.php:44
701
- #: ../admin/views/settings.php:59
702
- msgid "Cache"
703
- msgstr ""
704
-
705
- #: ../admin/shortcode-builder/shortcode-builder.php:109
706
  msgid "Turn on content caching."
707
  msgstr ""
708
 
709
- #: ../admin/shortcode-builder/shortcode-builder.php:130
710
  msgid "Cache ID"
711
  msgstr ""
712
 
713
- #: ../admin/shortcode-builder/shortcode-builder.php:131
714
  msgid ""
715
  "You <u>must</u> generate a unique ID for this cached query - this unique ID "
716
  "will be used as a content identifier."
717
  msgstr ""
718
 
719
- #: ../admin/shortcode-builder/shortcode-builder.php:137
720
  msgid "Generate Cache ID"
721
  msgstr ""
722
 
723
- #: ../admin/shortcode-builder/shortcode-builder.php:149
724
- #: ../admin/views/add-ons.php:48 ../admin/views/licenses.php:109
725
- msgid "Call to Actions"
726
- msgstr ""
727
-
728
- #: ../admin/shortcode-builder/shortcode-builder.php:153
729
- msgid "Insert call to action block."
730
- msgstr ""
731
-
732
- #: ../admin/shortcode-builder/shortcode-builder.php:177
733
- msgid "CTA Positioning"
734
- msgstr ""
735
-
736
- #: ../admin/shortcode-builder/shortcode-builder.php:178
737
- msgid ""
738
- "Insert call to action <strong><em id=\"sequence-update-before-after"
739
- "\">before</em></strong> post #<strong><em id=\"sequence-update\">1</em></"
740
- "strong>"
741
- msgstr ""
742
-
743
- #: ../admin/shortcode-builder/shortcode-builder.php:183
744
- msgid "Before / After"
745
- msgstr ""
746
-
747
- #: ../admin/shortcode-builder/shortcode-builder.php:185
748
- msgid "Before"
749
- msgstr ""
750
-
751
- #: ../admin/shortcode-builder/shortcode-builder.php:186
752
- msgid "After"
753
- msgstr ""
754
-
755
- #: ../admin/shortcode-builder/shortcode-builder.php:190
756
- msgid "Post #"
757
- msgstr ""
758
-
759
- #: ../admin/shortcode-builder/shortcode-builder.php:201
760
- #: ../admin/shortcode-builder/shortcode-builder.php:886
761
- msgid "Template"
762
- msgstr ""
763
-
764
- #: ../admin/shortcode-builder/shortcode-builder.php:203
765
- msgid ""
766
- "Select the <a href=\"admin.php?page=ajax-load-more-repeaters\" target="
767
- "\"_parent\">repeater template</a> that will display your call to action."
768
- msgstr ""
769
-
770
- #: ../admin/shortcode-builder/shortcode-builder.php:210
771
- #, fuzzy
772
- msgid "-- Select Repeater --"
773
- msgstr "Sélectionnez province"
774
-
775
- #: ../admin/shortcode-builder/shortcode-builder.php:230
776
- msgid ""
777
- "Call to actions do NOT count as a post within an Ajax Load More loop.<br/>\n"
778
- " For example, if you set <strong>posts_per_page=\"5\"</"
779
- "strong> in your shortcode, 6 items will be displayed."
780
- msgstr ""
781
-
782
- #: ../admin/shortcode-builder/shortcode-builder.php:244
783
- #: ../admin/views/add-ons.php:75 ../admin/views/licenses.php:174
784
- msgid "Comments"
785
- msgstr ""
786
-
787
- #: ../admin/shortcode-builder/shortcode-builder.php:247
788
  msgid "Enable Ajax Load More to display blog comments."
789
  msgstr ""
790
 
791
- #: ../admin/shortcode-builder/shortcode-builder.php:270
792
- #: ../admin/shortcode-builder/shortcode-builder.php:655
793
  msgid "The ID of the current single post."
794
  msgstr ""
795
 
796
- #: ../admin/shortcode-builder/shortcode-builder.php:281
797
  msgid "Comments Per Page"
798
  msgstr ""
799
 
800
- #: ../admin/shortcode-builder/shortcode-builder.php:282
801
  msgid "The number of top level items to show for each page of comments."
802
  msgstr ""
803
 
804
- #: ../admin/shortcode-builder/shortcode-builder.php:290
805
  msgid ""
806
  "<strong>Note</strong>: The amount selected does NOT include comment replies."
807
  msgstr ""
808
 
809
- #: ../admin/shortcode-builder/shortcode-builder.php:296
810
  msgid "Comment Type"
811
  msgstr ""
812
 
813
- #: ../admin/shortcode-builder/shortcode-builder.php:297
814
  msgid "The type of comment(s) to display."
815
  msgstr ""
816
 
817
- #: ../admin/shortcode-builder/shortcode-builder.php:302
818
  msgid "Comment"
819
  msgstr ""
820
 
821
- #: ../admin/shortcode-builder/shortcode-builder.php:303
822
  msgid "All"
823
  msgstr ""
824
 
825
- #: ../admin/shortcode-builder/shortcode-builder.php:304
826
  msgid "Trackback"
827
  msgstr ""
828
 
829
- #: ../admin/shortcode-builder/shortcode-builder.php:305
830
  msgid "Pingback"
831
  msgstr ""
832
 
833
- #: ../admin/shortcode-builder/shortcode-builder.php:306
834
  msgid "Pings"
835
  msgstr ""
836
 
837
- #: ../admin/shortcode-builder/shortcode-builder.php:314
838
  msgid "Comment Style"
839
  msgstr ""
840
 
841
- #: ../admin/shortcode-builder/shortcode-builder.php:315
842
  msgid "Select the HTML container style for your comments."
843
  msgstr ""
844
 
845
- #: ../admin/shortcode-builder/shortcode-builder.php:340
846
  msgid "Comment Template"
847
  msgstr ""
848
 
849
- #: ../admin/shortcode-builder/shortcode-builder.php:341
850
  msgid "Select a repeater template that will display comment data."
851
  msgstr ""
852
 
853
- #: ../admin/shortcode-builder/shortcode-builder.php:347
854
- #: ../admin/shortcode-builder/shortcode-builder.php:1124
855
- #: ../admin/shortcode-builder/shortcode-builder.php:1194
856
  msgid "None"
857
  msgstr ""
858
 
859
- #: ../admin/shortcode-builder/shortcode-builder.php:348
860
  msgid "Default"
861
  msgstr ""
862
 
863
- #: ../admin/shortcode-builder/shortcode-builder.php:360
864
  msgid ""
865
  "<strong>Note</strong>: <span>None</span> will use the default WordPress "
866
  "comment layout."
867
  msgstr ""
868
 
869
- #: ../admin/shortcode-builder/shortcode-builder.php:369
 
 
 
 
870
  msgid "Callback Function"
871
  msgstr ""
872
 
873
- #: ../admin/shortcode-builder/shortcode-builder.php:370
874
  msgid ""
875
  "A custom <a href=\"https://codex.wordpress.org/Function_Reference/"
876
  "wp_list_comments#Arguments\" target=\"_blank\">callback</a> function that "
877
  "will display each comment."
878
  msgstr ""
879
 
880
- #: ../admin/shortcode-builder/shortcode-builder.php:378
881
  msgid ""
882
  "<strong>Note</strong>: The majority of premium themes have a custom callback "
883
  "function for displaying comments. Please see comments.php or functions.php "
884
  "within your theme directory to locate the callback function for your theme."
885
  msgstr ""
886
 
887
- #: ../admin/shortcode-builder/shortcode-builder.php:383
888
  msgid ""
889
  "You must add the comments shortcode directly to your single template file "
890
  "using the <a href=\"https://developer.wordpress.org/reference/functions/"
@@ -893,81 +947,128 @@ msgid ""
893
  "\"_blank\">View documentation</a>"
894
  msgstr ""
895
 
896
- #: ../admin/shortcode-builder/shortcode-builder.php:395
897
- #: ../admin/views/add-ons.php:154 ../admin/views/licenses.php:373
898
- #, fuzzy
899
- msgid "Next Page"
900
- msgstr "Imprimer cette page"
901
 
902
- #: ../admin/shortcode-builder/shortcode-builder.php:398
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
903
  msgid "Enable the infinite scrolling of multipage WordPress content using the"
904
  msgstr ""
905
 
906
- #: ../admin/shortcode-builder/shortcode-builder.php:398
907
  msgid "Quicktag"
908
  msgstr ""
909
 
910
- #: ../admin/shortcode-builder/shortcode-builder.php:435
911
  msgid "URL Rewrite"
912
  msgstr ""
913
 
914
- #: ../admin/shortcode-builder/shortcode-builder.php:436
915
  msgid "Update the browser address bar as pages come into view"
916
  msgstr ""
917
 
918
- #: ../admin/shortcode-builder/shortcode-builder.php:443
919
  msgid "Yes, update the URL"
920
  msgstr ""
921
 
922
- #: ../admin/shortcode-builder/shortcode-builder.php:455
923
  msgid "Google Analytics"
924
  msgstr ""
925
 
926
- #: ../admin/shortcode-builder/shortcode-builder.php:456
927
  msgid ""
928
  "You must have a reference to your Google Analytics tracking code already on "
929
  "the page"
930
  msgstr ""
931
 
932
- #: ../admin/shortcode-builder/shortcode-builder.php:458
933
  msgid "Each time a page is loaded it will count as a pageview"
934
  msgstr ""
935
 
936
- #: ../admin/shortcode-builder/shortcode-builder.php:465
937
  msgid "Yes, send pageviews to Google Analytics"
938
  msgstr ""
939
 
940
- #: ../admin/shortcode-builder/shortcode-builder.php:476
941
  msgid "Scroll to Page"
942
  msgstr ""
943
 
944
- #: ../admin/shortcode-builder/shortcode-builder.php:477
945
  msgid "Set Scroll Speed to 0 to disable scrolling to page"
946
  msgstr ""
947
 
948
- #: ../admin/shortcode-builder/shortcode-builder.php:480
949
  msgid "Scroll users automatically to the next page on 'Load More' button click"
950
  msgstr ""
951
 
952
- #: ../admin/shortcode-builder/shortcode-builder.php:486
953
  msgid "Scroll Speed"
954
  msgstr ""
955
 
956
- #: ../admin/shortcode-builder/shortcode-builder.php:487
957
  msgid "Scrolling speed in milliseconds (e.g. 1 second = 1000)"
958
  msgstr ""
959
 
960
- #: ../admin/shortcode-builder/shortcode-builder.php:493
961
  msgid "Scroll Top"
962
  msgstr ""
963
 
964
- #: ../admin/shortcode-builder/shortcode-builder.php:494
965
  msgid ""
966
  "The scrolltop position of the window (used with scrolling and fwd/back "
967
  "browser buttons)"
968
  msgstr ""
969
 
970
- #: ../admin/shortcode-builder/shortcode-builder.php:501
971
  msgid ""
972
  "You must add the Next Page shortcode directly to your single template file "
973
  "using the <a href=\"https://developer.wordpress.org/reference/functions/"
@@ -976,107 +1077,97 @@ msgid ""
976
  "\"_blank\">View documentation</a>"
977
  msgstr ""
978
 
979
- #: ../admin/shortcode-builder/shortcode-builder.php:513
980
- #: ../admin/views/add-ons.php:180 ../admin/views/licenses.php:440
981
- #: ../admin/views/settings.php:63
982
- msgid "Paging"
983
- msgstr ""
984
-
985
- #: ../admin/shortcode-builder/shortcode-builder.php:515
986
  msgid "Replace infinite scrolling with a paged ajax navigation system."
987
  msgstr ""
988
 
989
- #: ../admin/shortcode-builder/shortcode-builder.php:537
990
  msgid "Paging Controls"
991
  msgstr ""
992
 
993
- #: ../admin/shortcode-builder/shortcode-builder.php:538
994
  msgid "Show (&laquo;)previous and next(&raquo;) buttons."
995
  msgstr ""
996
 
997
- #: ../admin/shortcode-builder/shortcode-builder.php:558
998
  msgid "Paging Navigation Classes"
999
  msgstr ""
1000
 
1001
- #: ../admin/shortcode-builder/shortcode-builder.php:559
1002
  msgid "Add custom CSS classes to the paging navigation menu."
1003
  msgstr ""
1004
 
1005
- #: ../admin/shortcode-builder/shortcode-builder.php:570
1006
  msgid "Show at Most"
1007
  msgstr ""
1008
 
1009
- #: ../admin/shortcode-builder/shortcode-builder.php:571
1010
- msgid ""
1011
- "The maximum amount of page menu items to show at a time. <br/.>0 = no maximum"
1012
- msgstr ""
1013
-
1014
- #: ../admin/shortcode-builder/shortcode-builder.php:589
1015
- #: ../admin/views/add-ons.php:207 ../admin/views/licenses.php:505
1016
- msgid "Preloaded"
1017
  msgstr ""
1018
 
1019
- #: ../admin/shortcode-builder/shortcode-builder.php:592
1020
  msgid "Preload posts prior to making Ajax requests."
1021
  msgstr ""
1022
 
1023
- #: ../admin/shortcode-builder/shortcode-builder.php:613
1024
  msgid "Preload Amount"
1025
  msgstr ""
1026
 
1027
- #: ../admin/shortcode-builder/shortcode-builder.php:614
1028
  msgid "Enter the number of posts to preload."
1029
  msgstr ""
1030
 
1031
- #: ../admin/shortcode-builder/shortcode-builder.php:630
1032
- #: ../admin/views/add-ons.php:233 ../admin/views/licenses.php:569
1033
- #: ../admin/views/settings.php:65
1034
- msgid "Previous Post"
1035
- msgstr ""
1036
-
1037
- #: ../admin/shortcode-builder/shortcode-builder.php:633
1038
  msgid "Enable the infinite scrolling of single posts."
1039
  msgstr ""
1040
 
1041
- #: ../admin/shortcode-builder/shortcode-builder.php:667
1042
- #: ../admin/shortcode-builder/shortcode-builder.php:1645
1043
  msgid "Taxonomy"
1044
  msgstr ""
1045
 
1046
- #: ../admin/shortcode-builder/shortcode-builder.php:667
1047
  msgid ""
1048
  "Selecting a taxonomy means only previous posts from the same taxonomy term "
1049
  "will be returned. If a post has multiple terms attached, each term will be "
1050
  "considered using an OR relationship query"
1051
  msgstr ""
1052
 
1053
- #: ../admin/shortcode-builder/shortcode-builder.php:668
1054
  msgid "Query previous posts from the same taxonomy term(s)."
1055
  msgstr ""
1056
 
1057
- #: ../admin/shortcode-builder/shortcode-builder.php:682
1058
- #: ../admin/shortcode-builder/shortcode-builder.php:1526
 
 
 
 
 
 
 
1059
  msgid "Category"
1060
  msgstr ""
1061
 
1062
- #: ../admin/shortcode-builder/shortcode-builder.php:683
1063
- #: ../admin/shortcode-builder/shortcode-builder.php:1586
1064
  msgid "Tag"
1065
  msgstr ""
1066
 
1067
- #: ../admin/shortcode-builder/shortcode-builder.php:700
1068
  msgid "Excluded Terms "
1069
  msgstr ""
1070
 
1071
- #: ../admin/shortcode-builder/shortcode-builder.php:700
1072
  msgid "A comma-separated list of excluded terms by ID"
1073
  msgstr ""
1074
 
1075
- #: ../admin/shortcode-builder/shortcode-builder.php:701
1076
  msgid "Exclude posts by term ID from the previous post query."
1077
  msgstr ""
1078
 
1079
- #: ../admin/shortcode-builder/shortcode-builder.php:710
1080
  msgid ""
1081
  "You must add the Previous Post shortcode directly to your single template "
1082
  "file using the <a href=\"https://developer.wordpress.org/reference/functions/"
@@ -1085,85 +1176,85 @@ msgid ""
1085
  "target=\"_blank\">View documentation</a>"
1086
  msgstr ""
1087
 
1088
- #: ../admin/shortcode-builder/shortcode-builder.php:736
1089
- #: ../admin/views/settings.php:67
1090
  msgid "REST API"
1091
  msgstr ""
1092
 
1093
- #: ../admin/shortcode-builder/shortcode-builder.php:739
1094
  msgid "Enable the WordPress REST API."
1095
  msgstr ""
1096
 
1097
- #: ../admin/shortcode-builder/shortcode-builder.php:763
1098
  msgid "Base URL"
1099
  msgstr ""
1100
 
1101
- #: ../admin/shortcode-builder/shortcode-builder.php:764
1102
  msgid "Set a default Base URL in the Ajax Load More settings panel"
1103
  msgstr ""
1104
 
1105
- #: ../admin/shortcode-builder/shortcode-builder.php:765
1106
  msgid "Enter the base URL to your installation of the REST API."
1107
  msgstr ""
1108
 
1109
- #: ../admin/shortcode-builder/shortcode-builder.php:777
1110
  msgid "Namespace"
1111
  msgstr ""
1112
 
1113
- #: ../admin/shortcode-builder/shortcode-builder.php:778
1114
  msgid "Set a default Namespace in the Ajax Load More settings panel"
1115
  msgstr ""
1116
 
1117
- #: ../admin/shortcode-builder/shortcode-builder.php:779
1118
  msgid "Enter the custom namespace for this Ajax Load More query."
1119
  msgstr ""
1120
 
1121
- #: ../admin/shortcode-builder/shortcode-builder.php:791
1122
  msgid "Endpoint"
1123
  msgstr ""
1124
 
1125
- #: ../admin/shortcode-builder/shortcode-builder.php:792
1126
  msgid "Set a default Endpoint in the Ajax Load More settings panel"
1127
  msgstr ""
1128
 
1129
- #: ../admin/shortcode-builder/shortcode-builder.php:793
1130
  msgid "Enter your custom endpoint for this Ajax Load More query."
1131
  msgstr ""
1132
 
1133
- #: ../admin/shortcode-builder/shortcode-builder.php:805
1134
  msgid "Template ID"
1135
  msgstr ""
1136
 
1137
- #: ../admin/shortcode-builder/shortcode-builder.php:805
1138
  msgid ""
1139
  "Ajax Load More references this ID while looping and displaying your data. "
1140
  "You must still select a repeater template for this instance of Ajax Load More"
1141
  msgstr ""
1142
 
1143
- #: ../admin/shortcode-builder/shortcode-builder.php:806
1144
  msgid ""
1145
  "Enter the ID of your javascript template.<br/><br/>e.g. <em>tmpl-alm-"
1146
  "template</em> = <em>alm-template</em>"
1147
  msgstr ""
1148
 
1149
- #: ../admin/shortcode-builder/shortcode-builder.php:806
1150
- #: ../admin/shortcode-builder/shortcode-builder.php:1313
1151
- #: ../admin/shortcode-builder/shortcode-builder.php:1531
1152
- #: ../admin/shortcode-builder/shortcode-builder.php:1590
1153
- #: ../admin/shortcode-builder/shortcode-builder.php:1790
1154
  msgid "View Example"
1155
  msgstr ""
1156
 
1157
- #: ../admin/shortcode-builder/shortcode-builder.php:818
1158
  msgid "Debug Mode"
1159
  msgstr ""
1160
 
1161
- #: ../admin/shortcode-builder/shortcode-builder.php:819
1162
  msgid ""
1163
  "Enable debugging (console.log) of REST API responses in the browser console. "
1164
  msgstr ""
1165
 
1166
- #: ../admin/shortcode-builder/shortcode-builder.php:837
1167
  msgid ""
1168
  "Visit <a href=\"http://v2.wp-api.org/\" target=\"_blank\">http://v2.wp-api."
1169
  "org</a> for documentation on creating custom <a href=\"http://v2.wp-api.org/"
@@ -1171,590 +1262,694 @@ msgid ""
1171
  "More."
1172
  msgstr ""
1173
 
1174
- #: ../admin/shortcode-builder/shortcode-builder.php:850
1175
  msgid "SEO (Search Engine Optimization)"
1176
  msgstr ""
1177
 
1178
- #: ../admin/shortcode-builder/shortcode-builder.php:853
1179
  msgid ""
1180
  "Enable address bar URL rewrites as users page through ajax loaded content."
1181
  msgstr ""
1182
 
1183
- #: ../admin/shortcode-builder/shortcode-builder.php:881
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1184
  msgid "Display Settings"
1185
  msgstr ""
1186
 
1187
- #: ../admin/shortcode-builder/shortcode-builder.php:890
1188
  msgid "Repeater Template"
1189
  msgstr ""
1190
 
1191
- #: ../admin/shortcode-builder/shortcode-builder.php:892
1192
  msgid ""
1193
  "Select which <a href=\"admin.php?page=ajax-load-more-repeaters\" target="
1194
  "\"_parent\">repeater template</a> you would like to use."
1195
  msgstr ""
1196
 
1197
- #: ../admin/shortcode-builder/shortcode-builder.php:931
1198
  msgid "ID"
1199
  msgstr ""
1200
 
1201
- #: ../admin/shortcode-builder/shortcode-builder.php:931
1202
  msgid ""
1203
  "Adding a unique ID will allow you target this specific Ajax Load More "
1204
  "instance with the alm_query_args_id() filter"
1205
  msgstr ""
1206
 
1207
- #: ../admin/shortcode-builder/shortcode-builder.php:932
1208
  msgid "Set a unique ID for this Ajax Load More instance."
1209
  msgstr ""
1210
 
1211
- #: ../admin/shortcode-builder/shortcode-builder.php:939
1212
  msgid "Generate Unique ID"
1213
  msgstr ""
1214
 
1215
- #: ../admin/shortcode-builder/shortcode-builder.php:948
1216
  msgid ""
1217
  "You can define a global container type on the Ajax Load More settings screen"
1218
  msgstr ""
1219
 
1220
- #: ../admin/shortcode-builder/shortcode-builder.php:949
1221
  msgid ""
1222
  "Override the global Container Type set on the <a href=\"admin.php?page=ajax-"
1223
  "load-more\">ALM Settings page</a>."
1224
  msgstr ""
1225
 
1226
- #: ../admin/shortcode-builder/shortcode-builder.php:979
1227
  msgid ""
1228
  "You can define global container classes on the Ajax Load More settings screen"
1229
  msgstr ""
1230
 
1231
- #: ../admin/shortcode-builder/shortcode-builder.php:980
1232
  msgid ""
1233
  "Add custom CSS classes to the <span>.alm-listing</span> container. <br/><br/"
1234
  "> e.g. portfolio-listing large-12 etc"
1235
  msgstr ""
1236
 
1237
- #: ../admin/shortcode-builder/shortcode-builder.php:993
1238
  msgid "Button Labels"
1239
  msgstr ""
1240
 
1241
- #: ../admin/shortcode-builder/shortcode-builder.php:998
1242
  msgid "Label"
1243
  msgstr ""
1244
 
1245
- #: ../admin/shortcode-builder/shortcode-builder.php:999
1246
  msgid "Customize the text of the <em>Load More</em> button."
1247
  msgstr ""
1248
 
1249
- #: ../admin/shortcode-builder/shortcode-builder.php:1011
1250
  msgid "Loading Label"
1251
  msgstr ""
1252
 
1253
- #: ../admin/shortcode-builder/shortcode-builder.php:1011
1254
  msgid "Leave field empty to not update text while loading content"
1255
  msgstr ""
1256
 
1257
- #: ../admin/shortcode-builder/shortcode-builder.php:1012
1258
  msgid ""
1259
  "Update the text of the <em>Load More</em> button while content is loading."
1260
  msgstr ""
1261
 
1262
- #: ../admin/shortcode-builder/shortcode-builder.php:1016
1263
  msgid "Loading Posts..."
1264
  msgstr ""
1265
 
1266
- #: ../admin/shortcode-builder/shortcode-builder.php:1026
1267
  msgid "Scrolling"
1268
  msgstr ""
1269
 
1270
- #: ../admin/shortcode-builder/shortcode-builder.php:1029
1271
  msgid "Enable Scrolling"
1272
  msgstr ""
1273
 
1274
- #: ../admin/shortcode-builder/shortcode-builder.php:1030
1275
  msgid "Load more posts as the user scrolls the page."
1276
  msgstr ""
1277
 
1278
- #: ../admin/shortcode-builder/shortcode-builder.php:1051
1279
  msgid "Scroll Distance"
1280
  msgstr ""
1281
 
1282
- #: ../admin/shortcode-builder/shortcode-builder.php:1051
1283
  msgid ""
1284
  "Distance is based on the position of the loading button from the bottom of "
1285
  "the screen"
1286
  msgstr ""
1287
 
1288
- #: ../admin/shortcode-builder/shortcode-builder.php:1052
1289
  msgid ""
1290
  "The distance from the bottom of the screen to trigger loading of posts. "
1291
  "(Default = 150)"
1292
  msgstr ""
1293
 
1294
- #: ../admin/shortcode-builder/shortcode-builder.php:1064
1295
  msgid "Scroll Container"
1296
  msgstr ""
1297
 
1298
- #: ../admin/shortcode-builder/shortcode-builder.php:1064
1299
  msgid "Confine Ajax Load More scrolling to a parent container"
1300
  msgstr ""
1301
 
1302
- #: ../admin/shortcode-builder/shortcode-builder.php:1065
1303
  msgid "Enter the ID or classname of the parent container"
1304
  msgstr ""
1305
 
1306
- #: ../admin/shortcode-builder/shortcode-builder.php:1077
1307
  msgid "Maximum Pages"
1308
  msgstr ""
1309
 
1310
- #: ../admin/shortcode-builder/shortcode-builder.php:1077
1311
  msgid "If using an Infinite Scroll button style you should set this to 0"
1312
  msgstr ""
1313
 
1314
- #: ../admin/shortcode-builder/shortcode-builder.php:1078
1315
  msgid "Maximum number of pages to load while scrolling. (0 = unlimited)"
1316
  msgstr ""
1317
 
1318
- #: ../admin/shortcode-builder/shortcode-builder.php:1090
1319
  msgid "Pause Override"
1320
  msgstr ""
1321
 
1322
- #: ../admin/shortcode-builder/shortcode-builder.php:1091
1323
  msgid ""
1324
  "Allow scrolling to override the Pause parameter and trigger the loading of "
1325
  "posts on scroll."
1326
  msgstr ""
1327
 
1328
- #: ../admin/shortcode-builder/shortcode-builder.php:1112
1329
  msgid "Transition"
1330
  msgstr ""
1331
 
1332
- #: ../admin/shortcode-builder/shortcode-builder.php:1115
1333
  msgid "Type"
1334
  msgstr ""
1335
 
1336
- #: ../admin/shortcode-builder/shortcode-builder.php:1116
1337
  msgid "Select a loading transition style."
1338
  msgstr ""
1339
 
1340
- #: ../admin/shortcode-builder/shortcode-builder.php:1121
1341
  msgid "Slide"
1342
  msgstr ""
1343
 
1344
- #: ../admin/shortcode-builder/shortcode-builder.php:1122
1345
  msgid "Fade"
1346
  msgstr ""
1347
 
1348
- #: ../admin/shortcode-builder/shortcode-builder.php:1123
1349
  msgid "Masonry"
1350
  msgstr ""
1351
 
1352
- #: ../admin/shortcode-builder/shortcode-builder.php:1136
1353
  msgid "Masonry Options"
1354
  msgstr ""
1355
 
1356
- #: ../admin/shortcode-builder/shortcode-builder.php:1136
1357
  msgid "Ajax Load More does not support all available Masonry options"
1358
  msgstr ""
1359
 
1360
- #: ../admin/shortcode-builder/shortcode-builder.php:1137
1361
  msgid ""
1362
  "The following Masonry <a href=\"https://masonry.desandro.com/options.html\" "
1363
  "target=\"_blank\">options</a> are supported by Ajax Load More"
1364
  msgstr ""
1365
 
1366
- #: ../admin/shortcode-builder/shortcode-builder.php:1142
1367
  msgid "Item Selector"
1368
  msgstr ""
1369
 
1370
- #: ../admin/shortcode-builder/shortcode-builder.php:1142
1371
  msgid ""
1372
  "Item Selector is required for Masonry to target each element loaded with Ajax"
1373
  msgstr ""
1374
 
1375
- #: ../admin/shortcode-builder/shortcode-builder.php:1143
1376
  msgid "Enter the target classname of each masonry item"
1377
  msgstr ""
1378
 
1379
- #: ../admin/shortcode-builder/shortcode-builder.php:1157
1380
  msgid "Animation Type"
1381
  msgstr ""
1382
 
1383
- #: ../admin/shortcode-builder/shortcode-builder.php:1157
1384
  msgid "All Masonry animations include a fade-in effect as items are loaded"
1385
  msgstr ""
1386
 
1387
- #: ../admin/shortcode-builder/shortcode-builder.php:1158
1388
  msgid "Select a loading transition for Masonry items"
1389
  msgstr ""
1390
 
1391
- #: ../admin/shortcode-builder/shortcode-builder.php:1166
1392
  msgid "Default (Zoom)"
1393
  msgstr ""
1394
 
1395
- #: ../admin/shortcode-builder/shortcode-builder.php:1167
1396
  msgid "Items scale up from 50% to 100% size on load"
1397
  msgstr ""
1398
 
1399
- #: ../admin/shortcode-builder/shortcode-builder.php:1173
1400
  msgid "Zoom Out"
1401
  msgstr ""
1402
 
1403
- #: ../admin/shortcode-builder/shortcode-builder.php:1174
1404
  msgid "Items scale down from 125% to 100% size on load"
1405
  msgstr ""
1406
 
1407
- #: ../admin/shortcode-builder/shortcode-builder.php:1180
1408
  msgid "Slide Up"
1409
  msgstr ""
1410
 
1411
- #: ../admin/shortcode-builder/shortcode-builder.php:1181
1412
  msgid "Items animate up as they are loaded into view."
1413
  msgstr ""
1414
 
1415
- #: ../admin/shortcode-builder/shortcode-builder.php:1187
1416
  msgid "Slide Down"
1417
  msgstr ""
1418
 
1419
- #: ../admin/shortcode-builder/shortcode-builder.php:1188
1420
  msgid "Items animate down when loaded into view."
1421
  msgstr ""
1422
 
1423
- #: ../admin/shortcode-builder/shortcode-builder.php:1205
1424
  msgid "Horizontal Order"
1425
  msgstr ""
1426
 
1427
- #: ../admin/shortcode-builder/shortcode-builder.php:1206
1428
  msgid "Lays out items to maintain left-to-right order"
1429
  msgstr ""
1430
 
1431
- #: ../admin/shortcode-builder/shortcode-builder.php:1233
1432
  msgid "Transition Container"
1433
  msgstr ""
1434
 
1435
- #: ../admin/shortcode-builder/shortcode-builder.php:1233
1436
  msgid ""
1437
  "Removing the transition container may have undesired results and is not "
1438
  "recommended"
1439
  msgstr ""
1440
 
1441
- #: ../admin/shortcode-builder/shortcode-builder.php:1234
1442
  msgid ""
1443
  "Remove the <span>.alm-reveal</span> loading container from Ajax Load More"
1444
  msgstr ""
1445
 
1446
- #: ../admin/shortcode-builder/shortcode-builder.php:1241
1447
  msgid "Remove Container"
1448
  msgstr ""
1449
 
1450
- #: ../admin/shortcode-builder/shortcode-builder.php:1252
1451
  msgid "Transition Container Classes"
1452
  msgstr ""
1453
 
1454
- #: ../admin/shortcode-builder/shortcode-builder.php:1252
1455
  msgid ""
1456
  "This setting is not available with the Previous Post or Next Page add-ons"
1457
  msgstr ""
1458
 
1459
- #: ../admin/shortcode-builder/shortcode-builder.php:1253
1460
  msgid "Add custom classes to the <span>.alm-reveal</span> loading container"
1461
  msgstr ""
1462
 
1463
- #: ../admin/shortcode-builder/shortcode-builder.php:1269
1464
  msgid "Speed"
1465
  msgstr ""
1466
 
1467
- #: ../admin/shortcode-builder/shortcode-builder.php:1269
1468
  msgid "0.5 seconds = 500, 1 second = 1000 etc"
1469
  msgstr ""
1470
 
1471
- #: ../admin/shortcode-builder/shortcode-builder.php:1270
1472
  msgid "The speed of the loading transition in milliseconds"
1473
  msgstr ""
1474
 
1475
- #: ../admin/shortcode-builder/shortcode-builder.php:1284
1476
  msgid "Pause"
1477
  msgstr ""
1478
 
1479
- #: ../admin/shortcode-builder/shortcode-builder.php:1287
1480
  msgid ""
1481
  "Do <u>NOT</u> load any posts until user clicks the <em>Load More</em> button."
1482
  msgstr ""
1483
 
1484
- #: ../admin/shortcode-builder/shortcode-builder.php:1309
1485
  msgid "Progress Bar"
1486
  msgstr ""
1487
 
1488
- #: ../admin/shortcode-builder/shortcode-builder.php:1312
1489
  msgid ""
1490
  "Display progress bar indicator at the top of the window while loading Ajax "
1491
  "content"
1492
  msgstr ""
1493
 
1494
- #: ../admin/shortcode-builder/shortcode-builder.php:1341
1495
  msgid "Color"
1496
  msgstr ""
1497
 
1498
- #: ../admin/shortcode-builder/shortcode-builder.php:1342
1499
  msgid "Enter the hex color of the progress bar"
1500
  msgstr ""
1501
 
1502
- #: ../admin/shortcode-builder/shortcode-builder.php:1360
1503
  msgid "Images Loaded"
1504
  msgstr ""
1505
 
1506
- #: ../admin/shortcode-builder/shortcode-builder.php:1363
1507
  msgid "Wait for all images to load before displaying ajax loaded content"
1508
  msgstr ""
1509
 
1510
- #: ../admin/shortcode-builder/shortcode-builder.php:1363
1511
  msgid "Background images are not supported"
1512
  msgstr ""
1513
 
1514
- #: ../admin/shortcode-builder/shortcode-builder.php:1385
1515
  msgid "Destroy After"
1516
  msgstr ""
1517
 
1518
- #: ../admin/shortcode-builder/shortcode-builder.php:1390
1519
  msgid ""
1520
  "Remove Ajax Load More functionality after {<em>n</em>} number of pages have "
1521
  "been loaded."
1522
  msgstr ""
1523
 
1524
- #: ../admin/shortcode-builder/shortcode-builder.php:1410
1525
  msgid "Query Parameters"
1526
  msgstr ""
1527
 
1528
- #: ../admin/shortcode-builder/shortcode-builder.php:1414
1529
  msgid "Posts Per Page"
1530
  msgstr ""
1531
 
1532
- #: ../admin/shortcode-builder/shortcode-builder.php:1417
1533
  msgid "Select the number of posts to load with each request."
1534
  msgstr ""
1535
 
1536
- #: ../admin/shortcode-builder/shortcode-builder.php:1436
1537
  msgid "Post Type"
1538
  msgstr ""
1539
 
1540
- #: ../admin/shortcode-builder/shortcode-builder.php:1441
1541
  msgid "Select the Post Types to include in this Ajax Load More query."
1542
  msgstr ""
1543
 
1544
- #: ../admin/shortcode-builder/shortcode-builder.php:1455
1545
  msgid "Any"
1546
  msgstr ""
1547
 
1548
- #: ../admin/shortcode-builder/shortcode-builder.php:1467
1549
  msgid "Sticky Posts"
1550
  msgstr ""
1551
 
1552
- #: ../admin/shortcode-builder/shortcode-builder.php:1467
1553
  msgid "Sticky posts are only available for Posts"
1554
  msgstr ""
1555
 
1556
- #: ../admin/shortcode-builder/shortcode-builder.php:1468
1557
  msgid ""
1558
  "Preserve the ordering of sticky posts by having them appear first in the "
1559
  "Ajax listing."
1560
  msgstr ""
1561
 
1562
- #: ../admin/shortcode-builder/shortcode-builder.php:1475
1563
  msgid "Enable Sticky Posts"
1564
  msgstr ""
1565
 
1566
- #: ../admin/shortcode-builder/shortcode-builder.php:1497
1567
  msgid "Post Format"
1568
  msgstr ""
1569
 
1570
- #: ../admin/shortcode-builder/shortcode-builder.php:1500
1571
  msgid ""
1572
  "Select a <a href=\"http://codex.wordpress.org/Post_Formats\" target=\"_blank"
1573
  "\">Post Format</a> to query."
1574
  msgstr ""
1575
 
1576
- #: ../admin/shortcode-builder/shortcode-builder.php:1503
1577
  msgid "Select Post Format"
1578
  msgstr ""
1579
 
1580
- #: ../admin/shortcode-builder/shortcode-builder.php:1504
1581
  msgid "Standard"
1582
  msgstr ""
1583
 
1584
- #: ../admin/shortcode-builder/shortcode-builder.php:1530
1585
  msgid ""
1586
  "A comma separated list of categories to include by slug. (design, research "
1587
  "etc...)"
1588
  msgstr ""
1589
 
1590
- #: ../admin/shortcode-builder/shortcode-builder.php:1553
1591
- #: ../admin/shortcode-builder/shortcode-builder.php:1611
1592
- #: ../admin/shortcode-builder/shortcode-builder.php:1789
1593
- msgid "Exclude"
1594
- msgstr ""
1595
-
1596
- #: ../admin/shortcode-builder/shortcode-builder.php:1554
1597
  msgid ""
1598
  "A comma separated list of categories to exclude by ID. (3, 12, 35 etc..)"
1599
  msgstr ""
1600
 
1601
- #: ../admin/shortcode-builder/shortcode-builder.php:1589
1602
- #: ../admin/shortcode-builder/shortcode-builder.php:1778
1603
- msgid "Include"
1604
- msgstr ""
1605
-
1606
- #: ../admin/shortcode-builder/shortcode-builder.php:1590
1607
  msgid ""
1608
  "A comma separated list of tags to include by slug. (toronto, canada etc...)"
1609
  msgstr ""
1610
 
1611
- #: ../admin/shortcode-builder/shortcode-builder.php:1612
1612
  msgid "A comma separated list of tags to exclude by ID. (30, 12, 99 etc..)"
1613
  msgstr ""
1614
 
1615
- #: ../admin/shortcode-builder/shortcode-builder.php:1648
1616
  msgid "Select a taxonomy then select the terms and an operator."
1617
  msgstr ""
1618
 
1619
- #: ../admin/shortcode-builder/shortcode-builder.php:1653
1620
- #: ../admin/shortcode-builder/shortcode-builder.php:1719
1621
  msgid "Add Another"
1622
  msgstr ""
1623
 
1624
- #: ../admin/shortcode-builder/shortcode-builder.php:1663
1625
  msgid "Date"
1626
  msgstr ""
1627
 
1628
- #: ../admin/shortcode-builder/shortcode-builder.php:1666
1629
  msgid ""
1630
  "Enter a year, month(number) and day to query by date archive.<br/>&raquo; <a "
1631
  "href=\"admin.php?page=ajax-load-more-help&section=examples#example-date\" "
1632
  "target=\"_blank\">View Example</a>"
1633
  msgstr ""
1634
 
1635
- #: ../admin/shortcode-builder/shortcode-builder.php:1672
1636
  msgid "Year:"
1637
  msgstr ""
1638
 
1639
- #: ../admin/shortcode-builder/shortcode-builder.php:1676
1640
  msgid "Month:"
1641
  msgstr ""
1642
 
1643
- #: ../admin/shortcode-builder/shortcode-builder.php:1680
1644
  msgid "Day:"
1645
  msgstr ""
1646
 
1647
- #: ../admin/shortcode-builder/shortcode-builder.php:1691
1648
  msgid "Custom Fields (Meta_Query)"
1649
  msgstr ""
1650
 
1651
- #: ../admin/shortcode-builder/shortcode-builder.php:1694
1652
  msgid ""
1653
  "Query for <a href=\"http://codex.wordpress.org/Class_Reference/WP_Meta_Query"
1654
  "\" target=\"_blank\">custom field</a> by entering a custom field key, value "
1655
  "and operator."
1656
  msgstr ""
1657
 
1658
- #: ../admin/shortcode-builder/shortcode-builder.php:1705
1659
  msgid ""
1660
  "The logical relationship between each custom field when there is more than "
1661
  "one"
1662
  msgstr ""
1663
 
1664
- #: ../admin/shortcode-builder/shortcode-builder.php:1735
1665
  msgid "Author"
1666
  msgstr ""
1667
 
1668
- #: ../admin/shortcode-builder/shortcode-builder.php:1738
1669
  msgid "Select an Author to query(by ID)."
1670
  msgstr ""
1671
 
1672
- #: ../admin/shortcode-builder/shortcode-builder.php:1759
1673
  msgid "Search Term"
1674
  msgstr ""
1675
 
1676
- #: ../admin/shortcode-builder/shortcode-builder.php:1762
1677
  msgid "Enter a search term to query."
1678
  msgstr ""
1679
 
1680
- #: ../admin/shortcode-builder/shortcode-builder.php:1766
1681
  msgid "Enter search term"
1682
  msgstr ""
1683
 
1684
- #: ../admin/shortcode-builder/shortcode-builder.php:1775
1685
  msgid "Post Parameters"
1686
  msgstr ""
1687
 
1688
- #: ../admin/shortcode-builder/shortcode-builder.php:1779
1689
  msgid "A comma separated list of post ID's to query."
1690
  msgstr ""
1691
 
1692
- #: ../admin/shortcode-builder/shortcode-builder.php:1783
1693
  msgid "225, 340, 818, etc..."
1694
  msgstr ""
1695
 
1696
- #: ../admin/shortcode-builder/shortcode-builder.php:1790
1697
  msgid "A comma separated list of post ID's to exclude from query."
1698
  msgstr ""
1699
 
1700
- #: ../admin/shortcode-builder/shortcode-builder.php:1800
1701
  msgid "Post Status"
1702
  msgstr ""
1703
 
1704
- #: ../admin/shortcode-builder/shortcode-builder.php:1800
1705
  msgid ""
1706
  "Post Status parameters are only available for logged in (admin) users. Non "
1707
  "logged in users will only have access to view content in a 'publish' or "
1708
  "'inherit' state."
1709
  msgstr ""
1710
 
1711
- #: ../admin/shortcode-builder/shortcode-builder.php:1801
1712
  msgid "Select status of the post."
1713
  msgstr ""
1714
 
1715
- #: ../admin/shortcode-builder/shortcode-builder.php:1806
1716
  msgid "Published"
1717
  msgstr ""
1718
 
1719
- #: ../admin/shortcode-builder/shortcode-builder.php:1823
1720
  msgid "Ordering"
1721
  msgstr ""
1722
 
1723
- #: ../admin/shortcode-builder/shortcode-builder.php:1826
1724
  msgid "Sort posts by Order and Orderby parameters."
1725
  msgstr ""
1726
 
1727
- #: ../admin/shortcode-builder/shortcode-builder.php:1830
1728
- msgid "Order"
1729
- msgstr ""
1730
-
1731
- #: ../admin/shortcode-builder/shortcode-builder.php:1837
1732
- msgid "Order By"
1733
- msgstr ""
1734
-
1735
- #: ../admin/shortcode-builder/shortcode-builder.php:1858
1736
  msgid "Offset"
1737
  msgstr ""
1738
 
1739
- #: ../admin/shortcode-builder/shortcode-builder.php:1861
1740
  msgid "Offset the initial query by <em>'n'</em> number of posts"
1741
  msgstr ""
1742
 
1743
- #: ../admin/shortcode-builder/shortcode-builder.php:1874
1744
  msgid "Custom Arguments"
1745
  msgstr ""
1746
 
1747
- #: ../admin/shortcode-builder/shortcode-builder.php:1877
1748
  msgid "A semicolon separated list of custom value:pair arguments."
1749
  msgstr ""
1750
 
1751
- #: ../admin/shortcode-builder/shortcode-builder.php:1877
1752
  msgid ""
1753
  "Custom Arguments can be used to query by parameters not available in the "
1754
  "Shortcode Builder"
1755
  msgstr ""
1756
 
1757
- #: ../admin/shortcode-builder/shortcode-builder.php:1881
1758
  msgid "event_display:upcoming"
1759
  msgstr ""
1760
 
@@ -1768,136 +1963,7 @@ msgid ""
1768
  "Load More"
1769
  msgstr ""
1770
 
1771
- #: ../admin/views/add-ons.php:22
1772
- msgid "Improve performance with the Ajax Load More caching engine."
1773
- msgstr ""
1774
-
1775
- #: ../admin/views/add-ons.php:23
1776
- msgid ""
1777
- "The Cache add-on creates static HTML files of Ajax Load More requests then "
1778
- "delivers those static files to your visitors."
1779
- msgstr ""
1780
-
1781
- #: ../admin/views/add-ons.php:49
1782
- msgid ""
1783
- "Ajax Load More extension for displaying advertisements and call to actions."
1784
- msgstr ""
1785
-
1786
- #: ../admin/views/add-ons.php:50
1787
- msgid ""
1788
- "The Call to Actions add-on will provide the ability to inject a custom CTA "
1789
- "template within each Ajax Load More loop."
1790
- msgstr ""
1791
-
1792
- #: ../admin/views/add-ons.php:76
1793
- msgid "Load blog comments on demand with Ajax Load More."
1794
- msgstr ""
1795
-
1796
- #: ../admin/views/add-ons.php:77
1797
- msgid ""
1798
- "The Comments add-on will display your blog comments with Ajax Load More's "
1799
- "infinite scroll functionality."
1800
- msgstr ""
1801
-
1802
- #: ../admin/views/add-ons.php:100 ../admin/views/licenses.php:240
1803
- msgid "Custom Repeaters"
1804
- msgstr ""
1805
-
1806
- #: ../admin/views/add-ons.php:101
1807
- msgid "Extend Ajax Load More with unlimited repeater templates."
1808
- msgstr ""
1809
-
1810
- #: ../admin/views/add-ons.php:102
1811
- msgid ""
1812
- "Create, delete and modify repeater templates as you need them with "
1813
- "absolutely zero restrictions."
1814
- msgstr ""
1815
-
1816
- #: ../admin/views/add-ons.php:128 ../admin/views/licenses.php:307
1817
- #: ../admin/views/settings.php:61
1818
- msgid "Layouts"
1819
- msgstr ""
1820
-
1821
- #: ../admin/views/add-ons.php:129
1822
- msgid "Predefined layouts for your repeater templates."
1823
- msgstr ""
1824
-
1825
- #: ../admin/views/add-ons.php:130
1826
- msgid ""
1827
- "The Layouts add-on provides a collection of unique, well designed and fully "
1828
- "responsive templates."
1829
- msgstr ""
1830
-
1831
- #: ../admin/views/add-ons.php:155
1832
- msgid "Load and display multipage WordPress content."
1833
- msgstr ""
1834
-
1835
- #: ../admin/views/add-ons.php:156
1836
- msgid ""
1837
- "The Next Page add-on will provide functionality for infinite scrolling "
1838
- "paginated posts and pages."
1839
- msgstr ""
1840
-
1841
- #: ../admin/views/add-ons.php:181
1842
- msgid "Extend Ajax Load More with a numbered navigation."
1843
- msgstr ""
1844
-
1845
- #: ../admin/views/add-ons.php:182
1846
- msgid ""
1847
- "The Paging add-on will transform the default infinite scroll functionality "
1848
- "into a robust ajax powered navigation system."
1849
- msgstr ""
1850
-
1851
- #: ../admin/views/add-ons.php:208
1852
- msgid "Load an initial set of posts before making Ajax requests to the server."
1853
- msgstr ""
1854
-
1855
- #: ../admin/views/add-ons.php:209
1856
- msgid ""
1857
- "The Preloaded add-on will display content quicker and allow caching of the "
1858
- "initial query which can reduce stress on your server."
1859
- msgstr ""
1860
-
1861
- #: ../admin/views/add-ons.php:234
1862
- msgid "An extension to enable infinite scrolling of single posts."
1863
- msgstr ""
1864
-
1865
- #: ../admin/views/add-ons.php:235
1866
- msgid ""
1867
- "The Previous Post add-on will load single posts as you scroll and update the "
1868
- "browser URL to the current post."
1869
- msgstr ""
1870
-
1871
- #: ../admin/views/add-ons.php:259 ../admin/views/licenses.php:635
1872
- msgid "Search Engine Optimization"
1873
- msgstr ""
1874
-
1875
- #: ../admin/views/add-ons.php:260
1876
- msgid "Generate unique paging URLs with every Ajax Load More query."
1877
- msgstr ""
1878
-
1879
- #: ../admin/views/add-ons.php:261
1880
- msgid ""
1881
- "The SEO add-on will optimize your ajax loaded content for search engines by "
1882
- "generating unique URLs with every query.</p>"
1883
- msgstr ""
1884
-
1885
- #: ../admin/views/add-ons.php:285 ../admin/views/licenses.php:703
1886
- #: ../admin/views/repeater-templates.php:28 ../admin/views/settings.php:71
1887
- msgid "Theme Repeaters"
1888
- msgstr ""
1889
-
1890
- #: ../admin/views/add-ons.php:286
1891
- msgid "Manage repeater templates within your current theme directory."
1892
- msgstr ""
1893
-
1894
- #: ../admin/views/add-ons.php:287
1895
- msgid ""
1896
- "The Theme Repeater add-on will allow you load, edit and maintain templates "
1897
- "from your current theme directory.</p>"
1898
- msgstr ""
1899
-
1900
- #: ../admin/views/add-ons.php:306
1901
  msgid ""
1902
  "All add-ons are installed as stand alone plugins and with a valid license "
1903
  "key will receive plugin update notifications directly within the <a href="
@@ -1914,7 +1980,7 @@ msgid ""
1914
  "WordPress functionality"
1915
  msgstr ""
1916
 
1917
- #: ../admin/views/extensions.php:39
1918
  msgid ""
1919
  "Extensions are installed as stand alone plugins and receive update "
1920
  "notifications in the <a href=\"plugins.php\">plugin dashboard</a>."
@@ -1932,26 +1998,26 @@ msgstr ""
1932
  msgid "Help"
1933
  msgstr ""
1934
 
1935
- #: ../admin/views/help.php:27
1936
  msgid "Implementation Guide"
1937
  msgstr ""
1938
 
1939
- #: ../admin/views/help.php:32
1940
  msgid "Examples"
1941
  msgstr ""
1942
 
1943
- #: ../admin/views/help.php:65
1944
  msgid "Example Library"
1945
  msgstr ""
1946
 
1947
- #: ../admin/views/help.php:67
1948
  msgid ""
1949
  "We have a collection of over 20 real world Ajax Load More <a href=\"https://"
1950
  "connekthq.com/plugins/ajax-load-more/examples/\" target=\"_blank\">examples</"
1951
  "a> available on the plugin website"
1952
  msgstr ""
1953
 
1954
- #: ../admin/views/help.php:69
1955
  msgid "View All Examples"
1956
  msgstr ""
1957
 
@@ -1961,158 +2027,119 @@ msgstr ""
1961
 
1962
  #: ../admin/views/licenses.php:6
1963
  msgid ""
1964
- "Enter your license keys to enable automatic updates for <a href=\"admin.php?"
1965
- "page=ajax-load-more-add-ons\">ALM Add-ons</a>."
1966
  msgstr ""
1967
 
1968
- #: ../admin/views/licenses.php:11
1969
  msgid "License Keys"
1970
  msgstr ""
1971
 
1972
- #: ../admin/views/licenses.php:13
1973
  msgid ""
1974
  "Manage your Ajax Load More license key's below - enter a key for each of "
1975
  "your add-ons to receive plugin update notifications directly within the <a "
1976
  "href=\"plugins.php\">WP Plugins dashboard</a>."
1977
  msgstr ""
1978
 
1979
- #: ../admin/views/licenses.php:53 ../admin/views/licenses.php:118
1980
- #: ../admin/views/licenses.php:183 ../admin/views/licenses.php:249
1981
- #: ../admin/views/licenses.php:316 ../admin/views/licenses.php:382
1982
- #: ../admin/views/licenses.php:449 ../admin/views/licenses.php:514
1983
- #: ../admin/views/licenses.php:578 ../admin/views/licenses.php:644
1984
- #: ../admin/views/licenses.php:712
1985
  msgid "Don't have a license?"
1986
  msgstr ""
1987
 
1988
- #: ../admin/views/licenses.php:54 ../admin/views/licenses.php:119
1989
- #: ../admin/views/licenses.php:184 ../admin/views/licenses.php:250
1990
- #: ../admin/views/licenses.php:317 ../admin/views/licenses.php:383
1991
- #: ../admin/views/licenses.php:450 ../admin/views/licenses.php:515
1992
- #: ../admin/views/licenses.php:579 ../admin/views/licenses.php:645
1993
- #: ../admin/views/licenses.php:713
1994
  msgid ""
1995
  "A valid license is required to activate and receive plugin updates directly "
1996
  "in your WordPress dashboard"
1997
  msgstr ""
1998
 
1999
- #: ../admin/views/licenses.php:54 ../admin/views/licenses.php:119
2000
- #: ../admin/views/licenses.php:184 ../admin/views/licenses.php:250
2001
- #: ../admin/views/licenses.php:317 ../admin/views/licenses.php:383
2002
- #: ../admin/views/licenses.php:450 ../admin/views/licenses.php:515
2003
- #: ../admin/views/licenses.php:579 ../admin/views/licenses.php:645
2004
- #: ../admin/views/licenses.php:713
2005
  msgid "Purchase Now"
2006
  msgstr ""
2007
 
2008
- #: ../admin/views/licenses.php:60 ../admin/views/licenses.php:62
2009
- #: ../admin/views/licenses.php:125 ../admin/views/licenses.php:127
2010
- #: ../admin/views/licenses.php:190 ../admin/views/licenses.php:192
2011
- #: ../admin/views/licenses.php:256 ../admin/views/licenses.php:258
2012
- #: ../admin/views/licenses.php:323 ../admin/views/licenses.php:325
2013
- #: ../admin/views/licenses.php:389 ../admin/views/licenses.php:391
2014
- #: ../admin/views/licenses.php:456 ../admin/views/licenses.php:458
2015
- #: ../admin/views/licenses.php:521 ../admin/views/licenses.php:523
2016
- #: ../admin/views/licenses.php:585 ../admin/views/licenses.php:587
2017
- #: ../admin/views/licenses.php:651 ../admin/views/licenses.php:653
2018
- #: ../admin/views/licenses.php:719 ../admin/views/licenses.php:721
2019
  msgid "Enter License Key"
2020
  msgstr ""
2021
 
2022
- #: ../admin/views/licenses.php:82 ../admin/views/licenses.php:147
2023
- #: ../admin/views/licenses.php:212 ../admin/views/licenses.php:278
2024
- #: ../admin/views/licenses.php:345 ../admin/views/licenses.php:411
2025
- #: ../admin/views/licenses.php:478 ../admin/views/licenses.php:542
2026
- #: ../admin/views/licenses.php:607 ../admin/views/licenses.php:673
2027
- #: ../admin/views/licenses.php:742
2028
  msgid "Activate License"
2029
  msgstr ""
2030
 
2031
- #: ../admin/views/licenses.php:86 ../admin/views/licenses.php:151
2032
- #: ../admin/views/licenses.php:216 ../admin/views/licenses.php:282
2033
- #: ../admin/views/licenses.php:349 ../admin/views/licenses.php:415
2034
- #: ../admin/views/licenses.php:482 ../admin/views/licenses.php:546
2035
- #: ../admin/views/licenses.php:611 ../admin/views/licenses.php:677
2036
- #: ../admin/views/licenses.php:746
2037
  msgid "Deactivate License"
2038
  msgstr ""
2039
 
2040
- #: ../admin/views/licenses.php:764
2041
  msgid "You do not have any Ajax Load More add-ons installed"
2042
  msgstr ""
2043
 
2044
- #: ../admin/views/licenses.php:764
2045
  msgid "Browse Add-ons"
2046
  msgstr ""
2047
 
2048
- #: ../admin/views/licenses.php:775
2049
  msgid "About Licenses"
2050
  msgstr ""
2051
 
2052
- #: ../admin/views/licenses.php:778
2053
- msgid "Add-on licenses will enable updates directly in your WP dashboard."
2054
- msgstr ""
2055
-
2056
- #: ../admin/views/licenses.php:779
2057
  msgid ""
2058
  "License keys are found in the purchase receipt email that was sent "
2059
  "immediately after your successful purchase and in the <a target=\"_blank\" "
2060
  "href=\"https://connekthq.com/account/\">Account</a> section on our website"
2061
  msgstr ""
2062
 
2063
- #: ../admin/views/licenses.php:780
2064
  msgid ""
2065
  "If you cannot locate your key please open a support ticket by filling out "
2066
  "the <a href=\"https://connekthq.com/contact/\">form</a> on our website and "
2067
  "reference the email address used when you completed the purchase."
2068
  msgstr ""
2069
 
2070
- #: ../admin/views/licenses.php:784
2071
- msgid "Sign Into Your Account"
2072
  msgstr ""
2073
 
2074
- #: ../admin/views/repeater-templates.php:18
2075
- #: ../admin/views/repeater-templates.php:27
2076
  msgid "Repeater Templates"
2077
  msgstr ""
2078
 
2079
- #: ../admin/views/repeater-templates.php:19
2080
  msgid "The library of editable templates for use within your theme"
2081
  msgstr ""
2082
 
2083
- #: ../admin/views/repeater-templates.php:91
2084
- #: ../admin/views/repeater-templates.php:212
2085
  msgid "File Location"
2086
  msgstr ""
2087
 
2088
- #: ../admin/views/repeater-templates.php:113
2089
  msgid "Templates Not Found"
2090
  msgstr ""
2091
 
2092
- #: ../admin/views/repeater-templates.php:115
2093
  msgid ""
2094
  "Oh no - looks like you haven't added any Theme Repeater templates - you need "
2095
  "to create and upload templates to your theme directory before you can access "
2096
  "them in Ajax Load More"
2097
  msgstr ""
2098
 
2099
- #: ../admin/views/repeater-templates.php:118
2100
  msgid "Learn More About Theme Repeaters"
2101
  msgstr ""
2102
 
2103
- #: ../admin/views/repeater-templates.php:172
2104
  msgid "Default Template"
2105
  msgstr ""
2106
 
2107
- #: ../admin/views/repeater-templates.php:180
2108
  msgid "Enter the HTML and PHP code for the default template"
2109
  msgstr ""
2110
 
2111
- #: ../admin/views/repeater-templates.php:203
2112
  msgid "Save Template"
2113
  msgstr ""
2114
 
2115
- #: ../admin/views/repeater-templates.php:211
2116
  msgid ""
2117
  "It appears you are loading the <a href=\"https://connekthq.com/plugins/ajax-"
2118
  "load-more/docs/repeater-templates/#default-template\" target=\"_blank"
@@ -2121,95 +2148,95 @@ msgid ""
2121
  "your server."
2122
  msgstr ""
2123
 
2124
- #: ../admin/views/repeater-templates.php:285
2125
  msgid "Saving template..."
2126
  msgstr ""
2127
 
2128
- #: ../admin/views/repeater-templates.php:318
2129
  msgid "Something went wrong and the data could not be saved."
2130
  msgstr ""
2131
 
2132
- #: ../admin/views/repeater-templates.php:356
2133
  msgid "Updating template..."
2134
  msgstr ""
2135
 
2136
- #: ../admin/views/repeater-templates.php:422
2137
- msgid "Repeater Template Help"
2138
- msgstr ""
2139
-
2140
- #: ../admin/views/repeater-templates.php:424
2141
- msgid "What is a repeater template?"
2142
  msgstr ""
2143
 
2144
- #: ../admin/views/repeater-templates.php:425
2145
  msgid ""
2146
  "A <a href=\"https://connekthq.com/plugins/ajax-load-more/docs/repeater-"
2147
- "templates/\" target=\"_blank\">repeater template</a> is a snippet of code "
2148
  "that will execute over and over within a <a href=\"http://codex.wordpress."
2149
  "org/The_Loop\" target=\"_blank\">WordPress loop</a>"
2150
  msgstr ""
2151
 
2152
- #: ../admin/views/repeater-templates.php:427
2153
- msgid "More About Templating"
2154
  msgstr ""
2155
 
2156
- #: ../admin/views/settings.php:8
2157
  msgid "A powerful plugin to add infinite scroll functionality to your website."
2158
  msgstr ""
2159
 
2160
- #: ../admin/views/settings.php:22
2161
  msgid "Thanks for installing Ajax Load More 3.0!"
2162
  msgstr ""
2163
 
2164
- #: ../admin/views/settings.php:39
2165
  msgid "Don't show me this again!"
2166
  msgstr ""
2167
 
2168
- #: ../admin/views/settings.php:51 ../admin/views/settings.php:54
2169
  msgid "Jump to Setting"
2170
  msgstr ""
2171
 
2172
- #: ../admin/views/settings.php:55
2173
  msgid "Global Settings"
2174
  msgstr ""
2175
 
2176
- #: ../admin/views/settings.php:56
2177
  msgid "Admin"
2178
  msgstr ""
2179
 
2180
- #: ../admin/views/settings.php:69
2181
  msgid "SEO"
2182
  msgstr ""
2183
 
2184
- #: ../admin/views/shortcode-builder.php:5
2185
  msgid "Shortcode Builder"
2186
  msgstr ""
2187
 
2188
- #: ../admin/views/shortcode-builder.php:6
2189
  msgid ""
2190
  "Create your own Ajax Load More <a href=\"http://en.support.wordpress.com/"
2191
  "shortcodes/\" target=\"_blank\">shortcode</a> by adjusting the values below"
2192
  msgstr ""
2193
 
2194
- #: ../admin/views/shortcode-builder.php:13
2195
  msgid "Back to Top"
2196
  msgstr ""
2197
 
2198
- #: ../admin/views/shortcode-builder.php:23
2199
  msgid "Shortcode Output"
2200
  msgstr ""
2201
 
2202
- #: ../admin/views/shortcode-builder.php:25
2203
  msgid ""
2204
  "Place the following shortcode into the content editor or widget area of your "
2205
  "theme."
2206
  msgstr ""
2207
 
2208
- #: ../admin/views/shortcode-builder.php:30
2209
- msgid "Reset Shortcode Builder"
2210
  msgstr ""
2211
 
2212
- #: ../ajax-load-more.php:198
 
 
 
 
2213
  msgid "Settings"
2214
  msgstr ""
2215
 
@@ -2217,6 +2244,27 @@ msgstr ""
2217
  msgid "Pages:"
2218
  msgstr ""
2219
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2220
  #: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:86
2221
  #: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:381
2222
  msgid "Activated"
1
+ #, fuzzy
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Ajax Load More\n"
5
+ "POT-Creation-Date: 2017-11-16 13:26-0500\n"
6
  "PO-Revision-Date: 2017-10-05 16:14-0500\n"
7
  "Last-Translator: Darren Cooney <dcooney@ecentricarts.com>\n"
8
  "Language-Team: \n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
+ "X-Generator: Poedit 2.0.4\n"
14
  "X-Poedit-Basepath: .\n"
15
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
  "X-Poedit-KeywordsList: __;_e\n"
17
  "X-Poedit-SearchPath-0: ..\n"
18
 
19
+ #: ../admin/admin-functions.php:32
20
+ #: ../admin/shortcode-builder/components/cache.php:3
21
+ #: ../admin/views/settings.php:60
22
+ msgid "Cache"
23
+ msgstr ""
24
+
25
+ #: ../admin/admin-functions.php:33
26
+ msgid "Improve performance with the Ajax Load More caching engine."
27
+ msgstr ""
28
+
29
+ #: ../admin/admin-functions.php:34
30
+ msgid ""
31
+ "The Cache add-on creates static HTML files of Ajax Load More requests then "
32
+ "delivers those static files to your visitors."
33
+ msgstr ""
34
+
35
+ #: ../admin/admin-functions.php:44
36
+ #: ../admin/shortcode-builder/components/cta.php:3
37
+ msgid "Call to Actions"
38
+ msgstr ""
39
+
40
+ #: ../admin/admin-functions.php:45
41
+ msgid ""
42
+ "Ajax Load More extension for displaying advertisements and call to actions."
43
+ msgstr ""
44
+
45
+ #: ../admin/admin-functions.php:46
46
+ msgid ""
47
+ "The Call to Actions add-on will provide the ability to inject a custom CTA "
48
+ "template within each Ajax Load More loop."
49
+ msgstr ""
50
+
51
+ #: ../admin/admin-functions.php:56
52
+ #: ../admin/shortcode-builder/components/comments.php:3
53
+ msgid "Comments"
54
+ msgstr ""
55
+
56
+ #: ../admin/admin-functions.php:57
57
+ msgid "Load blog comments on demand with Ajax Load More."
58
+ msgstr ""
59
+
60
+ #: ../admin/admin-functions.php:58
61
+ msgid ""
62
+ "The Comments add-on will display your blog comments with Ajax Load More's "
63
+ "infinite scroll functionality."
64
+ msgstr ""
65
+
66
+ #: ../admin/admin-functions.php:68
67
+ msgid "Custom Repeaters"
68
+ msgstr ""
69
+
70
+ #: ../admin/admin-functions.php:69
71
+ msgid "Extend Ajax Load More with unlimited repeater templates."
72
+ msgstr ""
73
+
74
+ #: ../admin/admin-functions.php:70
75
+ msgid ""
76
+ "Create, delete and modify repeater templates as you need them with "
77
+ "absolutely zero restrictions."
78
+ msgstr ""
79
+
80
+ #: ../admin/admin-functions.php:80 ../admin/views/settings.php:62
81
+ msgid "Layouts"
82
+ msgstr ""
83
+
84
+ #: ../admin/admin-functions.php:81
85
+ msgid "Predefined layouts for your repeater templates."
86
+ msgstr ""
87
+
88
+ #: ../admin/admin-functions.php:82
89
+ msgid ""
90
+ "The Layouts add-on provides a collection of unique, well designed and fully "
91
+ "responsive templates."
92
+ msgstr ""
93
+
94
+ #: ../admin/admin-functions.php:92
95
+ #: ../admin/shortcode-builder/components/nextpage.php:3
96
+ msgid "Next Page"
97
+ msgstr ""
98
+
99
+ #: ../admin/admin-functions.php:93
100
+ msgid "Load and display multipage WordPress content."
101
+ msgstr ""
102
+
103
+ #: ../admin/admin-functions.php:94
104
+ msgid ""
105
+ "The Next Page add-on will provide functionality for infinite scrolling "
106
+ "paginated posts and pages."
107
+ msgstr ""
108
+
109
+ #: ../admin/admin-functions.php:104
110
+ #: ../admin/shortcode-builder/components/paging.php:3
111
+ #: ../admin/views/settings.php:64
112
+ msgid "Paging"
113
+ msgstr ""
114
+
115
+ #: ../admin/admin-functions.php:105
116
+ msgid "Extend Ajax Load More with a numbered navigation."
117
+ msgstr ""
118
+
119
+ #: ../admin/admin-functions.php:106
120
+ msgid ""
121
+ "The Paging add-on will transform the default infinite scroll functionality "
122
+ "into a robust ajax powered navigation system."
123
+ msgstr ""
124
+
125
+ #: ../admin/admin-functions.php:116
126
+ #: ../admin/shortcode-builder/components/preloaded.php:3
127
+ msgid "Preloaded"
128
+ msgstr ""
129
+
130
+ #: ../admin/admin-functions.php:117
131
+ msgid "Load an initial set of posts before making Ajax requests to the server."
132
+ msgstr ""
133
+
134
+ #: ../admin/admin-functions.php:118
135
+ msgid ""
136
+ "The Preloaded add-on will display content quicker and allow caching of the "
137
+ "initial query which can reduce stress on your server."
138
+ msgstr ""
139
+
140
+ #: ../admin/admin-functions.php:128
141
+ #: ../admin/shortcode-builder/components/previous-post.php:3
142
+ #: ../admin/views/settings.php:66
143
+ msgid "Previous Post"
144
+ msgstr ""
145
+
146
+ #: ../admin/admin-functions.php:129
147
+ msgid "An add-on to enable infinite scrolling of single posts."
148
+ msgstr ""
149
+
150
+ #: ../admin/admin-functions.php:130
151
+ msgid ""
152
+ "The Previous Post add-on will load single posts as you scroll and update the "
153
+ "browser URL to the current post."
154
+ msgstr ""
155
+
156
+ #: ../admin/admin-functions.php:140
157
+ msgid "Search Engine Optimization"
158
+ msgstr ""
159
+
160
+ #: ../admin/admin-functions.php:141
161
+ msgid "Generate unique paging URLs with every Ajax Load More query."
162
+ msgstr ""
163
+
164
+ #: ../admin/admin-functions.php:142
165
+ msgid ""
166
+ "The SEO add-on will optimize your ajax loaded content for search engines by "
167
+ "generating unique URLs with every query."
168
+ msgstr ""
169
+
170
+ #: ../admin/admin-functions.php:152 ../admin/views/repeater-templates.php:31
171
+ #: ../admin/views/settings.php:72
172
+ msgid "Theme Repeaters"
173
+ msgstr ""
174
+
175
+ #: ../admin/admin-functions.php:153
176
+ msgid "Manage repeater templates within your current theme directory."
177
+ msgstr ""
178
+
179
+ #: ../admin/admin-functions.php:154
180
+ msgid ""
181
+ "The Theme Repeater add-on will allow you load, edit and maintain templates "
182
+ "from your current theme directory."
183
+ msgstr ""
184
+
185
+ #: ../admin/admin-functions.php:164
186
+ #: ../admin/shortcode-builder/components/users.php:3
187
+ msgid "Users"
188
+ msgstr ""
189
+
190
+ #: ../admin/admin-functions.php:165
191
+ msgid "Enable infinite scrolling of WordPress users."
192
+ msgstr ""
193
+
194
+ #: ../admin/admin-functions.php:166
195
+ msgid ""
196
+ "The Users add-on will allow lazy loading of users by role using a "
197
+ "WP_User_Query."
198
+ msgstr ""
199
+
200
+ #: ../admin/admin.php:47
201
+ msgid ""
202
+ "You have invalid <a href=\"admin.php?page=ajax-load-more\"><b>Ajax Load "
203
+ "More</b></a> license keys - please visit the <a href=\"admin.php?page=ajax-"
204
+ "load-more-licenses\">Licenses</a> section and input your license keys."
205
+ msgstr ""
206
+
207
+ #: ../admin/admin.php:125 ../admin/admin.php:184 ../admin/admin.php:768
208
+ #: ../admin/admin.php:812 ../admin/admin.php:862
209
  msgid "You don't belong here."
210
  msgstr ""
211
 
212
+ #: ../admin/admin.php:213
213
  msgid "Ajax Load More"
214
  msgstr ""
215
 
216
+ #: ../admin/admin.php:214 ../admin/editor/editor-build.php:69
217
+ #: ../admin/views/licenses.php:64
 
 
 
 
 
218
  msgid "Active"
219
  msgstr ""
220
 
221
+ #: ../admin/admin.php:215 ../admin/editor/editor-build.php:70
222
+ #: ../admin/views/licenses.php:68
 
 
 
 
 
223
  msgid "Inactive"
224
  msgstr ""
225
 
226
+ #: ../admin/admin.php:216 ../admin/editor/editor-build.php:71
227
  msgid "Applying layout"
228
  msgstr ""
229
 
230
+ #: ../admin/admin.php:217 ../admin/editor/editor-build.php:72
231
+ #: ../admin/views/repeater-templates.php:379
232
  msgid "Template Updated"
233
  msgstr ""
234
 
235
+ #: ../admin/admin.php:219 ../admin/editor/editor-build.php:74
236
  msgid "Select Author(s)"
237
  msgstr ""
238
 
239
+ #: ../admin/admin.php:220 ../admin/editor/editor-build.php:75
240
  msgid "Select Categories"
241
  msgstr ""
242
 
243
+ #: ../admin/admin.php:221 ../admin/editor/editor-build.php:76
244
  msgid "Select Tags"
245
  msgstr ""
246
 
247
+ #: ../admin/admin.php:222 ../admin/editor/editor-build.php:41
248
  #: ../admin/editor/editor-build.php:77
249
  msgid "Jump to Option"
250
  msgstr ""
251
 
252
+ #: ../admin/admin.php:223 ../admin/editor/editor-build.php:78
253
  msgid "Jump to Template"
254
  msgstr ""
255
 
256
+ #: ../admin/admin.php:224
257
  msgid "Are you sure you want to install this Ajax Load More extension?"
258
  msgstr ""
259
 
260
+ #: ../admin/admin.php:225
261
  #: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:51
262
  #: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:379
263
  msgid "Install Now"
264
  msgstr ""
265
 
266
+ #: ../admin/admin.php:226
267
  #: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:90
268
  #: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:380
269
  msgid "Activate"
270
  msgstr ""
271
 
272
+ #: ../admin/admin.php:227
273
  msgid "Saving Settings"
274
  msgstr ""
275
 
276
+ #: ../admin/admin.php:228
277
  msgid "Settings Saved Successfully"
278
  msgstr ""
279
 
280
+ #: ../admin/admin.php:229
281
  msgid "Error Saving Settings"
282
  msgstr ""
283
 
284
+ #: ../admin/admin.php:339
285
  msgid ""
286
  "[Ajax Load More] Error opening default repeater template - Please check your "
287
  "file path and ensure your server is configured to allow Ajax Load More to "
288
  "read and write files within the /ajax-load-more/core/repeater directory"
289
  msgstr ""
290
 
291
+ #: ../admin/admin.php:343
292
  msgid ""
293
  "[Ajax Load More] Error updating default repeater template - Please check "
294
  "your file path and ensure your server is configured to allow Ajax Load More "
295
  "to read and write files within the /ajax-load-more/core/repeater directory."
296
  msgstr ""
297
 
298
+ #: ../admin/admin.php:726
299
  msgid "[Ajax Load More] Unable to open repeater template - "
300
  msgstr ""
301
 
302
+ #: ../admin/admin.php:730
303
  msgid "[Ajax Load More] Error saving repeater template - "
304
  msgstr ""
305
 
306
+ #: ../admin/admin.php:763
307
  msgid "Error Writing File"
308
  msgstr ""
309
 
310
+ #: ../admin/admin.php:966 ../admin/shortcode-builder/shortcode-builder.php:112
311
  msgid "Container Type"
312
  msgstr ""
313
 
314
+ #: ../admin/admin.php:974 ../admin/shortcode-builder/shortcode-builder.php:143
315
  msgid "Container Classes"
316
  msgstr ""
317
 
318
+ #: ../admin/admin.php:982
319
  msgid "Disable CSS"
320
  msgstr ""
321
 
322
+ #: ../admin/admin.php:990
323
  msgid "Button/Loading Style"
324
  msgstr ""
325
 
326
+ #: ../admin/admin.php:998
327
  msgid "Button Classes"
328
  msgstr ""
329
 
330
+ #: ../admin/admin.php:1017
331
  msgid "Top of Page"
332
  msgstr ""
333
 
334
+ #: ../admin/admin.php:1025
335
  msgid "Dynamic Content"
336
  msgstr ""
337
 
338
+ #: ../admin/admin.php:1033
339
  msgid "Editor Button"
340
  msgstr ""
341
 
342
+ #: ../admin/admin.php:1041
343
  msgid "Error Notices"
344
  msgstr ""
345
 
346
+ #: ../admin/admin.php:1112
347
  msgid ""
348
  "Customize the user experience of Ajax Load More by updating the fields below."
349
  msgstr ""
350
 
351
+ #: ../admin/admin.php:1125
352
  msgid "The following settings affect the WordPress admin area only."
353
  msgstr ""
354
 
355
+ #: ../admin/admin.php:1156
356
  msgid "I want to use my own CSS styles."
357
  msgstr ""
358
 
359
+ #: ../admin/admin.php:1156
360
  msgid "View Ajax Load More CSS"
361
  msgstr ""
362
 
363
+ #: ../admin/admin.php:1176
364
  msgid "Hide shortcode button in WYSIWYG editor."
365
  msgstr ""
366
 
367
+ #: ../admin/admin.php:1197
368
  msgid ""
369
  "Display error messaging regarding repeater template updates in the browser "
370
  "console."
371
  msgstr ""
372
 
373
+ #: ../admin/admin.php:1218
374
  msgid ""
375
  "Disable dynamic population of categories, tags and authors in the Shortcode "
376
  "Builder.<span style=\"display:block\">Recommended if you have a large number "
377
  "of categories, tags and/or authors."
378
  msgstr ""
379
 
380
+ #: ../admin/admin.php:1239 ../admin/admin.php:1242
381
  msgid "Ajax Posts Here"
382
  msgstr ""
383
 
384
+ #: ../admin/admin.php:1244
385
  msgid "You can modify the container type when building a shortcode."
386
  msgstr ""
387
 
388
+ #: ../admin/admin.php:1261
389
  msgid ""
390
  "Add custom classes to the <i>.alm-listing</i> container - classes are "
391
  "applied globally and will appear with every instance of Ajax Load More. "
393
  "shortcode.</span>"
394
  msgstr ""
395
 
396
+ #: ../admin/admin.php:1323
397
  msgid ""
398
  "Select an Ajax loading style - you can choose between a <strong>Button</"
399
  "strong> or <strong>Infinite Scroll</strong>"
400
  msgstr ""
401
 
402
+ #: ../admin/admin.php:1328
403
  msgid "Button"
404
  msgstr ""
405
 
406
+ #: ../admin/admin.php:1336
407
  msgid "Infinite Scroll (No Button)"
408
  msgstr ""
409
 
410
+ #: ../admin/admin.php:1349
411
  msgid "Preview"
412
  msgstr ""
413
 
414
+ #: ../admin/admin.php:1349 ../admin/shortcode-builder/shortcode-builder.php:167
415
+ #: ../core/classes/class.alm-shortcode.php:147
 
416
  msgid "Older Posts"
417
  msgstr ""
418
 
419
+ #: ../admin/admin.php:1370
420
  msgid "Add classes to your <strong>Load More</strong> button"
421
  msgstr ""
422
 
423
+ #: ../admin/admin.php:1413
424
  msgid ""
425
  "On initial page load, move the user's browser window to the top of the "
426
  "screen.<span style=\"display:block\">This <u>may</u> help prevent the "
427
  "loading of unnecessary posts.</span>"
428
  msgstr ""
429
 
430
+ #: ../admin/admin.php:1434
431
  msgid ""
432
  "Enable <a href=\"https://codex.wordpress.org/WordPress_Nonces\" target="
433
  "\"_blank\">WP nonce</a> verification to help protect URLs against certain "
443
  msgid "Insert Shortcode"
444
  msgstr ""
445
 
446
+ #: ../admin/editor/editor-build.php:56
447
  msgid "Copy"
448
  msgstr ""
449
 
453
 
454
  #: ../admin/includes/components/example-list.php:2
455
  #: ../admin/shortcode-builder/shortcode-builder.php:3
456
+ #: ../admin/views/repeater-templates.php:107
457
+ #: ../admin/views/repeater-templates.php:137
458
  msgid "Collapse All"
459
  msgstr ""
460
 
461
  #: ../admin/includes/components/example-list.php:2
462
  #: ../admin/shortcode-builder/shortcode-builder.php:4
463
+ #: ../admin/views/repeater-templates.php:108
464
+ #: ../admin/views/repeater-templates.php:138
465
  msgid "Expand All"
466
  msgstr ""
467
 
527
  msgstr ""
528
 
529
  #: ../admin/includes/components/repeater-options.php:2
530
+ #: ../admin/shortcode-builder/shortcode-builder.php:90
531
  msgid "Options"
532
  msgstr ""
533
 
539
  msgid "Copy Template Data"
540
  msgstr ""
541
 
542
+ #: ../admin/includes/cta/about.php:2
543
+ msgid "Other Plugins"
544
+ msgstr ""
545
+
546
+ #: ../admin/includes/cta/add-ons.php:2
547
+ msgid "About ALM Add-ons"
548
+ msgstr ""
549
+
550
  #: ../admin/includes/cta/config.php:2
551
  msgid "Plugin Configurations"
552
  msgstr ""
588
  msgstr ""
589
 
590
  #: ../admin/includes/cta/resources.php:7
591
+ msgid "Support and Issues"
592
  msgstr ""
593
 
594
  #: ../admin/includes/cta/resources.php:8
596
  msgstr ""
597
 
598
  #: ../admin/includes/cta/resources.php:9
599
+ msgid "WordPress"
600
+ msgstr ""
 
601
 
602
  #: ../admin/includes/cta/resources.php:10
603
+ msgid "Github"
604
+ msgstr ""
 
605
 
606
  #: ../admin/includes/cta/resources.php:11
607
+ msgid "Twitter"
608
  msgstr ""
609
 
610
+ #: ../admin/includes/cta/resources.php:12
611
+ msgid "Facebook"
612
  msgstr ""
613
 
614
  #: ../admin/includes/cta/reviews.php:1
625
  msgid "Write Review"
626
  msgstr ""
627
 
628
+ #: ../admin/includes/cta/sharing.php:2
629
  msgid "Share Ajax Load More"
630
  msgstr ""
631
 
632
+ #: ../admin/includes/cta/sharing.php:4
633
+ msgid "Help spread the word by sharing Ajax Load More on Twitter and Facebook."
 
 
 
634
  msgstr ""
635
 
636
  #: ../admin/includes/cta/writeable.php:2
708
  "Directory access may not be granted."
709
  msgstr ""
710
 
711
+ #: ../admin/shortcode-builder/components/acf.php:3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
712
  msgid "Advanced Custom Fields"
713
  msgstr ""
714
 
715
+ #: ../admin/shortcode-builder/components/acf.php:6
716
  msgid "Enable compatibility with Advanced Custom Fields."
717
  msgstr ""
718
 
719
+ #: ../admin/shortcode-builder/components/acf.php:13
720
+ #: ../admin/shortcode-builder/components/cache.php:13
721
+ #: ../admin/shortcode-builder/components/comments.php:13
722
+ #: ../admin/shortcode-builder/components/cta.php:14
723
+ #: ../admin/shortcode-builder/components/nextpage.php:13
724
+ #: ../admin/shortcode-builder/components/paging.php:12
725
+ #: ../admin/shortcode-builder/components/paging.php:35
726
+ #: ../admin/shortcode-builder/components/preloaded.php:13
727
+ #: ../admin/shortcode-builder/components/previous-post.php:13
728
+ #: ../admin/shortcode-builder/components/rest-api.php:28
729
+ #: ../admin/shortcode-builder/components/rest-api.php:108
730
+ #: ../admin/shortcode-builder/components/seo.php:14
731
+ #: ../admin/shortcode-builder/components/users.php:13
732
+ #: ../admin/shortcode-builder/shortcode-builder.php:201
733
+ #: ../admin/shortcode-builder/shortcode-builder.php:261
734
+ #: ../admin/shortcode-builder/shortcode-builder.php:378
735
+ #: ../admin/shortcode-builder/shortcode-builder.php:458
736
+ #: ../admin/shortcode-builder/shortcode-builder.php:486
737
+ #: ../admin/shortcode-builder/shortcode-builder.php:534
738
  msgid "True"
739
  msgstr ""
740
 
741
+ #: ../admin/shortcode-builder/components/acf.php:17
742
+ #: ../admin/shortcode-builder/components/cache.php:17
743
+ #: ../admin/shortcode-builder/components/comments.php:17
744
+ #: ../admin/shortcode-builder/components/cta.php:18
745
+ #: ../admin/shortcode-builder/components/nextpage.php:17
746
+ #: ../admin/shortcode-builder/components/paging.php:16
747
+ #: ../admin/shortcode-builder/components/paging.php:39
748
+ #: ../admin/shortcode-builder/components/preloaded.php:17
749
+ #: ../admin/shortcode-builder/components/previous-post.php:17
750
+ #: ../admin/shortcode-builder/components/rest-api.php:32
751
+ #: ../admin/shortcode-builder/components/rest-api.php:112
752
+ #: ../admin/shortcode-builder/components/seo.php:18
753
+ #: ../admin/shortcode-builder/components/users.php:17
754
+ #: ../admin/shortcode-builder/shortcode-builder.php:205
755
+ #: ../admin/shortcode-builder/shortcode-builder.php:265
756
+ #: ../admin/shortcode-builder/shortcode-builder.php:382
757
+ #: ../admin/shortcode-builder/shortcode-builder.php:462
758
+ #: ../admin/shortcode-builder/shortcode-builder.php:490
759
+ #: ../admin/shortcode-builder/shortcode-builder.php:538
760
  msgid "False"
761
  msgstr ""
762
 
763
+ #: ../admin/shortcode-builder/components/acf.php:29
764
+ #: ../admin/shortcode-builder/components/comments.php:28
765
+ #: ../admin/shortcode-builder/components/nextpage.php:30
766
+ #: ../admin/shortcode-builder/components/previous-post.php:27
767
  msgid "Post ID"
768
  msgstr ""
769
 
770
+ #: ../admin/shortcode-builder/components/acf.php:29
771
  msgid ""
772
+ "Leave this field blank and Ajax Load More will retrieve the ID from the "
773
+ "global $post object"
774
  msgstr ""
775
 
776
+ #: ../admin/shortcode-builder/components/acf.php:30
777
+ #: ../admin/shortcode-builder/components/nextpage.php:31
778
  msgid "The ID of the current page/post."
779
  msgstr ""
780
 
781
+ #: ../admin/shortcode-builder/components/acf.php:43
782
+ #: ../admin/shortcode-builder/components/acf.php:48
783
+ #: ../admin/shortcode-builder/components/acf.php:69
784
  msgid "Field Type"
785
  msgstr ""
786
 
787
+ #: ../admin/shortcode-builder/components/acf.php:44
788
  msgid "Select the type of ACF field"
789
  msgstr ""
790
 
791
+ #: ../admin/shortcode-builder/components/acf.php:50
792
  msgid "Select Field Type"
793
  msgstr ""
794
 
795
+ #: ../admin/shortcode-builder/components/acf.php:51
796
  msgid "Flexible Content"
797
  msgstr ""
798
 
799
+ #: ../admin/shortcode-builder/components/acf.php:52
800
  msgid "Gallery"
801
  msgstr ""
802
 
803
+ #: ../admin/shortcode-builder/components/acf.php:53
804
  msgid "Relationship"
805
  msgstr ""
806
 
807
+ #: ../admin/shortcode-builder/components/acf.php:54
808
  msgid "Repeater"
809
  msgstr ""
810
 
811
+ #: ../admin/shortcode-builder/components/acf.php:64
812
  msgid "Field Name"
813
  msgstr ""
814
 
815
+ #: ../admin/shortcode-builder/components/acf.php:65
816
  msgid "Enter the name of the ACF field"
817
  msgstr ""
818
 
819
+ #: ../admin/shortcode-builder/components/cache.php:6
 
 
 
 
 
 
820
  msgid "Turn on content caching."
821
  msgstr ""
822
 
823
+ #: ../admin/shortcode-builder/components/cache.php:27
824
  msgid "Cache ID"
825
  msgstr ""
826
 
827
+ #: ../admin/shortcode-builder/components/cache.php:28
828
  msgid ""
829
  "You <u>must</u> generate a unique ID for this cached query - this unique ID "
830
  "will be used as a content identifier."
831
  msgstr ""
832
 
833
+ #: ../admin/shortcode-builder/components/cache.php:34
834
  msgid "Generate Cache ID"
835
  msgstr ""
836
 
837
+ #: ../admin/shortcode-builder/components/comments.php:6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
838
  msgid "Enable Ajax Load More to display blog comments."
839
  msgstr ""
840
 
841
+ #: ../admin/shortcode-builder/components/comments.php:29
842
+ #: ../admin/shortcode-builder/components/previous-post.php:28
843
  msgid "The ID of the current single post."
844
  msgstr ""
845
 
846
+ #: ../admin/shortcode-builder/components/comments.php:40
847
  msgid "Comments Per Page"
848
  msgstr ""
849
 
850
+ #: ../admin/shortcode-builder/components/comments.php:41
851
  msgid "The number of top level items to show for each page of comments."
852
  msgstr ""
853
 
854
+ #: ../admin/shortcode-builder/components/comments.php:49
855
  msgid ""
856
  "<strong>Note</strong>: The amount selected does NOT include comment replies."
857
  msgstr ""
858
 
859
+ #: ../admin/shortcode-builder/components/comments.php:55
860
  msgid "Comment Type"
861
  msgstr ""
862
 
863
+ #: ../admin/shortcode-builder/components/comments.php:56
864
  msgid "The type of comment(s) to display."
865
  msgstr ""
866
 
867
+ #: ../admin/shortcode-builder/components/comments.php:61
868
  msgid "Comment"
869
  msgstr ""
870
 
871
+ #: ../admin/shortcode-builder/components/comments.php:62
872
  msgid "All"
873
  msgstr ""
874
 
875
+ #: ../admin/shortcode-builder/components/comments.php:63
876
  msgid "Trackback"
877
  msgstr ""
878
 
879
+ #: ../admin/shortcode-builder/components/comments.php:64
880
  msgid "Pingback"
881
  msgstr ""
882
 
883
+ #: ../admin/shortcode-builder/components/comments.php:65
884
  msgid "Pings"
885
  msgstr ""
886
 
887
+ #: ../admin/shortcode-builder/components/comments.php:73
888
  msgid "Comment Style"
889
  msgstr ""
890
 
891
+ #: ../admin/shortcode-builder/components/comments.php:74
892
  msgid "Select the HTML container style for your comments."
893
  msgstr ""
894
 
895
+ #: ../admin/shortcode-builder/components/comments.php:99
896
  msgid "Comment Template"
897
  msgstr ""
898
 
899
+ #: ../admin/shortcode-builder/components/comments.php:100
900
  msgid "Select a repeater template that will display comment data."
901
  msgstr ""
902
 
903
+ #: ../admin/shortcode-builder/components/comments.php:106
904
+ #: ../admin/shortcode-builder/shortcode-builder.php:288
905
+ #: ../admin/shortcode-builder/shortcode-builder.php:358
906
  msgid "None"
907
  msgstr ""
908
 
909
+ #: ../admin/shortcode-builder/components/comments.php:107
910
  msgid "Default"
911
  msgstr ""
912
 
913
+ #: ../admin/shortcode-builder/components/comments.php:119
914
  msgid ""
915
  "<strong>Note</strong>: <span>None</span> will use the default WordPress "
916
  "comment layout."
917
  msgstr ""
918
 
919
+ #: ../admin/shortcode-builder/components/comments.php:124
920
+ msgid "or"
921
+ msgstr ""
922
+
923
+ #: ../admin/shortcode-builder/components/comments.php:128
924
  msgid "Callback Function"
925
  msgstr ""
926
 
927
+ #: ../admin/shortcode-builder/components/comments.php:129
928
  msgid ""
929
  "A custom <a href=\"https://codex.wordpress.org/Function_Reference/"
930
  "wp_list_comments#Arguments\" target=\"_blank\">callback</a> function that "
931
  "will display each comment."
932
  msgstr ""
933
 
934
+ #: ../admin/shortcode-builder/components/comments.php:137
935
  msgid ""
936
  "<strong>Note</strong>: The majority of premium themes have a custom callback "
937
  "function for displaying comments. Please see comments.php or functions.php "
938
  "within your theme directory to locate the callback function for your theme."
939
  msgstr ""
940
 
941
+ #: ../admin/shortcode-builder/components/comments.php:142
942
  msgid ""
943
  "You must add the comments shortcode directly to your single template file "
944
  "using the <a href=\"https://developer.wordpress.org/reference/functions/"
947
  "\"_blank\">View documentation</a>"
948
  msgstr ""
949
 
950
+ #: ../admin/shortcode-builder/components/cta.php:7
951
+ msgid "Insert call to action block."
952
+ msgstr ""
 
 
953
 
954
+ #: ../admin/shortcode-builder/components/cta.php:31
955
+ msgid "CTA Positioning"
956
+ msgstr ""
957
+
958
+ #: ../admin/shortcode-builder/components/cta.php:32
959
+ msgid ""
960
+ "Insert call to action <strong><em id=\"sequence-update-before-after"
961
+ "\">before</em></strong> post #<strong><em id=\"sequence-update\">1</em></"
962
+ "strong>"
963
+ msgstr ""
964
+
965
+ #: ../admin/shortcode-builder/components/cta.php:37
966
+ msgid "Before / After"
967
+ msgstr ""
968
+
969
+ #: ../admin/shortcode-builder/components/cta.php:39
970
+ msgid "Before"
971
+ msgstr ""
972
+
973
+ #: ../admin/shortcode-builder/components/cta.php:40
974
+ msgid "After"
975
+ msgstr ""
976
+
977
+ #: ../admin/shortcode-builder/components/cta.php:44
978
+ msgid "Post #"
979
+ msgstr ""
980
+
981
+ #: ../admin/shortcode-builder/components/cta.php:55
982
+ #: ../admin/shortcode-builder/shortcode-builder.php:50
983
+ msgid "Template"
984
+ msgstr ""
985
+
986
+ #: ../admin/shortcode-builder/components/cta.php:57
987
+ msgid ""
988
+ "Select the <a href=\"admin.php?page=ajax-load-more-repeaters\" target="
989
+ "\"_parent\">repeater template</a> that will display your call to action."
990
+ msgstr ""
991
+
992
+ #: ../admin/shortcode-builder/components/cta.php:64
993
+ msgid "-- Select Repeater --"
994
+ msgstr ""
995
+
996
+ #: ../admin/shortcode-builder/components/cta.php:84
997
+ msgid ""
998
+ "Call to actions do NOT count as a post within an Ajax Load More loop.<br/>\n"
999
+ " For example, if you set <strong>posts_per_page=\"5\"</strong> "
1000
+ "in your shortcode, 6 items will be displayed."
1001
+ msgstr ""
1002
+
1003
+ #: ../admin/shortcode-builder/components/nextpage.php:6
1004
  msgid "Enable the infinite scrolling of multipage WordPress content using the"
1005
  msgstr ""
1006
 
1007
+ #: ../admin/shortcode-builder/components/nextpage.php:6
1008
  msgid "Quicktag"
1009
  msgstr ""
1010
 
1011
+ #: ../admin/shortcode-builder/components/nextpage.php:43
1012
  msgid "URL Rewrite"
1013
  msgstr ""
1014
 
1015
+ #: ../admin/shortcode-builder/components/nextpage.php:44
1016
  msgid "Update the browser address bar as pages come into view"
1017
  msgstr ""
1018
 
1019
+ #: ../admin/shortcode-builder/components/nextpage.php:51
1020
  msgid "Yes, update the URL"
1021
  msgstr ""
1022
 
1023
+ #: ../admin/shortcode-builder/components/nextpage.php:63
1024
  msgid "Google Analytics"
1025
  msgstr ""
1026
 
1027
+ #: ../admin/shortcode-builder/components/nextpage.php:64
1028
  msgid ""
1029
  "You must have a reference to your Google Analytics tracking code already on "
1030
  "the page"
1031
  msgstr ""
1032
 
1033
+ #: ../admin/shortcode-builder/components/nextpage.php:66
1034
  msgid "Each time a page is loaded it will count as a pageview"
1035
  msgstr ""
1036
 
1037
+ #: ../admin/shortcode-builder/components/nextpage.php:73
1038
  msgid "Yes, send pageviews to Google Analytics"
1039
  msgstr ""
1040
 
1041
+ #: ../admin/shortcode-builder/components/nextpage.php:84
1042
  msgid "Scroll to Page"
1043
  msgstr ""
1044
 
1045
+ #: ../admin/shortcode-builder/components/nextpage.php:85
1046
  msgid "Set Scroll Speed to 0 to disable scrolling to page"
1047
  msgstr ""
1048
 
1049
+ #: ../admin/shortcode-builder/components/nextpage.php:88
1050
  msgid "Scroll users automatically to the next page on 'Load More' button click"
1051
  msgstr ""
1052
 
1053
+ #: ../admin/shortcode-builder/components/nextpage.php:94
1054
  msgid "Scroll Speed"
1055
  msgstr ""
1056
 
1057
+ #: ../admin/shortcode-builder/components/nextpage.php:95
1058
  msgid "Scrolling speed in milliseconds (e.g. 1 second = 1000)"
1059
  msgstr ""
1060
 
1061
+ #: ../admin/shortcode-builder/components/nextpage.php:101
1062
  msgid "Scroll Top"
1063
  msgstr ""
1064
 
1065
+ #: ../admin/shortcode-builder/components/nextpage.php:102
1066
  msgid ""
1067
  "The scrolltop position of the window (used with scrolling and fwd/back "
1068
  "browser buttons)"
1069
  msgstr ""
1070
 
1071
+ #: ../admin/shortcode-builder/components/nextpage.php:109
1072
  msgid ""
1073
  "You must add the Next Page shortcode directly to your single template file "
1074
  "using the <a href=\"https://developer.wordpress.org/reference/functions/"
1077
  "\"_blank\">View documentation</a>"
1078
  msgstr ""
1079
 
1080
+ #: ../admin/shortcode-builder/components/paging.php:5
 
 
 
 
 
 
1081
  msgid "Replace infinite scrolling with a paged ajax navigation system."
1082
  msgstr ""
1083
 
1084
+ #: ../admin/shortcode-builder/components/paging.php:27
1085
  msgid "Paging Controls"
1086
  msgstr ""
1087
 
1088
+ #: ../admin/shortcode-builder/components/paging.php:28
1089
  msgid "Show (&laquo;)previous and next(&raquo;) buttons."
1090
  msgstr ""
1091
 
1092
+ #: ../admin/shortcode-builder/components/paging.php:48
1093
  msgid "Paging Navigation Classes"
1094
  msgstr ""
1095
 
1096
+ #: ../admin/shortcode-builder/components/paging.php:49
1097
  msgid "Add custom CSS classes to the paging navigation menu."
1098
  msgstr ""
1099
 
1100
+ #: ../admin/shortcode-builder/components/paging.php:60
1101
  msgid "Show at Most"
1102
  msgstr ""
1103
 
1104
+ #: ../admin/shortcode-builder/components/paging.php:61
1105
+ msgid ""
1106
+ "The maximum amount of page menu items to show at a time. <br/.>0 = no maximum"
 
 
 
 
 
1107
  msgstr ""
1108
 
1109
+ #: ../admin/shortcode-builder/components/preloaded.php:6
1110
  msgid "Preload posts prior to making Ajax requests."
1111
  msgstr ""
1112
 
1113
+ #: ../admin/shortcode-builder/components/preloaded.php:27
1114
  msgid "Preload Amount"
1115
  msgstr ""
1116
 
1117
+ #: ../admin/shortcode-builder/components/preloaded.php:28
1118
  msgid "Enter the number of posts to preload."
1119
  msgstr ""
1120
 
1121
+ #: ../admin/shortcode-builder/components/previous-post.php:6
 
 
 
 
 
 
1122
  msgid "Enable the infinite scrolling of single posts."
1123
  msgstr ""
1124
 
1125
+ #: ../admin/shortcode-builder/components/previous-post.php:38
1126
+ #: ../admin/shortcode-builder/shortcode-builder.php:809
1127
  msgid "Taxonomy"
1128
  msgstr ""
1129
 
1130
+ #: ../admin/shortcode-builder/components/previous-post.php:38
1131
  msgid ""
1132
  "Selecting a taxonomy means only previous posts from the same taxonomy term "
1133
  "will be returned. If a post has multiple terms attached, each term will be "
1134
  "considered using an OR relationship query"
1135
  msgstr ""
1136
 
1137
+ #: ../admin/shortcode-builder/components/previous-post.php:39
1138
  msgid "Query previous posts from the same taxonomy term(s)."
1139
  msgstr ""
1140
 
1141
+ #: ../admin/shortcode-builder/components/previous-post.php:52
1142
+ #: ../admin/shortcode-builder/includes/tax-query-options.php:5
1143
+ #: ../admin/shortcode-builder/includes/tax-query-options.php:50
1144
+ #: ../admin/shortcode-builder/includes/tax-query-options.php:81
1145
+ msgid "Select Taxonomy"
1146
+ msgstr ""
1147
+
1148
+ #: ../admin/shortcode-builder/components/previous-post.php:53
1149
+ #: ../admin/shortcode-builder/shortcode-builder.php:690
1150
  msgid "Category"
1151
  msgstr ""
1152
 
1153
+ #: ../admin/shortcode-builder/components/previous-post.php:54
1154
+ #: ../admin/shortcode-builder/shortcode-builder.php:750
1155
  msgid "Tag"
1156
  msgstr ""
1157
 
1158
+ #: ../admin/shortcode-builder/components/previous-post.php:71
1159
  msgid "Excluded Terms "
1160
  msgstr ""
1161
 
1162
+ #: ../admin/shortcode-builder/components/previous-post.php:71
1163
  msgid "A comma-separated list of excluded terms by ID"
1164
  msgstr ""
1165
 
1166
+ #: ../admin/shortcode-builder/components/previous-post.php:72
1167
  msgid "Exclude posts by term ID from the previous post query."
1168
  msgstr ""
1169
 
1170
+ #: ../admin/shortcode-builder/components/previous-post.php:81
1171
  msgid ""
1172
  "You must add the Previous Post shortcode directly to your single template "
1173
  "file using the <a href=\"https://developer.wordpress.org/reference/functions/"
1176
  "target=\"_blank\">View documentation</a>"
1177
  msgstr ""
1178
 
1179
+ #: ../admin/shortcode-builder/components/rest-api.php:18
1180
+ #: ../admin/views/settings.php:68
1181
  msgid "REST API"
1182
  msgstr ""
1183
 
1184
+ #: ../admin/shortcode-builder/components/rest-api.php:21
1185
  msgid "Enable the WordPress REST API."
1186
  msgstr ""
1187
 
1188
+ #: ../admin/shortcode-builder/components/rest-api.php:45
1189
  msgid "Base URL"
1190
  msgstr ""
1191
 
1192
+ #: ../admin/shortcode-builder/components/rest-api.php:46
1193
  msgid "Set a default Base URL in the Ajax Load More settings panel"
1194
  msgstr ""
1195
 
1196
+ #: ../admin/shortcode-builder/components/rest-api.php:47
1197
  msgid "Enter the base URL to your installation of the REST API."
1198
  msgstr ""
1199
 
1200
+ #: ../admin/shortcode-builder/components/rest-api.php:59
1201
  msgid "Namespace"
1202
  msgstr ""
1203
 
1204
+ #: ../admin/shortcode-builder/components/rest-api.php:60
1205
  msgid "Set a default Namespace in the Ajax Load More settings panel"
1206
  msgstr ""
1207
 
1208
+ #: ../admin/shortcode-builder/components/rest-api.php:61
1209
  msgid "Enter the custom namespace for this Ajax Load More query."
1210
  msgstr ""
1211
 
1212
+ #: ../admin/shortcode-builder/components/rest-api.php:73
1213
  msgid "Endpoint"
1214
  msgstr ""
1215
 
1216
+ #: ../admin/shortcode-builder/components/rest-api.php:74
1217
  msgid "Set a default Endpoint in the Ajax Load More settings panel"
1218
  msgstr ""
1219
 
1220
+ #: ../admin/shortcode-builder/components/rest-api.php:75
1221
  msgid "Enter your custom endpoint for this Ajax Load More query."
1222
  msgstr ""
1223
 
1224
+ #: ../admin/shortcode-builder/components/rest-api.php:87
1225
  msgid "Template ID"
1226
  msgstr ""
1227
 
1228
+ #: ../admin/shortcode-builder/components/rest-api.php:87
1229
  msgid ""
1230
  "Ajax Load More references this ID while looping and displaying your data. "
1231
  "You must still select a repeater template for this instance of Ajax Load More"
1232
  msgstr ""
1233
 
1234
+ #: ../admin/shortcode-builder/components/rest-api.php:88
1235
  msgid ""
1236
  "Enter the ID of your javascript template.<br/><br/>e.g. <em>tmpl-alm-"
1237
  "template</em> = <em>alm-template</em>"
1238
  msgstr ""
1239
 
1240
+ #: ../admin/shortcode-builder/components/rest-api.php:88
1241
+ #: ../admin/shortcode-builder/shortcode-builder.php:477
1242
+ #: ../admin/shortcode-builder/shortcode-builder.php:695
1243
+ #: ../admin/shortcode-builder/shortcode-builder.php:754
1244
+ #: ../admin/shortcode-builder/shortcode-builder.php:954
1245
  msgid "View Example"
1246
  msgstr ""
1247
 
1248
+ #: ../admin/shortcode-builder/components/rest-api.php:100
1249
  msgid "Debug Mode"
1250
  msgstr ""
1251
 
1252
+ #: ../admin/shortcode-builder/components/rest-api.php:101
1253
  msgid ""
1254
  "Enable debugging (console.log) of REST API responses in the browser console. "
1255
  msgstr ""
1256
 
1257
+ #: ../admin/shortcode-builder/components/rest-api.php:119
1258
  msgid ""
1259
  "Visit <a href=\"http://v2.wp-api.org/\" target=\"_blank\">http://v2.wp-api."
1260
  "org</a> for documentation on creating custom <a href=\"http://v2.wp-api.org/"
1262
  "More."
1263
  msgstr ""
1264
 
1265
+ #: ../admin/shortcode-builder/components/seo.php:4
1266
  msgid "SEO (Search Engine Optimization)"
1267
  msgstr ""
1268
 
1269
+ #: ../admin/shortcode-builder/components/seo.php:7
1270
  msgid ""
1271
  "Enable address bar URL rewrites as users page through ajax loaded content."
1272
  msgstr ""
1273
 
1274
+ #: ../admin/shortcode-builder/components/users.php:6
1275
+ msgid "Infinite scroll WordPress users"
1276
+ msgstr ""
1277
+
1278
+ #: ../admin/shortcode-builder/components/users.php:28
1279
+ msgid "User Role"
1280
+ msgstr ""
1281
+
1282
+ #: ../admin/shortcode-builder/components/users.php:29
1283
+ msgid "Select the role of user to be displayed"
1284
+ msgstr ""
1285
+
1286
+ #: ../admin/shortcode-builder/components/users.php:34
1287
+ msgid "Select Role"
1288
+ msgstr ""
1289
+
1290
+ #: ../admin/shortcode-builder/components/users.php:35
1291
+ msgid "All Roles"
1292
+ msgstr ""
1293
+
1294
+ #: ../admin/shortcode-builder/components/users.php:55
1295
+ #: ../admin/shortcode-builder/shortcode-builder.php:753
1296
+ #: ../admin/shortcode-builder/shortcode-builder.php:942
1297
+ msgid "Include"
1298
+ msgstr ""
1299
+
1300
+ #: ../admin/shortcode-builder/components/users.php:57
1301
+ msgid "A comma separated list of users to be included by ID"
1302
+ msgstr ""
1303
+
1304
+ #: ../admin/shortcode-builder/components/users.php:69
1305
+ #: ../admin/shortcode-builder/shortcode-builder.php:717
1306
+ #: ../admin/shortcode-builder/shortcode-builder.php:775
1307
+ #: ../admin/shortcode-builder/shortcode-builder.php:953
1308
+ msgid "Exclude"
1309
+ msgstr ""
1310
+
1311
+ #: ../admin/shortcode-builder/components/users.php:71
1312
+ msgid "A comma separated list of users to be excluded by ID"
1313
+ msgstr ""
1314
+
1315
+ #: ../admin/shortcode-builder/components/users.php:83
1316
+ msgid "Users Per Page"
1317
+ msgstr ""
1318
+
1319
+ #: ../admin/shortcode-builder/components/users.php:84
1320
+ msgid "The number of users to show."
1321
+ msgstr ""
1322
+
1323
+ #: ../admin/shortcode-builder/components/users.php:95
1324
+ msgid "Orderby"
1325
+ msgstr ""
1326
+
1327
+ #: ../admin/shortcode-builder/components/users.php:96
1328
+ msgid "Sort users by Order and Orderby parameters"
1329
+ msgstr ""
1330
+
1331
+ #: ../admin/shortcode-builder/components/users.php:100
1332
+ #: ../admin/shortcode-builder/shortcode-builder.php:994
1333
+ msgid "Order"
1334
+ msgstr ""
1335
+
1336
+ #: ../admin/shortcode-builder/components/users.php:107
1337
+ #: ../admin/shortcode-builder/shortcode-builder.php:1001
1338
+ msgid "Order By"
1339
+ msgstr ""
1340
+
1341
+ #: ../admin/shortcode-builder/includes/meta-query-options.php:4
1342
+ msgid "Key (Name):"
1343
+ msgstr ""
1344
+
1345
+ #: ../admin/shortcode-builder/includes/meta-query-options.php:5
1346
+ msgid "Enter custom field key(name)"
1347
+ msgstr ""
1348
+
1349
+ #: ../admin/shortcode-builder/includes/meta-query-options.php:9
1350
+ msgid "Value:"
1351
+ msgstr ""
1352
+
1353
+ #: ../admin/shortcode-builder/includes/meta-query-options.php:10
1354
+ msgid "Enter custom field value"
1355
+ msgstr ""
1356
+
1357
+ #: ../admin/shortcode-builder/includes/meta-query-options.php:15
1358
+ msgid "Operator:"
1359
+ msgstr ""
1360
+
1361
+ #: ../admin/shortcode-builder/includes/meta-query-options.php:35
1362
+ msgid "Type:"
1363
+ msgstr ""
1364
+
1365
+ #: ../admin/shortcode-builder/includes/tax-query-options.php:3
1366
+ #: ../admin/shortcode-builder/includes/tax-query-options.php:47
1367
+ #: ../admin/shortcode-builder/includes/tax-query-options.php:78
1368
+ msgid "Taxonomy:"
1369
+ msgstr ""
1370
+
1371
+ #: ../admin/shortcode-builder/includes/tax-query-options.php:12
1372
+ #: ../admin/shortcode-builder/includes/tax-query-options.php:57
1373
+ #: ../admin/shortcode-builder/includes/tax-query-options.php:88
1374
+ msgid "Taxonomy Terms:"
1375
+ msgstr ""
1376
+
1377
+ #: ../admin/shortcode-builder/includes/tax-query-options.php:17
1378
+ #: ../admin/shortcode-builder/includes/tax-query-options.php:62
1379
+ #: ../admin/shortcode-builder/includes/tax-query-options.php:93
1380
+ msgid "Taxonomy Operator:"
1381
+ msgstr ""
1382
+
1383
+ #: ../admin/shortcode-builder/includes/tax-query-options.php:36
1384
+ #: ../admin/shortcode-builder/shortcode-builder.php:869
1385
+ msgid "Relation:"
1386
+ msgstr ""
1387
+
1388
+ #: ../admin/shortcode-builder/includes/tax-query-options.php:36
1389
+ msgid ""
1390
+ "The logical relationship between each taxonomy when there is more than one."
1391
+ msgstr ""
1392
+
1393
+ #: ../admin/shortcode-builder/shortcode-builder.php:23
1394
+ msgid "Add-ons & Extensions"
1395
+ msgstr ""
1396
+
1397
+ #: ../admin/shortcode-builder/shortcode-builder.php:45
1398
  msgid "Display Settings"
1399
  msgstr ""
1400
 
1401
+ #: ../admin/shortcode-builder/shortcode-builder.php:54
1402
  msgid "Repeater Template"
1403
  msgstr ""
1404
 
1405
+ #: ../admin/shortcode-builder/shortcode-builder.php:56
1406
  msgid ""
1407
  "Select which <a href=\"admin.php?page=ajax-load-more-repeaters\" target="
1408
  "\"_parent\">repeater template</a> you would like to use."
1409
  msgstr ""
1410
 
1411
+ #: ../admin/shortcode-builder/shortcode-builder.php:95
1412
  msgid "ID"
1413
  msgstr ""
1414
 
1415
+ #: ../admin/shortcode-builder/shortcode-builder.php:95
1416
  msgid ""
1417
  "Adding a unique ID will allow you target this specific Ajax Load More "
1418
  "instance with the alm_query_args_id() filter"
1419
  msgstr ""
1420
 
1421
+ #: ../admin/shortcode-builder/shortcode-builder.php:96
1422
  msgid "Set a unique ID for this Ajax Load More instance."
1423
  msgstr ""
1424
 
1425
+ #: ../admin/shortcode-builder/shortcode-builder.php:103
1426
  msgid "Generate Unique ID"
1427
  msgstr ""
1428
 
1429
+ #: ../admin/shortcode-builder/shortcode-builder.php:112
1430
  msgid ""
1431
  "You can define a global container type on the Ajax Load More settings screen"
1432
  msgstr ""
1433
 
1434
+ #: ../admin/shortcode-builder/shortcode-builder.php:113
1435
  msgid ""
1436
  "Override the global Container Type set on the <a href=\"admin.php?page=ajax-"
1437
  "load-more\">ALM Settings page</a>."
1438
  msgstr ""
1439
 
1440
+ #: ../admin/shortcode-builder/shortcode-builder.php:143
1441
  msgid ""
1442
  "You can define global container classes on the Ajax Load More settings screen"
1443
  msgstr ""
1444
 
1445
+ #: ../admin/shortcode-builder/shortcode-builder.php:144
1446
  msgid ""
1447
  "Add custom CSS classes to the <span>.alm-listing</span> container. <br/><br/"
1448
  "> e.g. portfolio-listing large-12 etc"
1449
  msgstr ""
1450
 
1451
+ #: ../admin/shortcode-builder/shortcode-builder.php:157
1452
  msgid "Button Labels"
1453
  msgstr ""
1454
 
1455
+ #: ../admin/shortcode-builder/shortcode-builder.php:162
1456
  msgid "Label"
1457
  msgstr ""
1458
 
1459
+ #: ../admin/shortcode-builder/shortcode-builder.php:163
1460
  msgid "Customize the text of the <em>Load More</em> button."
1461
  msgstr ""
1462
 
1463
+ #: ../admin/shortcode-builder/shortcode-builder.php:175
1464
  msgid "Loading Label"
1465
  msgstr ""
1466
 
1467
+ #: ../admin/shortcode-builder/shortcode-builder.php:175
1468
  msgid "Leave field empty to not update text while loading content"
1469
  msgstr ""
1470
 
1471
+ #: ../admin/shortcode-builder/shortcode-builder.php:176
1472
  msgid ""
1473
  "Update the text of the <em>Load More</em> button while content is loading."
1474
  msgstr ""
1475
 
1476
+ #: ../admin/shortcode-builder/shortcode-builder.php:180
1477
  msgid "Loading Posts..."
1478
  msgstr ""
1479
 
1480
+ #: ../admin/shortcode-builder/shortcode-builder.php:190
1481
  msgid "Scrolling"
1482
  msgstr ""
1483
 
1484
+ #: ../admin/shortcode-builder/shortcode-builder.php:193
1485
  msgid "Enable Scrolling"
1486
  msgstr ""
1487
 
1488
+ #: ../admin/shortcode-builder/shortcode-builder.php:194
1489
  msgid "Load more posts as the user scrolls the page."
1490
  msgstr ""
1491
 
1492
+ #: ../admin/shortcode-builder/shortcode-builder.php:215
1493
  msgid "Scroll Distance"
1494
  msgstr ""
1495
 
1496
+ #: ../admin/shortcode-builder/shortcode-builder.php:215
1497
  msgid ""
1498
  "Distance is based on the position of the loading button from the bottom of "
1499
  "the screen"
1500
  msgstr ""
1501
 
1502
+ #: ../admin/shortcode-builder/shortcode-builder.php:216
1503
  msgid ""
1504
  "The distance from the bottom of the screen to trigger loading of posts. "
1505
  "(Default = 150)"
1506
  msgstr ""
1507
 
1508
+ #: ../admin/shortcode-builder/shortcode-builder.php:228
1509
  msgid "Scroll Container"
1510
  msgstr ""
1511
 
1512
+ #: ../admin/shortcode-builder/shortcode-builder.php:228
1513
  msgid "Confine Ajax Load More scrolling to a parent container"
1514
  msgstr ""
1515
 
1516
+ #: ../admin/shortcode-builder/shortcode-builder.php:229
1517
  msgid "Enter the ID or classname of the parent container"
1518
  msgstr ""
1519
 
1520
+ #: ../admin/shortcode-builder/shortcode-builder.php:241
1521
  msgid "Maximum Pages"
1522
  msgstr ""
1523
 
1524
+ #: ../admin/shortcode-builder/shortcode-builder.php:241
1525
  msgid "If using an Infinite Scroll button style you should set this to 0"
1526
  msgstr ""
1527
 
1528
+ #: ../admin/shortcode-builder/shortcode-builder.php:242
1529
  msgid "Maximum number of pages to load while scrolling. (0 = unlimited)"
1530
  msgstr ""
1531
 
1532
+ #: ../admin/shortcode-builder/shortcode-builder.php:254
1533
  msgid "Pause Override"
1534
  msgstr ""
1535
 
1536
+ #: ../admin/shortcode-builder/shortcode-builder.php:255
1537
  msgid ""
1538
  "Allow scrolling to override the Pause parameter and trigger the loading of "
1539
  "posts on scroll."
1540
  msgstr ""
1541
 
1542
+ #: ../admin/shortcode-builder/shortcode-builder.php:276
1543
  msgid "Transition"
1544
  msgstr ""
1545
 
1546
+ #: ../admin/shortcode-builder/shortcode-builder.php:279
1547
  msgid "Type"
1548
  msgstr ""
1549
 
1550
+ #: ../admin/shortcode-builder/shortcode-builder.php:280
1551
  msgid "Select a loading transition style."
1552
  msgstr ""
1553
 
1554
+ #: ../admin/shortcode-builder/shortcode-builder.php:285
1555
  msgid "Slide"
1556
  msgstr ""
1557
 
1558
+ #: ../admin/shortcode-builder/shortcode-builder.php:286
1559
  msgid "Fade"
1560
  msgstr ""
1561
 
1562
+ #: ../admin/shortcode-builder/shortcode-builder.php:287
1563
  msgid "Masonry"
1564
  msgstr ""
1565
 
1566
+ #: ../admin/shortcode-builder/shortcode-builder.php:300
1567
  msgid "Masonry Options"
1568
  msgstr ""
1569
 
1570
+ #: ../admin/shortcode-builder/shortcode-builder.php:300
1571
  msgid "Ajax Load More does not support all available Masonry options"
1572
  msgstr ""
1573
 
1574
+ #: ../admin/shortcode-builder/shortcode-builder.php:301
1575
  msgid ""
1576
  "The following Masonry <a href=\"https://masonry.desandro.com/options.html\" "
1577
  "target=\"_blank\">options</a> are supported by Ajax Load More"
1578
  msgstr ""
1579
 
1580
+ #: ../admin/shortcode-builder/shortcode-builder.php:306
1581
  msgid "Item Selector"
1582
  msgstr ""
1583
 
1584
+ #: ../admin/shortcode-builder/shortcode-builder.php:306
1585
  msgid ""
1586
  "Item Selector is required for Masonry to target each element loaded with Ajax"
1587
  msgstr ""
1588
 
1589
+ #: ../admin/shortcode-builder/shortcode-builder.php:307
1590
  msgid "Enter the target classname of each masonry item"
1591
  msgstr ""
1592
 
1593
+ #: ../admin/shortcode-builder/shortcode-builder.php:321
1594
  msgid "Animation Type"
1595
  msgstr ""
1596
 
1597
+ #: ../admin/shortcode-builder/shortcode-builder.php:321
1598
  msgid "All Masonry animations include a fade-in effect as items are loaded"
1599
  msgstr ""
1600
 
1601
+ #: ../admin/shortcode-builder/shortcode-builder.php:322
1602
  msgid "Select a loading transition for Masonry items"
1603
  msgstr ""
1604
 
1605
+ #: ../admin/shortcode-builder/shortcode-builder.php:330
1606
  msgid "Default (Zoom)"
1607
  msgstr ""
1608
 
1609
+ #: ../admin/shortcode-builder/shortcode-builder.php:331
1610
  msgid "Items scale up from 50% to 100% size on load"
1611
  msgstr ""
1612
 
1613
+ #: ../admin/shortcode-builder/shortcode-builder.php:337
1614
  msgid "Zoom Out"
1615
  msgstr ""
1616
 
1617
+ #: ../admin/shortcode-builder/shortcode-builder.php:338
1618
  msgid "Items scale down from 125% to 100% size on load"
1619
  msgstr ""
1620
 
1621
+ #: ../admin/shortcode-builder/shortcode-builder.php:344
1622
  msgid "Slide Up"
1623
  msgstr ""
1624
 
1625
+ #: ../admin/shortcode-builder/shortcode-builder.php:345
1626
  msgid "Items animate up as they are loaded into view."
1627
  msgstr ""
1628
 
1629
+ #: ../admin/shortcode-builder/shortcode-builder.php:351
1630
  msgid "Slide Down"
1631
  msgstr ""
1632
 
1633
+ #: ../admin/shortcode-builder/shortcode-builder.php:352
1634
  msgid "Items animate down when loaded into view."
1635
  msgstr ""
1636
 
1637
+ #: ../admin/shortcode-builder/shortcode-builder.php:369
1638
  msgid "Horizontal Order"
1639
  msgstr ""
1640
 
1641
+ #: ../admin/shortcode-builder/shortcode-builder.php:370
1642
  msgid "Lays out items to maintain left-to-right order"
1643
  msgstr ""
1644
 
1645
+ #: ../admin/shortcode-builder/shortcode-builder.php:397
1646
  msgid "Transition Container"
1647
  msgstr ""
1648
 
1649
+ #: ../admin/shortcode-builder/shortcode-builder.php:397
1650
  msgid ""
1651
  "Removing the transition container may have undesired results and is not "
1652
  "recommended"
1653
  msgstr ""
1654
 
1655
+ #: ../admin/shortcode-builder/shortcode-builder.php:398
1656
  msgid ""
1657
  "Remove the <span>.alm-reveal</span> loading container from Ajax Load More"
1658
  msgstr ""
1659
 
1660
+ #: ../admin/shortcode-builder/shortcode-builder.php:405
1661
  msgid "Remove Container"
1662
  msgstr ""
1663
 
1664
+ #: ../admin/shortcode-builder/shortcode-builder.php:416
1665
  msgid "Transition Container Classes"
1666
  msgstr ""
1667
 
1668
+ #: ../admin/shortcode-builder/shortcode-builder.php:416
1669
  msgid ""
1670
  "This setting is not available with the Previous Post or Next Page add-ons"
1671
  msgstr ""
1672
 
1673
+ #: ../admin/shortcode-builder/shortcode-builder.php:417
1674
  msgid "Add custom classes to the <span>.alm-reveal</span> loading container"
1675
  msgstr ""
1676
 
1677
+ #: ../admin/shortcode-builder/shortcode-builder.php:433
1678
  msgid "Speed"
1679
  msgstr ""
1680
 
1681
+ #: ../admin/shortcode-builder/shortcode-builder.php:433
1682
  msgid "0.5 seconds = 500, 1 second = 1000 etc"
1683
  msgstr ""
1684
 
1685
+ #: ../admin/shortcode-builder/shortcode-builder.php:434
1686
  msgid "The speed of the loading transition in milliseconds"
1687
  msgstr ""
1688
 
1689
+ #: ../admin/shortcode-builder/shortcode-builder.php:448
1690
  msgid "Pause"
1691
  msgstr ""
1692
 
1693
+ #: ../admin/shortcode-builder/shortcode-builder.php:451
1694
  msgid ""
1695
  "Do <u>NOT</u> load any posts until user clicks the <em>Load More</em> button."
1696
  msgstr ""
1697
 
1698
+ #: ../admin/shortcode-builder/shortcode-builder.php:473
1699
  msgid "Progress Bar"
1700
  msgstr ""
1701
 
1702
+ #: ../admin/shortcode-builder/shortcode-builder.php:476
1703
  msgid ""
1704
  "Display progress bar indicator at the top of the window while loading Ajax "
1705
  "content"
1706
  msgstr ""
1707
 
1708
+ #: ../admin/shortcode-builder/shortcode-builder.php:505
1709
  msgid "Color"
1710
  msgstr ""
1711
 
1712
+ #: ../admin/shortcode-builder/shortcode-builder.php:506
1713
  msgid "Enter the hex color of the progress bar"
1714
  msgstr ""
1715
 
1716
+ #: ../admin/shortcode-builder/shortcode-builder.php:524
1717
  msgid "Images Loaded"
1718
  msgstr ""
1719
 
1720
+ #: ../admin/shortcode-builder/shortcode-builder.php:527
1721
  msgid "Wait for all images to load before displaying ajax loaded content"
1722
  msgstr ""
1723
 
1724
+ #: ../admin/shortcode-builder/shortcode-builder.php:527
1725
  msgid "Background images are not supported"
1726
  msgstr ""
1727
 
1728
+ #: ../admin/shortcode-builder/shortcode-builder.php:549
1729
  msgid "Destroy After"
1730
  msgstr ""
1731
 
1732
+ #: ../admin/shortcode-builder/shortcode-builder.php:554
1733
  msgid ""
1734
  "Remove Ajax Load More functionality after {<em>n</em>} number of pages have "
1735
  "been loaded."
1736
  msgstr ""
1737
 
1738
+ #: ../admin/shortcode-builder/shortcode-builder.php:574
1739
  msgid "Query Parameters"
1740
  msgstr ""
1741
 
1742
+ #: ../admin/shortcode-builder/shortcode-builder.php:578
1743
  msgid "Posts Per Page"
1744
  msgstr ""
1745
 
1746
+ #: ../admin/shortcode-builder/shortcode-builder.php:581
1747
  msgid "Select the number of posts to load with each request."
1748
  msgstr ""
1749
 
1750
+ #: ../admin/shortcode-builder/shortcode-builder.php:600
1751
  msgid "Post Type"
1752
  msgstr ""
1753
 
1754
+ #: ../admin/shortcode-builder/shortcode-builder.php:605
1755
  msgid "Select the Post Types to include in this Ajax Load More query."
1756
  msgstr ""
1757
 
1758
+ #: ../admin/shortcode-builder/shortcode-builder.php:619
1759
  msgid "Any"
1760
  msgstr ""
1761
 
1762
+ #: ../admin/shortcode-builder/shortcode-builder.php:631
1763
  msgid "Sticky Posts"
1764
  msgstr ""
1765
 
1766
+ #: ../admin/shortcode-builder/shortcode-builder.php:631
1767
  msgid "Sticky posts are only available for Posts"
1768
  msgstr ""
1769
 
1770
+ #: ../admin/shortcode-builder/shortcode-builder.php:632
1771
  msgid ""
1772
  "Preserve the ordering of sticky posts by having them appear first in the "
1773
  "Ajax listing."
1774
  msgstr ""
1775
 
1776
+ #: ../admin/shortcode-builder/shortcode-builder.php:639
1777
  msgid "Enable Sticky Posts"
1778
  msgstr ""
1779
 
1780
+ #: ../admin/shortcode-builder/shortcode-builder.php:661
1781
  msgid "Post Format"
1782
  msgstr ""
1783
 
1784
+ #: ../admin/shortcode-builder/shortcode-builder.php:664
1785
  msgid ""
1786
  "Select a <a href=\"http://codex.wordpress.org/Post_Formats\" target=\"_blank"
1787
  "\">Post Format</a> to query."
1788
  msgstr ""
1789
 
1790
+ #: ../admin/shortcode-builder/shortcode-builder.php:667
1791
  msgid "Select Post Format"
1792
  msgstr ""
1793
 
1794
+ #: ../admin/shortcode-builder/shortcode-builder.php:668
1795
  msgid "Standard"
1796
  msgstr ""
1797
 
1798
+ #: ../admin/shortcode-builder/shortcode-builder.php:694
1799
  msgid ""
1800
  "A comma separated list of categories to include by slug. (design, research "
1801
  "etc...)"
1802
  msgstr ""
1803
 
1804
+ #: ../admin/shortcode-builder/shortcode-builder.php:718
 
 
 
 
 
 
1805
  msgid ""
1806
  "A comma separated list of categories to exclude by ID. (3, 12, 35 etc..)"
1807
  msgstr ""
1808
 
1809
+ #: ../admin/shortcode-builder/shortcode-builder.php:754
 
 
 
 
 
1810
  msgid ""
1811
  "A comma separated list of tags to include by slug. (toronto, canada etc...)"
1812
  msgstr ""
1813
 
1814
+ #: ../admin/shortcode-builder/shortcode-builder.php:776
1815
  msgid "A comma separated list of tags to exclude by ID. (30, 12, 99 etc..)"
1816
  msgstr ""
1817
 
1818
+ #: ../admin/shortcode-builder/shortcode-builder.php:812
1819
  msgid "Select a taxonomy then select the terms and an operator."
1820
  msgstr ""
1821
 
1822
+ #: ../admin/shortcode-builder/shortcode-builder.php:817
1823
+ #: ../admin/shortcode-builder/shortcode-builder.php:883
1824
  msgid "Add Another"
1825
  msgstr ""
1826
 
1827
+ #: ../admin/shortcode-builder/shortcode-builder.php:827
1828
  msgid "Date"
1829
  msgstr ""
1830
 
1831
+ #: ../admin/shortcode-builder/shortcode-builder.php:830
1832
  msgid ""
1833
  "Enter a year, month(number) and day to query by date archive.<br/>&raquo; <a "
1834
  "href=\"admin.php?page=ajax-load-more-help&section=examples#example-date\" "
1835
  "target=\"_blank\">View Example</a>"
1836
  msgstr ""
1837
 
1838
+ #: ../admin/shortcode-builder/shortcode-builder.php:836
1839
  msgid "Year:"
1840
  msgstr ""
1841
 
1842
+ #: ../admin/shortcode-builder/shortcode-builder.php:840
1843
  msgid "Month:"
1844
  msgstr ""
1845
 
1846
+ #: ../admin/shortcode-builder/shortcode-builder.php:844
1847
  msgid "Day:"
1848
  msgstr ""
1849
 
1850
+ #: ../admin/shortcode-builder/shortcode-builder.php:855
1851
  msgid "Custom Fields (Meta_Query)"
1852
  msgstr ""
1853
 
1854
+ #: ../admin/shortcode-builder/shortcode-builder.php:858
1855
  msgid ""
1856
  "Query for <a href=\"http://codex.wordpress.org/Class_Reference/WP_Meta_Query"
1857
  "\" target=\"_blank\">custom field</a> by entering a custom field key, value "
1858
  "and operator."
1859
  msgstr ""
1860
 
1861
+ #: ../admin/shortcode-builder/shortcode-builder.php:869
1862
  msgid ""
1863
  "The logical relationship between each custom field when there is more than "
1864
  "one"
1865
  msgstr ""
1866
 
1867
+ #: ../admin/shortcode-builder/shortcode-builder.php:899
1868
  msgid "Author"
1869
  msgstr ""
1870
 
1871
+ #: ../admin/shortcode-builder/shortcode-builder.php:902
1872
  msgid "Select an Author to query(by ID)."
1873
  msgstr ""
1874
 
1875
+ #: ../admin/shortcode-builder/shortcode-builder.php:923
1876
  msgid "Search Term"
1877
  msgstr ""
1878
 
1879
+ #: ../admin/shortcode-builder/shortcode-builder.php:926
1880
  msgid "Enter a search term to query."
1881
  msgstr ""
1882
 
1883
+ #: ../admin/shortcode-builder/shortcode-builder.php:930
1884
  msgid "Enter search term"
1885
  msgstr ""
1886
 
1887
+ #: ../admin/shortcode-builder/shortcode-builder.php:939
1888
  msgid "Post Parameters"
1889
  msgstr ""
1890
 
1891
+ #: ../admin/shortcode-builder/shortcode-builder.php:943
1892
  msgid "A comma separated list of post ID's to query."
1893
  msgstr ""
1894
 
1895
+ #: ../admin/shortcode-builder/shortcode-builder.php:947
1896
  msgid "225, 340, 818, etc..."
1897
  msgstr ""
1898
 
1899
+ #: ../admin/shortcode-builder/shortcode-builder.php:954
1900
  msgid "A comma separated list of post ID's to exclude from query."
1901
  msgstr ""
1902
 
1903
+ #: ../admin/shortcode-builder/shortcode-builder.php:964
1904
  msgid "Post Status"
1905
  msgstr ""
1906
 
1907
+ #: ../admin/shortcode-builder/shortcode-builder.php:964
1908
  msgid ""
1909
  "Post Status parameters are only available for logged in (admin) users. Non "
1910
  "logged in users will only have access to view content in a 'publish' or "
1911
  "'inherit' state."
1912
  msgstr ""
1913
 
1914
+ #: ../admin/shortcode-builder/shortcode-builder.php:965
1915
  msgid "Select status of the post."
1916
  msgstr ""
1917
 
1918
+ #: ../admin/shortcode-builder/shortcode-builder.php:970
1919
  msgid "Published"
1920
  msgstr ""
1921
 
1922
+ #: ../admin/shortcode-builder/shortcode-builder.php:987
1923
  msgid "Ordering"
1924
  msgstr ""
1925
 
1926
+ #: ../admin/shortcode-builder/shortcode-builder.php:990
1927
  msgid "Sort posts by Order and Orderby parameters."
1928
  msgstr ""
1929
 
1930
+ #: ../admin/shortcode-builder/shortcode-builder.php:1022
 
 
 
 
 
 
 
 
1931
  msgid "Offset"
1932
  msgstr ""
1933
 
1934
+ #: ../admin/shortcode-builder/shortcode-builder.php:1025
1935
  msgid "Offset the initial query by <em>'n'</em> number of posts"
1936
  msgstr ""
1937
 
1938
+ #: ../admin/shortcode-builder/shortcode-builder.php:1038
1939
  msgid "Custom Arguments"
1940
  msgstr ""
1941
 
1942
+ #: ../admin/shortcode-builder/shortcode-builder.php:1041
1943
  msgid "A semicolon separated list of custom value:pair arguments."
1944
  msgstr ""
1945
 
1946
+ #: ../admin/shortcode-builder/shortcode-builder.php:1041
1947
  msgid ""
1948
  "Custom Arguments can be used to query by parameters not available in the "
1949
  "Shortcode Builder"
1950
  msgstr ""
1951
 
1952
+ #: ../admin/shortcode-builder/shortcode-builder.php:1045
1953
  msgid "event_display:upcoming"
1954
  msgstr ""
1955
 
1963
  "Load More"
1964
  msgstr ""
1965
 
1966
+ #: ../admin/views/add-ons.php:52
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1967
  msgid ""
1968
  "All add-ons are installed as stand alone plugins and with a valid license "
1969
  "key will receive plugin update notifications directly within the <a href="
1980
  "WordPress functionality"
1981
  msgstr ""
1982
 
1983
+ #: ../admin/views/extensions.php:33
1984
  msgid ""
1985
  "Extensions are installed as stand alone plugins and receive update "
1986
  "notifications in the <a href=\"plugins.php\">plugin dashboard</a>."
1998
  msgid "Help"
1999
  msgstr ""
2000
 
2001
+ #: ../admin/views/help.php:30
2002
  msgid "Implementation Guide"
2003
  msgstr ""
2004
 
2005
+ #: ../admin/views/help.php:35
2006
  msgid "Examples"
2007
  msgstr ""
2008
 
2009
+ #: ../admin/views/help.php:68
2010
  msgid "Example Library"
2011
  msgstr ""
2012
 
2013
+ #: ../admin/views/help.php:70
2014
  msgid ""
2015
  "We have a collection of over 20 real world Ajax Load More <a href=\"https://"
2016
  "connekthq.com/plugins/ajax-load-more/examples/\" target=\"_blank\">examples</"
2017
  "a> available on the plugin website"
2018
  msgstr ""
2019
 
2020
+ #: ../admin/views/help.php:73
2021
  msgid "View All Examples"
2022
  msgstr ""
2023
 
2027
 
2028
  #: ../admin/views/licenses.php:6
2029
  msgid ""
2030
+ "Enter your license keys to enable automatic <a href=\"admin.php?page=ajax-"
2031
+ "load-more-add-ons\">add-on</a> updates"
2032
  msgstr ""
2033
 
2034
+ #: ../admin/views/licenses.php:14
2035
  msgid "License Keys"
2036
  msgstr ""
2037
 
2038
+ #: ../admin/views/licenses.php:16
2039
  msgid ""
2040
  "Manage your Ajax Load More license key's below - enter a key for each of "
2041
  "your add-ons to receive plugin update notifications directly within the <a "
2042
  "href=\"plugins.php\">WP Plugins dashboard</a>."
2043
  msgstr ""
2044
 
2045
+ #: ../admin/views/licenses.php:52
 
 
 
 
 
2046
  msgid "Don't have a license?"
2047
  msgstr ""
2048
 
2049
+ #: ../admin/views/licenses.php:53
 
 
 
 
 
2050
  msgid ""
2051
  "A valid license is required to activate and receive plugin updates directly "
2052
  "in your WordPress dashboard"
2053
  msgstr ""
2054
 
2055
+ #: ../admin/views/licenses.php:53
 
 
 
 
 
2056
  msgid "Purchase Now"
2057
  msgstr ""
2058
 
2059
+ #: ../admin/views/licenses.php:59 ../admin/views/licenses.php:61
 
 
 
 
 
 
 
 
 
 
2060
  msgid "Enter License Key"
2061
  msgstr ""
2062
 
2063
+ #: ../admin/views/licenses.php:85
 
 
 
 
 
2064
  msgid "Activate License"
2065
  msgstr ""
2066
 
2067
+ #: ../admin/views/licenses.php:88
 
 
 
 
 
2068
  msgid "Deactivate License"
2069
  msgstr ""
2070
 
2071
+ #: ../admin/views/licenses.php:105
2072
  msgid "You do not have any Ajax Load More add-ons installed"
2073
  msgstr ""
2074
 
2075
+ #: ../admin/views/licenses.php:105
2076
  msgid "Browse Add-ons"
2077
  msgstr ""
2078
 
2079
+ #: ../admin/views/licenses.php:115
2080
  msgid "About Licenses"
2081
  msgstr ""
2082
 
2083
+ #: ../admin/views/licenses.php:118
 
 
 
 
2084
  msgid ""
2085
  "License keys are found in the purchase receipt email that was sent "
2086
  "immediately after your successful purchase and in the <a target=\"_blank\" "
2087
  "href=\"https://connekthq.com/account/\">Account</a> section on our website"
2088
  msgstr ""
2089
 
2090
+ #: ../admin/views/licenses.php:119
2091
  msgid ""
2092
  "If you cannot locate your key please open a support ticket by filling out "
2093
  "the <a href=\"https://connekthq.com/contact/\">form</a> on our website and "
2094
  "reference the email address used when you completed the purchase."
2095
  msgstr ""
2096
 
2097
+ #: ../admin/views/licenses.php:124
2098
+ msgid "Your Account"
2099
  msgstr ""
2100
 
2101
+ #: ../admin/views/repeater-templates.php:19
2102
+ #: ../admin/views/repeater-templates.php:30
2103
  msgid "Repeater Templates"
2104
  msgstr ""
2105
 
2106
+ #: ../admin/views/repeater-templates.php:20
2107
  msgid "The library of editable templates for use within your theme"
2108
  msgstr ""
2109
 
2110
+ #: ../admin/views/repeater-templates.php:94
2111
+ #: ../admin/views/repeater-templates.php:214
2112
  msgid "File Location"
2113
  msgstr ""
2114
 
2115
+ #: ../admin/views/repeater-templates.php:116
2116
  msgid "Templates Not Found"
2117
  msgstr ""
2118
 
2119
+ #: ../admin/views/repeater-templates.php:118
2120
  msgid ""
2121
  "Oh no - looks like you haven't added any Theme Repeater templates - you need "
2122
  "to create and upload templates to your theme directory before you can access "
2123
  "them in Ajax Load More"
2124
  msgstr ""
2125
 
2126
+ #: ../admin/views/repeater-templates.php:121
2127
  msgid "Learn More About Theme Repeaters"
2128
  msgstr ""
2129
 
2130
+ #: ../admin/views/repeater-templates.php:175
2131
  msgid "Default Template"
2132
  msgstr ""
2133
 
2134
+ #: ../admin/views/repeater-templates.php:182
2135
  msgid "Enter the HTML and PHP code for the default template"
2136
  msgstr ""
2137
 
2138
+ #: ../admin/views/repeater-templates.php:205
2139
  msgid "Save Template"
2140
  msgstr ""
2141
 
2142
+ #: ../admin/views/repeater-templates.php:213
2143
  msgid ""
2144
  "It appears you are loading the <a href=\"https://connekthq.com/plugins/ajax-"
2145
  "load-more/docs/repeater-templates/#default-template\" target=\"_blank"
2148
  "your server."
2149
  msgstr ""
2150
 
2151
+ #: ../admin/views/repeater-templates.php:287
2152
  msgid "Saving template..."
2153
  msgstr ""
2154
 
2155
+ #: ../admin/views/repeater-templates.php:320
2156
  msgid "Something went wrong and the data could not be saved."
2157
  msgstr ""
2158
 
2159
+ #: ../admin/views/repeater-templates.php:358
2160
  msgid "Updating template..."
2161
  msgstr ""
2162
 
2163
+ #: ../admin/views/repeater-templates.php:430
2164
+ msgid "What's a Repeater Template?"
 
 
 
 
2165
  msgstr ""
2166
 
2167
+ #: ../admin/views/repeater-templates.php:432
2168
  msgid ""
2169
  "A <a href=\"https://connekthq.com/plugins/ajax-load-more/docs/repeater-"
2170
+ "templates/\" target=\"_blank\">Repeater Template</a> is a snippet of code "
2171
  "that will execute over and over within a <a href=\"http://codex.wordpress."
2172
  "org/The_Loop\" target=\"_blank\">WordPress loop</a>"
2173
  msgstr ""
2174
 
2175
+ #: ../admin/views/repeater-templates.php:435
2176
+ msgid "Learn More"
2177
  msgstr ""
2178
 
2179
+ #: ../admin/views/settings.php:9
2180
  msgid "A powerful plugin to add infinite scroll functionality to your website."
2181
  msgstr ""
2182
 
2183
+ #: ../admin/views/settings.php:24
2184
  msgid "Thanks for installing Ajax Load More 3.0!"
2185
  msgstr ""
2186
 
2187
+ #: ../admin/views/settings.php:41
2188
  msgid "Don't show me this again!"
2189
  msgstr ""
2190
 
2191
+ #: ../admin/views/settings.php:52 ../admin/views/settings.php:55
2192
  msgid "Jump to Setting"
2193
  msgstr ""
2194
 
2195
+ #: ../admin/views/settings.php:56
2196
  msgid "Global Settings"
2197
  msgstr ""
2198
 
2199
+ #: ../admin/views/settings.php:57
2200
  msgid "Admin"
2201
  msgstr ""
2202
 
2203
+ #: ../admin/views/settings.php:70
2204
  msgid "SEO"
2205
  msgstr ""
2206
 
2207
+ #: ../admin/views/shortcode-builder.php:6
2208
  msgid "Shortcode Builder"
2209
  msgstr ""
2210
 
2211
+ #: ../admin/views/shortcode-builder.php:7
2212
  msgid ""
2213
  "Create your own Ajax Load More <a href=\"http://en.support.wordpress.com/"
2214
  "shortcodes/\" target=\"_blank\">shortcode</a> by adjusting the values below"
2215
  msgstr ""
2216
 
2217
+ #: ../admin/views/shortcode-builder.php:17
2218
  msgid "Back to Top"
2219
  msgstr ""
2220
 
2221
+ #: ../admin/views/shortcode-builder.php:29
2222
  msgid "Shortcode Output"
2223
  msgstr ""
2224
 
2225
+ #: ../admin/views/shortcode-builder.php:31
2226
  msgid ""
2227
  "Place the following shortcode into the content editor or widget area of your "
2228
  "theme."
2229
  msgstr ""
2230
 
2231
+ #: ../admin/views/shortcode-builder.php:35
2232
+ msgid "Reset"
2233
  msgstr ""
2234
 
2235
+ #: ../admin/views/shortcode-builder.php:38
2236
+ msgid "Copy Shortcode"
2237
+ msgstr ""
2238
+
2239
+ #: ../ajax-load-more.php:248
2240
  msgid "Settings"
2241
  msgstr ""
2242
 
2244
  msgid "Pages:"
2245
  msgstr ""
2246
 
2247
+ #: ../vendor/EDD_SL_Plugin_Updater.php:201
2248
+ #, php-format
2249
+ msgid ""
2250
+ "There is a new version of %1$s available. %2$sView version %3$s details%4$s."
2251
+ msgstr ""
2252
+
2253
+ #: ../vendor/EDD_SL_Plugin_Updater.php:209
2254
+ #, php-format
2255
+ msgid ""
2256
+ "There is a new version of %1$s available. %2$sView version %3$s details%4$s "
2257
+ "or %5$supdate now%6$s."
2258
+ msgstr ""
2259
+
2260
+ #: ../vendor/EDD_SL_Plugin_Updater.php:396
2261
+ msgid "You do not have permission to install plugin updates"
2262
+ msgstr ""
2263
+
2264
+ #: ../vendor/EDD_SL_Plugin_Updater.php:396
2265
+ msgid "Error"
2266
+ msgstr ""
2267
+
2268
  #: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:86
2269
  #: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:381
2270
  msgid "Activated"
package.json CHANGED
@@ -9,6 +9,8 @@
9
  "private": true
10
  },
11
  "devDependencies": {
 
 
12
  "babel-preset-es2015": "latest",
13
  "gulp": "latest",
14
  "gulp-autoprefixer": "latest",
9
  "private": true
10
  },
11
  "devDependencies": {
12
+ "babel-core": "^6.26.0",
13
+ "babel-loader": "^7.1.2",
14
  "babel-preset-es2015": "latest",
15
  "gulp": "latest",
16
  "gulp-autoprefixer": "latest",
vendor/EDD_SL_Plugin_Updater.php ADDED
@@ -0,0 +1,477 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // Exit if accessed directly
4
+ if ( ! defined( 'ABSPATH' ) ) exit;
5
+
6
+ /**
7
+ * Allows plugins to use their own update API.
8
+ *
9
+ * @author Easy Digital Downloads
10
+ * @version 1.6.12
11
+ */
12
+ class EDD_SL_Plugin_Updater {
13
+
14
+ private $api_url = '';
15
+ private $api_data = array();
16
+ private $name = '';
17
+ private $slug = '';
18
+ private $version = '';
19
+ private $wp_override = false;
20
+ private $cache_key = '';
21
+
22
+ /**
23
+ * Class constructor.
24
+ *
25
+ * @uses plugin_basename()
26
+ * @uses hook()
27
+ *
28
+ * @param string $_api_url The URL pointing to the custom API endpoint.
29
+ * @param string $_plugin_file Path to the plugin file.
30
+ * @param array $_api_data Optional data to send with API calls.
31
+ */
32
+ public function __construct( $_api_url, $_plugin_file, $_api_data = null ) {
33
+
34
+ global $edd_plugin_data;
35
+
36
+ $this->api_url = trailingslashit( $_api_url );
37
+ $this->api_data = $_api_data;
38
+ $this->name = plugin_basename( $_plugin_file );
39
+ $this->slug = basename( $_plugin_file, '.php' );
40
+ $this->version = $_api_data['version'];
41
+ $this->wp_override = isset( $_api_data['wp_override'] ) ? (bool) $_api_data['wp_override'] : false;
42
+ $this->beta = ! empty( $this->api_data['beta'] ) ? true : false;
43
+ $this->cache_key = md5( serialize( $this->slug . $this->api_data['license'] . $this->beta ) );
44
+
45
+ $edd_plugin_data[ $this->slug ] = $this->api_data;
46
+
47
+ // Set up hooks.
48
+ $this->init();
49
+
50
+ }
51
+
52
+ /**
53
+ * Set up WordPress filters to hook into WP's update process.
54
+ *
55
+ * @uses add_filter()
56
+ *
57
+ * @return void
58
+ */
59
+ public function init() {
60
+
61
+ add_filter( 'pre_set_site_transient_update_plugins', array( $this, 'check_update' ) );
62
+ add_filter( 'plugins_api', array( $this, 'plugins_api_filter' ), 10, 3 );
63
+ remove_action( 'after_plugin_row_' . $this->name, 'wp_plugin_update_row', 10 );
64
+ add_action( 'after_plugin_row_' . $this->name, array( $this, 'show_update_notification' ), 10, 2 );
65
+ add_action( 'admin_init', array( $this, 'show_changelog' ) );
66
+
67
+ }
68
+
69
+ /**
70
+ * Check for Updates at the defined API endpoint and modify the update array.
71
+ *
72
+ * This function dives into the update API just when WordPress creates its update array,
73
+ * then adds a custom API call and injects the custom plugin data retrieved from the API.
74
+ * It is reassembled from parts of the native WordPress plugin update code.
75
+ * See wp-includes/update.php line 121 for the original wp_update_plugins() function.
76
+ *
77
+ * @uses api_request()
78
+ *
79
+ * @param array $_transient_data Update array build by WordPress.
80
+ * @return array Modified update array with custom plugin data.
81
+ */
82
+ public function check_update( $_transient_data ) {
83
+
84
+ global $pagenow;
85
+
86
+ if ( ! is_object( $_transient_data ) ) {
87
+ $_transient_data = new stdClass;
88
+ }
89
+
90
+ if ( 'plugins.php' == $pagenow && is_multisite() ) {
91
+ return $_transient_data;
92
+ }
93
+
94
+ if ( ! empty( $_transient_data->response ) && ! empty( $_transient_data->response[ $this->name ] ) && false === $this->wp_override ) {
95
+ return $_transient_data;
96
+ }
97
+
98
+ $version_info = $this->get_cached_version_info();
99
+
100
+ if ( false === $version_info ) {
101
+ $version_info = $this->api_request( 'plugin_latest_version', array( 'slug' => $this->slug, 'beta' => $this->beta ) );
102
+
103
+ $this->set_version_info_cache( $version_info );
104
+
105
+ }
106
+
107
+ if ( false !== $version_info && is_object( $version_info ) && isset( $version_info->new_version ) ) {
108
+
109
+ if ( version_compare( $this->version, $version_info->new_version, '<' ) ) {
110
+
111
+ $_transient_data->response[ $this->name ] = $version_info;
112
+
113
+ }
114
+
115
+ $_transient_data->last_checked = current_time( 'timestamp' );
116
+ $_transient_data->checked[ $this->name ] = $this->version;
117
+
118
+ }
119
+
120
+ return $_transient_data;
121
+ }
122
+
123
+ /**
124
+ * show update nofication row -- needed for multisite subsites, because WP won't tell you otherwise!
125
+ *
126
+ * @param string $file
127
+ * @param array $plugin
128
+ */
129
+ public function show_update_notification( $file, $plugin ) {
130
+
131
+ if ( is_network_admin() ) {
132
+ return;
133
+ }
134
+
135
+ if( ! current_user_can( 'update_plugins' ) ) {
136
+ return;
137
+ }
138
+
139
+ if( ! is_multisite() ) {
140
+ return;
141
+ }
142
+
143
+ if ( $this->name != $file ) {
144
+ return;
145
+ }
146
+
147
+ // Remove our filter on the site transient
148
+ remove_filter( 'pre_set_site_transient_update_plugins', array( $this, 'check_update' ), 10 );
149
+
150
+ $update_cache = get_site_transient( 'update_plugins' );
151
+
152
+ $update_cache = is_object( $update_cache ) ? $update_cache : new stdClass();
153
+
154
+ if ( empty( $update_cache->response ) || empty( $update_cache->response[ $this->name ] ) ) {
155
+
156
+ $version_info = $this->get_cached_version_info();
157
+
158
+ if ( false === $version_info ) {
159
+ $version_info = $this->api_request( 'plugin_latest_version', array( 'slug' => $this->slug, 'beta' => $this->beta ) );
160
+
161
+ $this->set_version_info_cache( $version_info );
162
+ }
163
+
164
+ if ( ! is_object( $version_info ) ) {
165
+ return;
166
+ }
167
+
168
+ if ( version_compare( $this->version, $version_info->new_version, '<' ) ) {
169
+
170
+ $update_cache->response[ $this->name ] = $version_info;
171
+
172
+ }
173
+
174
+ $update_cache->last_checked = current_time( 'timestamp' );
175
+ $update_cache->checked[ $this->name ] = $this->version;
176
+
177
+ set_site_transient( 'update_plugins', $update_cache );
178
+
179
+ } else {
180
+
181
+ $version_info = $update_cache->response[ $this->name ];
182
+
183
+ }
184
+
185
+ // Restore our filter
186
+ add_filter( 'pre_set_site_transient_update_plugins', array( $this, 'check_update' ) );
187
+
188
+ if ( ! empty( $update_cache->response[ $this->name ] ) && version_compare( $this->version, $version_info->new_version, '<' ) ) {
189
+
190
+ // build a plugin list row, with update notification
191
+ $wp_list_table = _get_list_table( 'WP_Plugins_List_Table' );
192
+ # <tr class="plugin-update-tr"><td colspan="' . $wp_list_table->get_column_count() . '" class="plugin-update colspanchange">
193
+ echo '<tr class="plugin-update-tr" id="' . $this->slug . '-update" data-slug="' . $this->slug . '" data-plugin="' . $this->slug . '/' . $file . '">';
194
+ echo '<td colspan="3" class="plugin-update colspanchange">';
195
+ echo '<div class="update-message notice inline notice-warning notice-alt">';
196
+
197
+ $changelog_link = self_admin_url( 'index.php?edd_sl_action=view_plugin_changelog&plugin=' . $this->name . '&slug=' . $this->slug . '&TB_iframe=true&width=772&height=911' );
198
+
199
+ if ( empty( $version_info->download_link ) ) {
200
+ printf(
201
+ __( 'There is a new version of %1$s available. %2$sView version %3$s details%4$s.', 'easy-digital-downloads' ),
202
+ esc_html( $version_info->name ),
203
+ '<a target="_blank" class="thickbox" href="' . esc_url( $changelog_link ) . '">',
204
+ esc_html( $version_info->new_version ),
205
+ '</a>'
206
+ );
207
+ } else {
208
+ printf(
209
+ __( 'There is a new version of %1$s available. %2$sView version %3$s details%4$s or %5$supdate now%6$s.', 'easy-digital-downloads' ),
210
+ esc_html( $version_info->name ),
211
+ '<a target="_blank" class="thickbox" href="' . esc_url( $changelog_link ) . '">',
212
+ esc_html( $version_info->new_version ),
213
+ '</a>',
214
+ '<a href="' . esc_url( wp_nonce_url( self_admin_url( 'update.php?action=upgrade-plugin&plugin=' ) . $this->name, 'upgrade-plugin_' . $this->name ) ) .'">',
215
+ '</a>'
216
+ );
217
+ }
218
+
219
+ do_action( "in_plugin_update_message-{$file}", $plugin, $version_info );
220
+
221
+ echo '</div></td></tr>';
222
+ }
223
+ }
224
+
225
+ /**
226
+ * Updates information on the "View version x.x details" page with custom data.
227
+ *
228
+ * @uses api_request()
229
+ *
230
+ * @param mixed $_data
231
+ * @param string $_action
232
+ * @param object $_args
233
+ * @return object $_data
234
+ */
235
+ public function plugins_api_filter( $_data, $_action = '', $_args = null ) {
236
+
237
+ if ( $_action != 'plugin_information' ) {
238
+
239
+ return $_data;
240
+
241
+ }
242
+
243
+ if ( ! isset( $_args->slug ) || ( $_args->slug != $this->slug ) ) {
244
+
245
+ return $_data;
246
+
247
+ }
248
+
249
+ $to_send = array(
250
+ 'slug' => $this->slug,
251
+ 'is_ssl' => is_ssl(),
252
+ 'fields' => array(
253
+ 'banners' => array(),
254
+ 'reviews' => false
255
+ )
256
+ );
257
+
258
+ $cache_key = 'edd_api_request_' . md5( serialize( $this->slug . $this->api_data['license'] . $this->beta ) );
259
+
260
+ // Get the transient where we store the api request for this plugin for 24 hours
261
+ $edd_api_request_transient = $this->get_cached_version_info( $cache_key );
262
+
263
+ //If we have no transient-saved value, run the API, set a fresh transient with the API value, and return that value too right now.
264
+ if ( empty( $edd_api_request_transient ) ) {
265
+
266
+ $api_response = $this->api_request( 'plugin_information', $to_send );
267
+
268
+ // Expires in 3 hours
269
+ $this->set_version_info_cache( $api_response, $cache_key );
270
+
271
+ if ( false !== $api_response ) {
272
+ $_data = $api_response;
273
+ }
274
+
275
+ } else {
276
+ $_data = $edd_api_request_transient;
277
+ }
278
+
279
+ // Convert sections into an associative array, since we're getting an object, but Core expects an array.
280
+ if ( isset( $_data->sections ) && ! is_array( $_data->sections ) ) {
281
+ $new_sections = array();
282
+ foreach ( $_data->sections as $key => $value ) {
283
+ $new_sections[ $key ] = $value;
284
+ }
285
+
286
+ $_data->sections = $new_sections;
287
+ }
288
+
289
+ // Convert banners into an associative array, since we're getting an object, but Core expects an array.
290
+ if ( isset( $_data->banners ) && ! is_array( $_data->banners ) ) {
291
+ $new_banners = array();
292
+ foreach ( $_data->banners as $key => $value ) {
293
+ $new_banners[ $key ] = $value;
294
+ }
295
+
296
+ $_data->banners = $new_banners;
297
+ }
298
+
299
+ return $_data;
300
+ }
301
+
302
+ /**
303
+ * Disable SSL verification in order to prevent download update failures
304
+ *
305
+ * @param array $args
306
+ * @param string $url
307
+ * @return object $array
308
+ */
309
+ public function http_request_args( $args, $url ) {
310
+ // If it is an https request and we are performing a package download, disable ssl verification
311
+ if ( strpos( $url, 'https://' ) !== false && strpos( $url, 'edd_action=package_download' ) ) {
312
+ $args['sslverify'] = false;
313
+ }
314
+ return $args;
315
+ }
316
+
317
+ /**
318
+ * Calls the API and, if successfull, returns the object delivered by the API.
319
+ *
320
+ * @uses get_bloginfo()
321
+ * @uses wp_remote_post()
322
+ * @uses is_wp_error()
323
+ *
324
+ * @param string $_action The requested action.
325
+ * @param array $_data Parameters for the API action.
326
+ * @return false|object
327
+ */
328
+ private function api_request( $_action, $_data ) {
329
+
330
+ global $wp_version;
331
+
332
+ $data = array_merge( $this->api_data, $_data );
333
+
334
+ if ( $data['slug'] != $this->slug ) {
335
+ return;
336
+ }
337
+
338
+ if( $this->api_url == trailingslashit (home_url() ) ) {
339
+ return false; // Don't allow a plugin to ping itself
340
+ }
341
+
342
+ $api_params = array(
343
+ 'edd_action' => 'get_version',
344
+ 'license' => ! empty( $data['license'] ) ? $data['license'] : '',
345
+ 'item_name' => isset( $data['item_name'] ) ? $data['item_name'] : false,
346
+ 'item_id' => isset( $data['item_id'] ) ? $data['item_id'] : false,
347
+ 'version' => isset( $data['version'] ) ? $data['version'] : false,
348
+ 'slug' => $data['slug'],
349
+ 'author' => $data['author'],
350
+ 'url' => home_url(),
351
+ 'beta' => ! empty( $data['beta'] ),
352
+ );
353
+
354
+ $request = wp_remote_post( $this->api_url, array( 'timeout' => 15, 'sslverify' => false, 'body' => $api_params ) );
355
+
356
+ if ( ! is_wp_error( $request ) ) {
357
+ $request = json_decode( wp_remote_retrieve_body( $request ) );
358
+ }
359
+
360
+ if ( $request && isset( $request->sections ) ) {
361
+ $request->sections = maybe_unserialize( $request->sections );
362
+ } else {
363
+ $request = false;
364
+ }
365
+
366
+ if ( $request && isset( $request->banners ) ) {
367
+ $request->banners = maybe_unserialize( $request->banners );
368
+ }
369
+
370
+ if( ! empty( $request->sections ) ) {
371
+ foreach( $request->sections as $key => $section ) {
372
+ $request->$key = (array) $section;
373
+ }
374
+ }
375
+
376
+ return $request;
377
+ }
378
+
379
+ public function show_changelog() {
380
+
381
+ global $edd_plugin_data;
382
+
383
+ if( empty( $_REQUEST['edd_sl_action'] ) || 'view_plugin_changelog' != $_REQUEST['edd_sl_action'] ) {
384
+ return;
385
+ }
386
+
387
+ if( empty( $_REQUEST['plugin'] ) ) {
388
+ return;
389
+ }
390
+
391
+ if( empty( $_REQUEST['slug'] ) ) {
392
+ return;
393
+ }
394
+
395
+ if( ! current_user_can( 'update_plugins' ) ) {
396
+ wp_die( __( 'You do not have permission to install plugin updates', 'easy-digital-downloads' ), __( 'Error', 'easy-digital-downloads' ), array( 'response' => 403 ) );
397
+ }
398
+
399
+ $data = $edd_plugin_data[ $_REQUEST['slug'] ];
400
+ $beta = ! empty( $data['beta'] ) ? true : false;
401
+ $cache_key = md5( 'edd_plugin_' . sanitize_key( $_REQUEST['plugin'] ) . '_' . $beta . '_version_info' );
402
+ $version_info = $this->get_cached_version_info( $cache_key );
403
+
404
+ if( false === $version_info ) {
405
+
406
+ $api_params = array(
407
+ 'edd_action' => 'get_version',
408
+ 'item_name' => isset( $data['item_name'] ) ? $data['item_name'] : false,
409
+ 'item_id' => isset( $data['item_id'] ) ? $data['item_id'] : false,
410
+ 'slug' => $_REQUEST['slug'],
411
+ 'author' => $data['author'],
412
+ 'url' => home_url(),
413
+ 'beta' => ! empty( $data['beta'] )
414
+ );
415
+
416
+ $request = wp_remote_post( $this->api_url, array( 'timeout' => 15, 'sslverify' => false, 'body' => $api_params ) );
417
+
418
+ if ( ! is_wp_error( $request ) ) {
419
+ $version_info = json_decode( wp_remote_retrieve_body( $request ) );
420
+ }
421
+
422
+
423
+ if ( ! empty( $version_info ) && isset( $version_info->sections ) ) {
424
+ $version_info->sections = maybe_unserialize( $version_info->sections );
425
+ } else {
426
+ $version_info = false;
427
+ }
428
+
429
+ if( ! empty( $version_info ) ) {
430
+ foreach( $version_info->sections as $key => $section ) {
431
+ $version_info->$key = (array) $section;
432
+ }
433
+ }
434
+
435
+ $this->set_version_info_cache( $version_info, $cache_key );
436
+
437
+ }
438
+
439
+ if( ! empty( $version_info ) && isset( $version_info->sections['changelog'] ) ) {
440
+ echo '<div style="background:#fff;padding:10px;">' . $version_info->sections['changelog'] . '</div>';
441
+ }
442
+
443
+ exit;
444
+ }
445
+
446
+ public function get_cached_version_info( $cache_key = '' ) {
447
+
448
+ if( empty( $cache_key ) ) {
449
+ $cache_key = $this->cache_key;
450
+ }
451
+
452
+ $cache = get_option( $cache_key );
453
+
454
+ if( empty( $cache['timeout'] ) || current_time( 'timestamp' ) > $cache['timeout'] ) {
455
+ return false; // Cache is expired
456
+ }
457
+
458
+ return json_decode( $cache['value'] );
459
+
460
+ }
461
+
462
+ public function set_version_info_cache( $value = '', $cache_key = '' ) {
463
+
464
+ if( empty( $cache_key ) ) {
465
+ $cache_key = $this->cache_key;
466
+ }
467
+
468
+ $data = array(
469
+ 'timeout' => strtotime( '+3 hours', current_time( 'timestamp' ) ),
470
+ 'value' => json_encode( $value )
471
+ );
472
+
473
+ update_option( $cache_key, $data );
474
+
475
+ }
476
+
477
+ }