WordPress Infinite Scroll – Ajax Load More - Version 3.6

Version Description

  • August 24, 2018 =
  • NEW - Added export/download functionality for Repeater Templates, click the options icon (cog) under each Repeater Template to reveal.
  • NEW - Added compatibility with Gutenberg editor.
  • NEW - Added support for SCRIPT_DEBUG.
  • FIX - Fixed issue with abrupt transition when filtering with Masonry.
  • FIX - Removed JS error in console when custom filtering with Masonry.
  • Update - Admin UI/UX enhancements to Repeater Template page.
  • Update - Added support for passing extra Masonry options to Ajax Load More.
  • Update - Improving the Ajax headers that are sent with each query - ALM now only sends relevant query params via GET request.
  • Update - Improving the HTML output - ALM now only renders relevant data attributes on the .alm-listing div.
  • Update - Started initial integration of upcoming ALM Pro add-on.
  • Update - Updated Plugin Updater Class for add-ons.
Download this release

Release Info

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

Code changes from version 3.5.1 to 3.6

Files changed (39) hide show
  1. README.txt +15 -2
  2. admin/admin-functions.php +2 -173
  3. admin/admin.php +128 -41
  4. admin/dist/css/admin.css +569 -282
  5. admin/dist/js/admin.js +407 -412
  6. admin/includes/components/layout-list.php +3 -6
  7. admin/includes/components/repeater-options.php +32 -4
  8. admin/includes/cta/about.php +2 -11
  9. admin/includes/cta/extend.php +7 -1
  10. admin/shortcode-builder/components/acf.php +1 -1
  11. admin/shortcode-builder/components/cache.php +1 -1
  12. admin/shortcode-builder/components/comments.php +1 -1
  13. admin/shortcode-builder/components/cta.php +1 -1
  14. admin/shortcode-builder/components/filters.php +1 -1
  15. admin/shortcode-builder/components/nextpage.php +1 -1
  16. admin/shortcode-builder/components/paging.php +1 -1
  17. admin/shortcode-builder/components/preloaded.php +1 -1
  18. admin/shortcode-builder/components/previous-post.php +1 -1
  19. admin/shortcode-builder/components/rest-api.php +1 -1
  20. admin/shortcode-builder/components/seo.php +1 -1
  21. admin/shortcode-builder/components/users.php +1 -1
  22. admin/shortcode-builder/shortcode-builder.php +971 -967
  23. admin/src/js/admin.js +62 -70
  24. admin/src/scss/_variables.scss +7 -1
  25. admin/src/scss/admin.scss +580 -227
  26. admin/views/licenses.php +26 -7
  27. admin/views/repeater-templates.php +123 -78
  28. admin/views/settings.php +15 -18
  29. ajax-load-more.php +32 -23
  30. core/classes/class.alm-shortcode.php +275 -243
  31. core/classes/includes/preloaded.php +266 -267
  32. core/dist/js/ajax-load-more.js +258 -126
  33. core/dist/js/ajax-load-more.min.js +1 -1
  34. core/functions.php +235 -0
  35. core/src/js/ajax-load-more.js +31 -125
  36. core/src/js/helpers/queryParams.js +208 -0
  37. core/src/js/modules/masonry.js +36 -17
  38. gulpfile.js +17 -13
  39. vendor/EDD_SL_Plugin_Updater.php +35 -12
README.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: dcooney, connekthq
3
  Donate link: https://connekthq.com/donate/
4
  Tags: infinite scroll, infinite scrolling, scroll, infinite, lazy load, lazy loading, endless scroll, pagination, ajax pagination, ajax, ajax posts, woocommerce, ajax load more, masonry
5
  Requires at least: 3.6
6
- Tested up to: 4.9.6
7
- Stable tag: 3.5.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -369,6 +369,19 @@ How to install Ajax Load More.
369
 
370
  == Changelog ==
371
 
 
 
 
 
 
 
 
 
 
 
 
 
 
372
 
373
  = 3.5.1 - June 20, 2018 =
374
  * NEW - Adding `columnWidth` support for Masonry.
3
  Donate link: https://connekthq.com/donate/
4
  Tags: infinite scroll, infinite scrolling, scroll, infinite, lazy load, lazy loading, endless scroll, pagination, ajax pagination, ajax, ajax posts, woocommerce, ajax load more, masonry
5
  Requires at least: 3.6
6
+ Tested up to: 4.9.8
7
+ Stable tag: 3.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
369
 
370
  == Changelog ==
371
 
372
+ = 3.6 - August 24, 2018 =
373
+ - NEW - Added export/download functionality for Repeater Templates, click the options icon (cog) under each Repeater Template to reveal.
374
+ - NEW - Added compatibility with Gutenberg editor.
375
+ - NEW - Added support for SCRIPT_DEBUG.
376
+ - FIX - Fixed issue with abrupt transition when filtering with Masonry.
377
+ - FIX - Removed JS error in console when custom filtering with Masonry.
378
+ - Update - Admin UI/UX enhancements to Repeater Template page.
379
+ - Update - Added support for passing extra Masonry options to Ajax Load More.
380
+ - Update - Improving the Ajax headers that are sent with each query - ALM now only sends relevant query params via GET request.
381
+ - Update - Improving the HTML output - ALM now only renders relevant data attributes on the `.alm-listing` div.
382
+ - Update - Started initial integration of upcoming ALM Pro add-on.
383
+ - Update - Updated Plugin Updater Class for add-ons.
384
+
385
 
386
  = 3.5.1 - June 20, 2018 =
387
  * NEW - Adding `columnWidth` support for Masonry.
admin/admin-functions.php CHANGED
@@ -19,177 +19,6 @@ function alm_is_admin_screen(){
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' => __('Filters', 'ajax-load-more'),
81
- 'intro' => __('Create custom Ajax Load More filters in seconds.', 'ajax-load-more'),
82
- 'desc' => __('The Filters add-on provides front-end and admin functionality for building and managing Ajax filters.', 'ajax-load-more'),
83
- 'action' => 'alm_filters_installed',
84
- 'key' => 'alm_filters_license_key',
85
- 'status' => 'alm_filters_license_status',
86
- 'settings_field' => 'alm_filters_license',
87
- 'img' => 'img/add-ons/filters-add-on.jpg',
88
- 'url' => 'https://connekthq.com/plugins/ajax-load-more/add-ons/filters/',
89
- 'item_id' => ALM_FILTERS_ITEM_NAME
90
- ),
91
- array(
92
- 'name' => __('Layouts', 'ajax-load-more'),
93
- 'intro' => __('Predefined layouts for repeater templates.', 'ajax-load-more'),
94
- 'desc' => __('The Layouts add-on provides a collection of unique, well designed and fully responsive templates.', 'ajax-load-more'),
95
- 'action' => 'alm_layouts_installed',
96
- 'key' => 'alm_layouts_license_key',
97
- 'status' => 'alm_layouts_license_status',
98
- 'settings_field' => 'alm_layouts_license',
99
- 'img' => 'img/add-ons/layouts-add-on.jpg',
100
- 'url' => 'https://connekthq.com/plugins/ajax-load-more/add-ons/layouts/',
101
- 'item_id' => ALM_LAYOUTS_ITEM_NAME
102
- ),
103
- array(
104
- 'name' => __('Next Page', 'ajax-load-more'),
105
- 'intro' => __('Load and display multipage WordPress content.', 'ajax-load-more'),
106
- 'desc' => __('The Next Page add-on will provide functionality for infinite scrolling paginated posts and pages.', 'ajax-load-more'),
107
- 'action' => 'alm_nextpage_installed',
108
- 'key' => 'alm_nextpage_license_key',
109
- 'status' => 'alm_nextpage_license_status',
110
- 'settings_field' => 'alm_nextpage_license',
111
- 'img' => 'img/add-ons/next-page-add-on.jpg',
112
- 'url' => 'https://connekthq.com/plugins/ajax-load-more/add-ons/nextpage/',
113
- 'item_id' => ALM_NEXTPAGE_ITEM_NAME
114
- ),
115
- array(
116
- 'name' => __('Paging', 'ajax-load-more'),
117
- 'intro' => __('Extend Ajax Load More with a numbered navigation.', 'ajax-load-more'),
118
- 'desc' => __('The Paging add-on will transform the default infinite scroll functionality into a robust ajax powered navigation system.', 'ajax-load-more'),
119
- 'action' => 'alm_paging_installed',
120
- 'key' => 'alm_paging_license_key',
121
- 'status' => 'alm_paging_license_status',
122
- 'settings_field' => 'alm_paging_license',
123
- 'img' => 'img/add-ons/paging-add-ons.jpg',
124
- 'url' => 'https://connekthq.com/plugins/ajax-load-more/add-ons/paging/',
125
- 'item_id' => ALM_PAGING_ITEM_NAME
126
- ),
127
- array(
128
- 'name' => __('Preloaded', 'ajax-load-more'),
129
- 'intro' => __('Load an initial set of posts before making Ajax requests to the server.', 'ajax-load-more'),
130
- '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'),
131
- 'action' => 'alm_preload_installed',
132
- 'key' => 'alm_preloaded_license_key',
133
- 'status' => 'alm_preloaded_license_status',
134
- 'settings_field' => 'alm_preloaded_license',
135
- 'img' => 'img/add-ons/preloaded-add-ons.jpg',
136
- 'url' => 'https://connekthq.com/plugins/ajax-load-more/add-ons/preloaded/',
137
- 'item_id' => ALM_PRELOADED_ITEM_NAME
138
- ),
139
- array(
140
- 'name' => __('Previous Post', 'ajax-load-more'),
141
- 'intro' => __('An add-on to enable infinite scrolling of single posts.', 'ajax-load-more'),
142
- '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'),
143
- 'action' => 'alm_prev_post_installed',
144
- 'key' => 'alm_prev_post_license_key',
145
- 'status' => 'alm_prev_post_license_status',
146
- 'settings_field' => 'alm_prev_post_license',
147
- 'img' => 'img/add-ons/prev-post-add-on.jpg',
148
- 'url' => 'https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/',
149
- 'item_id' => ALM_PREV_POST_ITEM_NAME
150
- ),
151
- array(
152
- 'name' => __('Search Engine Optimization', 'ajax-load-more'),
153
- 'intro' => __('Generate unique paging URLs with every Ajax Load More query.', 'ajax-load-more'),
154
- 'desc' => __('The SEO add-on will optimize your ajax loaded content for search engines by generating unique URLs with every query.', 'ajax-load-more'),
155
- 'action' => 'alm_seo_installed',
156
- 'key' => 'alm_seo_license_key',
157
- 'status' => 'alm_seo_license_status',
158
- 'settings_field' => 'alm_seo_license',
159
- 'img' => 'img/add-ons/seo-add-ons.jpg',
160
- 'url' => 'https://connekthq.com/plugins/ajax-load-more/add-ons/search-engine-optimization/',
161
- 'item_id' => ALM_SEO_ITEM_NAME
162
- ),
163
- array(
164
- 'name' => __('Theme Repeaters', 'ajax-load-more'),
165
- 'intro' => __('Manage repeater templates within your current theme directory.', 'ajax-load-more'),
166
- 'desc' => __('The Theme Repeater add-on will allow you load, edit and maintain templates from your current theme directory.', 'ajax-load-more'),
167
- 'action' => 'alm_theme_repeaters_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/theme-repeater-add-on.jpg',
172
- 'url' => 'https://connekthq.com/plugins/ajax-load-more/add-ons/theme-repeaters/',
173
- 'item_id' => ALM_THEME_REPEATERS_ITEM_NAME
174
- ),
175
- array(
176
- 'name' => __('Users', 'ajax-load-more'),
177
- 'intro' => __('Enable infinite scrolling of WordPress users.', 'ajax-load-more'),
178
- 'desc' => __('The Users add-on will allow lazy loading of users by role using a WP_User_Query.', 'ajax-load-more'),
179
- 'action' => 'alm_users_installed',
180
- 'key' => 'alm_users_license_key',
181
- 'status' => 'alm_users_license_status',
182
- 'settings_field' => 'alm_users_license',
183
- 'img' => 'img/add-ons/users-add-on.jpg',
184
- 'url' => 'https://connekthq.com/plugins/ajax-load-more/add-ons/users/',
185
- 'item_id' => ALM_USERS_ITEM_NAME
186
- )
187
- );
188
- return $addons;
189
- }
190
-
191
-
192
-
193
  /*
194
  * alm_has_addon_shortcodes
195
  * Does user have an add-ons or extensions for shortcode builder installed and activated?
@@ -214,11 +43,11 @@ function alm_has_addon_shortcodes(){
214
  'alm_seo_installed',
215
  'alm_users_installed'
216
  );
 
217
  // Loop actions to determine if add-on/extension is installed
218
  foreach($actions as $action){
219
  if(has_action($action)) $installed = true;
220
- }
221
-
222
 
223
  if($installed) {
224
  return true;
19
 
20
 
21
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  /*
23
  * alm_has_addon_shortcodes
24
  * Does user have an add-ons or extensions for shortcode builder installed and activated?
43
  'alm_seo_installed',
44
  'alm_users_installed'
45
  );
46
+
47
  // Loop actions to determine if add-on/extension is installed
48
  foreach($actions as $action){
49
  if(has_action($action)) $installed = true;
50
+ }
 
51
 
52
  if($installed) {
53
  return true;
admin/admin.php CHANGED
@@ -10,7 +10,30 @@ add_action( 'alm_get_layouts', 'alm_get_layouts' ); // Add layout selection
10
  add_action( 'wp_ajax_alm_get_layout', 'alm_get_layout' ); // Get layout
11
  add_action( 'wp_ajax_alm_dismiss_sharing', 'alm_dismiss_sharing' ); // Dismiss sharing
12
  add_filter( 'admin_footer_text', 'alm_filter_admin_footer_text'); // Admin menu text
13
- add_action( 'admin_notices', 'alm_admin_notice_errors' ); // License notice
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
 
15
 
16
 
@@ -21,6 +44,7 @@ add_action( 'admin_notices', 'alm_admin_notice_errors' ); // License notice
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.
@@ -30,8 +54,17 @@ function alm_admin_notice_errors() {
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)){
@@ -42,12 +75,16 @@ function alm_admin_notice_errors() {
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
  /*
@@ -148,14 +185,13 @@ function alm_get_layout(){
148
  if (! wp_verify_nonce( $nonce, 'alm_repeater_nonce' ))
149
  die('Error - unable to verify nonce, please try again.');
150
 
151
- if($type === 'default'){
152
 
153
- // Default Layout
154
  $content = file_get_contents(ALM_PATH.'admin/includes/layout/'.$type.'.php');
155
 
156
- }else{
157
-
158
- // Custom Layout
159
  if($custom == 'true'){
160
  $dir = 'alm_layouts';
161
 
@@ -182,7 +218,7 @@ function alm_get_layout(){
182
  $return["value"] = $content;
183
  echo json_encode($return);
184
  }else {
185
- echo __('You don\'t belong here.', 'ajax-load-more');
186
  }
187
  die();
188
  }
@@ -200,6 +236,8 @@ function alm_get_layouts(){ // do_action
200
  include( ALM_PATH . 'admin/includes/components/layout-list.php');
201
  }
202
 
 
 
203
  /*
204
  * alm_admin_vars
205
  * Create admin variables and ajax nonce
@@ -371,8 +409,8 @@ function alm_admin_menu() {
371
 
372
  $alm_settings_page = add_submenu_page(
373
  'ajax-load-more',
374
- 'Settings',
375
- 'Settings',
376
  'edit_theme_options',
377
  'ajax-load-more',
378
  'alm_settings_page'
@@ -380,8 +418,8 @@ function alm_admin_menu() {
380
 
381
  $alm_template_page = add_submenu_page(
382
  'ajax-load-more',
383
- 'Repeater Templates',
384
- 'Repeater Templates',
385
  'edit_theme_options',
386
  'ajax-load-more-repeaters',
387
  'alm_repeater_page'
@@ -389,26 +427,28 @@ function alm_admin_menu() {
389
 
390
  $alm_shortcode_page = add_submenu_page(
391
  'ajax-load-more',
392
- 'Shortcode Builder',
393
- 'Shortcode Builder',
394
  'edit_theme_options',
395
  'ajax-load-more-shortcode-builder',
396
  'alm_shortcode_builder_page'
397
  );
398
 
399
- $alm_addons_page = add_submenu_page(
400
- 'ajax-load-more',
401
- 'Add-ons',
402
- 'Add-ons',
403
- 'edit_theme_options',
404
- 'ajax-load-more-add-ons',
405
- 'alm_add_ons_page'
406
- );
 
 
407
 
408
  $alm_extensions_page = add_submenu_page(
409
  'ajax-load-more',
410
- 'Extensions',
411
- 'Extensions',
412
  'edit_theme_options',
413
  'ajax-load-more-extensions',
414
  'alm_extensions_page'
@@ -416,17 +456,18 @@ function alm_admin_menu() {
416
 
417
  $alm_help_page = add_submenu_page(
418
  'ajax-load-more',
419
- 'Help',
420
- 'Help',
421
  'edit_theme_options',
422
  'ajax-load-more-help',
423
  'alm_help_page'
424
- );
425
-
 
426
  $alm_licenses_page = add_submenu_page(
427
  'ajax-load-more',
428
- 'Licenses',
429
- 'Licenses',
430
  'edit_theme_options',
431
  'ajax-load-more-licenses',
432
  'alm_licenses_page'
@@ -437,6 +478,21 @@ function alm_admin_menu() {
437
  $after_link = '</span>';
438
  $style_link_icon = 'style="opacity: 0.6; font-size: 18px; height: 18px; width: 18px; position: relative; left: -2px;"';
439
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
440
  if(has_action('alm_cache_installed')){
441
  $alm_cache_page = add_submenu_page(
442
  'ajax-load-more',
@@ -451,6 +507,8 @@ function alm_admin_menu() {
451
  add_action( 'load-' . $alm_cache_page, 'alm_set_admin_nonce' );
452
  }
453
 
 
 
454
  if(has_action('alm_filters_installed')){
455
 
456
  if(has_action('alm_cache_installed')){
@@ -479,12 +537,22 @@ function alm_admin_menu() {
479
  add_action( 'load-' . $alm_shortcode_page, 'alm_set_admin_nonce' );
480
  add_action( 'load-' . $alm_help_page, 'alm_load_admin_js' );
481
  add_action( 'load-' . $alm_help_page, 'alm_set_admin_nonce' );
482
- add_action( 'load-' . $alm_addons_page, 'alm_load_admin_js' );
483
- add_action( 'load-' . $alm_addons_page, 'alm_set_admin_nonce' );
 
 
 
 
 
 
 
 
 
484
  add_action( 'load-' . $alm_extensions_page, 'alm_load_admin_js' );
485
- add_action( 'load-' . $alm_extensions_page, 'alm_set_admin_nonce' );
486
- add_action( 'load-' . $alm_licenses_page, 'alm_load_admin_js' );
487
- add_action( 'load-' . $alm_licenses_page, 'alm_set_admin_nonce' );
 
488
  }
489
 
490
 
@@ -593,6 +661,18 @@ function alm_licenses_page(){
593
  }
594
 
595
 
 
 
 
 
 
 
 
 
 
 
 
 
596
  /*
597
  * alm_cache_page
598
  * Cache Add-on page
@@ -629,6 +709,12 @@ function alm_filters_page(){
629
  function alm_load_admin_js(){
630
  add_action( 'admin_enqueue_scripts', 'alm_enqueue_admin_scripts' );
631
  }
 
 
 
 
 
 
632
  // Cache Scripts
633
  function alm_load_cache_admin_js(){
634
  if(class_exists('ALMCache')){
@@ -936,18 +1022,19 @@ function alm_layouts_dismiss(){
936
  * @since 2.8.2.1
937
  */
938
  function alm_dismiss_sharing(){
 
939
  if (current_user_can( 'edit_theme_options' )){
940
 
941
  $nonce = $_POST["nonce"];
942
 
943
  // Check our nonce, if they don't match then bounce!
944
  if (! wp_verify_nonce( $nonce, 'alm_repeater_nonce' ))
945
- die('Error - unable to verify nonce, please try again.');
946
 
947
  set_transient( 'alm_dismiss_sharing', 'true', YEAR_IN_SECONDS );
948
  echo 'ALM sharing dismissed successfully.';
949
 
950
- die();
951
  }
952
  }
953
 
10
  add_action( 'wp_ajax_alm_get_layout', 'alm_get_layout' ); // Get layout
11
  add_action( 'wp_ajax_alm_dismiss_sharing', 'alm_dismiss_sharing' ); // Dismiss sharing
12
  add_filter( 'admin_footer_text', 'alm_filter_admin_footer_text'); // Admin menu text
13
+
14
+
15
+
16
+ /*
17
+ * alm_repeaters_export
18
+ * This function will export a repeater template and force download
19
+ *
20
+ * @since 3.6
21
+ */
22
+ function alm_repeaters_export(){
23
+ if( isset($_POST["alm_repeaters_export"]) && ( !wp_doing_ajax()) ) {
24
+ if (current_user_can( 'edit_theme_options' )) { // Confirm credentials
25
+ $file = $_POST["alm_repeaters_export"];
26
+ if(file_exists($file)){
27
+ header("Content-Description: File Transfer");
28
+ header("Content-Type: application/octet-stream");
29
+ header("Content-Disposition: attachment; filename='" . basename($file) . "'");
30
+ readfile ($file);
31
+ exit();
32
+ }
33
+ }
34
+ }
35
+ }
36
+ add_action( 'admin_init', 'alm_repeaters_export');
37
 
38
 
39
 
44
  * @since 3.3.0
45
  */
46
  function alm_admin_notice_errors() {
47
+
48
  $screen = get_current_screen();
49
  $alm_is_admin_screen = alm_is_admin_screen();
50
  // Exit if screen is not dashboard, plugins or ALM admin.
54
  $class = 'notice error alm-err-notice';
55
  $message = '';
56
  $count = 0;
57
+
58
+ if(has_action('alm_pro_installed')){ // Pro
59
+ $addons = alm_get_pro_addon();
60
+ $message = __( 'You have an invalid <a href="admin.php?page=ajax-load-more"><b>Ajax Load More Pro</b></a> license key - please visit the <a href="admin.php?page=ajax-load-more-licenses">License</a> section to input your key or <a href="https://connekthq.com/plugins/ajax-load-more/pro/" target="_blank">purchase</a> one now.', 'ajax-load-more' );
61
+
62
+ } else {
63
+ $addons = alm_get_addons();
64
+ $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 keys.', 'ajax-load-more' );
65
+ }
66
+
67
+ // Loop each addon
68
  foreach($addons as $addon){
69
  $action = $addon['action']; // Get action
70
  if (has_action($action)){
75
  $count++;
76
  }
77
  }
78
+ }
79
+
80
+ // Print result
81
+ if( $count > 0 ) {
82
  printf( '<div class="%1$s"><p>%2$s</p></div>', $class, $message );
83
  }
84
+
85
  }
86
+ add_action( 'admin_notices', 'alm_admin_notice_errors' );
87
+
88
 
89
 
90
  /*
185
  if (! wp_verify_nonce( $nonce, 'alm_repeater_nonce' ))
186
  die('Error - unable to verify nonce, please try again.');
187
 
188
+ if($type === 'default'){ // Default Layout
189
 
190
+
191
  $content = file_get_contents(ALM_PATH.'admin/includes/layout/'.$type.'.php');
192
 
193
+ }else{ // Custom Layout
194
+
 
195
  if($custom == 'true'){
196
  $dir = 'alm_layouts';
197
 
218
  $return["value"] = $content;
219
  echo json_encode($return);
220
  }else {
221
+ echo __('You don\'t belong here.', 'ajax-load-more');
222
  }
223
  die();
224
  }
236
  include( ALM_PATH . 'admin/includes/components/layout-list.php');
237
  }
238
 
239
+
240
+
241
  /*
242
  * alm_admin_vars
243
  * Create admin variables and ajax nonce
409
 
410
  $alm_settings_page = add_submenu_page(
411
  'ajax-load-more',
412
+ __('Settings', 'ajax-load-more'),
413
+ __('Settings', 'ajax-load-more'),
414
  'edit_theme_options',
415
  'ajax-load-more',
416
  'alm_settings_page'
418
 
419
  $alm_template_page = add_submenu_page(
420
  'ajax-load-more',
421
+ __('Repeater Templates', 'ajax-load-more'),
422
+ __('Repeater Templates', 'ajax-load-more'),
423
  'edit_theme_options',
424
  'ajax-load-more-repeaters',
425
  'alm_repeater_page'
427
 
428
  $alm_shortcode_page = add_submenu_page(
429
  'ajax-load-more',
430
+ __('Shortcode Builder', 'ajax-load-more'),
431
+ __('Shortcode Builder', 'ajax-load-more'),
432
  'edit_theme_options',
433
  'ajax-load-more-shortcode-builder',
434
  'alm_shortcode_builder_page'
435
  );
436
 
437
+ if(!has_action('alm_pro_installed')){ // Not Pro
438
+ $alm_addons_page = add_submenu_page(
439
+ 'ajax-load-more',
440
+ __('Add-ons', 'ajax-load-more'),
441
+ __('Add-ons', 'ajax-load-more'),
442
+ 'edit_theme_options',
443
+ 'ajax-load-more-add-ons',
444
+ 'alm_add_ons_page'
445
+ );
446
+ }
447
 
448
  $alm_extensions_page = add_submenu_page(
449
  'ajax-load-more',
450
+ __('Extensions', 'ajax-load-more'),
451
+ __('Extensions', 'ajax-load-more'),
452
  'edit_theme_options',
453
  'ajax-load-more-extensions',
454
  'alm_extensions_page'
456
 
457
  $alm_help_page = add_submenu_page(
458
  'ajax-load-more',
459
+ __('Help', 'ajax-load-more'),
460
+ __('Help', 'ajax-load-more'),
461
  'edit_theme_options',
462
  'ajax-load-more-help',
463
  'alm_help_page'
464
+ );
465
+
466
+ $license_ttl = (has_action('alm_pro_installed')) ? __('License', 'ajax-load-more') : __('Licenses', 'ajax-load-more');
467
  $alm_licenses_page = add_submenu_page(
468
  'ajax-load-more',
469
+ $license_ttl,
470
+ $license_ttl,
471
  'edit_theme_options',
472
  'ajax-load-more-licenses',
473
  'alm_licenses_page'
478
  $after_link = '</span>';
479
  $style_link_icon = 'style="opacity: 0.6; font-size: 18px; height: 18px; width: 18px; position: relative; left: -2px;"';
480
 
481
+
482
+ // Pro
483
+ if(has_action('alm_pro_installed')){
484
+ $alm_pro_page = add_submenu_page(
485
+ 'ajax-load-more',
486
+ __('Pro', 'ajax-load-more'),
487
+ $before_link . '<span class="dashicons dashicons-plus-alt" '.$style_link_icon.'></span> '. __('Pro', 'ajax-load-more') . $after_link,
488
+ 'edit_theme_options',
489
+ 'ajax-load-more-pro',
490
+ 'alm_pro_page'
491
+ );
492
+ }
493
+
494
+
495
+ // Cache
496
  if(has_action('alm_cache_installed')){
497
  $alm_cache_page = add_submenu_page(
498
  'ajax-load-more',
507
  add_action( 'load-' . $alm_cache_page, 'alm_set_admin_nonce' );
508
  }
509
 
510
+
511
+ // Filters
512
  if(has_action('alm_filters_installed')){
513
 
514
  if(has_action('alm_cache_installed')){
537
  add_action( 'load-' . $alm_shortcode_page, 'alm_set_admin_nonce' );
538
  add_action( 'load-' . $alm_help_page, 'alm_load_admin_js' );
539
  add_action( 'load-' . $alm_help_page, 'alm_set_admin_nonce' );
540
+
541
+ if(has_action('alm_pro_installed')){ // Pro
542
+ add_action( 'load-' . $alm_pro_page, 'alm_load_admin_js' );
543
+ add_action( 'load-' . $alm_pro_page, 'alm_load_pro_admin_js' );
544
+ add_action( 'load-' . $alm_pro_page, 'alm_set_admin_nonce' );
545
+
546
+ } else {
547
+ add_action( 'load-' . $alm_addons_page, 'alm_load_admin_js' );
548
+ add_action( 'load-' . $alm_addons_page, 'alm_set_admin_nonce' );
549
+
550
+ }
551
  add_action( 'load-' . $alm_extensions_page, 'alm_load_admin_js' );
552
+ add_action( 'load-' . $alm_extensions_page, 'alm_set_admin_nonce' );
553
+ add_action( 'load-' . $alm_licenses_page, 'alm_load_admin_js' );
554
+ add_action( 'load-' . $alm_licenses_page, 'alm_set_admin_nonce' );
555
+
556
  }
557
 
558
 
661
  }
662
 
663
 
664
+ /*
665
+ * alm_cache_page
666
+ * Cache Add-on page
667
+ *
668
+ * @since 3.6.0
669
+ */
670
+
671
+ function alm_pro_page(){
672
+ include_once( ALM_PRO_ADMIN_PATH . 'admin/views/pro.php');
673
+ }
674
+
675
+
676
  /*
677
  * alm_cache_page
678
  * Cache Add-on page
709
  function alm_load_admin_js(){
710
  add_action( 'admin_enqueue_scripts', 'alm_enqueue_admin_scripts' );
711
  }
712
+ // Pro Scripts
713
+ function alm_load_pro_admin_js(){
714
+ if(class_exists('ALMPro')){
715
+ ALMPro::alm_enqueue_pro_admin_scripts();
716
+ }
717
+ }
718
  // Cache Scripts
719
  function alm_load_cache_admin_js(){
720
  if(class_exists('ALMCache')){
1022
  * @since 2.8.2.1
1023
  */
1024
  function alm_dismiss_sharing(){
1025
+
1026
  if (current_user_can( 'edit_theme_options' )){
1027
 
1028
  $nonce = $_POST["nonce"];
1029
 
1030
  // Check our nonce, if they don't match then bounce!
1031
  if (! wp_verify_nonce( $nonce, 'alm_repeater_nonce' ))
1032
+ die(__('Error - unable to verify nonce, please try again.', 'ajax-load-more'));
1033
 
1034
  set_transient( 'alm_dismiss_sharing', 'true', YEAR_IN_SECONDS );
1035
  echo 'ALM sharing dismissed successfully.';
1036
 
1037
+ wp_die();
1038
  }
1039
  }
1040
 
admin/dist/css/admin.css CHANGED
@@ -686,7 +686,8 @@ 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
- body.ajax-load-more_page_ajax-load-more-filters {
 
690
  background-color: #f7f7f7; }
691
  body.toplevel_page_ajax-load-more #wpcontent,
692
  body.ajax-load-more_page_ajax-load-more-repeaters #wpcontent,
@@ -696,7 +697,8 @@ body.ajax-load-more_page_ajax-load-more-filters {
696
  body.ajax-load-more_page_ajax-load-more-help #wpcontent,
697
  body.ajax-load-more_page_ajax-load-more-licenses #wpcontent,
698
  body.ajax-load-more_page_ajax-load-more-cache #wpcontent,
699
- body.ajax-load-more_page_ajax-load-more-filters #wpcontent {
 
700
  padding-left: 0;
701
  padding-bottom: 40px;
702
  background-color: #efefef; }
@@ -708,7 +710,8 @@ body.ajax-load-more_page_ajax-load-more-filters {
708
  body.ajax-load-more_page_ajax-load-more-help #wpbody-content,
709
  body.ajax-load-more_page_ajax-load-more-licenses #wpbody-content,
710
  body.ajax-load-more_page_ajax-load-more-cache #wpbody-content,
711
- body.ajax-load-more_page_ajax-load-more-filters #wpbody-content {
 
712
  padding-bottom: 0; }
713
 
714
  body.toplevel_page_ajax-load-more,
@@ -719,7 +722,8 @@ body.ajax-load-more_page_ajax-load-more-extensions,
719
  body.ajax-load-more_page_ajax-load-more-help,
720
  body.ajax-load-more_page_ajax-load-more-licenses,
721
  body.ajax-load-more_page_ajax-load-more-cache,
722
- body.ajax-load-more_page_ajax-load-more-filters {
 
723
  background: #efefef; }
724
  body.toplevel_page_ajax-load-more #wpfooter,
725
  body.ajax-load-more_page_ajax-load-more-repeaters #wpfooter,
@@ -729,7 +733,8 @@ body.ajax-load-more_page_ajax-load-more-filters {
729
  body.ajax-load-more_page_ajax-load-more-help #wpfooter,
730
  body.ajax-load-more_page_ajax-load-more-licenses #wpfooter,
731
  body.ajax-load-more_page_ajax-load-more-cache #wpfooter,
732
- body.ajax-load-more_page_ajax-load-more-filters #wpfooter {
 
733
  padding-top: 0;
734
  padding-bottom: 0;
735
  line-height: 40px;
@@ -746,7 +751,8 @@ body.ajax-load-more_page_ajax-load-more-filters {
746
  body.ajax-load-more_page_ajax-load-more-help #wpfooter p,
747
  body.ajax-load-more_page_ajax-load-more-licenses #wpfooter p,
748
  body.ajax-load-more_page_ajax-load-more-cache #wpfooter p,
749
- body.ajax-load-more_page_ajax-load-more-filters #wpfooter p {
 
750
  line-height: 40px; }
751
  @media screen and (min-width: 901px) {
752
  body.toplevel_page_ajax-load-more .ajax-load-more .cnkt-main,
@@ -757,12 +763,15 @@ body.ajax-load-more_page_ajax-load-more-filters {
757
  body.ajax-load-more_page_ajax-load-more-help .ajax-load-more .cnkt-main,
758
  body.ajax-load-more_page_ajax-load-more-licenses .ajax-load-more .cnkt-main,
759
  body.ajax-load-more_page_ajax-load-more-cache .ajax-load-more .cnkt-main,
760
- body.ajax-load-more_page_ajax-load-more-filters .ajax-load-more .cnkt-main {
 
761
  min-height: 100vh; } }
762
 
763
- body.ajax-load-more_page_ajax-load-more-extensions {
 
764
  background: #fff; }
765
- body.ajax-load-more_page_ajax-load-more-extensions #wpcontent {
 
766
  background: #fff; }
767
 
768
  .main-cnkt-wrap {
@@ -846,18 +855,34 @@ body.ajax-load-more_page_ajax-load-more-extensions {
846
  background: #f7f7f7;
847
  margin: 0; }
848
 
849
- .ajax-load-more p.file-location {
850
- border: 1px solid #efefef;
851
  background: #fff;
852
- margin: 0 0 5px;
853
- padding: 15px;
854
  line-height: 1;
855
- display: block;
 
 
 
 
856
  font-family: Consolas, Monaco, monospace;
857
- border-radius: 3px;
858
- font-size: 12px; }
859
- .ajax-load-more p.file-location code {
860
- font-size: 13px; }
 
 
 
 
 
 
 
 
 
 
 
 
861
 
862
  .ajax-load-more code {
863
  background: #fcf3d0; }
@@ -953,11 +978,15 @@ a.layout-hover:hover img {
953
  border-bottom: 1px solid #e1e1e1; }
954
 
955
  .ajax-load-more h3.heading:hover:after,
956
- .ajax-load-more .add-on h3.heading:hover:after {
 
 
957
  color: #ccc; }
958
 
959
- .ajax-load-more h3.heading:hover {
960
- color: #222; }
 
 
961
 
962
  .ajax-load-more h3.heading:after {
963
  font-family: 'FontAwesome';
@@ -980,6 +1009,8 @@ a.layout-hover:hover img {
980
 
981
  .ajax-load-more .add-on h3.heading {
982
  background-color: #fefeed; }
 
 
983
 
984
  /* Expand/Collapse all rows */
985
  .ajax-load-more .toggle-all {
@@ -1346,6 +1377,7 @@ a.layout-hover:hover img {
1346
 
1347
  .ajax-load-more input[type=text],
1348
  .ajax-load-more input[type=number],
 
1349
  .ajax-load-more textarea {
1350
  background: #f7f7f7; }
1351
 
@@ -1368,23 +1400,55 @@ a.layout-hover:hover img {
1368
  .ajax-load-more input[type=number]:focus,
1369
  .ajax-load-more input[type=email]:focus,
1370
  .ajax-load-more textarea:focus {
1371
- border-color: #999;
1372
- -webkit-box-shadow: 0 0 3px #ccc;
1373
- box-shadow: 0 0 3px #ccc;
1374
- background: #efefef; }
1375
 
1376
  .checkboxes label {
1377
  margin-right: 5px; }
1378
 
1379
  .ajax-load-more .one_half {
1380
  display: inline-block;
1381
- width: 47.333%;
1382
- margin: 0 0 1% 2%;
1383
  vertical-align: top; }
1384
 
1385
  .ajax-load-more .one_half:first-of-type {
1386
  margin: 0 2% 1% 0; }
1387
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1388
  /* --------------------------------------------------------------------------- */
1389
  /* Row */
1390
  /* --------------------------------------------------------------------------- */
@@ -1406,7 +1470,8 @@ a.layout-hover:hover img {
1406
  border: none !important;
1407
  padding: 0 !important; }
1408
 
1409
- .admin.ajax-load-more .row {
 
1410
  border-color: #e1e1e1; }
1411
 
1412
  .admin.ajax-load-more .repeaters .row:hover,
@@ -1416,7 +1481,7 @@ a.layout-hover:hover img {
1416
  box-shadow: 0 0 0 3px #f7f7f7; }
1417
 
1418
  .admin.ajax-load-more .row:first-of-type {
1419
- margin: 0;
1420
  padding-top: 0; }
1421
 
1422
  .ajax-load-more .intro {
@@ -1429,23 +1494,20 @@ a.layout-hover:hover img {
1429
  .pop-up-jump {
1430
  display: block;
1431
  width: 100%; }
1432
-
1433
- .pop-up-jump .jump-menu-wrap {
1434
- position: relative;
1435
- float: right;
1436
- width: 30%; }
1437
-
1438
- .pop-up-jump .jump-menu-wrap .select2-container {
1439
- width: 100% !important;
1440
- margin-bottom: 15px;
1441
- position: relative;
1442
- top: -5px; }
1443
-
1444
- .pop-up-jump .intro-wrap {
1445
- position: relative;
1446
- float: left;
1447
- width: 65%;
1448
- padding-right: 5%; }
1449
 
1450
  .admin.ajax-load-more .jump-menu {
1451
  display: none; }
@@ -1554,7 +1616,7 @@ hr.indented {
1554
  padding-left: 0 !important; }
1555
 
1556
  .ajax-load-more label.template-title {
1557
- padding: 0 0 10px;
1558
  margin: 0;
1559
  font-size: 13px;
1560
  color: #888; }
@@ -1933,7 +1995,7 @@ hr.indented {
1933
  .saved-response,
1934
  p.loading {
1935
  font-size: 12px;
1936
- padding: 8px 0;
1937
  color: #999;
1938
  background: none;
1939
  -webkit-transition: padding 0.2s ease;
@@ -1941,7 +2003,7 @@ p.loading {
1941
  display: inline-block;
1942
  width: auto;
1943
  position: relative;
1944
- top: 12px;
1945
  left: 15px; }
1946
 
1947
  .saved-error {
@@ -1967,10 +2029,7 @@ p.loading,
1967
 
1968
  .alm-dropdown ul li a.updating {
1969
  background-position: 6px center;
1970
- padding-left: 42px; }
1971
-
1972
- input.save-repeater {
1973
- margin-bottom: 5px !important; }
1974
 
1975
  .restore-default {
1976
  float: right;
@@ -2040,39 +2099,16 @@ table.highlight {
2040
  #alm_OptionsForm .form-table:last-of-type {
2041
  margin-bottom: 0; }
2042
 
2043
- .ajax-load-more .cnkt-main .group a.dismiss {
2044
- position: absolute;
2045
- right: 0;
2046
- top: 0;
2047
- text-decoration: none;
2048
- width: 40px;
2049
- height: 40px;
2050
- line-height: 38px;
2051
- padding: 0;
2052
- text-align: center;
2053
- background: #f7f7f7;
2054
- color: #777;
2055
- border: 1px solid #e1e1e1;
2056
- border-right: none;
2057
- border-top: none;
2058
- display: block;
2059
- font-size: 24px;
2060
- border-radius: 0 2px 0 2px; }
2061
-
2062
- .ajax-load-more .cnkt-main .group a.dismiss:hover {
2063
- background-color: #be3f3f;
2064
- color: #fff; }
2065
-
2066
  /* Repeaters */
2067
  .repeaters .repeater-wrap {
2068
- padding: 20px 20px 15px !important; }
2069
 
2070
  .repeaters .repeater-wrap label {
2071
  cursor: default; }
2072
 
2073
  .repeaters input.save-repeater {
2074
  display: inline-block;
2075
- margin: 15px 0 0;
2076
  clear: none;
2077
  max-width: 25%; }
2078
 
@@ -2094,15 +2130,15 @@ table.highlight {
2094
  .repeaters .alm-delete {
2095
  clear: none;
2096
  display: inline-block;
2097
- margin: 15px 0 0;
2098
  width: auto;
2099
  float: right;
2100
  opacity: 0;
2101
  -webkit-transition: all 0.2s ease;
2102
  transition: all 0.2s ease;
2103
  position: absolute;
2104
- right: 20px;
2105
- bottom: 17px; }
2106
  .repeaters .alm-delete a {
2107
  border-radius: 2px;
2108
  background: none;
@@ -2196,16 +2232,199 @@ table.highlight {
2196
  #alm-add-ons .group.installed a:hover h2 {
2197
  color: #444 !important; }
2198
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2199
  /* Add-on Callout! */
2200
  .call-out {
2201
- background: #63ddbf;
2202
  padding: 18px 100px 18px 18px;
2203
  border-radius: 3px;
2204
  margin: 0;
2205
  width: 100%;
2206
  display: block;
2207
  color: #fff;
2208
- font-size: 14px;
2209
  font-weight: 400;
2210
  position: relative; }
2211
 
@@ -2233,7 +2452,7 @@ table.highlight {
2233
  margin: 10px; }
2234
 
2235
  .call-out .cnkt-button {
2236
- padding: 6px 8px;
2237
  display: inline-block;
2238
  background: #fff;
2239
  border: none;
@@ -2247,11 +2466,12 @@ table.highlight {
2247
  font-size: 13px; }
2248
 
2249
  .call-out a {
2250
- color: #387061 !important;
2251
  text-decoration: none;
2252
  font-weight: 500; }
2253
 
2254
- .call-out a:hover {
 
2255
  color: #222 !important; }
2256
 
2257
  a.cnkt-button,
@@ -2260,7 +2480,7 @@ span.cnkt-button {
2260
  display: inline-block;
2261
  background: #5acfb2;
2262
  border: 1px solid #5acfb2;
2263
- border-radius: 3px;
2264
  position: static;
2265
  text-decoration: none !important;
2266
  color: #fff !important;
@@ -2372,12 +2592,11 @@ span.cnkt-button.installed i,
2372
 
2373
  .license .no-license {
2374
  display: block;
2375
- padding: 12px 10px 12px 20px;
2376
- margin: 0 0 15px 0;
2377
  border: 1px solid #e7e7c6;
2378
- border-left: 5px solid #e7e7c6;
2379
  background-color: #ffffe5;
2380
- border-radius: 3px; }
2381
 
2382
  .license .no-license h4 {
2383
  margin: 0 0 3px; }
@@ -2430,26 +2649,27 @@ span.cnkt-button.installed i,
2430
  top: -3px; }
2431
 
2432
  .license-wrap input[type=text] {
2433
- background-color: #fff;
2434
- margin: 0 0 15px;
2435
  width: 100% !important;
2436
  border-color: #e7e7e7;
2437
  padding: 14px; }
2438
 
2439
- .license-wrap input[type=text]:focus {
2440
- background-color: #fff; }
2441
-
2442
  .license-wrap .button-primary {
2443
  margin-right: 5px; }
2444
 
2445
  .license-key-field {
2446
  position: relative;
2447
- display: block; }
 
2448
 
2449
  .license-key-field .status {
2450
  position: absolute;
2451
- right: 9px;
2452
- top: 9px;
 
 
 
2453
  display: inline-block;
2454
  border-radius: 2px;
2455
  padding: 6px 12px;
@@ -2683,15 +2903,26 @@ span.cnkt-button.installed i,
2683
  background: #f7f7f7;
2684
  border: 1px solid #e1e1e1;
2685
  color: #999;
2686
- line-height: 1.45; }
 
 
 
 
2687
 
2688
  .ajax-load-more .cm-readonly .CodeMirror {
2689
- margin: 0 0 20px;
2690
  opacity: 0.8; }
2691
 
2692
  .ajax-load-more .cm-readonly .CodeMirror pre {
2693
  cursor: default !important; }
2694
 
 
 
 
 
 
 
 
 
2695
  .ajax-load-more .cm-readonly.sm-margin .CodeMirror {
2696
  margin: 0 0 10px; }
2697
 
@@ -2816,7 +3047,7 @@ span.cnkt-button.installed i,
2816
  cursor: default; }
2817
 
2818
  .ajax-load-more .row.unlimited input[type=text] {
2819
- width: 100.75%; }
2820
 
2821
  .alm-add-template {
2822
  text-align: center;
@@ -3181,10 +3412,13 @@ p.cache-stats {
3181
  background: #fff;
3182
  border: 1px solid #e1e1e1;
3183
  border-radius: 3px;
3184
- margin-bottom: 20px; }
 
 
 
3185
  #alm-shortcode-builder-form .shortcode-parameter-wrap h2 {
3186
- padding: 20px 22px;
3187
- margin: 0 -20px 20px;
3188
  display: block;
3189
  font-size: 20px;
3190
  width: calc(100% + 40px);
@@ -3192,7 +3426,25 @@ p.cache-stats {
3192
  background-color: #f7f7f7;
3193
  border-radius: 2px 2px 0 0;
3194
  color: #555;
3195
- position: relative; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3196
  #alm-shortcode-builder-form .shortcode-parameter-wrap h2 i {
3197
  position: absolute;
3198
  right: 15px;
@@ -3202,11 +3454,8 @@ p.cache-stats {
3202
  transform: translateY(-50%);
3203
  font-size: 25px;
3204
  color: #ccc;
3205
- opacity: 0.45; }
3206
-
3207
- .forceColors #alm-shortcode-builder-form .shortcode-parameter-wrap h2 {
3208
- padding: 12px 22px;
3209
- font-size: 20px; }
3210
 
3211
  #alm-shortcode-builder-form .shortcode-parameter-wrap:first-of-type {
3212
  margin-top: 0; }
@@ -3239,10 +3488,17 @@ p.cache-stats {
3239
  position: absolute;
3240
  top: -42px;
3241
  right: 7px;
3242
- z-index: 99; }
 
 
 
 
 
 
 
 
3243
 
3244
  .alm-drop-btn a.target {
3245
- font-weight: 500;
3246
  position: relative;
3247
  color: #999;
3248
  text-decoration: none !important;
@@ -3262,23 +3518,20 @@ p.cache-stats {
3262
  top: 9px;
3263
  left: 10px; }
3264
 
3265
- .alm-repeater-options a.target:hover {
3266
- background-color: #fff;
3267
- color: #666;
3268
- border-color: #c9c9c9;
3269
- -webkit-box-shadow: 0 0 3px #ccc;
3270
- box-shadow: 0 0 3px #ccc; }
3271
-
3272
  .alm-repeater-options a.target:hover i.fa-cog {
3273
- color: #444; }
3274
 
3275
- /* Active state */
3276
  .alm-repeater-options a.target:active,
3277
- .alm-repeater-options.active a.target {
3278
- background-color: #fff;
3279
- border-color: #c9c9c9;
3280
- -webkit-box-shadow: inset 0 1px 1px #efefef !important;
3281
- box-shadow: inset 0 1px 1px #efefef !important; }
 
 
 
 
3282
 
3283
  .alm-repeater-options.active a.target,
3284
  .alm-repeater-options.active a.target i.fa-cog {
@@ -3287,23 +3540,23 @@ p.cache-stats {
3287
  /* Layout Dropdown */
3288
  .alm-drop-btn.alm-layout-selection {
3289
  display: inline-block;
3290
- float: none;
3291
- margin: 0 0 13px; }
3292
-
3293
- .alm-drop-btn.alm-layout-selection a.target {
3294
- background-color: #f7f7f7;
3295
- border-color: #e1e1e1;
3296
- color: #555;
3297
- text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.2); }
3298
-
3299
- .alm-drop-btn.alm-layout-selection > a > i {
3300
- left: 12px; }
3301
-
3302
- .alm-drop-btn.alm-layout-selection li.type {
3303
- height: 36px;
3304
- line-height: 36px;
3305
- padding: 0 0 0 8px;
3306
- position: relative; }
3307
 
3308
  .alm-dropdown ul li.layout i {
3309
  top: 11px; }
@@ -3377,30 +3630,29 @@ p.cache-stats {
3377
 
3378
  .alm-drop-btn.alm-layout-selection a.add-on {
3379
  line-height: 1.5;
3380
- background-color: #63ddbf;
3381
  border: none;
3382
  color: #fff;
3383
  font-weight: 400;
3384
  text-overflow: inherit;
3385
  height: auto;
3386
- white-space: normal; }
 
3387
 
3388
- .alm-drop-btn.alm-layout-selection a.add-on:hover {
3389
- background-color: #935eaf; }
 
3390
 
3391
  .alm-drop-btn.alm-layout-selection a.add-on:hover i {
3392
  opacity: 1; }
3393
 
3394
- .alm-drop-btn.alm-layout-selection a.add-on:hover strong {
3395
- color: #fff;
3396
- opacity: 0.7; }
3397
-
3398
  .alm-drop-btn.alm-layout-selection a.add-on strong {
3399
- color: #387061;
3400
  font-weight: 600; }
3401
 
3402
  .alm-drop-btn.alm-layout-selection a.add-on i {
3403
- top: 14px; }
 
3404
 
3405
  .alm-drop-btn.alm-layout-selection a.add-on i {
3406
  color: #fff !important;
@@ -3424,25 +3676,27 @@ p.cache-stats {
3424
  .alm-drop-btn.alm-layout-selection .alm-dropdown {
3425
  display: none;
3426
  position: absolute;
3427
- right: auto;
3428
- left: -2px;
3429
  top: 108%;
3430
  z-index: 9; }
 
 
 
 
3431
 
3432
  .alm-drop-btn .alm-dropdown:hover {
3433
  display: block !important; }
3434
 
3435
- .alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:after,
3436
- .alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:before {
3437
- right: auto;
3438
- left: 36px; }
3439
-
3440
- .alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner::after {
3441
- margin-left: 0; }
3442
-
3443
- .alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:before {
3444
- right: auto;
3445
- left: 35px; }
3446
 
3447
  .add-layout-cta {
3448
  border-radius: 2px;
@@ -3476,7 +3730,7 @@ span.dismiss a {
3476
  display: none;
3477
  position: absolute;
3478
  top: 108%;
3479
- right: -2px;
3480
  z-index: 9; }
3481
 
3482
  .alm-dropdown .alm-drop-inner {
@@ -3487,16 +3741,17 @@ span.dismiss a {
3487
  border: 1px solid #ccc;
3488
  -webkit-box-shadow: 0 0 4px #ccc;
3489
  box-shadow: 0 0 4px #ccc;
3490
- padding: 8px;
3491
  width: 220px; }
3492
 
3493
  .alm-layout-selection .alm-dropdown .alm-drop-inner {
3494
- width: 250px; }
 
3495
 
3496
  .alm-drop-inner:after,
3497
  .alm-drop-inner:before {
3498
  bottom: 100%;
3499
- right: 36px;
3500
  border: solid transparent;
3501
  content: " ";
3502
  height: 0;
@@ -3514,7 +3769,7 @@ span.dismiss a {
3514
  border-color: rgba(204, 204, 204, 0);
3515
  border-bottom-color: #ccc;
3516
  border-width: 8px;
3517
- right: 35px; }
3518
 
3519
  .alm-dropdown.active {
3520
  display: block !important; }
@@ -3526,12 +3781,10 @@ span.dismiss a {
3526
 
3527
  .alm-dropdown ul li {
3528
  margin: 0;
3529
- padding: 0;
3530
  list-style: none;
3531
  clear: both;
3532
  font-size: 12px;
3533
- margin: 0;
3534
- padding: 0;
3535
  line-height: 1.2;
3536
  border-top: 1px solid #efefef;
3537
  font-weight: 400; }
@@ -3553,7 +3806,8 @@ span.dismiss a {
3553
  width: 100%;
3554
  white-space: nowrap;
3555
  overflow: hidden;
3556
- text-overflow: ellipsis; }
 
3557
 
3558
  .alm-dropdown ul li a i {
3559
  margin: 0;
@@ -3724,120 +3978,153 @@ span.dismiss a {
3724
  #alm-mailing-list .form-wrap #response p {
3725
  font-style: normal !important; }
3726
 
3727
- /* share-alm*/
3728
- .dotted {
3729
- border: 1px dashed #ccc;
3730
- background: #f7f7f7;
3731
- padding: 20px 20px 25px; }
3732
-
3733
- .share-alm .dotted {
3734
- border: none;
3735
- border-bottom: 1px dashed #ccc;
3736
- background: none;
3737
- margin: 0 0 20px;
3738
- padding: 0 0 15px; }
3739
-
3740
- .share-alm h3,
3741
- .share-alm h4 {
3742
- font-size: 16px; }
3743
-
3744
- .share-alm i.fa-star,
3745
- .share-alm i.fa-share-alt {
3746
- color: #efc919;
3747
- position: relative;
3748
- left: 2px; }
3749
-
3750
- .share-alm i.fa-share-alt {
3751
- color: #ff5a58; }
3752
-
3753
- .share-alm p {
3754
- color: #777; }
3755
-
3756
- .share-alm .sharing {
3757
- padding-right: 20px;
3758
- width: 46%;
3759
- margin-right: 0 !important; }
3760
-
3761
- .share-alm .mailing {
3762
- width: 52%;
3763
- margin-left: 0 !important;
3764
- padding-left: 40px;
3765
- padding-right: 30px;
3766
- border-left: 1px dashed #ccc; }
3767
-
3768
- .share-alm ul.share {
3769
- margin: 0 0 10px;
3770
- padding: 0 0 0;
3771
- width: auto;
3772
- clear: both;
3773
- display: inline-block;
3774
- overflow: visible;
3775
- text-align: left;
3776
- width: 100%;
3777
- height: auto; }
3778
- .share-alm ul.share li {
3779
  background: none;
3780
- display: inline-block;
3781
- vertical-align: top;
3782
- height: 40px;
3783
- line-height: 40px;
3784
- font-size: 13px;
 
3785
  position: relative;
3786
- font-weight: 400;
3787
- text-align: left;
3788
- background: none;
3789
- color: #787878;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3790
  width: auto;
3791
- text-align: center;
3792
- height: 36px;
3793
- margin: 10px 10px 0 0 !important;
3794
- padding: 0; }
3795
- .share-alm ul.share li a {
3796
- display: block;
 
 
 
 
 
 
 
 
3797
  line-height: 40px;
3798
- height: 40px;
 
 
 
 
 
3799
  width: auto;
3800
- padding: 0 15px 0 45px;
3801
- text-decoration: none;
3802
- color: #fff;
3803
  text-align: center;
3804
- background: none;
3805
- border-radius: 3px;
3806
- position: relative;
3807
- font-weight: 600;
3808
- background: #33cf92; }
3809
- @media screen and (min-width: 1500px) {
3810
- .share-alm ul.share li a {
3811
- padding: 0 25px 0 50px; } }
3812
- .share-alm ul.share li a:hover {
3813
- background-color: #45dfa3; }
3814
- .share-alm ul.share li a i {
3815
- font-size: 20px;
3816
- line-height: 41px;
3817
  height: 40px;
3818
- width: 35px;
3819
- position: absolute;
3820
- top: 0;
3821
- left: 0;
3822
- text-align: center;
3823
- border-right: 1px solid rgba(0, 0, 0, 0.1);
3824
- background-color: rgba(0, 0, 0, 0.1);
3825
- border-radius: 2px 0 0 2px; }
3826
- .share-alm ul.share li a:hover,
3827
- .share-alm ul.share li a:hover i {
3828
  text-decoration: none;
3829
- color: #fff !important; }
3830
- .share-alm ul.share li a:hover span,
3831
- .share-alm ul.share li a:hover i span {
3832
- text-decoration: none; }
3833
- .share-alm ul.share li.twitter a {
3834
- background: #00aced; }
3835
- .share-alm ul.share li.twitter a:hover {
3836
- background: #13beff !important; }
3837
- .share-alm ul.share li.facebook a {
3838
- background: #3b5998; }
3839
- .share-alm ul.share li.facebook a:hover {
3840
- background: #466cbc !important; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3841
 
3842
  /*
3843
  * Local templates Add-on
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
+ body.ajax-load-more_page_ajax-load-more-filters,
690
+ body.ajax-load-more_page_ajax-load-more-pro {
691
  background-color: #f7f7f7; }
692
  body.toplevel_page_ajax-load-more #wpcontent,
693
  body.ajax-load-more_page_ajax-load-more-repeaters #wpcontent,
697
  body.ajax-load-more_page_ajax-load-more-help #wpcontent,
698
  body.ajax-load-more_page_ajax-load-more-licenses #wpcontent,
699
  body.ajax-load-more_page_ajax-load-more-cache #wpcontent,
700
+ body.ajax-load-more_page_ajax-load-more-filters #wpcontent,
701
+ body.ajax-load-more_page_ajax-load-more-pro #wpcontent {
702
  padding-left: 0;
703
  padding-bottom: 40px;
704
  background-color: #efefef; }
710
  body.ajax-load-more_page_ajax-load-more-help #wpbody-content,
711
  body.ajax-load-more_page_ajax-load-more-licenses #wpbody-content,
712
  body.ajax-load-more_page_ajax-load-more-cache #wpbody-content,
713
+ body.ajax-load-more_page_ajax-load-more-filters #wpbody-content,
714
+ body.ajax-load-more_page_ajax-load-more-pro #wpbody-content {
715
  padding-bottom: 0; }
716
 
717
  body.toplevel_page_ajax-load-more,
722
  body.ajax-load-more_page_ajax-load-more-help,
723
  body.ajax-load-more_page_ajax-load-more-licenses,
724
  body.ajax-load-more_page_ajax-load-more-cache,
725
+ body.ajax-load-more_page_ajax-load-more-filters,
726
+ body.ajax-load-more_page_ajax-load-more-pro {
727
  background: #efefef; }
728
  body.toplevel_page_ajax-load-more #wpfooter,
729
  body.ajax-load-more_page_ajax-load-more-repeaters #wpfooter,
733
  body.ajax-load-more_page_ajax-load-more-help #wpfooter,
734
  body.ajax-load-more_page_ajax-load-more-licenses #wpfooter,
735
  body.ajax-load-more_page_ajax-load-more-cache #wpfooter,
736
+ body.ajax-load-more_page_ajax-load-more-filters #wpfooter,
737
+ body.ajax-load-more_page_ajax-load-more-pro #wpfooter {
738
  padding-top: 0;
739
  padding-bottom: 0;
740
  line-height: 40px;
751
  body.ajax-load-more_page_ajax-load-more-help #wpfooter p,
752
  body.ajax-load-more_page_ajax-load-more-licenses #wpfooter p,
753
  body.ajax-load-more_page_ajax-load-more-cache #wpfooter p,
754
+ body.ajax-load-more_page_ajax-load-more-filters #wpfooter p,
755
+ body.ajax-load-more_page_ajax-load-more-pro #wpfooter p {
756
  line-height: 40px; }
757
  @media screen and (min-width: 901px) {
758
  body.toplevel_page_ajax-load-more .ajax-load-more .cnkt-main,
763
  body.ajax-load-more_page_ajax-load-more-help .ajax-load-more .cnkt-main,
764
  body.ajax-load-more_page_ajax-load-more-licenses .ajax-load-more .cnkt-main,
765
  body.ajax-load-more_page_ajax-load-more-cache .ajax-load-more .cnkt-main,
766
+ body.ajax-load-more_page_ajax-load-more-filters .ajax-load-more .cnkt-main,
767
+ body.ajax-load-more_page_ajax-load-more-pro .ajax-load-more .cnkt-main {
768
  min-height: 100vh; } }
769
 
770
+ body.ajax-load-more_page_ajax-load-more-extensions,
771
+ body.ajax-load-more_page_ajax-load-more-pro {
772
  background: #fff; }
773
+ body.ajax-load-more_page_ajax-load-more-extensions #wpcontent,
774
+ body.ajax-load-more_page_ajax-load-more-pro #wpcontent {
775
  background: #fff; }
776
 
777
  .main-cnkt-wrap {
855
  background: #f7f7f7;
856
  margin: 0; }
857
 
858
+ .ajax-load-more .file-location {
859
+ border: 1px solid #e1e1e1;
860
  background: #fff;
861
+ margin: 0;
862
+ padding: 0;
863
  line-height: 1;
864
+ display: -webkit-box;
865
+ display: -ms-flexbox;
866
+ display: flex;
867
+ -ms-flex-wrap: nowrap;
868
+ flex-wrap: nowrap;
869
  font-family: Consolas, Monaco, monospace;
870
+ border-radius: 3px; }
871
+ .ajax-load-more .file-location p, .ajax-load-more .file-location code {
872
+ padding: 12px 16px;
873
+ line-height: 18px;
874
+ font-size: 12px; }
875
+ .ajax-load-more .file-location p {
876
+ background: #f7f7f7;
877
+ color: #555;
878
+ font-weight: 600;
879
+ margin: 0;
880
+ width: auto;
881
+ display: inline;
882
+ border-right: 1px solid #e1e1e1; }
883
+ .ajax-load-more .file-location code {
884
+ color: #999;
885
+ background: transparent; }
886
 
887
  .ajax-load-more code {
888
  background: #fcf3d0; }
978
  border-bottom: 1px solid #e1e1e1; }
979
 
980
  .ajax-load-more h3.heading:hover:after,
981
+ .ajax-load-more .add-on h3.heading:hover:after,
982
+ .ajax-load-more h3.heading:focus:after,
983
+ .ajax-load-more .add-on h3.heading:focus:after {
984
  color: #ccc; }
985
 
986
+ .ajax-load-more h3.heading:hover,
987
+ .ajax-load-more h3.heading:focus {
988
+ color: #222;
989
+ outline: none; }
990
 
991
  .ajax-load-more h3.heading:after {
992
  font-family: 'FontAwesome';
1009
 
1010
  .ajax-load-more .add-on h3.heading {
1011
  background-color: #fefeed; }
1012
+ .ajax-load-more .add-on h3.heading:focus {
1013
+ outline: none; }
1014
 
1015
  /* Expand/Collapse all rows */
1016
  .ajax-load-more .toggle-all {
1377
 
1378
  .ajax-load-more input[type=text],
1379
  .ajax-load-more input[type=number],
1380
+ .ajax-load-more input[type=email],
1381
  .ajax-load-more textarea {
1382
  background: #f7f7f7; }
1383
 
1400
  .ajax-load-more input[type=number]:focus,
1401
  .ajax-load-more input[type=email]:focus,
1402
  .ajax-load-more textarea:focus {
1403
+ border-color: #bbbbbb;
1404
+ -webkit-box-shadow: 0 0 6px #ccc;
1405
+ box-shadow: 0 0 6px #ccc;
1406
+ background: #f7f7f7; }
1407
 
1408
  .checkboxes label {
1409
  margin-right: 5px; }
1410
 
1411
  .ajax-load-more .one_half {
1412
  display: inline-block;
1413
+ width: 48%;
1414
+ margin: 0 -2px 1% 2%;
1415
  vertical-align: top; }
1416
 
1417
  .ajax-load-more .one_half:first-of-type {
1418
  margin: 0 2% 1% 0; }
1419
 
1420
+ .ajax-load-more .alm-row {
1421
+ display: block;
1422
+ width: 100%; }
1423
+ .ajax-load-more .alm-row:after {
1424
+ content: "";
1425
+ clear: both;
1426
+ display: table; }
1427
+ .ajax-load-more .alm-row--margin-btm {
1428
+ margin-bottom: 15px; }
1429
+ .ajax-load-more .alm-row--margin-btm-lg {
1430
+ margin-bottom: 25px; }
1431
+ .ajax-load-more .alm-row .column {
1432
+ width: 100%;
1433
+ float: none;
1434
+ padding: 0 15px; }
1435
+ .ajax-load-more .alm-row .column--half {
1436
+ width: 50%;
1437
+ float: left; }
1438
+ .ajax-load-more .alm-row .column--one-third {
1439
+ width: 33.333%;
1440
+ float: left; }
1441
+ .ajax-load-more .alm-row .column--two-third {
1442
+ width: 66.666%;
1443
+ float: left; }
1444
+ .ajax-load-more .alm-row .column--one-fourth {
1445
+ width: 25%;
1446
+ float: left; }
1447
+ @media screen and (max-width: 480px) {
1448
+ .ajax-load-more .alm-row .column--half, .ajax-load-more .alm-row .column--one-third {
1449
+ float: none;
1450
+ width: 100%; } }
1451
+
1452
  /* --------------------------------------------------------------------------- */
1453
  /* Row */
1454
  /* --------------------------------------------------------------------------- */
1470
  border: none !important;
1471
  padding: 0 !important; }
1472
 
1473
+ .admin.ajax-load-more .row,
1474
+ .forceColors .ajax-load-more .row {
1475
  border-color: #e1e1e1; }
1476
 
1477
  .admin.ajax-load-more .repeaters .row:hover,
1481
  box-shadow: 0 0 0 3px #f7f7f7; }
1482
 
1483
  .admin.ajax-load-more .row:first-of-type {
1484
+ margin-top: 20px;
1485
  padding-top: 0; }
1486
 
1487
  .ajax-load-more .intro {
1494
  .pop-up-jump {
1495
  display: block;
1496
  width: 100%; }
1497
+ .pop-up-jump .jump-menu-wrap {
1498
+ position: relative;
1499
+ float: right;
1500
+ width: 30%; }
1501
+ .pop-up-jump .jump-menu-wrap .select2-container {
1502
+ width: 100% !important;
1503
+ margin-bottom: 15px;
1504
+ position: relative;
1505
+ top: -5px; }
1506
+ .pop-up-jump .intro-wrap {
1507
+ position: relative;
1508
+ float: left;
1509
+ width: 65%;
1510
+ padding-right: 5%; }
 
 
 
1511
 
1512
  .admin.ajax-load-more .jump-menu {
1513
  display: none; }
1616
  padding-left: 0 !important; }
1617
 
1618
  .ajax-load-more label.template-title {
1619
+ padding: 8px 0 10px;
1620
  margin: 0;
1621
  font-size: 13px;
1622
  color: #888; }
1995
  .saved-response,
1996
  p.loading {
1997
  font-size: 12px;
1998
+ padding: 0;
1999
  color: #999;
2000
  background: none;
2001
  -webkit-transition: padding 0.2s ease;
2003
  display: inline-block;
2004
  width: auto;
2005
  position: relative;
2006
+ top: 5px;
2007
  left: 15px; }
2008
 
2009
  .saved-error {
2029
 
2030
  .alm-dropdown ul li a.updating {
2031
  background-position: 6px center;
2032
+ padding-left: 32px; }
 
 
 
2033
 
2034
  .restore-default {
2035
  float: right;
2099
  #alm_OptionsForm .form-table:last-of-type {
2100
  margin-bottom: 0; }
2101
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2102
  /* Repeaters */
2103
  .repeaters .repeater-wrap {
2104
+ padding: 15px 0 !important; }
2105
 
2106
  .repeaters .repeater-wrap label {
2107
  cursor: default; }
2108
 
2109
  .repeaters input.save-repeater {
2110
  display: inline-block;
2111
+ margin: 0;
2112
  clear: none;
2113
  max-width: 25%; }
2114
 
2130
  .repeaters .alm-delete {
2131
  clear: none;
2132
  display: inline-block;
2133
+ margin: 14px 0 0;
2134
  width: auto;
2135
  float: right;
2136
  opacity: 0;
2137
  -webkit-transition: all 0.2s ease;
2138
  transition: all 0.2s ease;
2139
  position: absolute;
2140
+ right: 15px;
2141
+ bottom: 15px; }
2142
  .repeaters .alm-delete a {
2143
  border-radius: 2px;
2144
  background: none;
2232
  #alm-add-ons .group.installed a:hover h2 {
2233
  color: #444 !important; }
2234
 
2235
+ /* Pro Add-on Listing */
2236
+ .alm-pro-listing {
2237
+ padding: 0;
2238
+ border-top: none;
2239
+ position: relative;
2240
+ padding-bottom: 20px; }
2241
+ .alm-pro-listing .loader {
2242
+ position: absolute;
2243
+ left: 0;
2244
+ top: 0;
2245
+ width: 100%;
2246
+ height: 100%;
2247
+ z-index: 99;
2248
+ display: none; }
2249
+ .alm-pro-listing.loading .loader {
2250
+ display: block; }
2251
+ .alm-pro-listing--header {
2252
+ border: 1px solid #e1e1e1;
2253
+ background: #f7f7f7;
2254
+ padding: 15px;
2255
+ font-size: 13px;
2256
+ font-weight: 600;
2257
+ text-transform: uppercase;
2258
+ color: #23282d;
2259
+ position: relative;
2260
+ margin-bottom: 30px;
2261
+ border-radius: 2px; }
2262
+ .alm-pro-listing--header div {
2263
+ position: absolute;
2264
+ right: 15px;
2265
+ top: 50%;
2266
+ -webkit-transform: translateY(-50%);
2267
+ -ms-transform: translateY(-50%);
2268
+ transform: translateY(-50%);
2269
+ font-size: 13px;
2270
+ opacity: 0.7;
2271
+ font-weight: normal;
2272
+ text-transform: none;
2273
+ font-style: italic; }
2274
+ @media screen and (max-width: 480px) {
2275
+ .alm-pro-listing--header div {
2276
+ display: none; } }
2277
+ .alm-pro-listing--wrap {
2278
+ display: -webkit-box;
2279
+ display: -ms-flexbox;
2280
+ display: flex;
2281
+ -ms-flex-wrap: wrap;
2282
+ flex-wrap: wrap;
2283
+ -webkit-box-pack: justify;
2284
+ -ms-flex-pack: justify;
2285
+ justify-content: space-between; }
2286
+ .alm-pro-listing .item {
2287
+ width: 49.5%;
2288
+ display: -webkit-box;
2289
+ display: -ms-flexbox;
2290
+ display: flex;
2291
+ margin-bottom: 10px; }
2292
+ @media screen and (min-width: 1500px) {
2293
+ .alm-pro-listing .item {
2294
+ width: 32.775%; } }
2295
+ @media screen and (max-width: 480px) {
2296
+ .alm-pro-listing .item {
2297
+ width: 100%; } }
2298
+ .alm-pro-listing .item h2, .alm-pro-listing .item p, .alm-pro-listing .item img, .alm-pro-listing .item .state {
2299
+ -webkit-transition: all 0.15s ease;
2300
+ transition: all 0.15s ease; }
2301
+ .alm-pro-listing .item a {
2302
+ text-decoration: none !important;
2303
+ padding: 0 55px 0 0;
2304
+ position: relative;
2305
+ display: -webkit-box;
2306
+ display: -ms-flexbox;
2307
+ display: flex;
2308
+ border: 1px solid #e1e1e1;
2309
+ -webkit-transition: all 0.15s ease;
2310
+ transition: all 0.15s ease;
2311
+ border-radius: 2px; }
2312
+ .alm-pro-listing .item a:hover, .alm-pro-listing .item a:focus {
2313
+ border-color: #bbb; }
2314
+ .alm-pro-listing .item a:hover h2, .alm-pro-listing .item a:focus h2 {
2315
+ text-decoration: underline; }
2316
+ .alm-pro-listing .item--detail {
2317
+ padding: 15px 20px;
2318
+ position: relative;
2319
+ min-height: 110px;
2320
+ display: -webkit-box;
2321
+ display: -ms-flexbox;
2322
+ display: flex;
2323
+ -webkit-box-align: center;
2324
+ -ms-flex-align: center;
2325
+ align-items: center; }
2326
+ .alm-pro-listing .item--detail div {
2327
+ padding: 0; }
2328
+ .alm-pro-listing .item--detail img {
2329
+ width: 95px;
2330
+ height: auto;
2331
+ margin-right: 20px; }
2332
+ @media screen and (max-width: 768px) {
2333
+ .alm-pro-listing .item--detail img {
2334
+ display: none; } }
2335
+ .alm-pro-listing .item--detail a {
2336
+ text-decoration: none; }
2337
+ .alm-pro-listing .item--detail a:hover {
2338
+ text-decoration: underline; }
2339
+ .alm-pro-listing .item--detail h2 {
2340
+ margin: 0 0 7px;
2341
+ font-size: 16px;
2342
+ line-height: 1;
2343
+ -webkit-transition: all 0.15s ease;
2344
+ transition: all 0.15s ease; }
2345
+ .alm-pro-listing .item--detail p {
2346
+ margin: 0;
2347
+ padding: 0;
2348
+ font-size: 14px; }
2349
+ .alm-pro-listing .item--detail p.link {
2350
+ font-size: 13px;
2351
+ padding-top: 2px;
2352
+ opacity: 0;
2353
+ -webkit-transition: opacity 0.15s ease;
2354
+ transition: opacity 0.15s ease; }
2355
+ .alm-pro-listing .item .result {
2356
+ position: absolute;
2357
+ right: 8px;
2358
+ bottom: 8px;
2359
+ font-size: 12px;
2360
+ opacity: 0;
2361
+ -webkit-transition: all 0.25s ease;
2362
+ transition: all 0.25s ease; }
2363
+ .alm-pro-listing .item .result.in-view {
2364
+ opacity: 0.7; }
2365
+ .alm-pro-listing .item .result .type {
2366
+ background: #47bd79;
2367
+ color: #fff;
2368
+ display: none;
2369
+ border-radius: 2px;
2370
+ padding: 3px 6px;
2371
+ display: inline-block; }
2372
+ .alm-pro-listing .item .result .type.inactive {
2373
+ background: #c54545;
2374
+ display: none; }
2375
+ .alm-pro-listing .item .state {
2376
+ width: 22px;
2377
+ height: 22px;
2378
+ position: absolute;
2379
+ right: 8px;
2380
+ top: 8px;
2381
+ border-radius: 2px;
2382
+ background: #57d48c;
2383
+ color: #fff;
2384
+ display: -webkit-box;
2385
+ display: -ms-flexbox;
2386
+ display: flex;
2387
+ -webkit-box-align: center;
2388
+ -ms-flex-align: center;
2389
+ align-items: center;
2390
+ -webkit-box-pack: center;
2391
+ -ms-flex-pack: center;
2392
+ justify-content: center;
2393
+ text-decoration: none !important;
2394
+ font-size: 12px;
2395
+ -webkit-transition: all 0.15s ease;
2396
+ transition: all 0.15s ease; }
2397
+ .alm-pro-listing .item .state:before {
2398
+ font-family: 'FontAwesome';
2399
+ content: '\f00c';
2400
+ display: block; }
2401
+ .alm-pro-listing .item.active a {
2402
+ border-color: #57d48c; }
2403
+ .alm-pro-listing .item.active:hover .state {
2404
+ opacity: 0.9; }
2405
+ .alm-pro-listing .item.inactive h2, .alm-pro-listing .item.inactive p, .alm-pro-listing .item.inactive img, .alm-pro-listing .item.inactive .state {
2406
+ opacity: 0.5; }
2407
+ .alm-pro-listing .item.inactive .state {
2408
+ background: #e1e1e1; }
2409
+ .alm-pro-listing .item.inactive .state:before {
2410
+ opacity: 0; }
2411
+ .alm-pro-listing .item.inactive:hover h2, .alm-pro-listing .item.inactive:hover p, .alm-pro-listing .item.inactive:hover img, .alm-pro-listing .item.inactive:hover .state {
2412
+ opacity: 0.8; }
2413
+ .alm-pro-listing .item.inactive:hover .state {
2414
+ background: #ccc; }
2415
+ .alm-pro-listing .item.inactive:hover .state:before {
2416
+ opacity: 1; }
2417
+
2418
  /* Add-on Callout! */
2419
  .call-out {
2420
+ background: #63ccb2;
2421
  padding: 18px 100px 18px 18px;
2422
  border-radius: 3px;
2423
  margin: 0;
2424
  width: 100%;
2425
  display: block;
2426
  color: #fff;
2427
+ font-size: 13px;
2428
  font-weight: 400;
2429
  position: relative; }
2430
 
2452
  margin: 10px; }
2453
 
2454
  .call-out .cnkt-button {
2455
+ padding: 6px 10px;
2456
  display: inline-block;
2457
  background: #fff;
2458
  border: none;
2466
  font-size: 13px; }
2467
 
2468
  .call-out a {
2469
+ color: #3f524d !important;
2470
  text-decoration: none;
2471
  font-weight: 500; }
2472
 
2473
+ .call-out a:hover,
2474
+ .call-out a:focus {
2475
  color: #222 !important; }
2476
 
2477
  a.cnkt-button,
2480
  display: inline-block;
2481
  background: #5acfb2;
2482
  border: 1px solid #5acfb2;
2483
+ border-radius: 2px;
2484
  position: static;
2485
  text-decoration: none !important;
2486
  color: #fff !important;
2592
 
2593
  .license .no-license {
2594
  display: block;
2595
+ padding: 12px;
2596
+ margin: 0 0 20px;
2597
  border: 1px solid #e7e7c6;
 
2598
  background-color: #ffffe5;
2599
+ border-radius: 2px; }
2600
 
2601
  .license .no-license h4 {
2602
  margin: 0 0 3px; }
2649
  top: -3px; }
2650
 
2651
  .license-wrap input[type=text] {
2652
+ background-color: #f7f7f7;
2653
+ margin: 0;
2654
  width: 100% !important;
2655
  border-color: #e7e7e7;
2656
  padding: 14px; }
2657
 
 
 
 
2658
  .license-wrap .button-primary {
2659
  margin-right: 5px; }
2660
 
2661
  .license-key-field {
2662
  position: relative;
2663
+ display: block;
2664
+ margin: 0 0 20px; }
2665
 
2666
  .license-key-field .status {
2667
  position: absolute;
2668
+ right: 10px;
2669
+ top: 50%;
2670
+ -webkit-transform: translateY(-50%);
2671
+ -ms-transform: translateY(-50%);
2672
+ transform: translateY(-50%);
2673
  display: inline-block;
2674
  border-radius: 2px;
2675
  padding: 6px 12px;
2903
  background: #f7f7f7;
2904
  border: 1px solid #e1e1e1;
2905
  color: #999;
2906
+ line-height: 1.5; }
2907
+ .ajax-load-more .CodeMirror.CodeMirror-focused {
2908
+ border-color: #bbbbbb;
2909
+ -webkit-box-shadow: 0 0 6px #ccc;
2910
+ box-shadow: 0 0 6px #ccc; }
2911
 
2912
  .ajax-load-more .cm-readonly .CodeMirror {
 
2913
  opacity: 0.8; }
2914
 
2915
  .ajax-load-more .cm-readonly .CodeMirror pre {
2916
  cursor: default !important; }
2917
 
2918
+ .ajax-load-more .CodeMirror pre {
2919
+ padding: 0 10px; }
2920
+
2921
+ .CodeMirror-linenumber {
2922
+ padding: 0 10px !important;
2923
+ line-height: 1.25 !important;
2924
+ color: #999; }
2925
+
2926
  .ajax-load-more .cm-readonly.sm-margin .CodeMirror {
2927
  margin: 0 0 10px; }
2928
 
3047
  cursor: default; }
3048
 
3049
  .ajax-load-more .row.unlimited input[type=text] {
3050
+ width: 100%; }
3051
 
3052
  .alm-add-template {
3053
  text-align: center;
3412
  background: #fff;
3413
  border: 1px solid #e1e1e1;
3414
  border-radius: 3px;
3415
+ margin-bottom: 10px; }
3416
+ #alm-shortcode-builder-form .shortcode-parameter-wrap.closed {
3417
+ padding-bottom: 0;
3418
+ border-bottom: none; }
3419
  #alm-shortcode-builder-form .shortcode-parameter-wrap h2 {
3420
+ padding: 20px 22px 20px 43px;
3421
+ margin: 0 -20px;
3422
  display: block;
3423
  font-size: 20px;
3424
  width: calc(100% + 40px);
3426
  background-color: #f7f7f7;
3427
  border-radius: 2px 2px 0 0;
3428
  color: #555;
3429
+ font-weight: 600;
3430
+ position: relative;
3431
+ cursor: pointer; }
3432
+ #alm-shortcode-builder-form .shortcode-parameter-wrap h2:focus, #alm-shortcode-builder-form .shortcode-parameter-wrap h2:hover {
3433
+ color: #222;
3434
+ outline: none; }
3435
+ #alm-shortcode-builder-form .shortcode-parameter-wrap h2:hover:after, #alm-shortcode-builder-form .shortcode-parameter-wrap h2:focus:after {
3436
+ color: #ccc; }
3437
+ #alm-shortcode-builder-form .shortcode-parameter-wrap h2:after {
3438
+ font-family: 'FontAwesome';
3439
+ content: '\f056';
3440
+ color: #e1e1e1;
3441
+ position: absolute;
3442
+ left: 15px;
3443
+ top: 20px;
3444
+ height: 20px;
3445
+ width: 20px; }
3446
+ #alm-shortcode-builder-form .shortcode-parameter-wrap h2.open:after {
3447
+ content: '\f055'; }
3448
  #alm-shortcode-builder-form .shortcode-parameter-wrap h2 i {
3449
  position: absolute;
3450
  right: 15px;
3454
  transform: translateY(-50%);
3455
  font-size: 25px;
3456
  color: #ccc;
3457
+ opacity: 0.45;
3458
+ display: none; }
 
 
 
3459
 
3460
  #alm-shortcode-builder-form .shortcode-parameter-wrap:first-of-type {
3461
  margin-top: 0; }
3488
  position: absolute;
3489
  top: -42px;
3490
  right: 7px;
3491
+ z-index: 8; }
3492
+ .alm-drop-btn.alm-repeater-options a.target {
3493
+ padding: 8px 10px;
3494
+ -webkit-box-shadow: none;
3495
+ box-shadow: none;
3496
+ border: none; }
3497
+ .alm-drop-btn.alm-repeater-options a.target > i {
3498
+ font-size: 20px;
3499
+ position: static; }
3500
 
3501
  .alm-drop-btn a.target {
 
3502
  position: relative;
3503
  color: #999;
3504
  text-decoration: none !important;
3518
  top: 9px;
3519
  left: 10px; }
3520
 
 
 
 
 
 
 
 
3521
  .alm-repeater-options a.target:hover i.fa-cog {
3522
+ color: #333; }
3523
 
3524
+ /* Active / Hover state */
3525
  .alm-repeater-options a.target:active,
3526
+ .alm-repeater-options.active a.target,
3527
+ .alm-repeater-options a.target:hover,
3528
+ .alm-repeater-options a.target:focus {
3529
+ background-color: transparent;
3530
+ color: #222;
3531
+ border-color: transparent;
3532
+ -webkit-box-shadow: none;
3533
+ box-shadow: none;
3534
+ opacity: 1; }
3535
 
3536
  .alm-repeater-options.active a.target,
3537
  .alm-repeater-options.active a.target i.fa-cog {
3540
  /* Layout Dropdown */
3541
  .alm-drop-btn.alm-layout-selection {
3542
  display: inline-block;
3543
+ float: right;
3544
+ margin: 0; }
3545
+ @media screen and (max-width: 480px) {
3546
+ .alm-drop-btn.alm-layout-selection {
3547
+ float: none; } }
3548
+ .alm-drop-btn.alm-layout-selection a.target {
3549
+ background-color: #f7f7f7;
3550
+ border-color: #e1e1e1;
3551
+ color: #555;
3552
+ text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.2); }
3553
+ .alm-drop-btn.alm-layout-selection > a > i {
3554
+ left: 12px; }
3555
+ .alm-drop-btn.alm-layout-selection li.type {
3556
+ height: 36px;
3557
+ line-height: 36px;
3558
+ padding: 0 0 0 8px;
3559
+ position: relative; }
3560
 
3561
  .alm-dropdown ul li.layout i {
3562
  top: 11px; }
3630
 
3631
  .alm-drop-btn.alm-layout-selection a.add-on {
3632
  line-height: 1.5;
3633
+ background-color: #63ccb2;
3634
  border: none;
3635
  color: #fff;
3636
  font-weight: 400;
3637
  text-overflow: inherit;
3638
  height: auto;
3639
+ white-space: normal;
3640
+ font-size: 12px; }
3641
 
3642
+ .alm-drop-btn.alm-layout-selection a.add-on:hover,
3643
+ .alm-drop-btn.alm-layout-selection a.add-on:focus {
3644
+ background-color: #57bda4; }
3645
 
3646
  .alm-drop-btn.alm-layout-selection a.add-on:hover i {
3647
  opacity: 1; }
3648
 
 
 
 
 
3649
  .alm-drop-btn.alm-layout-selection a.add-on strong {
3650
+ color: #41635a;
3651
  font-weight: 600; }
3652
 
3653
  .alm-drop-btn.alm-layout-selection a.add-on i {
3654
+ top: 14px;
3655
+ left: 3px; }
3656
 
3657
  .alm-drop-btn.alm-layout-selection a.add-on i {
3658
  color: #fff !important;
3676
  .alm-drop-btn.alm-layout-selection .alm-dropdown {
3677
  display: none;
3678
  position: absolute;
3679
+ right: 0;
 
3680
  top: 108%;
3681
  z-index: 9; }
3682
+ @media screen and (max-width: 480px) {
3683
+ .alm-drop-btn.alm-layout-selection .alm-dropdown {
3684
+ right: auto;
3685
+ left: 0; } }
3686
 
3687
  .alm-drop-btn .alm-dropdown:hover {
3688
  display: block !important; }
3689
 
3690
+ @media screen and (max-width: 480px) {
3691
+ .alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:after,
3692
+ .alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:before {
3693
+ right: auto;
3694
+ left: 36px; }
3695
+ .alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:after {
3696
+ margin-left: 0; }
3697
+ .alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:before {
3698
+ right: auto;
3699
+ left: 35px; } }
 
3700
 
3701
  .add-layout-cta {
3702
  border-radius: 2px;
3730
  display: none;
3731
  position: absolute;
3732
  top: 108%;
3733
+ right: -15px;
3734
  z-index: 9; }
3735
 
3736
  .alm-dropdown .alm-drop-inner {
3741
  border: 1px solid #ccc;
3742
  -webkit-box-shadow: 0 0 4px #ccc;
3743
  box-shadow: 0 0 4px #ccc;
3744
+ padding: 5px 8px;
3745
  width: 220px; }
3746
 
3747
  .alm-layout-selection .alm-dropdown .alm-drop-inner {
3748
+ width: 250px;
3749
+ padding: 8px 8px 5px; }
3750
 
3751
  .alm-drop-inner:after,
3752
  .alm-drop-inner:before {
3753
  bottom: 100%;
3754
+ right: 26px;
3755
  border: solid transparent;
3756
  content: " ";
3757
  height: 0;
3769
  border-color: rgba(204, 204, 204, 0);
3770
  border-bottom-color: #ccc;
3771
  border-width: 8px;
3772
+ right: 25px; }
3773
 
3774
  .alm-dropdown.active {
3775
  display: block !important; }
3781
 
3782
  .alm-dropdown ul li {
3783
  margin: 0;
3784
+ padding: 3px 0;
3785
  list-style: none;
3786
  clear: both;
3787
  font-size: 12px;
 
 
3788
  line-height: 1.2;
3789
  border-top: 1px solid #efefef;
3790
  font-weight: 400; }
3806
  width: 100%;
3807
  white-space: nowrap;
3808
  overflow: hidden;
3809
+ text-overflow: ellipsis;
3810
+ border-radius: 2px; }
3811
 
3812
  .alm-dropdown ul li a i {
3813
  margin: 0;
3978
  #alm-mailing-list .form-wrap #response p {
3979
  font-style: normal !important; }
3980
 
3981
+ /* share-alm */
3982
+ .alm-notification {
3983
+ background: #6199c3 !important;
3984
+ border-color: #3f7d9a !important; }
3985
+ .alm-notification:hover a.dismiss {
3986
+ opacity: 0.7; }
3987
+ .alm-notification .dotted {
3988
+ border: none;
3989
+ border-bottom: 1px dashed #ccc;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3990
  background: none;
3991
+ margin: 0 0 20px;
3992
+ padding: 0 0 15px; }
3993
+ .alm-notification h2 {
3994
+ padding-right: 50px;
3995
+ padding-left: 32px;
3996
+ line-height: 1.25;
3997
  position: relative;
3998
+ color: #fff;
3999
+ font-size: 22px;
4000
+ margin: 0 0 10px; }
4001
+ .alm-notification h2 span {
4002
+ position: absolute;
4003
+ left: 0;
4004
+ top: 0; }
4005
+ @media screen and (max-width: 480px) {
4006
+ .alm-notification h2 {
4007
+ padding-left: 0; }
4008
+ .alm-notification h2 span {
4009
+ display: none; } }
4010
+ .alm-notification p {
4011
+ color: #ddeaf1;
4012
+ font-size: 14px;
4013
+ padding-left: 33px;
4014
+ margin: 0 0 20px; }
4015
+ @media screen and (max-width: 480px) {
4016
+ .alm-notification p {
4017
+ padding-left: 0; } }
4018
+ .alm-notification p a {
4019
+ color: #fff;
4020
+ font-weight: 600; }
4021
+ .alm-notification p a:hover, .alm-notification p a:focus {
4022
+ text-decoration: none; }
4023
+ .alm-notification p.opening {
4024
+ font-size: 18px;
4025
+ margin: 0 0 13px;
4026
+ font-weight: 300; }
4027
+ .alm-notification ul.share {
4028
+ margin: 0 0 10px;
4029
+ padding: 0 0 0 32px;
4030
  width: auto;
4031
+ clear: both;
4032
+ display: inline-block;
4033
+ overflow: visible;
4034
+ text-align: left;
4035
+ width: 100%;
4036
+ height: auto; }
4037
+ @media screen and (max-width: 480px) {
4038
+ .alm-notification ul.share {
4039
+ padding: 0; } }
4040
+ .alm-notification ul.share li {
4041
+ background: none;
4042
+ display: inline-block;
4043
+ vertical-align: top;
4044
+ height: auto;
4045
  line-height: 40px;
4046
+ font-size: 13px;
4047
+ position: relative;
4048
+ font-weight: 400;
4049
+ text-align: left;
4050
+ background: none;
4051
+ color: #787878;
4052
  width: auto;
 
 
 
4053
  text-align: center;
4054
+ margin: 12px 10px 0 0 !important;
4055
+ padding: 0; }
4056
+ @media screen and (max-width: 480px) {
4057
+ .alm-notification ul.share li {
4058
+ display: block;
4059
+ width: 100%; } }
4060
+ .alm-notification ul.share li a {
4061
+ display: block;
4062
+ line-height: 40px;
 
 
 
 
4063
  height: 40px;
4064
+ width: auto;
4065
+ padding: 0 15px 0 47px;
 
 
 
 
 
 
 
 
4066
  text-decoration: none;
4067
+ color: #fff;
4068
+ text-align: center;
4069
+ background: none;
4070
+ border-radius: 3px;
4071
+ position: relative;
4072
+ font-weight: 600;
4073
+ background: #33cf92;
4074
+ -webkit-box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.075), inset 0 0 1px rgba(255, 255, 255, 0.2);
4075
+ box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.075), inset 0 0 1px rgba(255, 255, 255, 0.2); }
4076
+ @media screen and (min-width: 1500px) {
4077
+ .alm-notification ul.share li a {
4078
+ padding: 0 25px 0 50px; } }
4079
+ .alm-notification ul.share li a:hover {
4080
+ background-color: #45dfa3; }
4081
+ .alm-notification ul.share li a i {
4082
+ font-size: 20px;
4083
+ line-height: 41px;
4084
+ height: 40px;
4085
+ width: 35px;
4086
+ position: absolute;
4087
+ top: 0;
4088
+ left: 0;
4089
+ text-align: center;
4090
+ border-right: 1px solid rgba(0, 0, 0, 0.1);
4091
+ background-color: rgba(0, 0, 0, 0.1);
4092
+ border-radius: 2px 0 0 2px; }
4093
+ .alm-notification ul.share li a:hover,
4094
+ .alm-notification ul.share li a:hover i {
4095
+ text-decoration: none;
4096
+ color: #fff !important; }
4097
+ .alm-notification ul.share li a:hover span,
4098
+ .alm-notification ul.share li a:hover i span {
4099
+ text-decoration: none; }
4100
+ .alm-notification ul.share li.twitter a {
4101
+ background: #00aced; }
4102
+ .alm-notification ul.share li.twitter a:hover {
4103
+ background: #13beff !important; }
4104
+ .alm-notification ul.share li.facebook a {
4105
+ background: #3b5998; }
4106
+ .alm-notification ul.share li.facebook a:hover {
4107
+ background: #466cbc !important; }
4108
+ .alm-notification a.dismiss {
4109
+ position: absolute;
4110
+ right: 3px;
4111
+ top: 3px;
4112
+ text-decoration: none;
4113
+ width: 30px;
4114
+ height: 30px;
4115
+ line-height: 30px;
4116
+ padding: 0;
4117
+ text-align: center;
4118
+ color: #fff;
4119
+ border-right: none;
4120
+ border-top: none;
4121
+ display: block;
4122
+ font-size: 24px;
4123
+ font-weight: 300;
4124
+ opacity: 0.3; }
4125
+ .alm-notification a.dismiss:hover, .alm-notification a.dismiss:focus {
4126
+ color: #fff;
4127
+ opacity: 1; }
4128
 
4129
  /*
4130
  * Local templates Add-on
admin/dist/js/admin.js CHANGED
@@ -1273,438 +1273,433 @@ window.onload = function () {
1273
  var _alm = _alm || {};
1274
 
1275
  jQuery(document).ready(function ($) {
1276
- "use strict";
1277
 
1278
- /*
1279
- * _alm.saveSettings
1280
- * Setting panel save actions
1281
- *
1282
- * @since 3.2.0
1283
- */
1284
 
1285
- var almSettings = $('#alm_OptionsForm'),
1286
- savingSettings = false,
1287
- settingsForm = document.querySelector('#alm_OptionsForm'),
1288
- settingsTarget = document.querySelector('.alm-settings-feedback');
 
 
1289
 
1290
- if (settingsForm) {
1291
- document.body.appendChild(settingsTarget);
1292
- }
 
1293
 
1294
- _alm.saveSettings = function () {
 
 
1295
 
1296
- if (savingSettings) return false;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1297
 
1298
- savingSettings = true;
1299
- settingsForm.classList.add('--saving');
1300
- settingsTarget.classList.add('--saving');
1301
- settingsTarget.innerHTML = alm_admin_localize.settings_saving;
 
 
1302
 
1303
- almSettings.ajaxSubmit({
 
 
 
1304
 
1305
- // Success
1306
- success: function success() {
 
 
 
 
 
 
 
 
 
 
 
 
1307
 
1308
- // Delay for effect
1309
- setTimeout(function () {
1310
- settingsTarget.classList.remove('--saving');
1311
- settingsTarget.classList.add('--saved');
1312
- settingsTarget.innerHTML = alm_admin_localize.settings_saved;
1313
- settingsForm.classList.remove('--saving');
1314
- //console.log(alm_admin_localize.ajax_load_more +' - '+ alm_admin_localize.settings_saved);
1315
- savingSettings = false;
1316
-
1317
- setTimeout(function () {
1318
- settingsTarget.classList.remove('--saved');
1319
- }, 2500);
1320
- }, 1000);
1321
- },
1322
-
1323
- // Error
1324
- error: function error() {
1325
-
1326
- // Delay for effect
1327
- setTimeout(function () {
1328
- settingsTarget.classList.remove('--saving');
1329
- settingsTarget.classList.add('--error');
1330
- settingsTarget.innerHTML = alm_admin_localize.settings_error;
1331
- settingsForm.classList.remove('--saving');
1332
- console.log(alm_admin_localize.ajax_load_more + ' - ' + alm_admin_localize.settings_error);
1333
- savingSettings = false;
1334
-
1335
- setTimeout(function () {
1336
- settingsTarget.classList.remove('--error');
1337
- }, 2500);
1338
- }, 1000);
1339
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1340
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1341
  return false;
1342
- };
1343
-
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 () {
1350
- _alm.saveSettings();
1351
- }, 500);
1352
- });
1353
-
1354
- /*
1355
- * Tooltipster
1356
- * http://iamceege.github.io/tooltipster/
1357
- *
1358
- * @since 2.8.4
1359
- */
1360
-
1361
- $('body').on('mouseenter', '.tooltip:not(.tooltipstered)', function () {
1362
- $(this).tooltipster({
1363
- delay: 100,
1364
- speed: 150,
1365
- maxWidth: 325
1366
- }).tooltipster('show');
1367
- });
1368
-
1369
- /*
1370
- * Button preview pane
1371
- * Found on Settings and Shortcode Builder
1372
- *
1373
- * @since 2.8.4
1374
- */
1375
-
1376
- $("select#alm_settings_btn_color").change(function () {
1377
- var color = jQuery(this).val();
1378
- // Remove other colors
1379
- $('.ajax-load-more-wrap.core.preview-pane').removeClass('none');
1380
- $('.ajax-load-more-wrap.core').removeClass('default');
1381
- $('.ajax-load-more-wrap.core').removeClass('grey');
1382
- $('.ajax-load-more-wrap.core').removeClass('purple');
1383
- $('.ajax-load-more-wrap.core').removeClass('green');
1384
- $('.ajax-load-more-wrap.core').removeClass('red');
1385
- $('.ajax-load-more-wrap.core').removeClass('blue');
1386
- $('.ajax-load-more-wrap.core').removeClass('white');
1387
- $('.ajax-load-more-wrap.core').removeClass('infinite');
1388
- $('.ajax-load-more-wrap.core').removeClass('skype');
1389
- $('.ajax-load-more-wrap.core').removeClass('ring');
1390
- $('.ajax-load-more-wrap.core').removeClass('fading-blocks');
1391
- $('.ajax-load-more-wrap.core').removeClass('fading-circles');
1392
- $('.ajax-load-more-wrap.core').removeClass('chasing-arrows');
1393
- $('.ajax-load-more-wrap.core').addClass(color);
1394
- });
1395
- $("select#alm_settings_btn_color").click(function (e) {
1396
- e.preventDefault();
1397
- });
1398
-
1399
- $('.alm-template-listing li a').click(function (e) {
1400
- e.preventDefault();
1401
- var el = $(this),
1402
- val = el.data('path');
1403
- el.parent().parent().next('.template-selection').val(val);
1404
- });
1405
 
1406
- $('.alm-template-section-nav li a').click(function (e) {
1407
- e.preventDefault();
 
 
 
 
 
 
 
 
 
 
1408
  var el = $(this),
1409
- index = el.parent().index(),
1410
- parent = el.parent().parent().parent('.repeater-wrap');
 
 
 
 
 
 
 
1411
 
1412
- if (!el.hasClass('active')) {
1413
- el.parent().addClass('active').siblings().removeClass('active');
1414
- $('.alm-template-toggle', parent).hide();
1415
- $('.alm-template-toggle', parent).eq(index).show();
1416
- }
1417
- });
1418
-
1419
- /*
1420
- * _alm.copyToClipboard
1421
- * Copy shortcode to clipboard
1422
- *
1423
- * @since 2.0.0
1424
- */
1425
-
1426
- _alm.copyToClipboard = function (text) {
1427
- window.prompt("Copy link to your clipboard: Press Ctrl + C then hit Enter to copy.", text);
1428
- };
1429
-
1430
- // Copy link on shortcode builder
1431
- $('.copy-to-clipboard').on('click', function () {
1432
- var c = $('#shortcode_output').html();
1433
- _alm.copyToClipboard(c);
1434
- });
1435
-
1436
- // Copy link on repeater templates
1437
- $('.alm-dropdown .copy a').click(function () {
1438
- var container = $(this).closest('.repeater-wrap'),
1439
- // find closet wrap
1440
- el = container.data('name'); // get template name
1441
-
1442
- if (el === 'default') el = 'template-default';
1443
- var c = $('#' + el).val(); // Get textarea val()
1444
- _alm.copyToClipboard(c);
1445
- });
1446
-
1447
- /*
1448
- * Expand/Collapse shortcode headings
1449
- *
1450
- * @since 2.0.0
1451
- */
1452
-
1453
- $(document).on('click', 'h3.heading', function () {
1454
- var el = $(this);
1455
- if ($(el).hasClass('open')) {
1456
- $(el).next('.expand-wrap').slideDown(100, 'alm_easeInOutQuad', function () {
1457
- $(el).removeClass('open');
1458
- });
1459
- } else {
1460
- $(el).next('.expand-wrap').slideUp(100, 'alm_easeInOutQuad', function () {
1461
- $(el).addClass('open');
1462
- });
1463
- }
1464
- });
1465
 
1466
- $(document).on('click', '.toggle-all', function () {
1467
- var el = $(this),
1468
- type = el.data('id');
1469
- if ($(el).hasClass('closed')) {
1470
- $(el).removeClass('closed');
1471
- $('h3.heading').removeClass('open');
1472
- $('.expand-wrap').slideDown(100, 'alm_easeInOutQuad');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1473
  } else {
1474
- $(el).addClass('closed');
1475
- $('h3.heading').addClass('open');
1476
- $('.expand-wrap').slideUp(100, 'alm_easeInOutQuad');
1477
- }
1478
- });
1479
-
1480
- /*
1481
- * Activate License
1482
- *
1483
- * @since 2.8.3
1484
- */
1485
-
1486
- var almActivating = false;
1487
- $(document).on('click', '.license-btn', function (e) {
1488
- e.preventDefault();
1489
- if (!almActivating) {
1490
- $('.license-btn-wrap .msg').remove();
1491
- almActivating = true;
1492
- var el = $(this),
1493
- wrap = el.closest('.license-btn-wrap'),
1494
- parent = el.closest('.license'),
1495
- type = el.data('type'),
1496
- item = wrap.data('name'),
1497
- url = wrap.data('url'),
1498
- upgrade = wrap.data('upgrade-url'),
1499
- status = wrap.data('option-status'),
1500
- key = wrap.data('option-key'),
1501
- license = parent.find('input[type=text]').val();
1502
-
1503
- $('.loading', parent).fadeIn(300);
1504
-
1505
- // Get value from Ajax
1506
- $.ajax({
1507
- type: 'GET',
1508
- url: alm_admin_localize.ajax_admin_url,
1509
- dataType: 'json',
1510
-
1511
- data: {
1512
- action: 'alm_license_activation',
1513
- nonce: alm_admin_localize.alm_admin_nonce,
1514
- type: type,
1515
- item: item,
1516
- status: status,
1517
- url: url,
1518
- upgrade: upgrade,
1519
- key: key,
1520
- license: license
1521
- },
1522
-
1523
- success: function success(data) {
1524
-
1525
- //console.log(data);
1526
-
1527
- if (data.msg) {
1528
- $('.license-btn-wrap', parent).append('<div class="msg">' + data.msg + '</div>');
1529
- }
1530
-
1531
- if (data.license === 'valid') {
1532
- $('.license-key-field .status', parent).addClass('active').removeClass('inactive').text(alm_admin_localize.active);
1533
- $('.license-title .status', parent).addClass('valid').removeClass('invalid');
1534
- $('.activate.license-btn', parent).addClass('hide');
1535
- $('.deactivate.license-btn', parent).removeClass('hide');
1536
- $('.no-license', parent).slideUp(200);
1537
- } else {
1538
- $('.license-key-field .status', parent).removeClass('active').addClass('inactive').text(alm_admin_localize.inactive);
1539
- $('.license-title .status', parent).removeClass('valid').addClass('invalid');
1540
- $('.activate.license-btn', parent).removeClass('hide');
1541
- $('.deactivate.license-btn', parent).addClass('hide');
1542
- $('.no-license', parent).slideDown(200);
1543
- }
1544
-
1545
- $('.loading', parent).delay(250).fadeOut(300);
1546
- almActivating = false;
1547
- },
1548
- error: function error(xhr, status, _error) {
1549
- console.log(status);
1550
- $('.loading', parent).delay(250).fadeOut(300);
1551
- almActivating = false;
1552
- }
1553
- });
1554
  }
1555
- });
1556
-
1557
- /*
1558
- * Get layout value Ajax
1559
- *
1560
- * @since 2.8.7
1561
- */
1562
- $(document).on('click', '.alm-layout-selection li a.layout', function (e) {
1563
- e.preventDefault();
1564
- var el = $(this),
1565
- type = el.data('type'),
1566
- custom = el.hasClass('custom') ? 'true' : 'false',
1567
- textarea = el.closest('.repeater-wrap').find('.CodeMirror'),
1568
- layout_btn_text = el.html(),
1569
- name = el.closest('.repeater-wrap').data('name');
1570
-
1571
- if (!el.hasClass('updating')) {
1572
-
1573
- el.addClass('updating').text(alm_admin_localize.applying_layout + "...");
1574
- textarea.addClass('loading');
1575
-
1576
- // Get Codemirror Editor ID
1577
- var eid = '';
1578
- if (name === 'default') {
1579
- // Default Template
1580
- eid = window.editorDefault;
1581
- } else {
1582
- // Repeater Templates
1583
- eid = window['editor_' + name];
1584
- }
1585
-
1586
- // Get value from Ajax
1587
- $.ajax({
1588
- type: 'GET',
1589
- url: alm_admin_localize.ajax_admin_url,
1590
- data: {
1591
- action: 'alm_get_layout',
1592
- type: type,
1593
- custom: custom,
1594
- nonce: alm_admin_localize.alm_admin_nonce
1595
- },
1596
- dataType: "JSON",
1597
- success: function success(data) {
1598
-
1599
- eid.setValue(data.value);
1600
-
1601
- // Clear button styles
1602
- setTimeout(function () {
1603
- el.text(alm_admin_localize.template_updated).blur();
1604
- setTimeout(function () {
1605
- el.removeClass('updating').html(layout_btn_text).blur(); // CLose drop menu
1606
- el.closest('.alm-drop-btn').trigger('click');
1607
- textarea.removeClass('loading');
1608
- }, 400);
1609
- }, 400);
1610
- },
1611
- error: function error(xhr, status, _error2) {
1612
- console.log(status);
1613
- textarea.removeClass('loading');
1614
- }
1615
- });
1616
- }
1617
- });
1618
-
1619
- /*
1620
- * Dismiss Sharing (Transient)
1621
- *
1622
- * @since 2.8.7
1623
- */
1624
- $(document).on('click', '#alm_dismiss_sharing', function (e) {
1625
- e.preventDefault();
1626
- var el = $(this),
1627
- container = el.parent('.group');
1628
  // Get value from Ajax
1629
  $.ajax({
1630
- type: 'POST',
1631
- url: alm_admin_localize.ajax_admin_url,
1632
- data: {
1633
- action: 'alm_dismiss_sharing',
1634
- nonce: alm_admin_localize.alm_admin_nonce
1635
- },
1636
- success: function success(data) {
1637
- container.fadeOut();
1638
- },
1639
- error: function error(xhr, status, _error3) {
1640
- console.log(status);
1641
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1642
  });
1643
- });
1644
-
1645
- /*
1646
- * Scroll to setting section
1647
- *
1648
- * @since 2.7.3
1649
- */
1650
 
1651
- $(document).on('change', '#alm-settings-nav', function (e) {
1652
- e.preventDefault();
1653
- var el = $(this),
1654
- index = $('option:selected', el).index();
1655
- if (index !== '#') {
1656
- index = index - 1;
1657
- $('html, body').animate({
1658
- scrollTop: $("#alm_OptionsForm h2").eq(index).offset().top - 40
1659
- }, 500);
 
 
 
 
 
 
 
 
 
 
 
 
1660
  }
1661
- });
1662
-
1663
- /*
1664
- * equalheight()
1665
- *
1666
- * @since 2.7.3
1667
- */
1668
-
1669
- function equalheight(container) {
1670
-
1671
- var currentTallest = 0,
1672
- currentRowStart = 0,
1673
- rowDivs = [],
1674
- $el,
1675
- topPosition = 0;
1676
-
1677
- $(container).each(function () {
1678
- $el = $(this);
1679
- $($el).height('auto');
1680
- topPosition = $el.position().top;
1681
-
1682
- if (currentRowStart != topPosition) {
1683
- for (var currentDiv = 0; currentDiv < rowDivs.length; currentDiv++) {
1684
- rowDivs[currentDiv].height(currentTallest);
1685
- }
1686
- rowDivs.length = 0; // empty the array
1687
- currentRowStart = topPosition;
1688
- currentTallest = $el.height();
1689
- rowDivs.push($el);
1690
- } else {
1691
- rowDivs.push($el);
1692
- currentTallest = currentTallest < $el.height() ? $el.height() : currentTallest;
1693
- }
1694
- for (var currentDivs = 0; currentDivs < rowDivs.length; currentDivs++) {
1695
- rowDivs[currentDivs].height(currentTallest);
1696
- }
1697
- });
1698
- }
1699
- if ($('#alm-add-ons').length) {
1700
- var addOnColumns = $('#alm-add-ons .group .expand-wrap');
1701
- $(window).load(function () {
1702
- //equalheight(addOnColumns);
1703
- });
1704
- $(window).resize(function () {
1705
- setTimeout(function () {
1706
- //equalheight(addOnColumns);
1707
- }, 500);
1708
- });
1709
- }
1710
  });
1273
  var _alm = _alm || {};
1274
 
1275
  jQuery(document).ready(function ($) {
1276
+ "use strict";
1277
 
1278
+ _alm.options = {
1279
+ speed: 200
1280
+ };
 
 
 
1281
 
1282
+ /*
1283
+ * _alm.saveSettings
1284
+ * Setting panel save actions
1285
+ *
1286
+ * @since 3.2.0
1287
+ */
1288
 
1289
+ var almSettings = $('#alm_OptionsForm'),
1290
+ savingSettings = false,
1291
+ settingsForm = document.querySelector('#alm_OptionsForm'),
1292
+ settingsTarget = document.querySelector('.alm-settings-feedback');
1293
 
1294
+ if (settingsForm) {
1295
+ document.body.appendChild(settingsTarget);
1296
+ }
1297
 
1298
+ _alm.saveSettings = function () {
1299
+
1300
+ if (savingSettings) return false;
1301
+
1302
+ savingSettings = true;
1303
+ settingsForm.classList.add('--saving');
1304
+ settingsTarget.classList.add('--saving');
1305
+ settingsTarget.innerHTML = alm_admin_localize.settings_saving;
1306
+
1307
+ almSettings.ajaxSubmit({
1308
+
1309
+ // Success
1310
+ success: function success() {
1311
+
1312
+ // Delay for effect
1313
+ setTimeout(function () {
1314
+ settingsTarget.classList.remove('--saving');
1315
+ settingsTarget.classList.add('--saved');
1316
+ settingsTarget.innerHTML = alm_admin_localize.settings_saved;
1317
+ settingsForm.classList.remove('--saving');
1318
+ //console.log(alm_admin_localize.ajax_load_more +' - '+ alm_admin_localize.settings_saved);
1319
+ savingSettings = false;
1320
+
1321
+ setTimeout(function () {
1322
+ settingsTarget.classList.remove('--saved');
1323
+ }, 2500);
1324
+ }, 1000);
1325
+ },
1326
+
1327
+ // Error
1328
+ error: function error() {
1329
+
1330
+ // Delay for effect
1331
+ setTimeout(function () {
1332
+ settingsTarget.classList.remove('--saving');
1333
+ settingsTarget.classList.add('--error');
1334
+ settingsTarget.innerHTML = alm_admin_localize.settings_error;
1335
+ settingsForm.classList.remove('--saving');
1336
+ console.log(alm_admin_localize.ajax_load_more + ' - ' + alm_admin_localize.settings_error);
1337
+ savingSettings = false;
1338
+
1339
+ setTimeout(function () {
1340
+ settingsTarget.classList.remove('--error');
1341
+ }, 2500);
1342
+ }, 1000);
1343
+ }
1344
+ });
1345
+ return false;
1346
+ };
1347
+
1348
+ // On Change, save the settings
1349
+ var settingsTimer = void 0;
1350
+ $(document).on('change', '#alm_OptionsForm input, #alm_OptionsForm textarea, #alm_OptionsForm select', function () {
1351
+ // Set a timer to avoid updating settings to frequently
1352
+ if (settingsTimer) clearTimeout(settingsTimer);
1353
+ settingsTimer = setTimeout(function () {
1354
+ _alm.saveSettings();
1355
+ }, 500);
1356
+ });
1357
 
1358
+ /*
1359
+ * Download Repeater Template
1360
+ * Trigger the download of a repeater template from the admin
1361
+ *
1362
+ * @since 3.6
1363
+ */
1364
 
1365
+ $('.download-repeater').on('click', function (e) {
1366
+ var el = this;
1367
+ el.closest('form').submit();
1368
+ });
1369
 
1370
+ /*
1371
+ * Tooltipster
1372
+ * http://iamceege.github.io/tooltipster/
1373
+ *
1374
+ * @since 2.8.4
1375
+ */
1376
+
1377
+ $('body').on('mouseenter', '.tooltip:not(.tooltipstered)', function () {
1378
+ $(this).tooltipster({
1379
+ delay: 100,
1380
+ speed: 150,
1381
+ maxWidth: 325
1382
+ }).tooltipster('show');
1383
+ });
1384
 
1385
+ /*
1386
+ * Button preview pane
1387
+ * Found on Settings and Shortcode Builder
1388
+ *
1389
+ * @since 2.8.4
1390
+ */
1391
+
1392
+ $("select#alm_settings_btn_color").change(function () {
1393
+ var color = jQuery(this).val();
1394
+ // Remove other colors
1395
+ $('.ajax-load-more-wrap.core.preview-pane').removeClass('none');
1396
+ $('.ajax-load-more-wrap.core').removeClass('default');
1397
+ $('.ajax-load-more-wrap.core').removeClass('grey');
1398
+ $('.ajax-load-more-wrap.core').removeClass('purple');
1399
+ $('.ajax-load-more-wrap.core').removeClass('green');
1400
+ $('.ajax-load-more-wrap.core').removeClass('red');
1401
+ $('.ajax-load-more-wrap.core').removeClass('blue');
1402
+ $('.ajax-load-more-wrap.core').removeClass('white');
1403
+ $('.ajax-load-more-wrap.core').removeClass('infinite');
1404
+ $('.ajax-load-more-wrap.core').removeClass('skype');
1405
+ $('.ajax-load-more-wrap.core').removeClass('ring');
1406
+ $('.ajax-load-more-wrap.core').removeClass('fading-blocks');
1407
+ $('.ajax-load-more-wrap.core').removeClass('fading-circles');
1408
+ $('.ajax-load-more-wrap.core').removeClass('chasing-arrows');
1409
+ $('.ajax-load-more-wrap.core').addClass(color);
1410
+ });
1411
+ $("select#alm_settings_btn_color").click(function (e) {
1412
+ e.preventDefault();
1413
+ });
1414
+
1415
+ $('.alm-template-listing li a').click(function (e) {
1416
+ e.preventDefault();
1417
+ var el = $(this),
1418
+ val = el.data('path');
1419
+ el.parent().parent().next('.template-selection').val(val);
1420
+ });
1421
+
1422
+ $('.alm-template-section-nav li a').click(function (e) {
1423
+ e.preventDefault();
1424
+ var el = $(this),
1425
+ index = el.parent().index(),
1426
+ parent = el.parent().parent().parent('.repeater-wrap');
1427
+
1428
+ if (!el.hasClass('active')) {
1429
+ el.parent().addClass('active').siblings().removeClass('active');
1430
+ $('.alm-template-toggle', parent).hide();
1431
+ $('.alm-template-toggle', parent).eq(index).show();
1432
+ }
1433
+ });
1434
+
1435
+ /*
1436
+ * _alm.copyToClipboard
1437
+ * Copy shortcode to clipboard
1438
+ *
1439
+ * @since 2.0.0
1440
+ */
1441
+
1442
+ _alm.copyToClipboard = function (text) {
1443
+ window.prompt("Copy link to your clipboard: Press Ctrl + C then hit Enter to copy.", text);
1444
+ };
1445
+
1446
+ // Copy link on shortcode builder
1447
+ $('.copy-to-clipboard').on('click', function () {
1448
+ var c = $('#shortcode_output').html();
1449
+ _alm.copyToClipboard(c);
1450
+ });
1451
+
1452
+ // Copy link on repeater templates
1453
+ $('.alm-dropdown .copy a').click(function () {
1454
+ var container = $(this).closest('.repeater-wrap'),
1455
+ // find closet wrap
1456
+ el = container.data('name'); // get template name
1457
+
1458
+ if (el === 'default') el = 'template-default';
1459
+ var c = $('#' + el).val(); // Get textarea val()
1460
+ _alm.copyToClipboard(c);
1461
+ });
1462
+
1463
+ /*
1464
+ * Expand/Collapse shortcode headings
1465
+ *
1466
+ * @since 2.0.0
1467
+ */
1468
+
1469
+ $(document).on('click', 'h2.shortcode-title', function () {
1470
+ var el = $(this);
1471
+ var parent = el.closest('.shortcode-parameter-wrap');
1472
+ if (el.hasClass('open')) {
1473
+ el.next('.section-wrap').slideDown(_alm.options.speed, 'alm_easeInOutQuad', function () {
1474
+ el.removeClass('open');
1475
+ parent.removeClass('closed');
1476
+ });
1477
+ } else {
1478
+ el.next('.section-wrap').slideUp(_alm.options.speed, 'alm_easeInOutQuad', function () {
1479
+ el.addClass('open');
1480
+ parent.addClass('closed');
1481
  });
1482
+ }
1483
+ });
1484
+
1485
+ $(document).on('click', 'h3.heading', function () {
1486
+ var el = $(this);
1487
+ if ($(el).hasClass('open')) {
1488
+ $(el).next('.expand-wrap').slideDown(_alm.options.speed, 'alm_easeInOutQuad', function () {
1489
+ $(el).removeClass('open');
1490
+ });
1491
+ } else {
1492
+ $(el).next('.expand-wrap').slideUp(_alm.options.speed, 'alm_easeInOutQuad', function () {
1493
+ $(el).addClass('open');
1494
+ });
1495
+ }
1496
+ });
1497
+
1498
+ $(document).on('click', '.toggle-all', function () {
1499
+ var el = $(this),
1500
+ type = el.data('id');
1501
+ if (el.hasClass('closed')) {
1502
+ el.removeClass('closed');
1503
+
1504
+ $('h2.shortcode-title').closest('.shortcode-parameter-wrap').removeClass('closed');
1505
+ $('h3.heading, h2.shortcode-title').removeClass('open');
1506
+ $('.section-wrap').slideDown(_alm.options.speed, 'alm_easeInOutQuad');
1507
+ $('.expand-wrap').slideDown(_alm.options.speed, 'alm_easeInOutQuad');
1508
+ } else {
1509
+ el.addClass('closed');
1510
+
1511
+ $('h2.shortcode-title').closest('.shortcode-parameter-wrap').addClass('closed');
1512
+ $('h3.heading, h2.shortcode-title').addClass('open');
1513
+ $('.section-wrap').slideUp(_alm.options.speed, 'alm_easeInOutQuad');
1514
+ $('.expand-wrap').slideUp(_alm.options.speed, 'alm_easeInOutQuad');
1515
+ }
1516
+ });
1517
+
1518
+ // Trigger click events on enter/return
1519
+ $('h3.heading, h2.shortcode-title').keypress(function (e) {
1520
+ var key = e.which;
1521
+ if (key == 13) {
1522
+ // the enter key code
1523
+ $(this).click();
1524
  return false;
1525
+ }
1526
+ });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1527
 
1528
+ /*
1529
+ * Activate License
1530
+ *
1531
+ * @since 2.8.3
1532
+ */
1533
+
1534
+ var almActivating = false;
1535
+ $(document).on('click', '.license-btn', function (e) {
1536
+ e.preventDefault();
1537
+ if (!almActivating) {
1538
+ $('.license-btn-wrap .msg').remove();
1539
+ almActivating = true;
1540
  var el = $(this),
1541
+ wrap = el.closest('.license-btn-wrap'),
1542
+ parent = el.closest('.license'),
1543
+ type = el.data('type'),
1544
+ item = wrap.data('name'),
1545
+ url = wrap.data('url'),
1546
+ upgrade = wrap.data('upgrade-url'),
1547
+ status = wrap.data('option-status'),
1548
+ key = wrap.data('option-key'),
1549
+ license = parent.find('input[type=text]').val();
1550
 
1551
+ $('.loading', parent).fadeIn(300);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1552
 
1553
+ // Get value from Ajax
1554
+ $.ajax({
1555
+ type: 'GET',
1556
+ url: alm_admin_localize.ajax_admin_url,
1557
+ dataType: 'json',
1558
+
1559
+ data: {
1560
+ action: 'alm_license_activation',
1561
+ nonce: alm_admin_localize.alm_admin_nonce,
1562
+ type: type,
1563
+ item: item,
1564
+ status: status,
1565
+ url: url,
1566
+ upgrade: upgrade,
1567
+ key: key,
1568
+ license: license
1569
+ },
1570
+
1571
+ success: function success(data) {
1572
+
1573
+ if (data.msg) {
1574
+ $('.license-btn-wrap', parent).append('<div class="msg">' + data.msg + '</div>');
1575
+ }
1576
+
1577
+ if (data.license === 'valid') {
1578
+ $('.license-key-field .status', parent).addClass('active').removeClass('inactive').text(alm_admin_localize.active);
1579
+ $('.license-title .status', parent).addClass('valid').removeClass('invalid');
1580
+ $('.activate.license-btn', parent).addClass('hide');
1581
+ $('.deactivate.license-btn', parent).removeClass('hide');
1582
+ $('.no-license', parent).slideUp(200);
1583
+ } else {
1584
+ $('.license-key-field .status', parent).removeClass('active').addClass('inactive').text(alm_admin_localize.inactive);
1585
+ $('.license-title .status', parent).removeClass('valid').addClass('invalid');
1586
+ $('.activate.license-btn', parent).removeClass('hide');
1587
+ $('.deactivate.license-btn', parent).addClass('hide');
1588
+ $('.no-license', parent).slideDown(200);
1589
+ }
1590
+
1591
+ $('.loading', parent).delay(250).fadeOut(300);
1592
+ almActivating = false;
1593
+ },
1594
+ error: function error(xhr, status, _error) {
1595
+ console.log(status);
1596
+ $('.loading', parent).delay(250).fadeOut(300);
1597
+ almActivating = false;
1598
+ }
1599
+ });
1600
+ }
1601
+ });
1602
+
1603
+ /*
1604
+ * Get layout value Ajax
1605
+ * @since 2.8.7
1606
+ */
1607
+ $(document).on('click', '.alm-layout-selection li a.layout', function (e) {
1608
+ e.preventDefault();
1609
+ var el = $(this),
1610
+ type = el.data('type'),
1611
+ custom = el.hasClass('custom') ? 'true' : 'false',
1612
+ textarea = el.closest('.repeater-wrap').find('.CodeMirror'),
1613
+ layout_btn_text = el.html(),
1614
+ name = el.closest('.repeater-wrap').data('name');
1615
+
1616
+ if (!el.hasClass('updating')) {
1617
+
1618
+ el.addClass('updating').text(alm_admin_localize.applying_layout + "...");
1619
+ textarea.addClass('loading');
1620
+
1621
+ // Get Codemirror Editor ID
1622
+ var eid = '';
1623
+ if (name === 'default') {
1624
+ // Default Template
1625
+ eid = window.editorDefault;
1626
  } else {
1627
+ // Repeater Templates
1628
+ eid = window['editor_' + name];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1629
  }
1630
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1631
  // Get value from Ajax
1632
  $.ajax({
1633
+ type: 'GET',
1634
+ url: alm_admin_localize.ajax_admin_url,
1635
+ data: {
1636
+ action: 'alm_get_layout',
1637
+ type: type,
1638
+ custom: custom,
1639
+ nonce: alm_admin_localize.alm_admin_nonce
1640
+ },
1641
+ dataType: "JSON",
1642
+ success: function success(data) {
1643
+
1644
+ eid.setValue(data.value);
1645
+
1646
+ // Clear button styles
1647
+ setTimeout(function () {
1648
+ el.text(alm_admin_localize.template_updated).blur();
1649
+ setTimeout(function () {
1650
+ el.removeClass('updating').html(layout_btn_text).blur(); // CLose drop menu
1651
+ el.closest('.alm-drop-btn').trigger('click');
1652
+ textarea.removeClass('loading');
1653
+ }, 400);
1654
+ }, 400);
1655
+ },
1656
+ error: function error(xhr, status, _error2) {
1657
+ console.log(status);
1658
+ textarea.removeClass('loading');
1659
+ }
1660
  });
1661
+ }
1662
+ });
 
 
 
 
 
1663
 
1664
+ /*
1665
+ * Dismiss Sharing (Transient)
1666
+ * @since 2.8.7
1667
+ */
1668
+ $(document).on('click', '.alm-notification--dismiss', function (e) {
1669
+ e.preventDefault();
1670
+ var el = $(this),
1671
+ container = el.parent('.group');
1672
+ // Get value from Ajax
1673
+ $.ajax({
1674
+ type: 'POST',
1675
+ url: alm_admin_localize.ajax_admin_url,
1676
+ data: {
1677
+ action: 'alm_dismiss_sharing',
1678
+ nonce: alm_admin_localize.alm_admin_nonce
1679
+ },
1680
+ success: function success(data) {
1681
+ container.fadeOut();
1682
+ },
1683
+ error: function error(xhr, status, _error3) {
1684
+ console.log(status);
1685
  }
1686
+ });
1687
+ });
1688
+
1689
+ /*
1690
+ * Scroll to setting section
1691
+ * @since 2.7.3
1692
+ */
1693
+
1694
+ $(document).on('change', '#alm-settings-nav', function (e) {
1695
+ e.preventDefault();
1696
+ var el = $(this),
1697
+ index = $('option:selected', el).index();
1698
+ if (index !== '#') {
1699
+ index = index - 1;
1700
+ $('html, body').animate({
1701
+ scrollTop: $("#alm_OptionsForm h2").eq(index).offset().top - 40
1702
+ }, 500);
1703
+ }
1704
+ });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1705
  });
admin/includes/components/layout-list.php CHANGED
@@ -1,6 +1,5 @@
1
- <div class="clear"></div>
2
  <div class="alm-drop-btn alm-layout-selection">
3
- <a href="javascript:void(0);" class="target"><i class="fa fa-caret-down"></i> <?php _e('Layouts', 'ajax-load-more'); ?></a>
4
  <div class="alm-dropdown">
5
  <div class="alm-drop-inner">
6
  <ul>
@@ -19,13 +18,11 @@
19
  <?php
20
 
21
  include( ALM_PATH . 'admin/includes/components/custom-layouts.php'); // Custom Layouts
22
-
23
  echo '<li><a href="https://connekthq.com/plugins/ajax-load-more/add-ons/layouts/?utm_source=WP%20Admin&utm_medium=Extend&utm_campaign=Layouts" class="add-on" target="_blank">';
24
- echo '<i class="fa fa-key"></i>';
25
- _e('Unlock additional layout templates with the <strong>Layouts add-on</strong>', 'ajax-load-more');
26
  echo '</a></li>';
27
  }?>
28
-
29
  </ul>
30
  </div>
31
  </div>
 
1
  <div class="alm-drop-btn alm-layout-selection">
2
+ <a href="javascript:void(0);" class="target"><i class="fa fa-caret-down"></i> <?php _e('Apply Layout', 'ajax-load-more'); ?></a>
3
  <div class="alm-dropdown">
4
  <div class="alm-drop-inner">
5
  <ul>
18
  <?php
19
 
20
  include( ALM_PATH . 'admin/includes/components/custom-layouts.php'); // Custom Layouts
 
21
  echo '<li><a href="https://connekthq.com/plugins/ajax-load-more/add-ons/layouts/?utm_source=WP%20Admin&utm_medium=Extend&utm_campaign=Layouts" class="add-on" target="_blank">';
22
+ echo '<i class="fa fa-key"></i>';
23
+ _e('Get predefined responsive layouts with the <strong>Layouts add-on</strong>', 'ajax-load-more');
24
  echo '</a></li>';
25
  }?>
 
26
  </ul>
27
  </div>
28
  </div>
admin/includes/components/repeater-options.php CHANGED
@@ -1,11 +1,39 @@
 
 
1
  <div class="alm-drop-btn alm-repeater-options">
2
- <a href="javascript:void(0);" class="target"><i class="fa fa-cog"></i> <?php _e('Options', 'ajax-load-more'); ?></a>
 
 
3
  <div class="alm-dropdown">
4
  <div class="alm-drop-inner">
5
  <ul>
6
- <li class="option-update"><a href="javascript:void(0);" title="<?php _e('Update Template from Database', 'ajax-load-more'); ?>"><i class="fa fa-download"></i> <?php _e('Update from Database', 'ajax-load-more'); ?></a></li>
7
- <li class="copy"><a href="javascript:void(0);" title="<?php _e('Copy Template Data', 'ajax-load-more'); ?>"><i class="fa fa-file"></i> <?php _e('Copy Template Data', 'ajax-load-more'); ?></a></li>
8
- </ul>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  </div>
10
  </div>
11
  </div>
 
 
1
+ <?php if(isset($repeater_options)){ ?>
2
+
3
  <div class="alm-drop-btn alm-repeater-options">
4
+ <a href="javascript:void(0);" class="target">
5
+ <i class="fa fa-cog"></i><span class="offscreen"><?php _e('Options', 'ajax-load-more'); ?></span>
6
+ </a>
7
  <div class="alm-dropdown">
8
  <div class="alm-drop-inner">
9
  <ul>
10
+
11
+ <?php if($repeater_options['type'] !== 'theme-repeater'){ ?>
12
+ <li class="option-update">
13
+ <a href="javascript:void(0);" title="<?php _e('Update Template from Database', 'ajax-load-more'); ?>"><i class="fa fa-pencil"></i> <?php _e('Update from Database', 'ajax-load-more'); ?></a>
14
+ </li>
15
+ <?php } ?>
16
+
17
+ <?php if(isset($repeater_options['path'])){
18
+ $path = str_replace('/', '_', $repeater_options['path']);
19
+ ?>
20
+ <li class="download">
21
+ <form action="" method="POST" id="<?php echo $path; ?>">
22
+ <input type="hidden" name="alm_repeaters_export" value="<?php echo $repeater_options['path']; ?>">
23
+ <a href="javascript:void(0);" title="<?php _e('Download Template', 'ajax-load-more'); ?>" class="download-repeater">
24
+ <i class="fa fa-download"></i> <?php _e('Download Template', 'ajax-load-more'); ?>
25
+ </a>
26
+ </form>
27
+ </li>
28
+ <?php } ?>
29
+
30
+ <li class="copy">
31
+ <a href="javascript:void(0);" title="<?php _e('Copy Template Data', 'ajax-load-more'); ?>"><i class="fa fa-file"></i> <?php _e('Copy Template Data', 'ajax-load-more'); ?></a>
32
+ </li>
33
+
34
+ </ul>
35
  </div>
36
  </div>
37
  </div>
38
+
39
+ <?php } ?>
admin/includes/cta/about.php CHANGED
@@ -1,16 +1,7 @@
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
-
6
- <li>
7
- <a target="blank" href="https://connekthq.com/plugins/broadcast/">
8
- <img src="<?php echo ALM_ADMIN_URL; ?>img/logos/broadcast-48x48.png" alt="">
9
- <strong>Broadcast</strong>
10
- <span>Manage and display WordPress call to actions with Broadcast.</span>
11
- </a>
12
- </li>
13
- -->
14
  <li>
15
  <a target="blank" href="https://connekthq.com/plugins/easy-query/">
16
  <img src="<?php echo ALM_ADMIN_URL; ?>img/logos/eq-48x48.png" alt="">
1
  <div class="cta">
2
+ <h3><?php _e('Our Other Plugins', 'ajax-load-more'); ?></h3>
3
  <div class="cta-inner">
4
+ <ul class="project-listing">
 
 
 
 
 
 
 
 
 
5
  <li>
6
  <a target="blank" href="https://connekthq.com/plugins/easy-query/">
7
  <img src="<?php echo ALM_ADMIN_URL; ?>img/logos/eq-48x48.png" alt="">
admin/includes/cta/extend.php CHANGED
@@ -1 +1,7 @@
1
- <div class="clear"></div><div class="call-out"><?php _e('Unlock additional templates with the <a href="https://connekthq.com/plugins/ajax-load-more/add-ons/custom-repeaters/?utm_source=WP%20Admin&utm_medium=CustomRepeaters%20Extend&utm_campaign=Custom%20Repeaters" target="_parent">Custom Repeaters add-on</a>', 'ajax-load-more'); ?> <a class="cnkt-button" href="https://connekthq.com/plugins/ajax-load-more/add-ons/custom-repeaters/?utm_source=WP%20Admin&utm_medium=CustomRepeaters%20Extend&utm_campaign=Custom%20Repeaters" target="_blank"><?php _e('More Info', 'ajax-load-more'); ?></a></div>
 
 
 
 
 
 
1
+ <div class="clear"></div>
2
+ <div class="call-out">
3
+ <?php _e('Unlock additional templates with the <a href="https://connekthq.com/plugins/ajax-load-more/add-ons/custom-repeaters/?utm_source=WP%20Admin&utm_medium=CustomRepeaters%20Extend&utm_campaign=Custom%20Repeaters" target="_parent">Custom Repeaters add-on</a>', 'ajax-load-more'); ?>
4
+ <a class="cnkt-button" href="https://connekthq.com/plugins/ajax-load-more/add-ons/custom-repeaters/?utm_source=WP%20Admin&utm_medium=CustomRepeaters%20Extend&utm_campaign=Custom%20Repeaters" target="_blank">
5
+ <?php _e('More Info', 'ajax-load-more'); ?>
6
+ </a>
7
+ </div>
admin/shortcode-builder/components/acf.php CHANGED
@@ -1,6 +1,6 @@
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>
1
  <?php if(has_action('alm_acf_installed')){ ?>
2
  <div class="row input cache add-on" id="alm-acf">
3
+ <h3 class="heading" tabindex="0"><?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>
admin/shortcode-builder/components/cache.php CHANGED
@@ -1,6 +1,6 @@
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>
1
  <?php if(has_action('alm_cache_installed')){ ?>
2
  <div class="row input cache add-on" id="alm-cache">
3
+ <h3 class="heading" tabindex="0"><?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>
admin/shortcode-builder/components/comments.php CHANGED
@@ -1,6 +1,6 @@
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>
1
  <?php if(has_action('alm_comments_installed')){ ?>
2
  <div class="row input comments add-on" id="alm-comments">
3
+ <h3 class="heading" tabindex="0"><?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>
admin/shortcode-builder/components/cta.php CHANGED
@@ -1,6 +1,6 @@
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">
1
  <?php if(has_action('alm_cta_installed')){ ?>
2
  <div class="row cta add-on" id="alm-cta">
3
+ <h3 class="heading" tabindex="0"><?php _e('Call to Actions', 'ajax-load-more'); ?></h3>
4
  <div class="expand-wrap">
5
 
6
  <div class="section-title">
admin/shortcode-builder/components/filters.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php if(has_action('alm_filters_installed')){ ?>
2
  <div class="row input filters add-on" id="alm-filters">
3
- <h3 class="heading"><?php _e('Filters', 'ajax-load-more'); ?></h3>
4
  <div class="expand-wrap">
5
  <div class="section-title">
6
  <p><?php _e('Enable filters with this Ajax Load More instance.', 'ajax-load-more'); ?></p>
1
  <?php if(has_action('alm_filters_installed')){ ?>
2
  <div class="row input filters add-on" id="alm-filters">
3
+ <h3 class="heading" tabindex="0"><?php _e('Filters', 'ajax-load-more'); ?></h3>
4
  <div class="expand-wrap">
5
  <div class="section-title">
6
  <p><?php _e('Enable filters with this Ajax Load More instance.', 'ajax-load-more'); ?></p>
admin/shortcode-builder/components/nextpage.php CHANGED
@@ -1,6 +1,6 @@
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>
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" tabindex="0"><?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>
admin/shortcode-builder/components/paging.php CHANGED
@@ -1,6 +1,6 @@
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>
1
  <?php if(has_action('alm_paging_installed')){ ?>
2
  <div class="row input paging add-on" id="alm-paging">
3
+ <h3 class="heading" tabindex="0"><?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>
admin/shortcode-builder/components/preloaded.php CHANGED
@@ -1,6 +1,6 @@
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>
1
  <?php if(has_action('alm_preload_installed')){ ?>
2
  <div class="row input preload add-on" id="alm-preload">
3
+ <h3 class="heading" tabindex="0"><?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>
admin/shortcode-builder/components/previous-post.php CHANGED
@@ -1,6 +1,6 @@
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>
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" tabindex="0"><?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>
admin/shortcode-builder/components/rest-api.php CHANGED
@@ -15,7 +15,7 @@
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>
15
 
16
  ?>
17
  <div class="row input rest add-on" id="alm-rest">
18
+ <h3 class="heading" tabindex="0"><?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>
admin/shortcode-builder/components/seo.php CHANGED
@@ -1,7 +1,7 @@
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>
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" tabindex="0"><?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>
admin/shortcode-builder/components/users.php CHANGED
@@ -1,6 +1,6 @@
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>
1
  <?php if(has_action('alm_users_installed')){ ?>
2
  <div class="row input users add-on" id="alm-users">
3
+ <h3 class="heading" tabindex="0"><?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>
admin/shortcode-builder/shortcode-builder.php CHANGED
@@ -20,550 +20,551 @@
20
  if(alm_has_addon_shortcodes()) : ?>
21
 
22
  <div class="shortcode-parameter-wrap">
23
- <h2 class="shortcode-title"><i class="fa fa-plus-circle"></i><?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/filters.php');
31
- require_once('components/nextpage.php');
32
- require_once('components/paging.php');
33
- require_once('components/preloaded.php');
34
- require_once('components/previous-post.php');
35
- require_once('components/rest-api.php');
36
- require_once('components/seo.php');
37
- require_once('components/users.php');
38
- ?>
39
-
40
  </div>
41
  <?php endif; ?>
42
  <!-- End Add-ons -->
43
 
44
  <!-- Display Settings -->
45
  <div class="shortcode-parameter-wrap">
46
- <h2 class="shortcode-title"><i class="fa fa-cog"></i><?php _e('Display Settings', 'ajax-load-more'); ?></h2>
47
-
48
- <!-- Template Selection -->
49
- <?php
50
- echo '<div class="row repeater" id="alm-repeaters">';
51
- echo '<h3 class="heading">'.__('Template', 'ajax-load-more'). '</h3>';
52
- echo '<div class="expand-wrap">';
53
- echo '<div class="section-title">';
54
- if (has_action('alm_theme_repeaters_selection')){
55
- echo '<h4>'.__('Repeater Template', 'ajax-load-more').'</h4>';
56
- }
57
- echo '<p>'.__('Select which <a href="admin.php?page=ajax-load-more-repeaters" target="_parent">repeater template</a> you would like to use.', 'ajax-load-more'). '</p>';
58
- echo '</div>';
59
- echo '<div class="wrap"><div class="inner">';
60
- echo '<select name="repeater-select" class="alm_element">';
61
- echo '<option name="default" value="default" selected="selected">Default</option>';
62
- if (has_action('alm_get_custom_repeaters')) {
63
- do_action('alm_get_custom_repeaters');
64
- }
65
- if (has_action('alm_get_unlimited_repeaters')) {
66
- do_action('alm_get_unlimited_repeaters');
67
- }
68
- echo '</select>';
69
-
70
- echo '</div></div>';
71
- ?>
72
-
73
- <?php // Get Theme Repeaters
74
- if (has_action('alm_theme_repeaters_selection')){
75
- do_action('alm_theme_repeaters_selection');
76
- }
77
- ?>
78
-
79
- <?php // Custom Repeaters v2 - /cta/extend.php
80
- if (!has_action('alm_get_unlimited_repeaters') && !has_action('alm_get_custom_repeaters') && !has_action('alm_theme_repeaters_installed')) {
81
- include( ALM_PATH . 'admin/includes/cta/extend.php');
82
- }
83
-
84
- echo '</div>';
85
- echo '</div>';
86
- ?>
87
- <!-- End Template Selection -->
88
-
89
- <!-- Options -->
90
- <div class="row input alm-instance-options" id="alm-instance-options">
91
- <h3 class="heading"><?php _e('Options', 'ajax-load-more'); ?></h3>
92
- <div class="expand-wrap">
93
-
94
- <!-- ID -->
95
- <div class="section-title">
96
- <h4><?php _e('ID', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Adding a unique ID will allow you target this specific Ajax Load More instance with the alm_query_args_id() filter','ajax-load-more'); ?>."></a></h4>
97
- <p><?php _e('Set a unique ID for this Ajax Load More instance.', 'ajax-load-more'); ?><br/>
98
- &raquo; <a href="https://connekthq.com/plugins/ajax-load-more/docs/filter-hooks/#alm_query_args_[id]" target="_blank">Learn More</a></p>
99
- </div>
100
- <div class="wrap">
101
- <div class="inner">
102
- <input type="text" class="alm_element" name="unique-id" id="unique-id">
103
- <div class="clear"></div>
104
- <p class="generate-id"><a href="javascript:void(0);" data-id="unique-id"><i class="fa fa-random"></i> <?php _e('Generate Unique ID', 'ajax-load-more'); ?></a></p>
105
- </div>
106
- </div>
107
-
108
- <div class="clear"></div>
109
- <hr/>
110
-
111
- <!-- Container Type -->
112
- <div class="section-title">
113
- <h4><?php _e('Container Type', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('You can define a global container type on the Ajax Load More settings screen','ajax-load-more'); ?>."></a></h4>
114
- <p><?php _e('Override the global Container Type set on the <a href="admin.php?page=ajax-load-more">ALM Settings page</a>.', 'ajax-load-more'); ?></p>
115
- </div>
116
- <div class="wrap">
117
- <div class="inner">
118
- <ul class="container_type">
119
- <li>
120
- <input type="radio" id="type-ul" value="ul" name="alm_container_type" class="alm_element">
121
- <label for="type-ul">&lt;ul /&gt;</label>
122
- </li>
123
- <li>
124
- <input type="radio" id="type-div" value="div" name="alm_container_type" class="alm_element">
125
- <label for="type-div">&lt;div /&gt;</label>
126
- </li>
127
- <li>
128
- <input type="radio" id="type-ol" value="ol" name="alm_container_type" class="alm_element">
129
- <label for="type-ol">&lt;ol /&gt;</label>
130
- </li>
131
- <li>
132
- <input type="radio" id="type-table" value="table" name="alm_container_type" class="alm_element">
133
- <label for="type-table">&lt;table /&gt;</label>
134
- </li>
135
- </ul>
136
- </div>
137
- </div>
138
-
139
- <div class="clear"></div>
140
- <hr/>
141
-
142
- <!-- Container Classes -->
143
- <div class="section-title">
144
- <h4><?php _e('Container Classes', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('You can define global container classes on the Ajax Load More settings screen','ajax-load-more'); ?>."></a></h4>
145
- <p><?php _e('Add custom CSS classes to the <span>.alm-listing</span> container. <br/><br/> e.g. portfolio-listing large-12 etc', 'ajax-load-more'); ?></p>
146
- </div>
147
- <div class="wrap">
148
- <div class="inner">
149
- <input class="alm_element" name="container-classes" type="text" id="container-classes" placeholder="listing large-12 columns">
150
- </div>
151
- </div>
152
- </div>
153
- </div>
154
- <!-- End Options -->
155
-
156
- <!-- Button Labels -->
157
- <div class="row input btn-label" id="alm-btn-label">
158
- <h3 class="heading"><?php _e('Button Labels', 'ajax-load-more'); ?></h3>
159
-
160
- <div class="expand-wrap">
161
-
162
- <div class="section-title">
163
- <h4><?php _e('Label', 'ajax-load-more'); ?></h4>
164
- <p><?php _e('Customize the text of the <em>Load More</em> button.', 'ajax-load-more'); ?></p>
165
- </div>
166
- <div class="wrap">
167
- <div class="inner">
168
- <input class="alm_element" name="button-label" type="text" id="button-label" value="<?php _e('Older Posts', 'ajax-load-more'); ?>">
169
- </div>
170
- </div>
171
-
172
- <div class="clear"></div>
173
- <hr/>
174
-
175
- <div class="section-title">
176
- <h4><?php _e('Loading Label', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Leave field empty to not update text while loading content','ajax-load-more'); ?>."></a></h4>
177
- <p><?php _e('Update the text of the <em>Load More</em> button while content is loading.', 'ajax-load-more'); ?></p>
178
- </div>
179
- <div class="wrap">
180
- <div class="inner">
181
- <input class="alm_element" name="button-loading-label" type="text" id="button-loading-label" value="" placeholder="<?php _e('Loading Posts...', 'ajax-load-more'); ?>">
182
- </div>
183
- </div>
184
-
185
- </div>
186
- </div>
187
- <!-- Button Labels -->
188
-
189
- <!-- Scrolling -->
190
- <div class="row checkbox scroll_load" id="alm-scroll">
191
- <h3 class="heading"><?php _e('Scrolling', 'ajax-load-more'); ?></h3>
192
- <div class="expand-wrap">
193
- <div class="section-title">
194
- <h4><?php _e('Enable Scrolling', 'ajax-load-more'); ?></h4>
195
- <p><?php _e('Load more posts as the user scrolls the page.', 'ajax-load-more'); ?></p>
196
- </div>
197
- <div class="wrap">
198
- <div class="inner">
199
- <ul>
200
- <li>
201
- <input class="alm_element" type="radio" name="scroll" value="t" id="scroll_t" checked>
202
- <label for="scroll_t"><?php _e('True', 'ajax-load-more'); ?></label>
203
- </li>
204
- <li>
205
- <input class="alm_element" type="radio" name="scroll" value="f" id="scroll_f">
206
- <label for="scroll_f"><?php _e('False', 'ajax-load-more'); ?></label>
207
- </li>
208
- </ul>
209
- </div>
210
- </div>
211
- <div class="clear"></div>
212
- <div class="scroll_distance">
213
- <div class="clear"></div>
214
- <hr>
215
- <div class="section-title">
216
- <h4><?php _e('Scroll Distance', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Distance is based on the position of the loading button from the bottom of the screen','ajax-load-more'); ?>."></a></h4>
217
- <p><?php _e('The distance from the bottom of the screen to trigger loading of posts. (Default = 150)', 'ajax-load-more'); ?></p>
218
- </div>
219
- <div class="wrap">
220
- <div class="inner">
221
- <input type="number" class="alm_element numbers-only" name="scroll-distance" id="scroll-distance" step="10" min="0" value="150">
222
- </div>
223
- </div>
224
- </div>
225
- <div class="scroll_container">
226
- <div class="clear"></div>
227
- <hr>
228
- <div class="section-title">
229
- <h4><?php _e('Scroll Container', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Confine Ajax Load More scrolling to a parent container','ajax-load-more'); ?>."></a></h4>
230
- <p><?php _e('Enter the ID or classname of the parent container', 'ajax-load-more'); ?></p>
231
- </div>
232
- <div class="wrap">
233
- <div class="inner">
234
- <input type="text" class="alm_element" name="scroll-container" id="scroll-container" placeholder="#my-div">
235
- </div>
236
- </div>
237
- </div>
238
- <div class="max_pages">
239
- <div class="clear"></div>
240
- <hr>
241
- <div class="section-title">
242
- <h4><?php _e('Maximum Pages', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('If using an Infinite Scroll button style you should set this to 0','ajax-load-more'); ?>."></a></h4>
243
- <p><?php _e('Maximum number of pages to load while scrolling. (0 = unlimited)', 'ajax-load-more'); ?></p>
244
- </div>
245
- <div class="wrap">
246
- <div class="inner">
247
- <input type="number" class="alm_element numbers-only" name="max-select" id="max-select" step="1" min="0" value="0">
248
- </div>
249
- </div>
250
- </div>
251
- <div class="pause_override">
252
- <div class="clear"></div>
253
- <hr>
254
- <div class="section-title">
255
- <h4><?php _e('Pause Override', 'ajax-load-more'); ?></h4>
256
- <p><?php _e('Allow scrolling to override the Pause parameter and trigger the loading of posts on scroll.', 'ajax-load-more'); ?></p>
257
- </div>
258
- <div class="wrap">
259
- <ul>
260
- <li>
261
- <input class="alm_element" type="radio" name="pause_override" value="t" id="pause_override_t">
262
- <label for="pause_override_t"><?php _e('True', 'ajax-load-more'); ?></label>
263
- </li>
264
- <li>
265
- <input class="alm_element" type="radio" name="pause_override" value="f" id="pause_override_f" checked="checked">
266
- <label for="pause_override_f"><?php _e('False', 'ajax-load-more'); ?></label>
267
- </li>
268
- </ul>
269
- </div>
270
- </div>
271
- </div>
272
- </div>
273
- <!-- End Scrolling -->
274
-
275
- <!-- Transition -->
276
- <div class="row input transition" id="alm-transition">
277
- <h3 class="heading"><?php _e('Transition', 'ajax-load-more'); ?></h3>
278
- <div class="expand-wrap">
279
- <div class="section-title">
280
- <h4><?php _e('Type', 'ajax-load-more'); ?></h4>
281
- <p><?php _e('Select a loading transition style.', 'ajax-load-more'); ?></p>
282
- </div>
283
- <div class="wrap">
284
- <div class="inner">
285
- <select class="alm_element transition" name="transition">
286
- <option value="fade" selected="selected"><?php _e('Fade In', 'ajax-load-more'); ?></option>
287
- <option value="masonry"><?php _e('Masonry', 'ajax-load-more'); ?></option>
288
- <option value="none"><?php _e('None', 'ajax-load-more'); ?></option>
289
- </select>
290
- </div>
291
- </div>
292
-
293
- <div class="clear"></div>
294
-
295
- <div class="masonry-options">
296
-
297
- <div class="clear"></div>
298
- <hr>
299
- <div class="section-title full" style="padding-bottom: 10px;">
300
- <h4><?php _e('Masonry Options', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Ajax Load More does not support all available Masonry options','ajax-load-more'); ?>."></a></h4>
301
- <p><?php _e('The following Masonry <a href="https://masonry.desandro.com/options.html" target="_blank">options</a> are supported by Ajax Load More', 'ajax-load-more'); ?>.</p>
302
  </div>
 
303
  <div class="clear"></div>
304
-
 
 
305
  <div class="section-title">
306
- <h4><?php _e('Item Selector', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Item Selector is required for Masonry to target each element loaded with Ajax','ajax-load-more'); ?>."></a></h4>
307
- <p><?php _e('Enter the target classname of each masonry item', 'ajax-load-more'); ?>.<br/>
308
- e.g <span>.grid-item</span>
309
- </p>
310
- </div>
311
- <div class="wrap">
312
  <div class="inner">
313
- <input type="text" class="alm_element" name="masonry-item" id="masonry-item" placeholder=".grid-item">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
314
  </div>
315
  </div>
316
-
317
  <div class="clear"></div>
318
- <hr class="indented" />
319
-
 
320
  <div class="section-title">
321
- <h4><?php _e('Column Width', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('If columnWidth is not set, Masonry will use the outer width of the first Item Selector','ajax-load-more'); ?>."></a></h4>
322
- <p><?php _e('Enter the <a href="https://masonry.desandro.com/options.html#columnwidth" target="_blank">columnWidth</a> of the masonry items', 'ajax-load-more'); ?>.<br/>
323
- e.g <span>80</span>
324
- </p>
325
  </div>
326
- <div class="wrap">
327
  <div class="inner">
328
- <input type="number" class="alm_element numbers-only" name="masonry-columnwidth" id="masonry-columnwidth" placeholder="80" min="0" step="1">
329
  </div>
330
  </div>
331
-
332
- <div class="clear"></div>
333
- <hr class="indented" />
334
-
 
 
 
 
 
 
335
  <div class="section-title">
336
- <h4><?php _e('Animation Type', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('All Masonry animations include a fade-in effect as items are loaded','ajax-load-more'); ?>."></a></h4>
337
- <p><?php _e('Select a loading transition for Masonry items', 'ajax-load-more'); ?>.</p>
338
- </div>
339
- <div class="wrap">
340
  <div class="inner">
341
- <ul>
342
- <li style="width:100%;">
343
- <input class="alm_element" type="radio" name="masonry-animation" value="default" id="masonry-animation-default" checked>
344
- <label for="masonry-animation-default">
345
- <?php _e('Default (Zoom)', 'ajax-load-more'); ?>
346
- <span class="description"><?php _e('Items scale up from 50% to 100% size on load','ajax-load-more'); ?>.</span>
347
- </label>
348
- </li>
349
- <li style="width:100%;">
350
- <input class="alm_element" type="radio" name="masonry-animation" value="zoom-out" id="masonry-animation-zoom-out">
351
- <label for="masonry-animation-zoom-out">
352
- <?php _e('Zoom Out', 'ajax-load-more'); ?>
353
- <span class="description"><?php _e('Items scale down from 125% to 100% size on load','ajax-load-more'); ?>.</span>
354
- </label>
355
- </li>
356
- <li style="width:100%;">
357
- <input class="alm_element" type="radio" name="masonry-animation" value="slide-up" id="masonry-animation-up">
358
- <label for="masonry-animation-up">
359
- <?php _e('Slide Up', 'ajax-load-more'); ?>
360
- <span class="description"><?php _e('Items animate up as they are loaded into view.','ajax-load-more'); ?></span>
361
- </label>
362
- </li>
363
- <li style="width:100%;">
364
- <input class="alm_element" type="radio" name="masonry-animation" value="slide-down" id="masonry-animation-down">
365
- <label for="masonry-animation-down">
366
- <?php _e('Slide Down', 'ajax-load-more'); ?>
367
- <span class="description"><?php _e('Items animate down when loaded into view.','ajax-load-more'); ?></span>
368
- </label>
369
- </li>
370
- <li style="width:100%;">
371
- <input class="alm_element" type="radio" name="masonry-animation" value="none" id="masonry-animation-none">
372
- <label for="masonry-animation-none">
373
- <?php _e('None', 'ajax-load-more'); ?>
374
- </label>
375
- </li>
376
- </ul>
377
  </div>
378
  </div>
379
-
380
  <div class="clear"></div>
381
- <hr class="indented" />
382
-
383
  <div class="section-title">
384
- <h4><?php _e('Horizontal Order', 'ajax-load-more'); ?></h4>
385
- <p><?php _e('Lays out items to maintain left-to-right order', 'ajax-load-more'); ?>.
386
- </p>
387
  </div>
388
- <div class="wrap">
389
  <div class="inner">
390
- <ul>
391
- <li>
392
- <input class="alm_element" type="radio" name="masonry-horizontalorder" value="t" id="horizontalOrder_t" checked="checked">
393
- <label for="horizontalOrder_t"><?php _e('True', 'ajax-load-more'); ?></label>
394
- </li>
395
- <li>
396
- <input class="alm_element" type="radio" name="masonry-horizontalorder" value="f" id="horizontalOrder_f">
397
- <label for="horizontalOrder_f"><?php _e('False', 'ajax-load-more'); ?></label>
398
- </li>
399
- </ul>
400
  </div>
401
  </div>
402
-
403
- </div>
404
-
405
- <!-- Hide transition_container if Masonry is selected -->
406
- <div class="masonry-options-hide">
407
-
408
- <div class="clear"></div>
409
- <hr>
410
-
411
  <div class="section-title">
412
- <h4><?php _e('Transition Container', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Removing the transition container may have undesired results and is not recommended','ajax-load-more'); ?>."></a></h4>
413
- <p><?php _e('Remove the <span>.alm-reveal</span> loading container from Ajax Load More', 'ajax-load-more'); ?>.</p>
414
  </div>
415
  <div class="wrap">
416
  <div class="inner">
417
  <ul>
418
- <li style="width:100%;">
419
- <input class="alm_element" type="checkbox" name="remove_container" id="remove_container" value="f">
420
- <label for="remove_container"><?php _e('Remove Container', 'ajax-load-more'); ?></label>
421
- </li>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
422
  </ul>
423
  </div>
424
  </div>
425
-
426
- <div class="transition-container-classes-wrap">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
427
  <div class="clear"></div>
428
  <hr>
429
 
430
  <div class="section-title">
431
- <h4><?php _e('Transition Container Classes', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('This setting is not available with the Previous Post or Next Page add-ons','ajax-load-more'); ?>."></a></h4>
432
- <p><?php _e('Add custom classes to the <span>.alm-reveal</span> loading container', 'ajax-load-more'); ?>.</p>
433
  </div>
434
  <div class="wrap">
435
  <div class="inner">
436
- <input type="text" class="alm_element" name="transition-container-classes" id="transition-container-classes" placeholder="row large-12 etc">
 
 
 
 
 
437
  </div>
438
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
439
  </div>
440
-
441
- </div>
442
- <!-- End Hide transition_container if Masonry is selected -->
443
-
444
- </div>
445
- </div>
446
- <!-- End Transition -->
447
-
448
- <!-- Pause -->
449
- <div class="row checkbox pause_load" id="alm-pause">
450
- <h3 class="heading"><?php _e('Pause', 'ajax-load-more'); ?></h3>
451
- <div class="expand-wrap">
452
- <div class="section-title">
453
- <p><?php _e('Do <u>NOT</u> load any posts until user clicks the <em>Load More</em> button.', 'ajax-load-more'); ?></p>
454
- </div>
455
- <div class="wrap">
456
- <div class="inner">
457
- <ul>
458
- <li>
459
- <input class="alm_element" type="radio" name="pause" value="t" id="pause_t">
460
- <label for="pause_t"><?php _e('True', 'ajax-load-more'); ?></label>
461
- </li>
462
- <li>
463
- <input class="alm_element" type="radio" name="pause" value="f" id="pause_f" checked="checked">
464
- <label for="pause_f"><?php _e('False', 'ajax-load-more'); ?></label>
465
- </li>
466
- </ul>
467
- </div>
468
- </div>
469
- </div>
470
- </div>
471
- <!-- End Pause -->
472
-
473
- <!-- Progress Bar -->
474
- <div class="row input alm-progress-bar" id="alm-progress-bar">
475
- <h3 class="heading"><?php _e('Progress Bar', 'ajax-load-more'); ?></h3>
476
- <div class="expand-wrap">
477
- <div class="section-title">
478
- <p><?php _e('Display progress bar indicator at the top of the window while loading Ajax content', 'ajax-load-more'); ?>.<br/>
479
- &raquo; <a href="https://connekthq.com/plugins/ajax-load-more/examples/progress-bar/" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a>
480
-
481
- </p>
482
- </div>
483
- <div class="wrap">
484
- <div class="inner">
485
- <ul>
486
- <li>
487
- <input class="alm_element" type="radio" name="progress_bar" value="t" id="progress_bar_t">
488
- <label for="progress_bar_t"><?php _e('True', 'ajax-load-more'); ?></label>
489
- </li>
490
- <li>
491
- <input class="alm_element" type="radio" name="progress_bar" value="f" id="progress_bar_f" checked="checked">
492
- <label for="progress_bar_f"><?php _e('False', 'ajax-load-more'); ?></label>
493
- </li>
494
- </ul>
495
  </div>
496
- </div>
497
- </div>
498
-
499
- <div class="clear"></div>
500
-
501
- <div class="progress-bar-options">
502
-
503
- <div class="clear"></div>
504
- <hr>
505
-
506
- <div class="section-title">
507
- <h4><?php _e('Color', 'ajax-load-more'); ?> </h4>
508
- <p><?php _e('Enter the hex color of the progress bar', 'ajax-load-more'); ?>.<br/>
509
- Default: #<span>ed7070</span>
510
- </p>
511
- </div>
512
- <div class="wrap">
513
- <div class="inner" style="position: relative;">
514
- <input type="text" class="alm_element" name="progress_bar_color" id="progress_bar_color" placeholder="ed7070" value="ed7070" maxlength="6" style="padding-left: 40px;">
515
- <span class="progress_bar_color_indicator"></span>
516
- </div>
517
- </div>
518
-
519
- </div>
520
-
521
- </div>
522
- <!-- End Progress Bar -->
523
-
524
- <!-- Images Loaded -->
525
- <div class="row input alm-images-loaded" id="alm-images-loaded">
526
- <h3 class="heading"><?php _e('Images Loaded', 'ajax-load-more'); ?></h3>
527
- <div class="expand-wrap">
528
- <div class="section-title">
529
- <p><?php _e('Wait for all images to load before displaying ajax loaded content', 'ajax-load-more'); ?>. <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Background images are not supported','ajax-load-more'); ?>."></a></p>
530
- </div>
531
- <div class="wrap">
532
- <div class="inner">
533
- <ul>
534
- <li>
535
- <input class="alm_element" type="radio" name="images_loaded" value="t" id="images_loaded_t">
536
- <label for="images_loaded_t"><?php _e('True', 'ajax-load-more'); ?></label>
537
- </li>
538
- <li>
539
- <input class="alm_element" type="radio" name="images_loaded" value="f" id="images_loaded_f" checked="checked">
540
- <label for="images_loaded_f"><?php _e('False', 'ajax-load-more'); ?></label>
541
- </li>
542
- </ul>
543
  </div>
544
- </div>
545
- </div>
546
- </div>
547
- <!-- End Images Loaded -->
548
-
549
- <!-- Destroy After -->
550
- <div class="row input alm-destroy-after" id="alm-destroy-after">
551
- <h3 class="heading"><?php _e('Destroy After', 'ajax-load-more'); ?></h3>
552
- <!-- Destroy After -->
553
- <div class="expand-wrap">
554
- <div class="section-title">
555
- <p><?php _e('Remove Ajax Load More functionality after {<em>n</em>} number of pages have been loaded.', 'ajax-load-more'); ?></p>
556
- </div>
557
- <div class="wrap">
558
- <div class="inner">
559
- <input type="number" class="alm_element numbers-only" name="destroy-after" id="disable-after" step="1" min="0" value="">
560
- </div>
561
- </div>
562
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
563
  </div>
564
- <!-- End Destroy After -->
565
-
566
-
567
  </div>
568
  <!-- End Display Settings -->
569
 
@@ -571,483 +572,486 @@
571
 
572
  <!-- Query Parameters -->
573
  <div class="shortcode-parameter-wrap">
574
- <h2 class="shortcode-title"><i class="fa fa-database"></i><?php _e('Query Parameters', 'ajax-load-more'); ?></h2>
575
-
576
- <!-- Posts Per Page -->
577
- <div class="row input posts_per_page" id="alm-post-page">
578
- <h3 class="heading"><?php _e('Posts Per Page', 'ajax-load-more'); ?></h3>
579
- <div class="expand-wrap">
580
- <div class="section-title">
581
- <p><?php _e('Select the number of posts to load with each request.', 'ajax-load-more'); ?></p>
582
- </div>
583
- <div class="wrap">
584
- <div class="inner">
585
- <input type="number" class="alm_element numbers-only" name="display_posts-select" id="display_posts-select" step="1" min="1" value="5">
586
- </div>
587
- </div>
588
- </div>
589
- </div>
590
- <!-- End Posts Per Page -->
591
-
592
- <!-- Post Types -->
593
- <?php
594
- $pt_args = array(
595
- 'public' => true
596
- );
597
- $types = get_post_types($pt_args);
598
- if($types){ ?>
599
- <div class="row checkboxes post_types" id="alm-post-types">
600
- <h3 class="heading"><?php _e('Post Type', 'ajax-load-more'); ?></h3>
601
-
602
- <div class="expand-wrap">
603
-
604
- <div class="section-title">
605
- <p><?php _e('Select the Post Types to include in this Ajax Load More query.', 'ajax-load-more'); ?></p>
606
- </div>
607
- <div class="wrap">
608
- <div class="inner">
609
- <ul class="alm-post-type-list">
610
- <?php
611
- foreach( $types as $type ){
612
- $typeobj = get_post_type_object( $type );
613
- $name = $typeobj->name;
614
- if( $name != 'revision' && $name != 'nav_menu_item' && $name != 'acf'){
615
- echo '<li><input class="alm_element" type="checkbox" name="chk-'.$typeobj->name.'" id="chk-'.$typeobj->name.'" data-type="'.$typeobj->name.'"><label for="chk-'.$typeobj->name.'">'.$typeobj->labels->singular_name.'</label></li>';
616
- }
617
- }
618
- ?>
619
- <li><input class="alm_element chk-any" type="checkbox" name="chk-any" id="chk-any" data-type="any"><label for="chk-any"><?php _e('Any', 'ajax-load-more'); ?></label></li>
620
- </ul>
621
- </div>
622
- </div>
623
- <div class="clear"></div>
624
-
625
- <div class="sticky-wrap">
626
- <div style="display: block;">
627
- <div class="clear"></div>
628
- <hr/>
629
-
630
- <div class="section-title">
631
- <h4><?php _e('Sticky Posts', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Sticky posts are only available for Posts','ajax-load-more'); ?>."></a></h4>
632
- <p><?php _e('Preserve the ordering of sticky posts by having them appear first in the Ajax listing.', 'ajax-load-more'); ?></p>
633
- </div>
634
- <div class="wrap">
635
- <div class="inner">
636
- <ul>
637
- <li style="width:100%;">
638
- <input class="alm_element" type="checkbox" name="alm_sticky_posts" id="alm_sticky_posts" value="true">
639
- <label for="alm_sticky_posts"><?php _e('Enable Sticky Posts', 'ajax-load-more'); ?></label>
640
- </li>
641
- </ul>
642
- </div>
643
- </div>
644
- </div>
645
- </div>
646
-
647
- </div>
648
-
649
  </div>
650
- <?php }
651
- ?>
652
- <!-- End Post Types -->
653
-
654
-
655
- <!-- Post Formats -->
656
- <?php
657
- if ( current_theme_supports( 'post-formats' ) ) {
658
- $post_formats = get_theme_support( 'post-formats' );
659
- if($post_formats){
660
- echo '<div class="row checkboxes post_format" id="alm-post-format">';
661
- echo '<h3 class="heading">'.__('Post Format', 'ajax-load-more'). '</h3>';
662
- echo '<div class="expand-wrap">';
663
- echo '<div class="section-title">';
664
- echo '<p>'.__('Select a <a href="http://codex.wordpress.org/Post_Formats" target="_blank">Post Format</a> to query.', 'ajax-load-more'). '</p>';
665
- echo '</div>';
666
- echo '<div class="wrap"><div class="inner"><select class="alm_element" name="post-format-select" id="post-format-select">';
667
- echo '<option value="" selected="selected">-- ' . __('Select Post Format', 'ajax-load-more') . ' --</option>';
668
- echo '<option name="chk-standard" id="chk-standard" value="standard">' . __('Standard', 'ajax-load-more') . '</option>';
669
- foreach( $post_formats[0] as $post_format ){
670
- echo '<option name="chk-'.$post_format.'" id="chk-'.$post_format.'" value="'.$post_format.'">'.ucwords($post_format).'</option>';
671
- }
672
- echo '</select></div></div>';
673
- echo '</div>';
674
- echo '</div>';
675
- }
676
- }
677
- ?>
678
- <!-- End Post Formats -->
679
-
680
-
681
- <!-- Categories -->
682
- <?php
683
- if($disable_dynamic_content){
684
- $cats = 'null';
685
- }else{
686
- $cats = get_categories();
687
- }
688
- if($cats){ ?>
689
- <div class="row checkboxes categories" id="alm-categories">
690
- <h3 class="heading"><?php _e('Category', 'ajax-load-more'); ?></h3>
691
- <div class="expand-wrap">
692
- <div class="section-title">
693
- <h4>Include</h4>
694
- <p><?php _e('A comma separated list of categories to include by slug. (design, research etc...)', 'ajax-load-more'); ?><br/>
695
- &raquo; <a href="admin.php?page=ajax-load-more-help&section=examples#example-category" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
696
- </div>
697
- <div class="wrap">
698
- <div class="inner">
699
- <?php
700
- if(!$disable_dynamic_content){
701
- echo '<select class="alm_element multiple" name="category-select" id="category-select" multiple="multiple">';
702
- foreach( $cats as $cat ){
703
- echo '<option name="chk-'.$cat->slug.'" id="chk-'.$cat->slug.'" value="'.$cat->slug.'">'.$cat->name.'</option>';
704
- }
705
- echo '</select>';
706
- }else{
707
- echo '<input type="text" class="alm_element" name="category-select" id="category-select" placeholder="design, development, science etc...">';
708
- }
709
- ?>
710
- </div>
711
- </div>
712
-
713
- <div class="clear"></div>
714
- <hr/>
715
-
716
- <div class="section-title">
717
- <h4><?php _e('Exclude', 'ajax-load-more'); ?></h4>
718
- <p><?php _e('A comma separated list of categories to exclude by ID. (3, 12, 35 etc..)', 'ajax-load-more'); ?></p>
719
- </div>
720
- <div class="wrap">
721
- <div class="inner">
722
- <?php
723
- if(!$disable_dynamic_content){
724
- echo '<select class="alm_element multiple" name="category-exclude-select" id="category-exclude-select" multiple="multiple">';
725
- foreach( $cats as $cat ){
726
- echo '<option name="chk-'.$cat->term_id.'" id="chk-'.$cat->term_id.'" value="'.$cat->term_id.'">'.$cat->name.'</option>';
727
- }
728
- echo '</select>';
729
- }else{
730
- echo '<input type="text" class="alm_element numbers-only" name="category-exclude-select" id="category-exclude-select" placeholder="10, 12, 19 etc...">';
731
- }
732
- ?>
733
- </div>
734
- <div class="clear"></div>
735
- </div>
736
- </div>
737
- </div>
738
- <!-- End Category -->
739
-
740
- <?php }
741
-
742
- // Tags
743
- if($disable_dynamic_content){
744
- $tags = 'null';
745
- }else{
746
- $tags = get_tags();
747
- }
748
- if($tags){ ?>
749
- <div class="row checkboxes tags" id="alm-tags">
750
- <h3 class="heading"><?php _e('Tag', 'ajax-load-more'); ?></h3>
751
- <div class="expand-wrap">
752
- <div class="section-title">
753
- <h4><?php _e('Include', 'ajax-load-more'); ?></h4>
754
- <p><?php _e('A comma separated list of tags to include by slug. (toronto, canada etc...)', 'ajax-load-more'); ?><br/>&raquo; <a href="admin.php?page=ajax-load-more-help&section=examples#example-tag" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
755
- </div>
756
- <div class="wrap">
757
- <div class="inner">
758
- <?php
759
- if(!$disable_dynamic_content){
760
- echo '<select class="alm_element multiple" name="tag-select" id="tag-select" multiple="multiple">';
761
- foreach( $tags as $tag ){
762
- echo '<option name="chk-'.$tag->slug.'" id="chk-'.$tag->slug.'" value="'.$tag->slug.'">'.$tag->name.'</option>';
763
- }
764
- echo '</select>';
765
- }else{
766
- echo '<input type="text" class="alm_element" name="tag-select" id="tag-select" placeholder="hockey, puck, crosby etc...">';
767
- }
768
- ?>
769
- </div>
770
- </div>
771
- <div class="clear"></div>
772
- <hr/>
773
-
774
- <div class="section-title">
775
- <h4><?php _e('Exclude', 'ajax-load-more'); ?></h4>
776
- <p><?php _e('A comma separated list of tags to exclude by ID. (30, 12, 99 etc..)', 'ajax-load-more'); ?></p>
777
- </div>
778
- <div class="wrap">
779
- <div class="inner">
780
- <?php
781
- if(!$disable_dynamic_content){
782
- echo '<select class="alm_element multiple" name="tag-exclude-select" id="tag-exclude-select" multiple="multiple">';
783
- foreach( $tags as $tag ){
784
- echo '<option name="chk-'.$tag->term_id.'" id="chk-'.$tag->term_id.'" value="'.$tag->term_id.'">'.$tag->name.'</option>';
785
- }
786
- echo '</select>';
787
- }else{
788
- echo '<input type="text" class="alm_element numbers-only" name="tag-exclude-select" id="tag-exclude-select" placeholder="10, 12, 19 etc...">';
789
- }
790
- ?>
791
- </div>
792
- <div class="clear"></div>
793
- </div>
794
- </div>
795
- </div>
796
- <?php } ?>
797
- <!-- End Tags -->
798
-
799
- <?php
800
- // Taxonomies
801
- $tax_args = array(
802
- 'public' => true,
803
- '_builtin' => false
804
- );
805
- $tax_output = 'objects';
806
- $taxonomies = get_taxonomies( $tax_args, $tax_output );
807
- if ( $taxonomies ) { ?>
808
- <div class="row taxonomy" id="alm-taxonomy">
809
- <h3 class="heading"><?php _e('Taxonomy', 'ajax-load-more'); ?></h3>
810
- <div class="expand-wrap">
811
- <div class="section-title">
812
- <p><?php _e('Select a taxonomy then select the terms and an operator.', 'ajax-load-more'); ?></p>
813
  </div>
814
- <div class="wrap">
815
- <?php include( ALM_PATH . 'admin/shortcode-builder/includes/tax-query-options.php'); ?>
816
- <div class="controls">
817
- <button id="add-tax-query" class="button button-primary"><?php _e('Add Another', 'ajax-load-more'); ?></button>
818
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
819
  </div>
820
- </div>
821
- </div>
822
- <?php }?>
823
- <!-- End Taxonomies -->
824
-
825
- <!-- Date -->
826
- <div class="row input date" id="alm-date">
827
- <h3 class="heading"><?php _e('Date', 'ajax-load-more'); ?></h3>
828
- <div class="expand-wrap">
829
- <div class="section-title">
830
- <p><?php _e('Enter a year, month(number) and day to query by date archive.<br/>&raquo; <a href="admin.php?page=ajax-load-more-help&section=examples#example-date" target="_blank">View Example</a>', 'ajax-load-more'); ?></p>
831
- </div>
832
- <div class="wrap">
833
- <div class="inner">
834
- <div class="wrap-30">
835
- <?php $today = getdate(); ?>
836
- <label for="input-year" class="full"><?php _e('Year:', 'ajax-load-more'); ?></label>
837
- <input name="input-year" class="alm_element sm numbers-only" type="text" id="input-year" maxlength="4" placeholder="<?php echo $today['year']; ?>">
838
- </div>
839
- <div class="wrap-30">
840
- <label for="input-month" class="full"><?php _e('Month:', 'ajax-load-more'); ?></label>
841
- <input name="input-month" class="alm_element sm numbers-only" type="text" id="input-month" maxlength="2" placeholder="<?php echo $today['mon']; ?>">
842
- </div>
843
- <div class="wrap-30">
844
- <label for="input-day" class="full"><?php _e('Day:', 'ajax-load-more'); ?></label>
845
- <input name="input-day" class="alm_element sm numbers-only" type="text" id="input-day" maxlength="2" placeholder="<?php echo $today['mday']; ?>">
846
- </div>
847
- </div>
848
- </div>
849
- </div>
850
- </div>
851
- <!-- End Date -->
852
-
853
- <!-- Meta_Query -->
854
- <div class="row input meta-key" id="alm-meta-key">
855
- <h3 class="heading"><?php _e('Custom Fields (Meta_Query)', 'ajax-load-more'); ?></h3>
856
- <div class="expand-wrap">
857
- <div class="section-title full">
858
- <p><?php _e('Query for <a href="http://codex.wordpress.org/Class_Reference/WP_Meta_Query" target="_blank">custom field</a> by entering a custom field key, value and operator.', 'ajax-load-more'); ?></p>
859
- </div>
860
- <div class="wrap full">
861
- <div class="meta-query-wrap-first">
862
- <div class="meta-query-wrap">
863
- <?php include( ALM_PATH . 'admin/shortcode-builder/includes/meta-query-options.php'); ?>
864
- </div>
865
- </div>
866
- <div id="meta-query-relation">
867
- <div class="inner border-top highlighted">
868
- <div class="wrap-30 wrap-50">
869
- <label for="meta-relation" class="full"><?php _e('Relation:', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('The logical relationship between each custom field when there is more than one','ajax-load-more'); ?>."></a></label>
870
- <select class="alm_element meta-relation" name="meta-relation">
871
- <option value="AND" selected="selected">AND</option>
872
- <option value="OR">OR</option>
873
- </select>
874
- </div>
875
- </div>
876
- </div>
877
-
878
- <div id="meta-query-extended">
879
-
880
- </div>
881
-
882
- <div class="controls">
883
- <button class="button button-primary" id="add-meta-query"><?php _e('Add Another', 'ajax-load-more'); ?></button>
884
- </div>
885
-
886
- </div>
887
- </div>
888
- </div>
889
- <!-- End Meta Query -->
890
-
891
- <?php // List Authors
892
- if($disable_dynamic_content){
893
- $authors = 'null';
894
- }else{
895
- $authors = get_users();
896
- }
897
- if($authors){
898
- echo '<div class="row select authors" id="alm-authors">';
899
- echo '<h3 class="heading">' . __('Author', 'ajax-load-more') . '</h3>';
900
- echo '<div class="expand-wrap">';
901
- echo '<div class="section-title">';
902
- echo '<p>' . __('Select an Author to query(by ID).', 'ajax-load-more') . '<br/>&raquo; <a href="admin.php?page=ajax-load-more-help&section=examples#example-author" target="_blank">View Example</a></p>';
903
- echo '</div>';
904
- echo '<div class="wrap"><div class="inner">';
905
- if(!$disable_dynamic_content){
906
- echo '<select class="alm_element multiple" name="author-select" id="author-select" multiple="multiple">';
907
- foreach( $authors as $author ){
908
- echo '<option name="chk-'.$author->user_login.'" id="chk-'.$author->user_login.'" value="'.$author->ID.'">'.$author->display_name.'</option>';
909
- }
910
- echo '</select>';
911
  }else{
912
- echo '<input type="text" class="alm_element numbers-only" name="author-select" id="author-select" placeholder="1">';
913
  }
914
- echo '</div></div>';
915
- echo '</div>';
916
- echo '</div>';
917
- }
918
- ?>
919
- <!-- End Authors -->
920
-
921
- <!-- Search -->
922
- <div class="row input search-term" id="alm-search">
923
- <h3 class="heading"><?php _e('Search Term', 'ajax-load-more'); ?></h3>
924
- <div class="expand-wrap">
925
- <div class="section-title">
926
- <p><?php _e('Enter a search term to query.', 'ajax-load-more'); ?></p>
927
- </div>
928
- <div class="wrap">
929
- <div class="inner">
930
- <input name="search-term" class="alm_element" type="text" id="search-term" value="" placeholder="<?php _e('Enter search term', 'ajax-load-more'); ?>">
931
- </div>
932
- </div>
933
- </div>
934
- </div>
935
- <!-- End Search -->
936
-
937
- <!-- Post Parameters -->
938
- <div class="row input post-in" id="alm-post-in">
939
- <h3 class="heading"><?php _e('Post Parameters', 'ajax-load-more'); ?></h3>
940
- <div class="expand-wrap">
941
- <div class="section-title">
942
- <h4><?php _e('Include', 'ajax-load-more'); ?></h4>
943
- <p><?php _e('A comma separated list of post ID\'s to query.', 'ajax-load-more'); ?></p>
944
- </div>
945
- <div class="wrap">
946
- <div class="inner">
947
- <input name="post__in" class="alm_element numbers-only" type="text" id="post__in" value="" placeholder="<?php _e('225, 340, 818, etc...', 'ajax-load-more'); ?>">
948
- </div>
949
- </div>
950
- <div class="clear"></div>
951
- <hr/>
952
- <div class="section-title">
953
- <h4><?php _e('Exclude', 'ajax-load-more'); ?></h4>
954
- <p><?php _e('A comma separated list of post ID\'s to exclude from query.', 'ajax-load-more'); ?><br/>&raquo; <a href="admin.php?page=ajax-load-more-help&section=examples#example-exclude" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
955
- </div>
956
- <div class="wrap">
957
- <div class="inner">
958
- <input class="alm_element numbers-only" name="exclude-posts" type="text" id="exclude-posts" value="" placeholder="199, 216, 345, etc...">
959
- </div>
960
- </div>
961
- <div class="clear"></div>
962
- <hr/>
963
- <div class="section-title">
964
- <h4><?php _e('Post Status', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Post Status parameters are only available for logged in (admin) users. Non logged in users will only have access to view content in a \'publish\' or \'inherit\' state.','ajax-load-more'); ?>."></a></h4>
965
- <p><?php _e('Select status of the post.', 'ajax-load-more'); ?></p>
966
- </div>
967
- <div class="wrap">
968
- <div class="inner">
969
- <select class="alm_element" name="post-status" id="post-status">
970
- <option value="publish" selected="selected"><?php _e('Published', 'ajax-load-more'); ?></option>
971
- <option value="any">Any</option>
972
- <option value="draft">Draft</option>
973
- <option value="future">Future</option>
974
- <option value="pending">Pending</option>
975
- <option value="private">Private</option>
976
- <option value="trash">Trash</option>
977
- <option value="inherit">Inherit</option>
978
- </select>
979
- </div>
980
- </div>
981
- </div>
982
- </div>
983
- <!-- End Post Parameters -->
984
-
985
- <!-- Ordering -->
986
- <div class="row ordering" id="alm-order">
987
- <h3 class="heading"><?php _e('Ordering', 'ajax-load-more'); ?></h3>
988
- <div class="expand-wrap">
989
- <div class="section-title">
990
- <p><?php _e('Sort posts by Order and Orderby parameters.', 'ajax-load-more'); ?></p>
991
- </div>
992
- <div class="wrap">
993
- <div class="inner half">
994
- <label class="full"><?php _e('Order', 'ajax-load-more'); ?>:</label>
995
- <select class="alm_element" name="post-order" id="post-order">
996
- <option value="DESC" selected="selected">DESC (default)</option>
997
- <option value="ASC">ASC</option>
998
- </select>
999
- </div>
1000
- <div class="inner half">
1001
- <label class="full"><?php _e('Order By', 'ajax-load-more'); ?>:</label>
1002
- <select class="alm_element" name="post-orderby" id="post-orderby">
1003
- <option value="date" selected="selected">Date (default)</option>
1004
- <option value="title">Title</option>
1005
- <option value="name">Name (slug)</option>
1006
- <option value="menu_order">Menu Order</option>
1007
- <option value="author">Author</option>
1008
- <option value="ID">ID</option>
1009
- <option value="comment_count">Comment Count</option>
1010
- <option value="modified">Modified</option>
1011
- <option value="post__in">Post In</option>
1012
- <option value="meta_value_num">meta_value_num</option>
1013
- </select>
1014
- </div>
1015
- </div>
1016
- </div>
1017
- </div>
1018
- <!-- End Ordering -->
1019
-
1020
- <!-- Offset -->
1021
- <div class="row input offset" id="alm-offset">
1022
- <h3 class="heading"><?php _e('Offset', 'ajax-load-more'); ?></h3>
1023
- <div class="expand-wrap">
1024
- <div class="section-title">
1025
- <p><?php _e('Offset the initial query by <em>\'n\'</em> number of posts', 'ajax-load-more'); ?>.</p>
1026
- </div>
1027
- <div class="wrap">
1028
- <div class="inner">
1029
- <input type="number" class="alm_element numbers-only" name="offset-select" id="offset-select" value="0" step="1" min="0">
1030
- </div>
1031
- </div>
1032
- </div>
1033
- </div>
1034
- <!-- End Offset -->
1035
-
1036
- <!-- Custom Arguments -->
1037
- <div class="row input custom-arguments" id="alm-custom-args">
1038
- <h3 class="heading"><?php _e('Custom Arguments', 'ajax-load-more'); ?></h3>
1039
- <div class="expand-wrap">
1040
- <div class="section-title">
1041
- <p><?php _e('A semicolon separated list of custom value:pair arguments.', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Custom Arguments can be used to query by parameters not available in the Shortcode Builder','ajax-load-more'); ?>."></a><br/><br/>e.g. tag_slug__and:design,development; event_display:upcoming</p>
1042
- </div>
1043
- <div class="wrap">
1044
- <div class="inner">
1045
- <input name="custom-args" class="alm_element" type="text" id="custom-args" value="" placeholder="<?php _e('event_display:upcoming', 'ajax-load-more'); ?>">
1046
- </div>
1047
- </div>
1048
- </div>
1049
- </div>
1050
- <!-- End Custom Arguments -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1051
 
1052
  </div>
1053
  <!-- End Query Parameters -->
20
  if(alm_has_addon_shortcodes()) : ?>
21
 
22
  <div class="shortcode-parameter-wrap">
23
+ <h2 tabindex="0" class="shortcode-title"><i class="fa fa-plus-circle"></i><?php _e('Add-ons & Extensions', 'ajax-load-more'); ?></h2>
24
+ <div class="section-wrap">
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/filters.php');
31
+ require_once('components/nextpage.php');
32
+ require_once('components/paging.php');
33
+ require_once('components/preloaded.php');
34
+ require_once('components/previous-post.php');
35
+ require_once('components/rest-api.php');
36
+ require_once('components/seo.php');
37
+ require_once('components/users.php');
38
+ ?>
39
+ </div>
40
  </div>
41
  <?php endif; ?>
42
  <!-- End Add-ons -->
43
 
44
  <!-- Display Settings -->
45
  <div class="shortcode-parameter-wrap">
46
+ <h2 tabindex="0" class="shortcode-title"><i class="fa fa-cog"></i><?php _e('Display Settings', 'ajax-load-more'); ?></h2>
47
+ <div class="section-wrap">
48
+
49
+ <!-- Template Selection -->
50
+ <?php
51
+ echo '<div class="row repeater" id="alm-repeaters">';
52
+ echo '<h3 class="heading" tabindex="0">'.__('Template', 'ajax-load-more'). '</h3>';
53
+ echo '<div class="expand-wrap">';
54
+ echo '<div class="section-title">';
55
+ if (has_action('alm_theme_repeaters_selection')){
56
+ echo '<h4>'.__('Repeater Template', 'ajax-load-more').'</h4>';
57
+ }
58
+ echo '<p>'.__('Select which <a href="admin.php?page=ajax-load-more-repeaters" target="_parent">repeater template</a> you would like to use.', 'ajax-load-more'). '</p>';
59
+ echo '</div>';
60
+ echo '<div class="wrap"><div class="inner">';
61
+ echo '<select name="repeater-select" class="alm_element">';
62
+ echo '<option name="default" value="default" selected="selected">Default</option>';
63
+ if (has_action('alm_get_custom_repeaters')) {
64
+ do_action('alm_get_custom_repeaters');
65
+ }
66
+ if (has_action('alm_get_unlimited_repeaters')) {
67
+ do_action('alm_get_unlimited_repeaters');
68
+ }
69
+ echo '</select>';
70
+
71
+ echo '</div></div>';
72
+ ?>
73
+
74
+ <?php // Get Theme Repeaters
75
+ if (has_action('alm_theme_repeaters_selection')){
76
+ do_action('alm_theme_repeaters_selection');
77
+ }
78
+ ?>
79
+
80
+ <?php // Custom Repeaters v2 - /cta/extend.php
81
+ if (!has_action('alm_get_unlimited_repeaters') && !has_action('alm_get_custom_repeaters') && !has_action('alm_theme_repeaters_installed')) {
82
+ include( ALM_PATH . 'admin/includes/cta/extend.php');
83
+ }
84
+
85
+ echo '</div>';
86
+ echo '</div>';
87
+ ?>
88
+ <!-- End Template Selection -->
89
+
90
+ <!-- Options -->
91
+ <div class="row input alm-instance-options" id="alm-instance-options">
92
+ <h3 class="heading" tabindex="0"><?php _e('Options', 'ajax-load-more'); ?></h3>
93
+ <div class="expand-wrap">
94
+
95
+ <!-- ID -->
96
+ <div class="section-title">
97
+ <h4><?php _e('ID', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Adding a unique ID will allow you target this specific Ajax Load More instance with the alm_query_args_id() filter','ajax-load-more'); ?>."></a></h4>
98
+ <p><?php _e('Set a unique ID for this Ajax Load More instance.', 'ajax-load-more'); ?><br/>
99
+ &raquo; <a href="https://connekthq.com/plugins/ajax-load-more/docs/filter-hooks/#alm_query_args_[id]" target="_blank">Learn More</a></p>
100
+ </div>
101
+ <div class="wrap">
102
+ <div class="inner">
103
+ <input type="text" class="alm_element" name="unique-id" id="unique-id">
104
+ <div class="clear"></div>
105
+ <p class="generate-id"><a href="javascript:void(0);" data-id="unique-id"><i class="fa fa-random"></i> <?php _e('Generate Unique ID', 'ajax-load-more'); ?></a></p>
106
+ </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
107
  </div>
108
+
109
  <div class="clear"></div>
110
+ <hr/>
111
+
112
+ <!-- Container Type -->
113
  <div class="section-title">
114
+ <h4><?php _e('Container Type', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('You can define a global container type on the Ajax Load More settings screen','ajax-load-more'); ?>."></a></h4>
115
+ <p><?php _e('Override the global Container Type set on the <a href="admin.php?page=ajax-load-more">ALM Settings page</a>.', 'ajax-load-more'); ?></p>
116
+ </div>
117
+ <div class="wrap">
 
 
118
  <div class="inner">
119
+ <ul class="container_type">
120
+ <li>
121
+ <input type="radio" id="type-ul" value="ul" name="alm_container_type" class="alm_element">
122
+ <label for="type-ul">&lt;ul /&gt;</label>
123
+ </li>
124
+ <li>
125
+ <input type="radio" id="type-div" value="div" name="alm_container_type" class="alm_element">
126
+ <label for="type-div">&lt;div /&gt;</label>
127
+ </li>
128
+ <li>
129
+ <input type="radio" id="type-ol" value="ol" name="alm_container_type" class="alm_element">
130
+ <label for="type-ol">&lt;ol /&gt;</label>
131
+ </li>
132
+ <li>
133
+ <input type="radio" id="type-table" value="table" name="alm_container_type" class="alm_element">
134
+ <label for="type-table">&lt;table /&gt;</label>
135
+ </li>
136
+ </ul>
137
  </div>
138
  </div>
139
+
140
  <div class="clear"></div>
141
+ <hr/>
142
+
143
+ <!-- Container Classes -->
144
  <div class="section-title">
145
+ <h4><?php _e('Container Classes', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('You can define global container classes on the Ajax Load More settings screen','ajax-load-more'); ?>."></a></h4>
146
+ <p><?php _e('Add custom CSS classes to the <span>.alm-listing</span> container. <br/><br/> e.g. portfolio-listing large-12 etc', 'ajax-load-more'); ?></p>
 
 
147
  </div>
148
+ <div class="wrap">
149
  <div class="inner">
150
+ <input class="alm_element" name="container-classes" type="text" id="container-classes" placeholder="listing large-12 columns">
151
  </div>
152
  </div>
153
+ </div>
154
+ </div>
155
+ <!-- End Options -->
156
+
157
+ <!-- Button Labels -->
158
+ <div class="row input btn-label" id="alm-btn-label">
159
+ <h3 class="heading" tabindex="0"><?php _e('Button Labels', 'ajax-load-more'); ?></h3>
160
+
161
+ <div class="expand-wrap">
162
+
163
  <div class="section-title">
164
+ <h4><?php _e('Label', 'ajax-load-more'); ?></h4>
165
+ <p><?php _e('Customize the text of the <em>Load More</em> button.', 'ajax-load-more'); ?></p>
166
+ </div>
167
+ <div class="wrap">
168
  <div class="inner">
169
+ <input class="alm_element" name="button-label" type="text" id="button-label" value="<?php _e('Older Posts', 'ajax-load-more'); ?>">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
170
  </div>
171
  </div>
172
+
173
  <div class="clear"></div>
174
+ <hr/>
175
+
176
  <div class="section-title">
177
+ <h4><?php _e('Loading Label', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Leave field empty to not update text while loading content','ajax-load-more'); ?>."></a></h4>
178
+ <p><?php _e('Update the text of the <em>Load More</em> button while content is loading.', 'ajax-load-more'); ?></p>
 
179
  </div>
180
+ <div class="wrap">
181
  <div class="inner">
182
+ <input class="alm_element" name="button-loading-label" type="text" id="button-loading-label" value="" placeholder="<?php _e('Loading Posts...', 'ajax-load-more'); ?>">
 
 
 
 
 
 
 
 
 
183
  </div>
184
  </div>
185
+
186
+ </div>
187
+ </div>
188
+ <!-- Button Labels -->
189
+
190
+ <!-- Scrolling -->
191
+ <div class="row checkbox scroll_load" id="alm-scroll">
192
+ <h3 class="heading" tabindex="0"><?php _e('Scrolling', 'ajax-load-more'); ?></h3>
193
+ <div class="expand-wrap">
194
  <div class="section-title">
195
+ <h4><?php _e('Enable Scrolling', 'ajax-load-more'); ?></h4>
196
+ <p><?php _e('Load more posts as the user scrolls the page.', 'ajax-load-more'); ?></p>
197
  </div>
198
  <div class="wrap">
199
  <div class="inner">
200
  <ul>
201
+ <li>
202
+ <input class="alm_element" type="radio" name="scroll" value="t" id="scroll_t" checked>
203
+ <label for="scroll_t"><?php _e('True', 'ajax-load-more'); ?></label>
204
+ </li>
205
+ <li>
206
+ <input class="alm_element" type="radio" name="scroll" value="f" id="scroll_f">
207
+ <label for="scroll_f"><?php _e('False', 'ajax-load-more'); ?></label>
208
+ </li>
209
+ </ul>
210
+ </div>
211
+ </div>
212
+ <div class="clear"></div>
213
+ <div class="scroll_distance">
214
+ <div class="clear"></div>
215
+ <hr>
216
+ <div class="section-title">
217
+ <h4><?php _e('Scroll Distance', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Distance is based on the position of the loading button from the bottom of the screen','ajax-load-more'); ?>."></a></h4>
218
+ <p><?php _e('The distance from the bottom of the screen to trigger loading of posts. (Default = 150)', 'ajax-load-more'); ?></p>
219
+ </div>
220
+ <div class="wrap">
221
+ <div class="inner">
222
+ <input type="number" class="alm_element numbers-only" name="scroll-distance" id="scroll-distance" step="10" min="0" value="150">
223
+ </div>
224
+ </div>
225
+ </div>
226
+ <div class="scroll_container">
227
+ <div class="clear"></div>
228
+ <hr>
229
+ <div class="section-title">
230
+ <h4><?php _e('Scroll Container', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Confine Ajax Load More scrolling to a parent container','ajax-load-more'); ?>."></a></h4>
231
+ <p><?php _e('Enter the ID or classname of the parent container', 'ajax-load-more'); ?></p>
232
+ </div>
233
+ <div class="wrap">
234
+ <div class="inner">
235
+ <input type="text" class="alm_element" name="scroll-container" id="scroll-container" placeholder="#my-div">
236
+ </div>
237
+ </div>
238
+ </div>
239
+ <div class="max_pages">
240
+ <div class="clear"></div>
241
+ <hr>
242
+ <div class="section-title">
243
+ <h4><?php _e('Maximum Pages', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('If using an Infinite Scroll button style you should set this to 0','ajax-load-more'); ?>."></a></h4>
244
+ <p><?php _e('Maximum number of pages to load while scrolling. (0 = unlimited)', 'ajax-load-more'); ?></p>
245
+ </div>
246
+ <div class="wrap">
247
+ <div class="inner">
248
+ <input type="number" class="alm_element numbers-only" name="max-select" id="max-select" step="1" min="0" value="0">
249
+ </div>
250
+ </div>
251
+ </div>
252
+ <div class="pause_override">
253
+ <div class="clear"></div>
254
+ <hr>
255
+ <div class="section-title">
256
+ <h4><?php _e('Pause Override', 'ajax-load-more'); ?></h4>
257
+ <p><?php _e('Allow scrolling to override the Pause parameter and trigger the loading of posts on scroll.', 'ajax-load-more'); ?></p>
258
+ </div>
259
+ <div class="wrap">
260
+ <ul>
261
+ <li>
262
+ <input class="alm_element" type="radio" name="pause_override" value="t" id="pause_override_t">
263
+ <label for="pause_override_t"><?php _e('True', 'ajax-load-more'); ?></label>
264
+ </li>
265
+ <li>
266
+ <input class="alm_element" type="radio" name="pause_override" value="f" id="pause_override_f" checked="checked">
267
+ <label for="pause_override_f"><?php _e('False', 'ajax-load-more'); ?></label>
268
+ </li>
269
  </ul>
270
  </div>
271
  </div>
272
+ </div>
273
+ </div>
274
+ <!-- End Scrolling -->
275
+
276
+ <!-- Transition -->
277
+ <div class="row input transition" id="alm-transition">
278
+ <h3 class="heading" tabindex="0"><?php _e('Transition', 'ajax-load-more'); ?></h3>
279
+ <div class="expand-wrap">
280
+ <div class="section-title">
281
+ <h4><?php _e('Type', 'ajax-load-more'); ?></h4>
282
+ <p><?php _e('Select a loading transition style.', 'ajax-load-more'); ?></p>
283
+ </div>
284
+ <div class="wrap">
285
+ <div class="inner">
286
+ <select class="alm_element transition" name="transition">
287
+ <option value="fade" selected="selected"><?php _e('Fade In', 'ajax-load-more'); ?></option>
288
+ <option value="masonry"><?php _e('Masonry', 'ajax-load-more'); ?></option>
289
+ <option value="none"><?php _e('None', 'ajax-load-more'); ?></option>
290
+ </select>
291
+ </div>
292
+ </div>
293
+
294
+ <div class="clear"></div>
295
+
296
+ <div class="masonry-options">
297
+
298
+ <div class="clear"></div>
299
+ <hr>
300
+ <div class="section-title full" style="padding-bottom: 10px;">
301
+ <h4><?php _e('Masonry Options', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Ajax Load More does not support all available Masonry options','ajax-load-more'); ?>."></a></h4>
302
+ <p><?php _e('The following Masonry <a href="https://masonry.desandro.com/options.html" target="_blank">options</a> are supported by Ajax Load More', 'ajax-load-more'); ?>.</p>
303
+ </div>
304
+ <div class="clear"></div>
305
+
306
+ <div class="section-title">
307
+ <h4><?php _e('Item Selector', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Item Selector is required for Masonry to target each element loaded with Ajax','ajax-load-more'); ?>."></a></h4>
308
+ <p><?php _e('Enter the target classname of each masonry item', 'ajax-load-more'); ?>.<br/>
309
+ e.g <span>.grid-item</span>
310
+ </p>
311
+ </div>
312
+ <div class="wrap">
313
+ <div class="inner">
314
+ <input type="text" class="alm_element" name="masonry-item" id="masonry-item" placeholder=".grid-item">
315
+ </div>
316
+ </div>
317
+
318
+ <div class="clear"></div>
319
+ <hr class="indented" />
320
+
321
+ <div class="section-title">
322
+ <h4><?php _e('Column Width', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('If columnWidth is not set, Masonry will use the outer width of the first Item Selector','ajax-load-more'); ?>."></a></h4>
323
+ <p><?php _e('Enter the <a href="https://masonry.desandro.com/options.html#columnwidth" target="_blank">columnWidth</a> of the masonry items', 'ajax-load-more'); ?>.<br/>
324
+ e.g <span>80</span>
325
+ </p>
326
+ </div>
327
+ <div class="wrap">
328
+ <div class="inner">
329
+ <input type="number" class="alm_element numbers-only" name="masonry-columnwidth" id="masonry-columnwidth" placeholder="80" min="0" step="1">
330
+ </div>
331
+ </div>
332
+
333
+ <div class="clear"></div>
334
+ <hr class="indented" />
335
+
336
+ <div class="section-title">
337
+ <h4><?php _e('Animation Type', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('All Masonry animations include a fade-in effect as items are loaded','ajax-load-more'); ?>."></a></h4>
338
+ <p><?php _e('Select a loading transition for Masonry items', 'ajax-load-more'); ?>.</p>
339
+ </div>
340
+ <div class="wrap">
341
+ <div class="inner">
342
+ <ul>
343
+ <li style="width:100%;">
344
+ <input class="alm_element" type="radio" name="masonry-animation" value="default" id="masonry-animation-default" checked>
345
+ <label for="masonry-animation-default">
346
+ <?php _e('Default (Zoom)', 'ajax-load-more'); ?>
347
+ <span class="description"><?php _e('Items scale up from 50% to 100% size on load','ajax-load-more'); ?>.</span>
348
+ </label>
349
+ </li>
350
+ <li style="width:100%;">
351
+ <input class="alm_element" type="radio" name="masonry-animation" value="zoom-out" id="masonry-animation-zoom-out">
352
+ <label for="masonry-animation-zoom-out">
353
+ <?php _e('Zoom Out', 'ajax-load-more'); ?>
354
+ <span class="description"><?php _e('Items scale down from 125% to 100% size on load','ajax-load-more'); ?>.</span>
355
+ </label>
356
+ </li>
357
+ <li style="width:100%;">
358
+ <input class="alm_element" type="radio" name="masonry-animation" value="slide-up" id="masonry-animation-up">
359
+ <label for="masonry-animation-up">
360
+ <?php _e('Slide Up', 'ajax-load-more'); ?>
361
+ <span class="description"><?php _e('Items animate up as they are loaded into view.','ajax-load-more'); ?></span>
362
+ </label>
363
+ </li>
364
+ <li style="width:100%;">
365
+ <input class="alm_element" type="radio" name="masonry-animation" value="slide-down" id="masonry-animation-down">
366
+ <label for="masonry-animation-down">
367
+ <?php _e('Slide Down', 'ajax-load-more'); ?>
368
+ <span class="description"><?php _e('Items animate down when loaded into view.','ajax-load-more'); ?></span>
369
+ </label>
370
+ </li>
371
+ <li style="width:100%;">
372
+ <input class="alm_element" type="radio" name="masonry-animation" value="none" id="masonry-animation-none">
373
+ <label for="masonry-animation-none">
374
+ <?php _e('None', 'ajax-load-more'); ?>
375
+ </label>
376
+ </li>
377
+ </ul>
378
+ </div>
379
+ </div>
380
+
381
+ <div class="clear"></div>
382
+ <hr class="indented" />
383
+
384
+ <div class="section-title">
385
+ <h4><?php _e('Horizontal Order', 'ajax-load-more'); ?></h4>
386
+ <p><?php _e('Lays out items to maintain left-to-right order', 'ajax-load-more'); ?>.
387
+ </p>
388
+ </div>
389
+ <div class="wrap">
390
+ <div class="inner">
391
+ <ul>
392
+ <li>
393
+ <input class="alm_element" type="radio" name="masonry-horizontalorder" value="t" id="horizontalOrder_t" checked="checked">
394
+ <label for="horizontalOrder_t"><?php _e('True', 'ajax-load-more'); ?></label>
395
+ </li>
396
+ <li>
397
+ <input class="alm_element" type="radio" name="masonry-horizontalorder" value="f" id="horizontalOrder_f">
398
+ <label for="horizontalOrder_f"><?php _e('False', 'ajax-load-more'); ?></label>
399
+ </li>
400
+ </ul>
401
+ </div>
402
+ </div>
403
+
404
+ </div>
405
+
406
+ <!-- Hide transition_container if Masonry is selected -->
407
+ <div class="masonry-options-hide">
408
+
409
  <div class="clear"></div>
410
  <hr>
411
 
412
  <div class="section-title">
413
+ <h4><?php _e('Transition Container', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Removing the transition container may have undesired results and is not recommended','ajax-load-more'); ?>."></a></h4>
414
+ <p><?php _e('Remove the <span>.alm-reveal</span> loading container from Ajax Load More', 'ajax-load-more'); ?>.</p>
415
  </div>
416
  <div class="wrap">
417
  <div class="inner">
418
+ <ul>
419
+ <li style="width:100%;">
420
+ <input class="alm_element" type="checkbox" name="remove_container" id="remove_container" value="f">
421
+ <label for="remove_container"><?php _e('Remove Container', 'ajax-load-more'); ?></label>
422
+ </li>
423
+ </ul>
424
  </div>
425
  </div>
426
+
427
+ <div class="transition-container-classes-wrap">
428
+ <div class="clear"></div>
429
+ <hr>
430
+
431
+ <div class="section-title">
432
+ <h4><?php _e('Transition Container Classes', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('This setting is not available with the Previous Post or Next Page add-ons','ajax-load-more'); ?>."></a></h4>
433
+ <p><?php _e('Add custom classes to the <span>.alm-reveal</span> loading container', 'ajax-load-more'); ?>.</p>
434
+ </div>
435
+ <div class="wrap">
436
+ <div class="inner">
437
+ <input type="text" class="alm_element" name="transition-container-classes" id="transition-container-classes" placeholder="row large-12 etc">
438
+ </div>
439
+ </div>
440
+ </div>
441
+
442
  </div>
443
+ <!-- End Hide transition_container if Masonry is selected -->
444
+
445
+ </div>
446
+ </div>
447
+ <!-- End Transition -->
448
+
449
+ <!-- Pause -->
450
+ <div class="row checkbox pause_load" id="alm-pause">
451
+ <h3 class="heading" tabindex="0"><?php _e('Pause', 'ajax-load-more'); ?></h3>
452
+ <div class="expand-wrap">
453
+ <div class="section-title">
454
+ <p><?php _e('Do <u>NOT</u> load any posts until user clicks the <em>Load More</em> button.', 'ajax-load-more'); ?></p>
455
+ </div>
456
+ <div class="wrap">
457
+ <div class="inner">
458
+ <ul>
459
+ <li>
460
+ <input class="alm_element" type="radio" name="pause" value="t" id="pause_t">
461
+ <label for="pause_t"><?php _e('True', 'ajax-load-more'); ?></label>
462
+ </li>
463
+ <li>
464
+ <input class="alm_element" type="radio" name="pause" value="f" id="pause_f" checked="checked">
465
+ <label for="pause_f"><?php _e('False', 'ajax-load-more'); ?></label>
466
+ </li>
467
+ </ul>
468
+ </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
469
  </div>
470
+ </div>
471
+ </div>
472
+ <!-- End Pause -->
473
+
474
+ <!-- Progress Bar -->
475
+ <div class="row input alm-progress-bar" id="alm-progress-bar">
476
+ <h3 class="heading" tabindex="0"><?php _e('Progress Bar', 'ajax-load-more'); ?></h3>
477
+ <div class="expand-wrap">
478
+ <div class="section-title">
479
+ <p><?php _e('Display progress bar indicator at the top of the window while loading Ajax content', 'ajax-load-more'); ?>.<br/>
480
+ &raquo; <a href="https://connekthq.com/plugins/ajax-load-more/examples/progress-bar/" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a>
481
+
482
+ </p>
483
+ </div>
484
+ <div class="wrap">
485
+ <div class="inner">
486
+ <ul>
487
+ <li>
488
+ <input class="alm_element" type="radio" name="progress_bar" value="t" id="progress_bar_t">
489
+ <label for="progress_bar_t"><?php _e('True', 'ajax-load-more'); ?></label>
490
+ </li>
491
+ <li>
492
+ <input class="alm_element" type="radio" name="progress_bar" value="f" id="progress_bar_f" checked="checked">
493
+ <label for="progress_bar_f"><?php _e('False', 'ajax-load-more'); ?></label>
494
+ </li>
495
+ </ul>
496
+ </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
497
  </div>
498
+ </div>
499
+
500
+ <div class="clear"></div>
501
+
502
+ <div class="progress-bar-options">
503
+
504
+ <div class="clear"></div>
505
+ <hr>
506
+
507
+ <div class="section-title">
508
+ <h4><?php _e('Color', 'ajax-load-more'); ?> </h4>
509
+ <p><?php _e('Enter the hex color of the progress bar', 'ajax-load-more'); ?>.<br/>
510
+ Default: #<span>ed7070</span>
511
+ </p>
512
+ </div>
513
+ <div class="wrap">
514
+ <div class="inner" style="position: relative;">
515
+ <input type="text" class="alm_element" name="progress_bar_color" id="progress_bar_color" placeholder="ed7070" value="ed7070" maxlength="6" style="padding-left: 40px;">
516
+ <span class="progress_bar_color_indicator"></span>
517
+ </div>
518
+ </div>
519
+
520
+ </div>
521
+
522
+ </div>
523
+ <!-- End Progress Bar -->
524
+
525
+ <!-- Images Loaded -->
526
+ <div class="row input alm-images-loaded" id="alm-images-loaded">
527
+ <h3 class="heading" tabindex="0"><?php _e('Images Loaded', 'ajax-load-more'); ?></h3>
528
+ <div class="expand-wrap">
529
+ <div class="section-title">
530
+ <p><?php _e('Wait for all images to load before displaying ajax loaded content', 'ajax-load-more'); ?>. <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Background images are not supported','ajax-load-more'); ?>."></a></p>
531
+ </div>
532
+ <div class="wrap">
533
+ <div class="inner">
534
+ <ul>
535
+ <li>
536
+ <input class="alm_element" type="radio" name="images_loaded" value="t" id="images_loaded_t">
537
+ <label for="images_loaded_t"><?php _e('True', 'ajax-load-more'); ?></label>
538
+ </li>
539
+ <li>
540
+ <input class="alm_element" type="radio" name="images_loaded" value="f" id="images_loaded_f" checked="checked">
541
+ <label for="images_loaded_f"><?php _e('False', 'ajax-load-more'); ?></label>
542
+ </li>
543
+ </ul>
544
+ </div>
545
+ </div>
546
+ </div>
547
+ </div>
548
+ <!-- End Images Loaded -->
549
+
550
+ <!-- Destroy After -->
551
+ <div class="row input alm-destroy-after" id="alm-destroy-after">
552
+ <h3 class="heading" tabindex="0"><?php _e('Destroy After', 'ajax-load-more'); ?></h3>
553
+ <!-- Destroy After -->
554
+ <div class="expand-wrap">
555
+ <div class="section-title">
556
+ <p><?php _e('Remove Ajax Load More functionality after {<em>n</em>} number of pages have been loaded.', 'ajax-load-more'); ?></p>
557
+ </div>
558
+ <div class="wrap">
559
+ <div class="inner">
560
+ <input type="number" class="alm_element numbers-only" name="destroy-after" id="disable-after" step="1" min="0" value="">
561
+ </div>
562
+ </div>
563
+ </div>
564
+ </div>
565
+ <!-- End Destroy After -->
566
+
567
  </div>
 
 
 
568
  </div>
569
  <!-- End Display Settings -->
570
 
572
 
573
  <!-- Query Parameters -->
574
  <div class="shortcode-parameter-wrap">
575
+ <h2 tabindex="0" class="shortcode-title"><i class="fa fa-database"></i><?php _e('Query Parameters', 'ajax-load-more'); ?></h2>
576
+ <div class="section-wrap">
577
+
578
+ <!-- Posts Per Page -->
579
+ <div class="row input posts_per_page" id="alm-post-page">
580
+ <h3 class="heading" tabindex="0"><?php _e('Posts Per Page', 'ajax-load-more'); ?></h3>
581
+ <div class="expand-wrap">
582
+ <div class="section-title">
583
+ <p><?php _e('Select the number of posts to load with each request.', 'ajax-load-more'); ?></p>
584
+ </div>
585
+ <div class="wrap">
586
+ <div class="inner">
587
+ <input type="number" class="alm_element numbers-only" name="display_posts-select" id="display_posts-select" step="1" min="1" value="5">
588
+ </div>
589
+ </div>
590
+ </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
591
  </div>
592
+ <!-- End Posts Per Page -->
593
+
594
+ <!-- Post Types -->
595
+ <?php
596
+ $pt_args = array(
597
+ 'public' => true
598
+ );
599
+ $types = get_post_types($pt_args);
600
+ if($types){ ?>
601
+ <div class="row checkboxes post_types" id="alm-post-types">
602
+ <h3 class="heading" tabindex="0"><?php _e('Post Type', 'ajax-load-more'); ?></h3>
603
+
604
+ <div class="expand-wrap">
605
+
606
+ <div class="section-title">
607
+ <p><?php _e('Select the Post Types to include in this Ajax Load More query.', 'ajax-load-more'); ?></p>
608
+ </div>
609
+ <div class="wrap">
610
+ <div class="inner">
611
+ <ul class="alm-post-type-list">
612
+ <?php
613
+ foreach( $types as $type ){
614
+ $typeobj = get_post_type_object( $type );
615
+ $name = $typeobj->name;
616
+ if( $name != 'revision' && $name != 'nav_menu_item' && $name != 'acf'){
617
+ echo '<li><input class="alm_element" type="checkbox" name="chk-'.$typeobj->name.'" id="chk-'.$typeobj->name.'" data-type="'.$typeobj->name.'"><label for="chk-'.$typeobj->name.'">'.$typeobj->labels->singular_name.'</label></li>';
618
+ }
619
+ }
620
+ ?>
621
+ <li><input class="alm_element chk-any" type="checkbox" name="chk-any" id="chk-any" data-type="any"><label for="chk-any"><?php _e('Any', 'ajax-load-more'); ?></label></li>
622
+ </ul>
623
+ </div>
624
+ </div>
625
+ <div class="clear"></div>
626
+
627
+ <div class="sticky-wrap">
628
+ <div style="display: block;">
629
+ <div class="clear"></div>
630
+ <hr/>
631
+
632
+ <div class="section-title">
633
+ <h4><?php _e('Sticky Posts', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Sticky posts are only available for Posts','ajax-load-more'); ?>."></a></h4>
634
+ <p><?php _e('Preserve the ordering of sticky posts by having them appear first in the Ajax listing.', 'ajax-load-more'); ?></p>
635
+ </div>
636
+ <div class="wrap">
637
+ <div class="inner">
638
+ <ul>
639
+ <li style="width:100%;">
640
+ <input class="alm_element" type="checkbox" name="alm_sticky_posts" id="alm_sticky_posts" value="true">
641
+ <label for="alm_sticky_posts"><?php _e('Enable Sticky Posts', 'ajax-load-more'); ?></label>
642
+ </li>
643
+ </ul>
644
+ </div>
645
+ </div>
646
+ </div>
647
+ </div>
648
+
649
+ </div>
650
+
651
+ </div>
652
+ <?php }
653
+ ?>
654
+ <!-- End Post Types -->
655
+
656
+
657
+ <!-- Post Formats -->
658
+ <?php
659
+ if ( current_theme_supports( 'post-formats' ) ) {
660
+ $post_formats = get_theme_support( 'post-formats' );
661
+ if($post_formats){
662
+ echo '<div class="row checkboxes post_format" id="alm-post-format">';
663
+ echo '<h3 class="heading" tabindex="0">'.__('Post Format', 'ajax-load-more'). '</h3>';
664
+ echo '<div class="expand-wrap">';
665
+ echo '<div class="section-title">';
666
+ echo '<p>'.__('Select a <a href="http://codex.wordpress.org/Post_Formats" target="_blank">Post Format</a> to query.', 'ajax-load-more'). '</p>';
667
+ echo '</div>';
668
+ echo '<div class="wrap"><div class="inner"><select class="alm_element" name="post-format-select" id="post-format-select">';
669
+ echo '<option value="" selected="selected">-- ' . __('Select Post Format', 'ajax-load-more') . ' --</option>';
670
+ echo '<option name="chk-standard" id="chk-standard" value="standard">' . __('Standard', 'ajax-load-more') . '</option>';
671
+ foreach( $post_formats[0] as $post_format ){
672
+ echo '<option name="chk-'.$post_format.'" id="chk-'.$post_format.'" value="'.$post_format.'">'.ucwords($post_format).'</option>';
673
+ }
674
+ echo '</select></div></div>';
675
+ echo '</div>';
676
+ echo '</div>';
677
+ }
678
+ }
679
+ ?>
680
+ <!-- End Post Formats -->
681
+
682
+
683
+ <!-- Categories -->
684
+ <?php
685
+ if($disable_dynamic_content){
686
+ $cats = 'null';
687
+ }else{
688
+ $cats = get_categories();
689
+ }
690
+ if($cats){ ?>
691
+ <div class="row checkboxes categories" id="alm-categories">
692
+ <h3 class="heading" tabindex="0"><?php _e('Category', 'ajax-load-more'); ?></h3>
693
+ <div class="expand-wrap">
694
+ <div class="section-title">
695
+ <h4>Include</h4>
696
+ <p><?php _e('A comma separated list of categories to include by slug. (design, research etc...)', 'ajax-load-more'); ?><br/>
697
+ &raquo; <a href="admin.php?page=ajax-load-more-help&section=examples#example-category" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
698
+ </div>
699
+ <div class="wrap">
700
+ <div class="inner">
701
+ <?php
702
+ if(!$disable_dynamic_content){
703
+ echo '<select class="alm_element multiple" name="category-select" id="category-select" multiple="multiple">';
704
+ foreach( $cats as $cat ){
705
+ echo '<option name="chk-'.$cat->slug.'" id="chk-'.$cat->slug.'" value="'.$cat->slug.'">'.$cat->name.'</option>';
706
+ }
707
+ echo '</select>';
708
+ }else{
709
+ echo '<input type="text" class="alm_element" name="category-select" id="category-select" placeholder="design, development, science etc...">';
710
+ }
711
+ ?>
712
+ </div>
713
+ </div>
714
+
715
+ <div class="clear"></div>
716
+ <hr/>
717
+
718
+ <div class="section-title">
719
+ <h4><?php _e('Exclude', 'ajax-load-more'); ?></h4>
720
+ <p><?php _e('A comma separated list of categories to exclude by ID. (3, 12, 35 etc..)', 'ajax-load-more'); ?></p>
721
+ </div>
722
+ <div class="wrap">
723
+ <div class="inner">
724
+ <?php
725
+ if(!$disable_dynamic_content){
726
+ echo '<select class="alm_element multiple" name="category-exclude-select" id="category-exclude-select" multiple="multiple">';
727
+ foreach( $cats as $cat ){
728
+ echo '<option name="chk-'.$cat->term_id.'" id="chk-'.$cat->term_id.'" value="'.$cat->term_id.'">'.$cat->name.'</option>';
729
+ }
730
+ echo '</select>';
731
+ }else{
732
+ echo '<input type="text" class="alm_element numbers-only" name="category-exclude-select" id="category-exclude-select" placeholder="10, 12, 19 etc...">';
733
+ }
734
+ ?>
735
+ </div>
736
+ <div class="clear"></div>
737
+ </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
738
  </div>
739
+ </div>
740
+ <!-- End Category -->
741
+
742
+ <?php }
743
+
744
+ // Tags
745
+ if($disable_dynamic_content){
746
+ $tags = 'null';
747
+ }else{
748
+ $tags = get_tags();
749
+ }
750
+ if($tags){ ?>
751
+ <div class="row checkboxes tags" id="alm-tags">
752
+ <h3 class="heading" tabindex="0"><?php _e('Tag', 'ajax-load-more'); ?></h3>
753
+ <div class="expand-wrap">
754
+ <div class="section-title">
755
+ <h4><?php _e('Include', 'ajax-load-more'); ?></h4>
756
+ <p><?php _e('A comma separated list of tags to include by slug. (toronto, canada etc...)', 'ajax-load-more'); ?><br/>&raquo; <a href="admin.php?page=ajax-load-more-help&section=examples#example-tag" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
757
+ </div>
758
+ <div class="wrap">
759
+ <div class="inner">
760
+ <?php
761
+ if(!$disable_dynamic_content){
762
+ echo '<select class="alm_element multiple" name="tag-select" id="tag-select" multiple="multiple">';
763
+ foreach( $tags as $tag ){
764
+ echo '<option name="chk-'.$tag->slug.'" id="chk-'.$tag->slug.'" value="'.$tag->slug.'">'.$tag->name.'</option>';
765
+ }
766
+ echo '</select>';
767
+ }else{
768
+ echo '<input type="text" class="alm_element" name="tag-select" id="tag-select" placeholder="hockey, puck, crosby etc...">';
769
+ }
770
+ ?>
771
+ </div>
772
+ </div>
773
+ <div class="clear"></div>
774
+ <hr/>
775
+
776
+ <div class="section-title">
777
+ <h4><?php _e('Exclude', 'ajax-load-more'); ?></h4>
778
+ <p><?php _e('A comma separated list of tags to exclude by ID. (30, 12, 99 etc..)', 'ajax-load-more'); ?></p>
779
+ </div>
780
+ <div class="wrap">
781
+ <div class="inner">
782
+ <?php
783
+ if(!$disable_dynamic_content){
784
+ echo '<select class="alm_element multiple" name="tag-exclude-select" id="tag-exclude-select" multiple="multiple">';
785
+ foreach( $tags as $tag ){
786
+ echo '<option name="chk-'.$tag->term_id.'" id="chk-'.$tag->term_id.'" value="'.$tag->term_id.'">'.$tag->name.'</option>';
787
+ }
788
+ echo '</select>';
789
+ }else{
790
+ echo '<input type="text" class="alm_element numbers-only" name="tag-exclude-select" id="tag-exclude-select" placeholder="10, 12, 19 etc...">';
791
+ }
792
+ ?>
793
+ </div>
794
+ <div class="clear"></div>
795
+ </div>
796
+ </div>
797
+ </div>
798
+ <?php } ?>
799
+ <!-- End Tags -->
800
+
801
+ <?php
802
+ // Taxonomies
803
+ $tax_args = array(
804
+ 'public' => true,
805
+ '_builtin' => false
806
+ );
807
+ $tax_output = 'objects';
808
+ $taxonomies = get_taxonomies( $tax_args, $tax_output );
809
+ if ( $taxonomies ) { ?>
810
+ <div class="row taxonomy" id="alm-taxonomy">
811
+ <h3 class="heading" tabindex="0"><?php _e('Taxonomy', 'ajax-load-more'); ?></h3>
812
+ <div class="expand-wrap">
813
+ <div class="section-title">
814
+ <p><?php _e('Select a taxonomy then select the terms and an operator.', 'ajax-load-more'); ?></p>
815
+ </div>
816
+ <div class="wrap">
817
+ <?php include( ALM_PATH . 'admin/shortcode-builder/includes/tax-query-options.php'); ?>
818
+ <div class="controls">
819
+ <button id="add-tax-query" class="button button-primary"><?php _e('Add Another', 'ajax-load-more'); ?></button>
820
+ </div>
821
+ </div>
822
  </div>
823
+ </div>
824
+ <?php }?>
825
+ <!-- End Taxonomies -->
826
+
827
+ <!-- Date -->
828
+ <div class="row input date" id="alm-date">
829
+ <h3 class="heading" tabindex="0"><?php _e('Date', 'ajax-load-more'); ?></h3>
830
+ <div class="expand-wrap">
831
+ <div class="section-title">
832
+ <p><?php _e('Enter a year, month(number) and day to query by date archive.<br/>&raquo; <a href="admin.php?page=ajax-load-more-help&section=examples#example-date" target="_blank">View Example</a>', 'ajax-load-more'); ?></p>
833
+ </div>
834
+ <div class="wrap">
835
+ <div class="inner">
836
+ <div class="wrap-30">
837
+ <?php $today = getdate(); ?>
838
+ <label for="input-year" class="full"><?php _e('Year:', 'ajax-load-more'); ?></label>
839
+ <input name="input-year" class="alm_element sm numbers-only" type="text" id="input-year" maxlength="4" placeholder="<?php echo $today['year']; ?>">
840
+ </div>
841
+ <div class="wrap-30">
842
+ <label for="input-month" class="full"><?php _e('Month:', 'ajax-load-more'); ?></label>
843
+ <input name="input-month" class="alm_element sm numbers-only" type="text" id="input-month" maxlength="2" placeholder="<?php echo $today['mon']; ?>">
844
+ </div>
845
+ <div class="wrap-30">
846
+ <label for="input-day" class="full"><?php _e('Day:', 'ajax-load-more'); ?></label>
847
+ <input name="input-day" class="alm_element sm numbers-only" type="text" id="input-day" maxlength="2" placeholder="<?php echo $today['mday']; ?>">
848
+ </div>
849
+ </div>
850
+ </div>
851
+ </div>
852
+ </div>
853
+ <!-- End Date -->
854
+
855
+ <!-- Meta_Query -->
856
+ <div class="row input meta-key" id="alm-meta-key">
857
+ <h3 class="heading" tabindex="0"><?php _e('Custom Fields (Meta_Query)', 'ajax-load-more'); ?></h3>
858
+ <div class="expand-wrap">
859
+ <div class="section-title full">
860
+ <p><?php _e('Query for <a href="http://codex.wordpress.org/Class_Reference/WP_Meta_Query" target="_blank">custom field</a> by entering a custom field key, value and operator.', 'ajax-load-more'); ?></p>
861
+ </div>
862
+ <div class="wrap full">
863
+ <div class="meta-query-wrap-first">
864
+ <div class="meta-query-wrap">
865
+ <?php include( ALM_PATH . 'admin/shortcode-builder/includes/meta-query-options.php'); ?>
866
+ </div>
867
+ </div>
868
+ <div id="meta-query-relation">
869
+ <div class="inner border-top highlighted">
870
+ <div class="wrap-30 wrap-50">
871
+ <label for="meta-relation" class="full"><?php _e('Relation:', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('The logical relationship between each custom field when there is more than one','ajax-load-more'); ?>."></a></label>
872
+ <select class="alm_element meta-relation" name="meta-relation">
873
+ <option value="AND" selected="selected">AND</option>
874
+ <option value="OR">OR</option>
875
+ </select>
876
+ </div>
877
+ </div>
878
+ </div>
879
+
880
+ <div id="meta-query-extended">
881
+
882
+ </div>
883
+
884
+ <div class="controls">
885
+ <button class="button button-primary" id="add-meta-query"><?php _e('Add Another', 'ajax-load-more'); ?></button>
886
+ </div>
887
+
888
+ </div>
889
+ </div>
890
+ </div>
891
+ <!-- End Meta Query -->
892
+
893
+ <?php // List Authors
894
+ if($disable_dynamic_content){
895
+ $authors = 'null';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
896
  }else{
897
+ $authors = get_users();
898
  }
899
+ if($authors){
900
+ echo '<div class="row select authors" id="alm-authors">';
901
+ echo '<h3 class="heading" tabindex="0">' . __('Author', 'ajax-load-more') . '</h3>';
902
+ echo '<div class="expand-wrap">';
903
+ echo '<div class="section-title">';
904
+ echo '<p>' . __('Select an Author to query(by ID).', 'ajax-load-more') . '<br/>&raquo; <a href="admin.php?page=ajax-load-more-help&section=examples#example-author" target="_blank">View Example</a></p>';
905
+ echo '</div>';
906
+ echo '<div class="wrap"><div class="inner">';
907
+ if(!$disable_dynamic_content){
908
+ echo '<select class="alm_element multiple" name="author-select" id="author-select" multiple="multiple">';
909
+ foreach( $authors as $author ){
910
+ echo '<option name="chk-'.$author->user_login.'" id="chk-'.$author->user_login.'" value="'.$author->ID.'">'.$author->display_name.'</option>';
911
+ }
912
+ echo '</select>';
913
+ }else{
914
+ echo '<input type="text" class="alm_element numbers-only" name="author-select" id="author-select" placeholder="1">';
915
+ }
916
+ echo '</div></div>';
917
+ echo '</div>';
918
+ echo '</div>';
919
+ }
920
+ ?>
921
+ <!-- End Authors -->
922
+
923
+ <!-- Search -->
924
+ <div class="row input search-term" id="alm-search">
925
+ <h3 class="heading" tabindex="0"><?php _e('Search Term', 'ajax-load-more'); ?></h3>
926
+ <div class="expand-wrap">
927
+ <div class="section-title">
928
+ <p><?php _e('Enter a search term to query.', 'ajax-load-more'); ?></p>
929
+ </div>
930
+ <div class="wrap">
931
+ <div class="inner">
932
+ <input name="search-term" class="alm_element" type="text" id="search-term" value="" placeholder="<?php _e('Enter search term', 'ajax-load-more'); ?>">
933
+ </div>
934
+ </div>
935
+ </div>
936
+ </div>
937
+ <!-- End Search -->
938
+
939
+ <!-- Post Parameters -->
940
+ <div class="row input post-in" id="alm-post-in">
941
+ <h3 class="heading" tabindex="0"><?php _e('Post Parameters', 'ajax-load-more'); ?></h3>
942
+ <div class="expand-wrap">
943
+ <div class="section-title">
944
+ <h4><?php _e('Include', 'ajax-load-more'); ?></h4>
945
+ <p><?php _e('A comma separated list of post ID\'s to query.', 'ajax-load-more'); ?></p>
946
+ </div>
947
+ <div class="wrap">
948
+ <div class="inner">
949
+ <input name="post__in" class="alm_element numbers-only" type="text" id="post__in" value="" placeholder="<?php _e('225, 340, 818, etc...', 'ajax-load-more'); ?>">
950
+ </div>
951
+ </div>
952
+ <div class="clear"></div>
953
+ <hr/>
954
+ <div class="section-title">
955
+ <h4><?php _e('Exclude', 'ajax-load-more'); ?></h4>
956
+ <p><?php _e('A comma separated list of post ID\'s to exclude from query.', 'ajax-load-more'); ?><br/>&raquo; <a href="admin.php?page=ajax-load-more-help&section=examples#example-exclude" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
957
+ </div>
958
+ <div class="wrap">
959
+ <div class="inner">
960
+ <input class="alm_element numbers-only" name="exclude-posts" type="text" id="exclude-posts" value="" placeholder="199, 216, 345, etc...">
961
+ </div>
962
+ </div>
963
+ <div class="clear"></div>
964
+ <hr/>
965
+ <div class="section-title">
966
+ <h4><?php _e('Post Status', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Post Status parameters are only available for logged in (admin) users. Non logged in users will only have access to view content in a \'publish\' or \'inherit\' state.','ajax-load-more'); ?>."></a></h4>
967
+ <p><?php _e('Select status of the post.', 'ajax-load-more'); ?></p>
968
+ </div>
969
+ <div class="wrap">
970
+ <div class="inner">
971
+ <select class="alm_element" name="post-status" id="post-status">
972
+ <option value="publish" selected="selected"><?php _e('Published', 'ajax-load-more'); ?></option>
973
+ <option value="any">Any</option>
974
+ <option value="draft">Draft</option>
975
+ <option value="future">Future</option>
976
+ <option value="pending">Pending</option>
977
+ <option value="private">Private</option>
978
+ <option value="trash">Trash</option>
979
+ <option value="inherit">Inherit</option>
980
+ </select>
981
+ </div>
982
+ </div>
983
+ </div>
984
+ </div>
985
+ <!-- End Post Parameters -->
986
+
987
+ <!-- Ordering -->
988
+ <div class="row ordering" id="alm-order">
989
+ <h3 class="heading" tabindex="0"><?php _e('Ordering', 'ajax-load-more'); ?></h3>
990
+ <div class="expand-wrap">
991
+ <div class="section-title">
992
+ <p><?php _e('Sort posts by Order and Orderby parameters.', 'ajax-load-more'); ?></p>
993
+ </div>
994
+ <div class="wrap">
995
+ <div class="inner half">
996
+ <label class="full"><?php _e('Order', 'ajax-load-more'); ?>:</label>
997
+ <select class="alm_element" name="post-order" id="post-order">
998
+ <option value="DESC" selected="selected">DESC (default)</option>
999
+ <option value="ASC">ASC</option>
1000
+ </select>
1001
+ </div>
1002
+ <div class="inner half">
1003
+ <label class="full"><?php _e('Order By', 'ajax-load-more'); ?>:</label>
1004
+ <select class="alm_element" name="post-orderby" id="post-orderby">
1005
+ <option value="date" selected="selected">Date (default)</option>
1006
+ <option value="title">Title</option>
1007
+ <option value="name">Name (slug)</option>
1008
+ <option value="menu_order">Menu Order</option>
1009
+ <option value="author">Author</option>
1010
+ <option value="ID">ID</option>
1011
+ <option value="comment_count">Comment Count</option>
1012
+ <option value="modified">Modified</option>
1013
+ <option value="post__in">Post In</option>
1014
+ <option value="meta_value_num">meta_value_num</option>
1015
+ </select>
1016
+ </div>
1017
+ </div>
1018
+ </div>
1019
+ </div>
1020
+ <!-- End Ordering -->
1021
+
1022
+ <!-- Offset -->
1023
+ <div class="row input offset" id="alm-offset">
1024
+ <h3 class="heading" tabindex="0"><?php _e('Offset', 'ajax-load-more'); ?></h3>
1025
+ <div class="expand-wrap">
1026
+ <div class="section-title">
1027
+ <p><?php _e('Offset the initial query by <em>\'n\'</em> number of posts', 'ajax-load-more'); ?>.</p>
1028
+ </div>
1029
+ <div class="wrap">
1030
+ <div class="inner">
1031
+ <input type="number" class="alm_element numbers-only" name="offset-select" id="offset-select" value="0" step="1" min="0">
1032
+ </div>
1033
+ </div>
1034
+ </div>
1035
+ </div>
1036
+ <!-- End Offset -->
1037
+
1038
+ <!-- Custom Arguments -->
1039
+ <div class="row input custom-arguments" id="alm-custom-args">
1040
+ <h3 class="heading" tabindex="0"><?php _e('Custom Arguments', 'ajax-load-more'); ?></h3>
1041
+ <div class="expand-wrap">
1042
+ <div class="section-title">
1043
+ <p><?php _e('A semicolon separated list of custom value:pair arguments.', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Custom Arguments can be used to query by parameters not available in the Shortcode Builder','ajax-load-more'); ?>."></a><br/><br/>e.g. tag_slug__and:design,development; event_display:upcoming</p>
1044
+ </div>
1045
+ <div class="wrap">
1046
+ <div class="inner">
1047
+ <input name="custom-args" class="alm_element" type="text" id="custom-args" value="" placeholder="<?php _e('event_display:upcoming', 'ajax-load-more'); ?>">
1048
+ </div>
1049
+ </div>
1050
+ </div>
1051
+ </div>
1052
+ <!-- End Custom Arguments -->
1053
+
1054
+ </div>
1055
 
1056
  </div>
1057
  <!-- End Query Parameters -->
admin/src/js/admin.js CHANGED
@@ -3,6 +3,9 @@ var _alm = _alm || {};
3
  jQuery(document).ready(function($) {
4
  "use strict";
5
 
 
 
 
6
 
7
 
8
  /*
@@ -86,8 +89,21 @@ jQuery(document).ready(function($) {
86
  }, 500);
87
 
88
  });
89
-
90
-
 
 
 
 
 
 
 
 
 
 
 
 
 
91
 
92
 
93
  /*
@@ -199,32 +215,65 @@ jQuery(document).ready(function($) {
199
  * @since 2.0.0
200
  */
201
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
202
  $(document).on('click', 'h3.heading', function(){
203
  var el = $(this);
204
  if($(el).hasClass('open')){
205
- $(el).next('.expand-wrap').slideDown(100, 'alm_easeInOutQuad', function(){
206
  $(el).removeClass('open');
207
  });
208
  }else{
209
- $(el).next('.expand-wrap').slideUp(100, 'alm_easeInOutQuad', function(){
210
  $(el).addClass('open');
211
  });
212
  }
213
- });
214
 
215
  $(document).on('click', '.toggle-all', function(){
216
  var el = $(this),
217
  type = el.data('id');
218
- if($(el).hasClass('closed')){
219
- $(el).removeClass('closed');
220
- $('h3.heading').removeClass('open');
221
- $('.expand-wrap').slideDown(100, 'alm_easeInOutQuad');
 
 
 
 
222
  }else{
223
- $(el).addClass('closed');
224
- $('h3.heading').addClass('open');
225
- $('.expand-wrap').slideUp(100, 'alm_easeInOutQuad');
 
 
 
226
  }
227
  });
 
 
 
 
 
 
 
 
 
 
228
 
229
 
230
  /*
@@ -272,8 +321,6 @@ jQuery(document).ready(function($) {
272
 
273
  success: function(data) {
274
 
275
- //console.log(data);
276
-
277
  if(data.msg){
278
  $('.license-btn-wrap', parent).append('<div class="msg">'+data.msg+'</div>');
279
  }
@@ -304,14 +351,12 @@ jQuery(document).ready(function($) {
304
  }
305
  });
306
  }
307
-
308
  });
309
 
310
 
311
 
312
  /*
313
  * Get layout value Ajax
314
- *
315
  * @since 2.8.7
316
  */
317
  $(document).on('click', '.alm-layout-selection li a.layout', function(e){
@@ -378,10 +423,9 @@ jQuery(document).ready(function($) {
378
 
379
  /*
380
  * Dismiss Sharing (Transient)
381
- *
382
  * @since 2.8.7
383
  */
384
- $(document).on('click', '#alm_dismiss_sharing', function(e){
385
  e.preventDefault();
386
  var el = $(this),
387
  container = el.parent('.group');
@@ -408,7 +452,6 @@ jQuery(document).ready(function($) {
408
 
409
  /*
410
  * Scroll to setting section
411
- *
412
  * @since 2.7.3
413
  */
414
 
@@ -425,55 +468,4 @@ jQuery(document).ready(function($) {
425
  });
426
 
427
 
428
-
429
- /*
430
- * equalheight()
431
- *
432
- * @since 2.7.3
433
- */
434
-
435
- function equalheight(container){
436
-
437
- var currentTallest = 0,
438
- currentRowStart = 0,
439
- rowDivs = [],
440
- $el,
441
- topPosition = 0;
442
-
443
- $(container).each(function() {
444
- $el = $(this);
445
- $($el).height('auto');
446
- topPosition = $el.position().top;
447
-
448
- if (currentRowStart != topPosition) {
449
- for (var currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) {
450
- rowDivs[currentDiv].height(currentTallest);
451
- }
452
- rowDivs.length = 0; // empty the array
453
- currentRowStart = topPosition;
454
- currentTallest = $el.height();
455
- rowDivs.push($el);
456
- } else {
457
- rowDivs.push($el);
458
- currentTallest = (currentTallest < $el.height()) ? ($el.height()) : (currentTallest);
459
- }
460
- for (var currentDivs = 0 ; currentDivs < rowDivs.length ; currentDivs++) {
461
- rowDivs[currentDivs].height(currentTallest);
462
- }
463
- });
464
- }
465
- if($('#alm-add-ons').length){
466
- var addOnColumns = $('#alm-add-ons .group .expand-wrap');
467
- $(window).load(function() {
468
- //equalheight(addOnColumns);
469
- });
470
- $(window).resize(function() {
471
- setTimeout(function(){
472
- //equalheight(addOnColumns);
473
- }, 500);
474
- });
475
- }
476
-
477
-
478
-
479
  });
3
  jQuery(document).ready(function($) {
4
  "use strict";
5
 
6
+ _alm.options = {
7
+ speed: 200
8
+ };
9
 
10
 
11
  /*
89
  }, 500);
90
 
91
  });
92
+
93
+
94
+
95
+ /*
96
+ * Download Repeater Template
97
+ * Trigger the download of a repeater template from the admin
98
+ *
99
+ * @since 3.6
100
+ */
101
+
102
+ $('.download-repeater').on('click', function(e){
103
+ let el = this;
104
+ el.closest('form').submit();
105
+ });
106
+
107
 
108
 
109
  /*
215
  * @since 2.0.0
216
  */
217
 
218
+ $(document).on('click', 'h2.shortcode-title', function(){
219
+ var el = $(this);
220
+ var parent = el.closest('.shortcode-parameter-wrap');
221
+ if(el.hasClass('open')){
222
+ el.next('.section-wrap').slideDown(_alm.options.speed, 'alm_easeInOutQuad', function(){
223
+ el.removeClass('open');
224
+ parent.removeClass('closed');
225
+ });
226
+ }else{
227
+ el.next('.section-wrap').slideUp(_alm.options.speed, 'alm_easeInOutQuad', function(){
228
+ el.addClass('open');
229
+ parent.addClass('closed');
230
+ });
231
+ }
232
+ });
233
+
234
  $(document).on('click', 'h3.heading', function(){
235
  var el = $(this);
236
  if($(el).hasClass('open')){
237
+ $(el).next('.expand-wrap').slideDown(_alm.options.speed, 'alm_easeInOutQuad', function(){
238
  $(el).removeClass('open');
239
  });
240
  }else{
241
+ $(el).next('.expand-wrap').slideUp(_alm.options.speed, 'alm_easeInOutQuad', function(){
242
  $(el).addClass('open');
243
  });
244
  }
245
+ });
246
 
247
  $(document).on('click', '.toggle-all', function(){
248
  var el = $(this),
249
  type = el.data('id');
250
+ if(el.hasClass('closed')){
251
+ el.removeClass('closed');
252
+
253
+ $('h2.shortcode-title').closest('.shortcode-parameter-wrap').removeClass('closed');
254
+ $('h3.heading, h2.shortcode-title').removeClass('open');
255
+ $('.section-wrap').slideDown(_alm.options.speed, 'alm_easeInOutQuad');
256
+ $('.expand-wrap').slideDown(_alm.options.speed, 'alm_easeInOutQuad');
257
+
258
  }else{
259
+ el.addClass('closed');
260
+
261
+ $('h2.shortcode-title').closest('.shortcode-parameter-wrap').addClass('closed');
262
+ $('h3.heading, h2.shortcode-title').addClass('open');
263
+ $('.section-wrap').slideUp(_alm.options.speed, 'alm_easeInOutQuad');
264
+ $('.expand-wrap').slideUp(_alm.options.speed, 'alm_easeInOutQuad');
265
  }
266
  });
267
+
268
+
269
+ // Trigger click events on enter/return
270
+ $('h3.heading, h2.shortcode-title').keypress(function (e) {
271
+ var key = e.which;
272
+ if(key == 13){ // the enter key code
273
+ $(this).click();
274
+ return false;
275
+ }
276
+ });
277
 
278
 
279
  /*
321
 
322
  success: function(data) {
323
 
 
 
324
  if(data.msg){
325
  $('.license-btn-wrap', parent).append('<div class="msg">'+data.msg+'</div>');
326
  }
351
  }
352
  });
353
  }
 
354
  });
355
 
356
 
357
 
358
  /*
359
  * Get layout value Ajax
 
360
  * @since 2.8.7
361
  */
362
  $(document).on('click', '.alm-layout-selection li a.layout', function(e){
423
 
424
  /*
425
  * Dismiss Sharing (Transient)
 
426
  * @since 2.8.7
427
  */
428
+ $(document).on('click', '.alm-notification--dismiss', function(e){
429
  e.preventDefault();
430
  var el = $(this),
431
  container = el.parent('.group');
452
 
453
  /*
454
  * Scroll to setting section
 
455
  * @since 2.7.3
456
  */
457
 
468
  });
469
 
470
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
471
  });
admin/src/scss/_variables.scss CHANGED
@@ -1,2 +1,8 @@
1
  $gutter: 25px;
2
- $grey: #555;
 
 
 
 
 
 
1
  $gutter: 25px;
2
+ $padding: 15px;
3
+ $grey: #555;
4
+ $green: #63ccb2;
5
+ $green_hover: #57bda4;
6
+
7
+ $small: 480px;
8
+
admin/src/scss/admin.scss CHANGED
@@ -15,7 +15,8 @@ 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
- body.ajax-load-more_page_ajax-load-more-filters{
 
19
  background-color: #f7f7f7;
20
  #wpcontent{
21
  padding-left: 0;
@@ -23,9 +24,9 @@ body.ajax-load-more_page_ajax-load-more-filters{
23
  background-color: #efefef;
24
  }
25
  #wpbody-content{
26
- padding-bottom: 0;
27
  }
28
- }
29
  body.toplevel_page_ajax-load-more,
30
  body.ajax-load-more_page_ajax-load-more-repeaters,
31
  body.ajax-load-more_page_ajax-load-more-shortcode-builder,
@@ -34,7 +35,8 @@ body.ajax-load-more_page_ajax-load-more-extensions,
34
  body.ajax-load-more_page_ajax-load-more-help,
35
  body.ajax-load-more_page_ajax-load-more-licenses,
36
  body.ajax-load-more_page_ajax-load-more-cache,
37
- body.ajax-load-more_page_ajax-load-more-filters{
 
38
  background: #efefef;
39
  #wpfooter {
40
  padding-top: 0;
@@ -61,8 +63,9 @@ body.ajax-load-more_page_ajax-load-more-filters{
61
  }
62
  }
63
  }
64
- // Extensions
65
- body.ajax-load-more_page_ajax-load-more-extensions{
 
66
  background: #fff;
67
  #wpcontent{
68
  background: #fff;
@@ -163,20 +166,37 @@ body.ajax-load-more_page_ajax-load-more-extensions{
163
  }
164
  }
165
  }
166
- .ajax-load-more p.file-location{
167
- border: 1px solid #efefef;
 
168
  background: #fff;
169
- margin: 0 0 5px;
170
- padding: 15px;
171
  line-height: 1;
172
- display: block;
 
173
  font-family: Consolas, Monaco, monospace;
174
  border-radius: 3px;
175
- font-size: 12px;
 
 
 
 
 
 
 
 
 
 
 
 
 
176
  code{
177
- font-size: 13px;
 
178
  }
179
  }
 
180
  .ajax-load-more code{
181
  background: #fcf3d0;
182
  }
@@ -276,11 +296,15 @@ a.layout-hover{
276
  border-bottom: 1px solid #e1e1e1;
277
  }
278
  .ajax-load-more h3.heading:hover:after,
279
- .ajax-load-more .add-on h3.heading:hover:after{
 
 
280
  color: #ccc;
281
  }
282
- .ajax-load-more h3.heading:hover{
 
283
  color: #222;
 
284
  }
285
  .ajax-load-more h3.heading:after{
286
  font-family: 'FontAwesome';
@@ -304,6 +328,9 @@ a.layout-hover{
304
  }
305
  .ajax-load-more .add-on h3.heading{
306
  background-color: #fefeed;
 
 
 
307
  }
308
 
309
  /* Expand/Collapse all rows */
@@ -703,6 +730,7 @@ a.layout-hover{
703
 
704
  .ajax-load-more input[type=text],
705
  .ajax-load-more input[type=number],
 
706
  .ajax-load-more textarea{
707
  background: #f7f7f7;
708
  }
@@ -725,9 +753,9 @@ a.layout-hover{
725
  .ajax-load-more input[type=number]:focus,
726
  .ajax-load-more input[type=email]:focus,
727
  .ajax-load-more textarea:focus{
728
- border-color: #999;
729
- box-shadow: 0 0 3px #ccc;
730
- background: #efefef;
731
  }
732
 
733
 
@@ -735,15 +763,64 @@ a.layout-hover{
735
  margin-right: 5px;
736
  }
737
 
 
 
738
  .ajax-load-more .one_half{
739
  display: inline-block;
740
- width: 47.333%;
741
- margin: 0 0 1% 2%;
742
  vertical-align: top;
743
  }
744
  .ajax-load-more .one_half:first-of-type{
745
  margin: 0 2% 1% 0;
746
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
747
 
748
  /* --------------------------------------------------------------------------- */
749
  /* Row */
@@ -770,7 +847,8 @@ a.layout-hover{
770
  padding: 0 !important;
771
  }
772
 
773
- .admin.ajax-load-more .row{
 
774
  border-color: #e1e1e1;
775
  }
776
  .admin.ajax-load-more .repeaters .row:hover,
@@ -781,7 +859,7 @@ a.layout-hover{
781
  box-shadow: 0 0 0 3px #f7f7f7;
782
  }
783
  .admin.ajax-load-more .row:first-of-type{
784
- margin: 0;
785
  padding-top: 0;
786
  }
787
  .ajax-load-more .intro{
@@ -796,27 +874,27 @@ a.layout-hover{
796
  .pop-up-jump{
797
  display: block;
798
  width: 100%;
799
- }
800
- .pop-up-jump .jump-menu-wrap{
801
  position: relative;
802
  float: right;
803
  width: 30%;
804
  }
805
- .pop-up-jump .jump-menu-wrap .select2-container{
806
  width: 100% !important;
807
  margin-bottom: 15px;
808
  position: relative;
809
  top: -5px;
810
  }
811
- .pop-up-jump .intro-wrap{
812
  position: relative;
813
  float: left;
814
  width: 65%;
815
  padding-right: 5%;
816
  }
817
- .admin.ajax-load-more .jump-menu{
818
- display: none;
819
- }
 
820
 
821
  /* Table of Contents */
822
  #cnkt-sticky{}
@@ -926,7 +1004,7 @@ hr.indented{ // Indented as fake padding in shortcode builder
926
  padding-left: 0 !important;
927
  }
928
  .ajax-load-more label.template-title{
929
- padding: 0 0 10px;
930
  margin: 0;
931
  font-size: 13px;
932
  color: #888;
@@ -1339,14 +1417,14 @@ hr.indented{ // Indented as fake padding in shortcode builder
1339
  .saved-response,
1340
  p.loading{
1341
  font-size: 12px;
1342
- padding: 8px 0;
1343
  color:#999;
1344
  background: none;
1345
  transition: padding 0.2s ease;
1346
  display: inline-block;
1347
  width: auto;
1348
  position: relative;
1349
- top: 12px;
1350
  left: 15px;
1351
  }
1352
 
@@ -1364,7 +1442,7 @@ p.loading{
1364
  font-weight: 700;
1365
  }
1366
 
1367
- p.loading{
1368
  position: static;
1369
  }
1370
  .saved-response.loading,
@@ -1376,12 +1454,9 @@ p.loading{
1376
 
1377
  .alm-dropdown ul li a.updating{
1378
  background-position: 6px center;
1379
- padding-left: 42px;
1380
  }
1381
 
1382
- input.save-repeater{
1383
- margin-bottom: 5px !important;
1384
- }
1385
  .restore-default{
1386
  float: right;
1387
  margin: 19px 20px 0 0;
@@ -1454,42 +1529,19 @@ table.highlight{
1454
  margin-bottom: 0;
1455
  }
1456
  }
1457
-
1458
- .ajax-load-more .cnkt-main .group a.dismiss{
1459
- position: absolute;
1460
- right: 0;
1461
- top: 0;
1462
- text-decoration: none;
1463
- width: 40px;
1464
- height: 40px;
1465
- line-height: 38px;
1466
- padding: 0;
1467
- text-align: center;
1468
- background: #f7f7f7;
1469
- color: #777;
1470
- border: 1px solid #e1e1e1;
1471
- border-right: none;
1472
- border-top: none;
1473
- display: block;
1474
- font-size: 24px;
1475
- border-radius: 0 2px 0 2px;
1476
- }
1477
- .ajax-load-more .cnkt-main .group a.dismiss:hover{
1478
- background-color: #be3f3f;
1479
- color: #fff;
1480
- }
1481
 
1482
  /* Repeaters */
1483
  .repeaters {
1484
  .repeater-wrap{
1485
- padding: 20px 20px 15px !important;
1486
  }
1487
  .repeater-wrap label{
1488
  cursor: default;
1489
  }
1490
  input.save-repeater{
1491
  display: inline-block;
1492
- margin: 15px 0 0;
1493
  clear: none;
1494
  max-width: 25%;
1495
  }
@@ -1511,14 +1563,14 @@ table.highlight{
1511
  .alm-delete{
1512
  clear: none;
1513
  display: inline-block;
1514
- margin: 15px 0 0;
1515
  width: auto;
1516
  float: right;
1517
  opacity: 0;
1518
  transition: all 0.2s ease;
1519
  position: absolute;
1520
- right: 20px;
1521
- bottom: 17px;
1522
  a{
1523
  border-radius: 2px;
1524
  background: none;
@@ -1614,18 +1666,224 @@ table.highlight{
1614
  #alm-add-ons .group.installed a:hover h2{
1615
  color: #444 !important;
1616
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1617
 
1618
 
1619
  /* Add-on Callout! */
1620
  .call-out{
1621
- background: #63ddbf;
1622
  padding: 18px 100px 18px 18px;
1623
  border-radius: 3px;
1624
  margin: 0;
1625
  width: 100%;
1626
  display: block;
1627
  color: #fff;
1628
- font-size: 14px;
1629
  font-weight: 400;
1630
  position: relative;
1631
  }
@@ -1652,7 +1910,7 @@ table.highlight{
1652
  margin: 10px;
1653
  }
1654
  .call-out .cnkt-button{
1655
- padding: 6px 8px;
1656
  display: inline-block;
1657
  background: #fff;
1658
  border: none;
@@ -1665,11 +1923,12 @@ table.highlight{
1665
  font-size: 13px;
1666
  }
1667
  .call-out a{
1668
- color: #387061 !important;
1669
  text-decoration: none;
1670
  font-weight: 500;
1671
  }
1672
- .call-out a:hover{
 
1673
  color: #222 !important;
1674
  }
1675
  a.cnkt-button,
@@ -1678,7 +1937,7 @@ table.highlight{
1678
  display: inline-block;
1679
  background: #5acfb2;
1680
  border: 1px solid #5acfb2;
1681
- border-radius: 3px;
1682
  position: static;
1683
  text-decoration: none !important;
1684
  color: #fff !important;
@@ -1777,7 +2036,7 @@ table.highlight{
1777
  font-size: 400;
1778
  font-size: 14px;
1779
  }
1780
- .license .cnkt-button{
1781
  position: absolute;
1782
  top: 9px;
1783
  right: 15px;
@@ -1793,12 +2052,11 @@ table.highlight{
1793
 
1794
  .license .no-license{
1795
  display: block;
1796
- padding: 12px 10px 12px 20px;
1797
- margin: 0 0 15px 0;
1798
  border: 1px solid #e7e7c6;
1799
- border-left: 5px solid #e7e7c6;
1800
  background-color: #ffffe5;
1801
- border-radius: 3px;
1802
  }
1803
  .license .no-license h4{
1804
  margin: 0 0 3px;
@@ -1809,7 +2067,6 @@ table.highlight{
1809
  }
1810
 
1811
 
1812
-
1813
  .license .loading{
1814
  position: absolute;
1815
  left: 0;
@@ -1855,26 +2112,25 @@ table.highlight{
1855
  top:-3px;
1856
  }
1857
  .license-wrap input[type=text]{
1858
- background-color: #fff;
1859
- margin: 0 0 15px;
1860
  width: 100% !important;
1861
  border-color: #e7e7e7;
1862
  padding: 14px;
1863
- }
1864
- .license-wrap input[type=text]:focus{
1865
- background-color: #fff;
1866
- }
1867
  .license-wrap .button-primary{
1868
  margin-right: 5px;
1869
  }
1870
  .license-key-field{
1871
  position: relative;
1872
  display: block;
 
1873
  }
1874
  .license-key-field .status{
1875
  position: absolute;
1876
- right:9px;
1877
- top: 9px;
 
1878
  display: inline-block;
1879
  border-radius: 2px;
1880
  padding: 6px 12px;
@@ -1899,7 +2155,6 @@ table.highlight{
1899
  display: inline-block;
1900
  }
1901
 
1902
-
1903
  .license-no-addons{
1904
  border: 1px solid #bad0da;
1905
  border-radius: 3px;
@@ -1909,7 +2164,7 @@ table.highlight{
1909
  margin: 0;
1910
  padding: 0;
1911
  }
1912
-
1913
 
1914
  /*
1915
  * Plugin Sidebar
@@ -2131,15 +2386,26 @@ table.highlight{
2131
  background: #f7f7f7;
2132
  border: 1px solid #e1e1e1;
2133
  color: #999;
2134
- line-height: 1.45;
 
 
 
 
2135
  }
2136
  .ajax-load-more .cm-readonly .CodeMirror{
2137
- margin: 0 0 20px;
2138
  opacity: 0.8;
2139
  }
2140
  .ajax-load-more .cm-readonly .CodeMirror pre{
2141
  cursor: default !important;
2142
  }
 
 
 
 
 
 
 
 
2143
  .ajax-load-more .cm-readonly.sm-margin .CodeMirror{
2144
  margin: 0 0 10px;
2145
  }
@@ -2261,7 +2527,7 @@ table.highlight{
2261
  }
2262
 
2263
  .ajax-load-more .row.unlimited input[type=text]{
2264
- width: 100.75%;
2265
  }
2266
 
2267
  .alm-add-template{
@@ -2669,10 +2935,14 @@ p.cache-stats{
2669
  background: #fff;
2670
  border: 1px solid #e1e1e1;
2671
  border-radius: 3px;
2672
- margin-bottom: 20px;
 
 
 
 
2673
  h2{
2674
- padding: 20px 22px;
2675
- margin: 0 -20px 20px;
2676
  display: block;
2677
  font-size: 20px;
2678
  width: calc(100% + 40px);
@@ -2680,7 +2950,31 @@ p.cache-stats{
2680
  background-color: #f7f7f7;
2681
  border-radius: 2px 2px 0 0;
2682
  color: $grey;
2683
- position: relative;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2684
  i{
2685
  position: absolute;
2686
  right: 15px;
@@ -2689,30 +2983,27 @@ p.cache-stats{
2689
  font-size: 25px;
2690
  color: #ccc;
2691
  opacity: 0.45;
 
2692
  }
2693
  }
2694
  }
2695
- .forceColors #alm-shortcode-builder-form .shortcode-parameter-wrap h2{
2696
- padding: 12px 22px;
2697
- font-size: 20px;
2698
- }
2699
- #alm-shortcode-builder-form .shortcode-parameter-wrap:first-of-type{
2700
- margin-top: 0;
2701
- }
2702
-
2703
- .progress_bar_color_indicator{
2704
- position: absolute;
2705
- left: 11px;
2706
- top: 9px;
2707
- width: 0;
2708
- height: 0;
2709
- padding: 11px;
2710
- border-radius: 2px;
2711
- z-index: 1;
2712
- display: block;
2713
- background-color: #ed7070;
2714
- box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
2715
- }
2716
 
2717
 
2718
  /*
@@ -2731,10 +3022,19 @@ p.cache-stats{
2731
  position: absolute;
2732
  top: -42px;
2733
  right: 7px;
2734
- z-index: 99;
 
 
 
 
 
 
 
 
 
2735
  }
 
2736
  .alm-drop-btn a.target{
2737
- font-weight: 500;
2738
  position: relative;
2739
  color: #999;
2740
  text-decoration: none !important;
@@ -2752,23 +3052,21 @@ p.cache-stats{
2752
  position: absolute;
2753
  top:9px;
2754
  left: 10px;
2755
- }
2756
- .alm-repeater-options a.target:hover{
2757
- background-color: #fff;
2758
- color: #666;
2759
- border-color: #c9c9c9;
2760
- box-shadow: 0 0 3px #ccc;
2761
  }
2762
  .alm-repeater-options a.target:hover i.fa-cog{
2763
- color: #444;
2764
  }
2765
 
2766
- /* Active state */
2767
  .alm-repeater-options a.target:active,
2768
- .alm-repeater-options.active a.target{
2769
- background-color: #fff;
2770
- border-color: #c9c9c9;
2771
- box-shadow: inset 0 1px 1px #efefef !important;
 
 
 
 
2772
  }
2773
  .alm-repeater-options.active a.target,
2774
  .alm-repeater-options.active a.target i.fa-cog{
@@ -2776,30 +3074,33 @@ p.cache-stats{
2776
  }
2777
 
2778
 
2779
- /* Layout Dropdown */
2780
- .alm-drop-btn.alm-layout-selection{
2781
- display: inline-block;
2782
- float: none;
2783
- margin: 0 0 13px;
 
 
2784
  }
2785
- .alm-drop-btn.alm-layout-selection a.target{
2786
- background-color: #f7f7f7;
2787
- border-color: #e1e1e1;
2788
- color: $grey;
2789
- text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.2);
2790
- }
2791
- .alm-drop-btn.alm-layout-selection > a > i{
2792
- left: 12px;
2793
- }
2794
- .alm-drop-btn.alm-layout-selection li.type{
2795
- height: 36px;
2796
- line-height: 36px;
2797
- padding: 0 0 0 8px;
2798
- position: relative;
 
 
 
 
2799
  }
2800
- .alm-dropdown ul li.layout i {
2801
- top: 11px;
2802
- }
2803
  .alm-drop-btn.alm-layout-selection li.type .col-select{
2804
  float: right;
2805
  text-align: right;
@@ -2870,30 +3171,29 @@ p.cache-stats{
2870
  }
2871
  .alm-drop-btn.alm-layout-selection a.add-on{
2872
  line-height: 1.5;
2873
- background-color: #63ddbf;
2874
  border: none;
2875
  color: #fff;
2876
  font-weight: 400;
2877
  text-overflow: inherit;
2878
  height: auto;
2879
- white-space: normal;
 
2880
  }
2881
- .alm-drop-btn.alm-layout-selection a.add-on:hover{
2882
- background-color: #935eaf;
 
2883
  }
2884
  .alm-drop-btn.alm-layout-selection a.add-on:hover i{
2885
  opacity: 1;
2886
  }
2887
- .alm-drop-btn.alm-layout-selection a.add-on:hover strong{
2888
- color: #fff;
2889
- opacity: 0.7;
2890
- }
2891
  .alm-drop-btn.alm-layout-selection a.add-on strong{
2892
- color: #387061;
2893
  font-weight: 600;
2894
  }
2895
  .alm-drop-btn.alm-layout-selection a.add-on i{
2896
  top: 14px;
 
2897
  }
2898
  .alm-drop-btn.alm-layout-selection a.add-on i{
2899
  color: #fff !important;
@@ -2914,30 +3214,36 @@ p.cache-stats{
2914
  box-shadow: inset 0 1px 1px #ccc !important;
2915
  }
2916
 
2917
-
2918
  .alm-drop-btn.alm-layout-selection .alm-dropdown {
2919
  display: none;
2920
  position: absolute;
2921
- right: auto;
2922
- left: -2px;
2923
  top: 108%;
2924
  z-index: 9;
 
 
 
 
2925
  }
2926
  .alm-drop-btn .alm-dropdown:hover{
2927
  display: block !important;
2928
  }
2929
- .alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:after,
2930
- .alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:before {
2931
- right: auto;
2932
- left: 36px;
2933
- }
2934
- .alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner::after{
2935
- margin-left: 0;
2936
- }
2937
- .alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:before {
2938
- right: auto;
2939
- left: 35px;
 
 
 
2940
  }
 
2941
 
2942
  .add-layout-cta{
2943
  border-radius: 2px;
@@ -2972,7 +3278,7 @@ p.cache-stats{
2972
  display: none;
2973
  position: absolute;
2974
  top: 108%;
2975
- right: -2px;
2976
  z-index: 9;
2977
  }
2978
  .alm-dropdown .alm-drop-inner{
@@ -2984,16 +3290,17 @@ p.cache-stats{
2984
  border-radius: 3px;
2985
  border: 1px solid #ccc;
2986
  box-shadow: 0 0 4px #ccc;
2987
- padding: 8px;
2988
  width: 220px;
2989
  }
2990
  .alm-layout-selection .alm-dropdown .alm-drop-inner{
2991
  width: 250px;
 
2992
  }
2993
  .alm-drop-inner:after,
2994
  .alm-drop-inner:before {
2995
  bottom:100%;
2996
- right: 36px;
2997
  border:solid transparent;
2998
  content:" ";
2999
  height:0;
@@ -3012,7 +3319,7 @@ p.cache-stats{
3012
  border-color:rgba(204,204,204,0);
3013
  border-bottom-color:#ccc;
3014
  border-width:8px;
3015
- right: 35px;
3016
  }
3017
 
3018
  .alm-dropdown.active{
@@ -3024,13 +3331,11 @@ p.cache-stats{
3024
  overflow: hidden;
3025
  }
3026
  .alm-dropdown ul li{
3027
- margin:0;
3028
- padding:0;
3029
  list-style: none;
3030
  clear: both;
3031
  font-size: 12px;
3032
- margin: 0;
3033
- padding: 0;
3034
  line-height: 1.2;
3035
  border-top: 1px solid #efefef;
3036
  font-weight: 400;
@@ -3052,6 +3357,7 @@ p.cache-stats{
3052
  white-space: nowrap;
3053
  overflow: hidden;
3054
  text-overflow: ellipsis;
 
3055
  }
3056
 
3057
  .alm-dropdown ul li a i{
@@ -3236,54 +3542,69 @@ p.cache-stats{
3236
 
3237
 
3238
 
3239
- /* share-alm*/
3240
- .ajax-load-more .cnkt-main .group.share-alm{}
3241
- .dotted{
3242
- border: 1px dashed #ccc;
3243
- background: #f7f7f7;
3244
- padding: 20px 20px 25px;
3245
- }
3246
- .share-alm .dotted{
 
 
3247
  border: none;
3248
  border-bottom: 1px dashed #ccc;
3249
  background: none;
3250
  margin: 0 0 20px;
3251
  padding: 0 0 15px;
3252
  }
3253
- .share-alm h3,
3254
- .share-alm h4{
3255
- font-size: 16px;
3256
- }
3257
- .share-alm i.fa-star,
3258
- .share-alm i.fa-share-alt{
3259
- color: #efc919;
3260
- position: relative;
3261
- left: 2px;
3262
- }
3263
- .share-alm i.fa-share-alt{
3264
- color: #ff5a58;
3265
- }
3266
- .share-alm p{
3267
- color: #777;
3268
- }
3269
- .share-alm .sharing{
3270
- padding-right: 20px;
3271
- width: 46%;
3272
- margin-right: 0 !important;
3273
- }
3274
- .share-alm .mailing{
3275
- width: 52%;
3276
- margin-left: 0 !important;
3277
- padding-left: 40px;
3278
- padding-right: 30px;
3279
- border-left: 1px dashed #ccc;
3280
- }
3281
-
3282
- // Sharing Widget
3283
- .share-alm{
 
 
 
 
 
 
 
 
 
 
 
 
 
3284
  ul.share{
3285
  margin: 0 0 10px;
3286
- padding: 0 0 0;
3287
  width: auto;
3288
  clear: both;
3289
  display: inline-block;
@@ -3291,11 +3612,14 @@ p.cache-stats{
3291
  text-align: left;
3292
  width: 100%;
3293
  height: auto;
 
 
 
3294
  li{
3295
  background: none;
3296
  display: inline-block;
3297
  vertical-align: top;
3298
- height: 40px;
3299
  line-height: 40px;
3300
  font-size: 13px;
3301
  position: relative;
@@ -3305,15 +3629,18 @@ p.cache-stats{
3305
  color: #787878;
3306
  width: auto;
3307
  text-align: center;
3308
- height: 36px;
3309
- margin: 10px 10px 0 0 !important;
3310
  padding: 0;
 
 
 
 
3311
  a{
3312
  display: block;
3313
  line-height: 40px;
3314
  height: 40px;
3315
  width: auto;
3316
- padding: 0 15px 0 45px;
3317
  text-decoration: none;
3318
  color: #fff;
3319
  text-align: center;
@@ -3322,6 +3649,7 @@ p.cache-stats{
3322
  position: relative;
3323
  font-weight: 600;
3324
  background: #33cf92;
 
3325
  @media screen and (min-width: 1500px){
3326
  padding: 0 25px 0 50px;
3327
  }
@@ -3363,6 +3691,31 @@ p.cache-stats{
3363
  background: #466cbc !important;
3364
  }
3365
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3366
  }
3367
  }
3368
 
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
+ body.ajax-load-more_page_ajax-load-more-filters,
19
+ body.ajax-load-more_page_ajax-load-more-pro{
20
  background-color: #f7f7f7;
21
  #wpcontent{
22
  padding-left: 0;
24
  background-color: #efefef;
25
  }
26
  #wpbody-content{
27
+ padding-bottom: 0;
28
  }
29
+ }
30
  body.toplevel_page_ajax-load-more,
31
  body.ajax-load-more_page_ajax-load-more-repeaters,
32
  body.ajax-load-more_page_ajax-load-more-shortcode-builder,
35
  body.ajax-load-more_page_ajax-load-more-help,
36
  body.ajax-load-more_page_ajax-load-more-licenses,
37
  body.ajax-load-more_page_ajax-load-more-cache,
38
+ body.ajax-load-more_page_ajax-load-more-filters,
39
+ body.ajax-load-more_page_ajax-load-more-pro{
40
  background: #efefef;
41
  #wpfooter {
42
  padding-top: 0;
63
  }
64
  }
65
  }
66
+ // Extensions, Pro
67
+ body.ajax-load-more_page_ajax-load-more-extensions,
68
+ body.ajax-load-more_page_ajax-load-more-pro{
69
  background: #fff;
70
  #wpcontent{
71
  background: #fff;
166
  }
167
  }
168
  }
169
+ // File location on Theme Repeaters
170
+ .ajax-load-more .file-location{
171
+ border: 1px solid #e1e1e1;
172
  background: #fff;
173
+ margin: 0;
174
+ padding: 0;
175
  line-height: 1;
176
+ display: flex;
177
+ flex-wrap: nowrap;
178
  font-family: Consolas, Monaco, monospace;
179
  border-radius: 3px;
180
+ p, code {
181
+ padding: 12px 16px;
182
+ line-height: 18px;
183
+ font-size: 12px;
184
+ }
185
+ p{
186
+ background: #f7f7f7;
187
+ color: #555;
188
+ font-weight: 600;
189
+ margin: 0;
190
+ width: auto;
191
+ display: inline;
192
+ border-right: 1px solid #e1e1e1;
193
+ }
194
  code{
195
+ color: #999;
196
+ background: transparent;
197
  }
198
  }
199
+
200
  .ajax-load-more code{
201
  background: #fcf3d0;
202
  }
296
  border-bottom: 1px solid #e1e1e1;
297
  }
298
  .ajax-load-more h3.heading:hover:after,
299
+ .ajax-load-more .add-on h3.heading:hover:after,
300
+ .ajax-load-more h3.heading:focus:after,
301
+ .ajax-load-more .add-on h3.heading:focus:after{
302
  color: #ccc;
303
  }
304
+ .ajax-load-more h3.heading:hover,
305
+ .ajax-load-more h3.heading:focus{
306
  color: #222;
307
+ outline: none;
308
  }
309
  .ajax-load-more h3.heading:after{
310
  font-family: 'FontAwesome';
328
  }
329
  .ajax-load-more .add-on h3.heading{
330
  background-color: #fefeed;
331
+ &:focus{
332
+ outline: none;
333
+ }
334
  }
335
 
336
  /* Expand/Collapse all rows */
730
 
731
  .ajax-load-more input[type=text],
732
  .ajax-load-more input[type=number],
733
+ .ajax-load-more input[type=email],
734
  .ajax-load-more textarea{
735
  background: #f7f7f7;
736
  }
753
  .ajax-load-more input[type=number]:focus,
754
  .ajax-load-more input[type=email]:focus,
755
  .ajax-load-more textarea:focus{
756
+ border-color: #bbbbbb;
757
+ box-shadow: 0 0 6px #ccc;
758
+ background: #f7f7f7;
759
  }
760
 
761
 
763
  margin-right: 5px;
764
  }
765
 
766
+
767
+
768
  .ajax-load-more .one_half{
769
  display: inline-block;
770
+ width: 48%;
771
+ margin: 0 -2px 1% 2%;
772
  vertical-align: top;
773
  }
774
  .ajax-load-more .one_half:first-of-type{
775
  margin: 0 2% 1% 0;
776
  }
777
+
778
+
779
+ // 2018 Grid
780
+ .ajax-load-more .alm-row{
781
+ display: block;
782
+ width: 100%;
783
+ &:after {
784
+ content: "";
785
+ clear: both;
786
+ display: table;
787
+ }
788
+ &--margin-btm{
789
+ margin-bottom: $padding;
790
+ }
791
+ &--margin-btm-lg{
792
+ margin-bottom: $gutter;
793
+ }
794
+ .column{
795
+ width: 100%;
796
+ float: none;
797
+ padding: 0 $padding;
798
+ &--half{
799
+ width: 50%;
800
+ float: left;
801
+ }
802
+ &--one-third{
803
+ width: 33.333%;
804
+ float: left;
805
+ }
806
+ &--two-third{
807
+ width: 66.666%;
808
+ float: left;
809
+ }
810
+ &--one-fourth{
811
+ width: 25%;
812
+ float: left;
813
+ }
814
+ @media screen and (max-width: $small){
815
+ &--half,
816
+ &--one-third{
817
+ float: none;
818
+ width: 100%;
819
+ }
820
+ }
821
+ }
822
+ }
823
+
824
 
825
  /* --------------------------------------------------------------------------- */
826
  /* Row */
847
  padding: 0 !important;
848
  }
849
 
850
+ .admin.ajax-load-more .row,
851
+ .forceColors .ajax-load-more .row{
852
  border-color: #e1e1e1;
853
  }
854
  .admin.ajax-load-more .repeaters .row:hover,
859
  box-shadow: 0 0 0 3px #f7f7f7;
860
  }
861
  .admin.ajax-load-more .row:first-of-type{
862
+ margin-top: 20px;
863
  padding-top: 0;
864
  }
865
  .ajax-load-more .intro{
874
  .pop-up-jump{
875
  display: block;
876
  width: 100%;
877
+ .jump-menu-wrap{
 
878
  position: relative;
879
  float: right;
880
  width: 30%;
881
  }
882
+ .jump-menu-wrap .select2-container{
883
  width: 100% !important;
884
  margin-bottom: 15px;
885
  position: relative;
886
  top: -5px;
887
  }
888
+ .intro-wrap{
889
  position: relative;
890
  float: left;
891
  width: 65%;
892
  padding-right: 5%;
893
  }
894
+ }
895
+ .admin.ajax-load-more .jump-menu{
896
+ display: none;
897
+ }
898
 
899
  /* Table of Contents */
900
  #cnkt-sticky{}
1004
  padding-left: 0 !important;
1005
  }
1006
  .ajax-load-more label.template-title{
1007
+ padding: 8px 0 10px;
1008
  margin: 0;
1009
  font-size: 13px;
1010
  color: #888;
1417
  .saved-response,
1418
  p.loading{
1419
  font-size: 12px;
1420
+ padding: 0;
1421
  color:#999;
1422
  background: none;
1423
  transition: padding 0.2s ease;
1424
  display: inline-block;
1425
  width: auto;
1426
  position: relative;
1427
+ top: 5px;
1428
  left: 15px;
1429
  }
1430
 
1442
  font-weight: 700;
1443
  }
1444
 
1445
+ p.loading{
1446
  position: static;
1447
  }
1448
  .saved-response.loading,
1454
 
1455
  .alm-dropdown ul li a.updating{
1456
  background-position: 6px center;
1457
+ padding-left: 32px;
1458
  }
1459
 
 
 
 
1460
  .restore-default{
1461
  float: right;
1462
  margin: 19px 20px 0 0;
1529
  margin-bottom: 0;
1530
  }
1531
  }
1532
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1533
 
1534
  /* Repeaters */
1535
  .repeaters {
1536
  .repeater-wrap{
1537
+ padding: 15px 0 !important;
1538
  }
1539
  .repeater-wrap label{
1540
  cursor: default;
1541
  }
1542
  input.save-repeater{
1543
  display: inline-block;
1544
+ margin: 0;
1545
  clear: none;
1546
  max-width: 25%;
1547
  }
1563
  .alm-delete{
1564
  clear: none;
1565
  display: inline-block;
1566
+ margin: 14px 0 0;
1567
  width: auto;
1568
  float: right;
1569
  opacity: 0;
1570
  transition: all 0.2s ease;
1571
  position: absolute;
1572
+ right: 15px;
1573
+ bottom: 15px;
1574
  a{
1575
  border-radius: 2px;
1576
  background: none;
1666
  #alm-add-ons .group.installed a:hover h2{
1667
  color: #444 !important;
1668
  }
1669
+
1670
+
1671
+ /* Pro Add-on Listing */
1672
+ .alm-pro-listing{
1673
+ padding: 0;
1674
+ border-top: none;
1675
+ position: relative;
1676
+ padding-bottom: 20px;
1677
+ .loader{
1678
+ position: absolute;
1679
+ left: 0;
1680
+ top: 0;
1681
+ width: 100%;
1682
+ height: 100%;
1683
+ z-index: 99;
1684
+ display: none;
1685
+ }
1686
+ &.loading{
1687
+ .loader{
1688
+ display: block;
1689
+ }
1690
+ }
1691
+ &--header{
1692
+ border: 1px solid #e1e1e1;
1693
+ background: #f7f7f7;
1694
+ padding: 15px;
1695
+ font-size: 13px;
1696
+ font-weight: 600;
1697
+ text-transform: uppercase;
1698
+ color: #23282d;
1699
+ position: relative;
1700
+ margin-bottom: 30px;
1701
+ border-radius: 2px;
1702
+ div{
1703
+ position: absolute;
1704
+ right: 15px;
1705
+ top: 50%;
1706
+ transform: translateY(-50%);
1707
+ font-size: 13px;
1708
+ opacity: 0.7;
1709
+ font-weight: normal;
1710
+ text-transform: none;
1711
+ font-style: italic;
1712
+ @media screen and (max-width: 480px){
1713
+ display: none;
1714
+ }
1715
+ }
1716
+ }
1717
+ &--wrap{
1718
+ display: flex;
1719
+ flex-wrap: wrap;
1720
+ justify-content: space-between;
1721
+ }
1722
+
1723
+ .item{
1724
+ width: 49.5%;
1725
+ display: flex;
1726
+ margin-bottom: 10px;
1727
+ @media screen and (min-width: 1500px){
1728
+ width: 32.775%;
1729
+ }
1730
+ @media screen and (max-width: 480px){
1731
+ width: 100%;
1732
+ }
1733
+ h2, p, img, .state{
1734
+ transition: all 0.15s ease;
1735
+ }
1736
+ a{
1737
+ text-decoration: none !important;
1738
+ padding: 0 55px 0 0;
1739
+ position: relative;
1740
+ display: flex;
1741
+ border: 1px solid #e1e1e1;
1742
+ transition: all 0.15s ease;
1743
+ border-radius: 2px;
1744
+ &:hover,
1745
+ &:focus{
1746
+ border-color: #bbb;
1747
+ h2{
1748
+ text-decoration: underline;
1749
+ }
1750
+ }
1751
+ }
1752
+ &--detail{
1753
+ padding: 15px 20px;
1754
+ position: relative;
1755
+ min-height: 110px;
1756
+ display: flex;
1757
+ align-items: center;
1758
+ div{
1759
+ padding: 0;
1760
+ }
1761
+ img{
1762
+ width: 95px;
1763
+ height: auto;
1764
+ margin-right: 20px;
1765
+ @media screen and (max-width: 768px){
1766
+ display: none;
1767
+ }
1768
+ }
1769
+ a{
1770
+ text-decoration: none;
1771
+ &:hover{
1772
+ text-decoration: underline;
1773
+ }
1774
+ }
1775
+ h2{
1776
+ margin: 0 0 7px;
1777
+ font-size: 16px;
1778
+ line-height: 1;
1779
+ transition: all 0.15s ease;
1780
+ }
1781
+ p{
1782
+ margin: 0;
1783
+ padding: 0;
1784
+ font-size: 14px;
1785
+ &.link{
1786
+ font-size: 13px;
1787
+ padding-top: 2px;
1788
+ opacity: 0;
1789
+ transition: opacity 0.15s ease;
1790
+ }
1791
+ }
1792
+ }
1793
+ .result{
1794
+ position: absolute;
1795
+ right: 8px;
1796
+ bottom: 8px;
1797
+ font-size: 12px;
1798
+ opacity: 0;
1799
+ transition: all 0.25s ease;
1800
+ &.in-view{
1801
+ opacity: 0.7;
1802
+ }
1803
+ .type{
1804
+ background: #47bd79;
1805
+ color: #fff;
1806
+ display: none;
1807
+ border-radius: 2px;
1808
+ padding: 3px 6px;
1809
+ display: inline-block;
1810
+ }
1811
+ .type.inactive{
1812
+ background: #c54545;
1813
+ display: none;
1814
+ }
1815
+ }
1816
+ .state{
1817
+ width: 22px;
1818
+ height: 22px;
1819
+ position: absolute;
1820
+ right: 8px;
1821
+ top: 8px;
1822
+ border-radius: 2px;
1823
+ background: #57d48c;
1824
+ color: #fff;
1825
+ display: flex;
1826
+ align-items: center;
1827
+ justify-content: center;
1828
+ text-decoration: none !important;
1829
+ font-size: 12px;
1830
+ transition: all 0.15s ease;
1831
+ &:before{
1832
+ font-family: 'FontAwesome';
1833
+ content: '\f00c';
1834
+ display: block;
1835
+
1836
+ }
1837
+ }
1838
+
1839
+ &.active{
1840
+ a{
1841
+ border-color: #57d48c
1842
+ }
1843
+ &:hover{
1844
+ .state{
1845
+ opacity: 0.9;
1846
+ }
1847
+ }
1848
+ }
1849
+
1850
+ &.inactive{
1851
+ h2, p, img, .state{
1852
+ opacity: 0.5;
1853
+ }
1854
+ .state{
1855
+ background: #e1e1e1;
1856
+ &:before{
1857
+ opacity: 0;
1858
+ }
1859
+ }
1860
+ &:hover{
1861
+ h2, p, img, .state{
1862
+ opacity: 0.8;
1863
+ }
1864
+
1865
+ .state{
1866
+ background: #ccc;
1867
+ &:before{
1868
+ opacity: 1;
1869
+ }
1870
+ }
1871
+ }
1872
+ }
1873
+ }
1874
+ }
1875
 
1876
 
1877
  /* Add-on Callout! */
1878
  .call-out{
1879
+ background: $green;
1880
  padding: 18px 100px 18px 18px;
1881
  border-radius: 3px;
1882
  margin: 0;
1883
  width: 100%;
1884
  display: block;
1885
  color: #fff;
1886
+ font-size: 13px;
1887
  font-weight: 400;
1888
  position: relative;
1889
  }
1910
  margin: 10px;
1911
  }
1912
  .call-out .cnkt-button{
1913
+ padding: 6px 10px;
1914
  display: inline-block;
1915
  background: #fff;
1916
  border: none;
1923
  font-size: 13px;
1924
  }
1925
  .call-out a{
1926
+ color: #3f524d !important;
1927
  text-decoration: none;
1928
  font-weight: 500;
1929
  }
1930
+ .call-out a:hover,
1931
+ .call-out a:focus{
1932
  color: #222 !important;
1933
  }
1934
  a.cnkt-button,
1937
  display: inline-block;
1938
  background: #5acfb2;
1939
  border: 1px solid #5acfb2;
1940
+ border-radius: 2px;
1941
  position: static;
1942
  text-decoration: none !important;
1943
  color: #fff !important;
2036
  font-size: 400;
2037
  font-size: 14px;
2038
  }
2039
+ .license .cnkt-button{
2040
  position: absolute;
2041
  top: 9px;
2042
  right: 15px;
2052
 
2053
  .license .no-license{
2054
  display: block;
2055
+ padding: 12px;
2056
+ margin: 0 0 20px;
2057
  border: 1px solid #e7e7c6;
 
2058
  background-color: #ffffe5;
2059
+ border-radius: 2px;
2060
  }
2061
  .license .no-license h4{
2062
  margin: 0 0 3px;
2067
  }
2068
 
2069
 
 
2070
  .license .loading{
2071
  position: absolute;
2072
  left: 0;
2112
  top:-3px;
2113
  }
2114
  .license-wrap input[type=text]{
2115
+ background-color: #f7f7f7;
2116
+ margin: 0;
2117
  width: 100% !important;
2118
  border-color: #e7e7e7;
2119
  padding: 14px;
2120
+ }
 
 
 
2121
  .license-wrap .button-primary{
2122
  margin-right: 5px;
2123
  }
2124
  .license-key-field{
2125
  position: relative;
2126
  display: block;
2127
+ margin: 0 0 20px;
2128
  }
2129
  .license-key-field .status{
2130
  position: absolute;
2131
+ right: 10px;
2132
+ top: 50%;
2133
+ transform: translateY(-50%);
2134
  display: inline-block;
2135
  border-radius: 2px;
2136
  padding: 6px 12px;
2155
  display: inline-block;
2156
  }
2157
 
 
2158
  .license-no-addons{
2159
  border: 1px solid #bad0da;
2160
  border-radius: 3px;
2164
  margin: 0;
2165
  padding: 0;
2166
  }
2167
+
2168
 
2169
  /*
2170
  * Plugin Sidebar
2386
  background: #f7f7f7;
2387
  border: 1px solid #e1e1e1;
2388
  color: #999;
2389
+ line-height: 1.5;
2390
+ &.CodeMirror-focused{
2391
+ border-color: #bbbbbb;
2392
+ box-shadow: 0 0 6px #ccc;
2393
+ }
2394
  }
2395
  .ajax-load-more .cm-readonly .CodeMirror{
 
2396
  opacity: 0.8;
2397
  }
2398
  .ajax-load-more .cm-readonly .CodeMirror pre{
2399
  cursor: default !important;
2400
  }
2401
+ .ajax-load-more .CodeMirror pre{
2402
+ padding: 0 10px;
2403
+ }
2404
+ .CodeMirror-linenumber{
2405
+ padding: 0 10px !important;
2406
+ line-height: 1.25 !important;
2407
+ color: #999;
2408
+ }
2409
  .ajax-load-more .cm-readonly.sm-margin .CodeMirror{
2410
  margin: 0 0 10px;
2411
  }
2527
  }
2528
 
2529
  .ajax-load-more .row.unlimited input[type=text]{
2530
+ width: 100%;
2531
  }
2532
 
2533
  .alm-add-template{
2935
  background: #fff;
2936
  border: 1px solid #e1e1e1;
2937
  border-radius: 3px;
2938
+ margin-bottom: 10px;
2939
+ &.closed{
2940
+ padding-bottom: 0;
2941
+ border-bottom: none;
2942
+ }
2943
  h2{
2944
+ padding: 20px 22px 20px 43px;
2945
+ margin: 0 -20px;
2946
  display: block;
2947
  font-size: 20px;
2948
  width: calc(100% + 40px);
2950
  background-color: #f7f7f7;
2951
  border-radius: 2px 2px 0 0;
2952
  color: $grey;
2953
+ font-weight: 600;
2954
+ position: relative;
2955
+ cursor: pointer;
2956
+ &:focus,
2957
+ &:hover{
2958
+ color: #222;
2959
+ outline: none;
2960
+ }
2961
+ &:hover:after,
2962
+ &:focus:after{
2963
+ color: #ccc;
2964
+ }
2965
+ &:after{
2966
+ font-family: 'FontAwesome';
2967
+ content: '\f056';
2968
+ color: #e1e1e1;
2969
+ position: absolute;
2970
+ left: 15px;
2971
+ top: 20px;
2972
+ height: 20px;
2973
+ width: 20px;
2974
+ }
2975
+ &.open:after{
2976
+ content:'\f055';
2977
+ }
2978
  i{
2979
  position: absolute;
2980
  right: 15px;
2983
  font-size: 25px;
2984
  color: #ccc;
2985
  opacity: 0.45;
2986
+ display: none;
2987
  }
2988
  }
2989
  }
2990
+
2991
+ #alm-shortcode-builder-form .shortcode-parameter-wrap:first-of-type{
2992
+ margin-top: 0;
2993
+ }
2994
+ .progress_bar_color_indicator{
2995
+ position: absolute;
2996
+ left: 11px;
2997
+ top: 9px;
2998
+ width: 0;
2999
+ height: 0;
3000
+ padding: 11px;
3001
+ border-radius: 2px;
3002
+ z-index: 1;
3003
+ display: block;
3004
+ background-color: #ed7070;
3005
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
3006
+ }
 
 
 
 
3007
 
3008
 
3009
  /*
3022
  position: absolute;
3023
  top: -42px;
3024
  right: 7px;
3025
+ z-index: 8;
3026
+ a.target{
3027
+ padding: 8px 10px;
3028
+ box-shadow: none;
3029
+ border: none;
3030
+ > i{
3031
+ font-size: 20px;
3032
+ position: static;
3033
+ }
3034
+ }
3035
  }
3036
+
3037
  .alm-drop-btn a.target{
 
3038
  position: relative;
3039
  color: #999;
3040
  text-decoration: none !important;
3052
  position: absolute;
3053
  top:9px;
3054
  left: 10px;
 
 
 
 
 
 
3055
  }
3056
  .alm-repeater-options a.target:hover i.fa-cog{
3057
+ color: #333;
3058
  }
3059
 
3060
+ /* Active / Hover state */
3061
  .alm-repeater-options a.target:active,
3062
+ .alm-repeater-options.active a.target,
3063
+ .alm-repeater-options a.target:hover,
3064
+ .alm-repeater-options a.target:focus{
3065
+ background-color: transparent;
3066
+ color: #222;
3067
+ border-color: transparent;
3068
+ box-shadow: none;
3069
+ opacity: 1;
3070
  }
3071
  .alm-repeater-options.active a.target,
3072
  .alm-repeater-options.active a.target i.fa-cog{
3074
  }
3075
 
3076
 
3077
+ /* Layout Dropdown */
3078
+ .alm-drop-btn.alm-layout-selection{
3079
+ display: inline-block;
3080
+ float: right;
3081
+ margin: 0;
3082
+ @media screen and (max-width: 480px){
3083
+ float: none;
3084
  }
3085
+ a.target{
3086
+ background-color: #f7f7f7;
3087
+ border-color: #e1e1e1;
3088
+ color: $grey;
3089
+ text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.2);
3090
+ }
3091
+ > a > i{
3092
+ left: 12px;
3093
+ }
3094
+ li.type{
3095
+ height: 36px;
3096
+ line-height: 36px;
3097
+ padding: 0 0 0 8px;
3098
+ position: relative;
3099
+ }
3100
+ }
3101
+ .alm-dropdown ul li.layout i {
3102
+ top: 11px;
3103
  }
 
 
 
3104
  .alm-drop-btn.alm-layout-selection li.type .col-select{
3105
  float: right;
3106
  text-align: right;
3171
  }
3172
  .alm-drop-btn.alm-layout-selection a.add-on{
3173
  line-height: 1.5;
3174
+ background-color: $green;
3175
  border: none;
3176
  color: #fff;
3177
  font-weight: 400;
3178
  text-overflow: inherit;
3179
  height: auto;
3180
+ white-space: normal;
3181
+ font-size: 12px;
3182
  }
3183
+ .alm-drop-btn.alm-layout-selection a.add-on:hover,
3184
+ .alm-drop-btn.alm-layout-selection a.add-on:focus{
3185
+ background-color: $green_hover;
3186
  }
3187
  .alm-drop-btn.alm-layout-selection a.add-on:hover i{
3188
  opacity: 1;
3189
  }
 
 
 
 
3190
  .alm-drop-btn.alm-layout-selection a.add-on strong{
3191
+ color: #41635a;
3192
  font-weight: 600;
3193
  }
3194
  .alm-drop-btn.alm-layout-selection a.add-on i{
3195
  top: 14px;
3196
+ left: 3px;
3197
  }
3198
  .alm-drop-btn.alm-layout-selection a.add-on i{
3199
  color: #fff !important;
3214
  box-shadow: inset 0 1px 1px #ccc !important;
3215
  }
3216
 
 
3217
  .alm-drop-btn.alm-layout-selection .alm-dropdown {
3218
  display: none;
3219
  position: absolute;
3220
+ right: 0;
 
3221
  top: 108%;
3222
  z-index: 9;
3223
+ @media screen and (max-width: $small){
3224
+ right: auto;
3225
+ left: 0;
3226
+ }
3227
  }
3228
  .alm-drop-btn .alm-dropdown:hover{
3229
  display: block !important;
3230
  }
3231
+
3232
+ @media screen and (max-width: $small){
3233
+ .alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:after,
3234
+ .alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:before {
3235
+ right: auto;
3236
+ left: 36px;
3237
+ }
3238
+ .alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:after{
3239
+ margin-left: 0;
3240
+ }
3241
+ .alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:before {
3242
+ right: auto;
3243
+ left: 35px;
3244
+ }
3245
  }
3246
+
3247
 
3248
  .add-layout-cta{
3249
  border-radius: 2px;
3278
  display: none;
3279
  position: absolute;
3280
  top: 108%;
3281
+ right: -15px;
3282
  z-index: 9;
3283
  }
3284
  .alm-dropdown .alm-drop-inner{
3290
  border-radius: 3px;
3291
  border: 1px solid #ccc;
3292
  box-shadow: 0 0 4px #ccc;
3293
+ padding: 5px 8px;
3294
  width: 220px;
3295
  }
3296
  .alm-layout-selection .alm-dropdown .alm-drop-inner{
3297
  width: 250px;
3298
+ padding: 8px 8px 5px;
3299
  }
3300
  .alm-drop-inner:after,
3301
  .alm-drop-inner:before {
3302
  bottom:100%;
3303
+ right: 26px;
3304
  border:solid transparent;
3305
  content:" ";
3306
  height:0;
3319
  border-color:rgba(204,204,204,0);
3320
  border-bottom-color:#ccc;
3321
  border-width:8px;
3322
+ right: 25px;
3323
  }
3324
 
3325
  .alm-dropdown.active{
3331
  overflow: hidden;
3332
  }
3333
  .alm-dropdown ul li{
3334
+ margin: 0;
3335
+ padding: 3px 0;
3336
  list-style: none;
3337
  clear: both;
3338
  font-size: 12px;
 
 
3339
  line-height: 1.2;
3340
  border-top: 1px solid #efefef;
3341
  font-weight: 400;
3357
  white-space: nowrap;
3358
  overflow: hidden;
3359
  text-overflow: ellipsis;
3360
+ border-radius: 2px;
3361
  }
3362
 
3363
  .alm-dropdown ul li a i{
3542
 
3543
 
3544
 
3545
+ /* share-alm */
3546
+ .alm-notification{
3547
+ background: #6199c3 !important;
3548
+ border-color: #3f7d9a !important;
3549
+ &:hover{
3550
+ a.dismiss{
3551
+ opacity: 0.7;
3552
+ }
3553
+ }
3554
+ .dotted{
3555
  border: none;
3556
  border-bottom: 1px dashed #ccc;
3557
  background: none;
3558
  margin: 0 0 20px;
3559
  padding: 0 0 15px;
3560
  }
3561
+ h2{
3562
+ padding-right: 50px;
3563
+ padding-left: 32px;
3564
+ line-height: 1.25;
3565
+ position: relative;
3566
+ color: #fff;
3567
+ font-size: 22px;
3568
+ margin: 0 0 10px;
3569
+ span{
3570
+ position: absolute;
3571
+ left: 0;
3572
+ top: 0;
3573
+ }
3574
+ @media screen and (max-width: $small){
3575
+ padding-left: 0;
3576
+ span{
3577
+ display: none;
3578
+ }
3579
+ }
3580
+ }
3581
+
3582
+ p{
3583
+ color: #ddeaf1;
3584
+ font-size: 14px;
3585
+ padding-left: 33px;
3586
+ margin: 0 0 20px;
3587
+ @media screen and (max-width: $small){
3588
+ padding-left: 0;
3589
+ }
3590
+ a{
3591
+ color: #fff;
3592
+ font-weight: 600;
3593
+ &:hover,
3594
+ &:focus{
3595
+ text-decoration: none;
3596
+ }
3597
+ }
3598
+ &.opening{
3599
+ font-size: 18px;
3600
+ margin: 0 0 13px;
3601
+ font-weight: 300;
3602
+ }
3603
+ }
3604
+
3605
  ul.share{
3606
  margin: 0 0 10px;
3607
+ padding: 0 0 0 32px;
3608
  width: auto;
3609
  clear: both;
3610
  display: inline-block;
3612
  text-align: left;
3613
  width: 100%;
3614
  height: auto;
3615
+ @media screen and (max-width: $small){
3616
+ padding: 0;
3617
+ }
3618
  li{
3619
  background: none;
3620
  display: inline-block;
3621
  vertical-align: top;
3622
+ height: auto;
3623
  line-height: 40px;
3624
  font-size: 13px;
3625
  position: relative;
3629
  color: #787878;
3630
  width: auto;
3631
  text-align: center;
3632
+ margin: 12px 10px 0 0 !important;
 
3633
  padding: 0;
3634
+ @media screen and (max-width: $small){
3635
+ display: block;
3636
+ width: 100%;
3637
+ }
3638
  a{
3639
  display: block;
3640
  line-height: 40px;
3641
  height: 40px;
3642
  width: auto;
3643
+ padding: 0 15px 0 47px;
3644
  text-decoration: none;
3645
  color: #fff;
3646
  text-align: center;
3649
  position: relative;
3650
  font-weight: 600;
3651
  background: #33cf92;
3652
+ box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.075), inset 0 0 1px rgba(255, 255, 255, 0.2);
3653
  @media screen and (min-width: 1500px){
3654
  padding: 0 25px 0 50px;
3655
  }
3691
  background: #466cbc !important;
3692
  }
3693
  }
3694
+ }
3695
+
3696
+ // Close BTN
3697
+ a.dismiss{
3698
+ position: absolute;
3699
+ right: 3px;
3700
+ top: 3px;
3701
+ text-decoration: none;
3702
+ width: 30px;
3703
+ height: 30px;
3704
+ line-height: 30px;
3705
+ padding: 0;
3706
+ text-align: center;
3707
+ color: #fff;
3708
+ border-right: none;
3709
+ border-top: none;
3710
+ display: block;
3711
+ font-size: 24px;
3712
+ font-weight: 300;
3713
+ opacity: 0.3;
3714
+ &:hover,
3715
+ &:focus{
3716
+ color: #fff;
3717
+ opacity: 1;
3718
+ }
3719
  }
3720
  }
3721
 
admin/views/licenses.php CHANGED
@@ -1,9 +1,13 @@
 
 
 
 
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 <a href="admin.php?page=ajax-load-more-add-ons">add-on</a> updates from the plugins dashboard', 'ajax-load-more'); ?>.</em>
7
  </h1>
8
  </header>
9
 
@@ -11,12 +15,27 @@
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){
@@ -115,8 +134,8 @@
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">
1
+ <?php
2
+ $pg_title = (has_action('alm_pro_installed')) ? __('Pro License', 'ajax-load-more') : __('Licenses', 'ajax-load-more');
3
+ $pg_desc = (has_action('alm_pro_installed')) ? __('Enter your Pro license key to enable updates from the plugins dashboard', 'ajax-load-more') : __('Enter your license keys below to enable <a href="admin.php?page=ajax-load-more-add-ons">add-on</a> updates from the plugins dashboard', 'ajax-load-more');
4
+ ?>
5
  <div class="admin ajax-load-more" id="alm-licenses">
6
  <div class="wrap main-cnkt-wrap">
7
  <header class="header-wrap">
8
  <h1>
9
+ <?php echo ALM_TITLE; ?>: <strong><?php echo $pg_title; ?></strong>
10
+ <em><?php echo $pg_desc; ?>.</em>
11
  </h1>
12
  </header>
13
 
15
 
16
  <div class="cnkt-main">
17
 
18
+ <h3><?php
19
+ if(has_action('alm_pro_installed')){
20
+ _e('License Key', 'ajax-load-more');
21
+ } else {
22
+ _e('License Keys', 'ajax-load-more');
23
+ }
24
+ ?></h3>
25
 
26
+ <p>
27
+ <?php
28
+ if(has_action('alm_pro_installed')){
29
+ _e('Enter your Ajax Load More Pro license key to receive plugin update notifications directly within the <a href="plugins.php">WP Plugins dashboard</a>.', 'ajax-load-more');
30
+ } else {
31
+ _e('Enter a key for each of your Ajax Load More add-ons to receive plugin update notifications directly within the <a href="plugins.php">WP Plugins dashboard</a>.', 'ajax-load-more');
32
+ }
33
+ ?>
34
+ </p>
35
 
36
  <?php
37
+
38
+ $addons = (has_action('alm_pro_installed')) ? alm_get_pro_addon() : alm_get_addons();
39
  $addon_count = 0;
40
 
41
  foreach($addons as $addon){
134
  <h3><?php _e('About Licenses', 'ajax-load-more'); ?></h3>
135
  <div class="cta-inner">
136
  <ul>
137
+ <li><?php _e('License keys are found in the purchase receipt email that was sent immediately after purchase and in the <a target="_blank" href="https://connekthq.com/account/">Account</a> section on our website', 'ajax-load-more');?></li>
138
+ <li><?php _e('If you cannot locate your key please open a support ticket by filling out the <a href="https://connekthq.com/contact/">support form</a> and reference the email address used when you completed the purchase.', 'ajax-load-more'); ?></li>
139
  </ul>
140
  </div>
141
  <div class="major-publishing-actions">
admin/views/repeater-templates.php CHANGED
@@ -1,13 +1,8 @@
1
  <?php
2
  $theme_repeaters = false;
3
  if (isset($_GET['theme-repeaters'])) {
4
- $theme_repeaters = $_GET['theme-repeaters'];
5
-
6
- if($theme_repeaters == 'true' && has_action('alm_get_theme_repeater')){
7
- $theme_repeaters = true;
8
- }else{
9
- $theme_repeaters = false;
10
- }
11
  }
12
  ?>
13
 
@@ -34,15 +29,18 @@
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
- if(!isset($options['_alm_theme_repeaters_dir']))
45
  $options['_alm_theme_repeaters_dir'] = 'alm_templates';
 
46
 
47
  // Get template location
48
  if(is_child_theme()){
@@ -56,6 +54,7 @@
56
  $count++;
57
  $file = realpath($file);
58
  $link = substr($file, strlen($dir) + 1);
 
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
 
@@ -66,29 +65,52 @@
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>
@@ -173,67 +195,90 @@
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
- // Add Label
178
- echo '<label class="template-title" for="template-default">';
179
- _e('Enter the HTML and PHP code for the default template', 'ajax-load-more');
180
- echo ':</label>';
181
-
182
- // Layouts - Template Selection
183
- do_action('alm_get_layouts');
 
 
 
 
184
  }
185
  ?>
186
- <textarea rows="10" id="template-default" class="_alm_repeater"><?php echo $contents; ?></textarea>
187
- <script>
188
- var editorDefault = CodeMirror.fromTextArea(document.getElementById("template-default"), {
189
- mode: "application/x-httpd-php",
190
- lineNumbers: true,
191
- lineWrapping: true,
192
- indentUnit: 0,
193
- matchBrackets: true,
194
- readOnly: <?php echo $readOnly; ?>,
195
- viewportMargin: Infinity,
196
- extraKeys: {"Ctrl-Space": "autocomplete"},
197
- });
198
- </script>
 
 
 
 
199
 
200
- <?php if(!$local_template){ ?>
201
-
202
- <input type="submit" value="<?php _e('Save Template', 'ajax-load-more'); ?>" class="button button-primary save-repeater" data-editor-id="template-default">
203
- <div class="saved-response">&nbsp;</div>
204
- <?php include( ALM_PATH . 'admin/includes/components/repeater-options.php'); ?>
205
-
206
- <?php } else {
207
- $file_directory = get_option('stylesheet') .'/'. strtolower(substr(basename($template_dir), strrpos(basename($template_dir), '/')));
208
- ?>
209
-
210
- <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>
211
- <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>
212
-
213
- <?php } ?>
 
 
 
 
 
 
 
 
 
 
 
214
 
215
  </div>
216
  </div>
217
- </div>
218
-
219
  <!-- End Default Template -->
 
220
 
221
  <!-- Custom Repeaters -->
222
  <?php
223
-
224
- if (!has_action('alm_get_unlimited_repeaters') && !has_action('alm_get_custom_repeaters')){
225
  // If Custom Repeaters & Theme Repeaters is NOT installed
226
- echo '<div class="row no-brd">';
227
  include( ALM_PATH . 'admin/includes/cta/extend.php');
228
  echo '</div>';
229
  }
230
-
231
- if (has_action('alm_custom_repeaters')){ // List custom repeaters v1
 
232
  do_action('alm_custom_repeaters');
233
  }
234
- if (has_action('alm_unlimited_repeaters')){ // List custom repeaters v2
 
 
235
  do_action('alm_unlimited_repeaters');
236
  }
 
237
  ?>
238
 
239
  <script>
@@ -249,7 +294,7 @@
249
  */
250
 
251
  _alm_admin.saveRepeater = function(btn, editorId) {
252
- var container = btn.parent('.repeater-wrap'),
253
  el = $('textarea._alm_repeater', container),
254
  textarea = el.next('.CodeMirror'),
255
  btn = btn,
@@ -448,4 +493,4 @@
448
  </div>
449
 
450
  </div>
451
- </div>
1
  <?php
2
  $theme_repeaters = false;
3
  if (isset($_GET['theme-repeaters'])) {
4
+ $theme_repeaters = $_GET['theme-repeaters'];
5
+ $theme_repeaters = ($theme_repeaters == 'true' && has_action('alm_get_theme_repeater')) ? true : false;
 
 
 
 
 
6
  }
7
  ?>
8
 
29
 
30
 
31
  <?php
32
+
33
+ // Theme Repeaters
34
 
35
  if($theme_repeaters){ ?>
36
  <div class="group no-shadow">
37
 
38
+ <?php
39
+
40
  $options = get_option( 'alm_settings' );
41
+ if(!isset($options['_alm_theme_repeaters_dir'])){
42
  $options['_alm_theme_repeaters_dir'] = 'alm_templates';
43
+ }
44
 
45
  // Get template location
46
  if(is_child_theme()){
54
  $count++;
55
  $file = realpath($file);
56
  $link = substr($file, strlen($dir) + 1);
57
+
58
  $file_extension = strtolower(substr(basename($file), strrpos(basename($file), '.') + 1));
59
  $file_directory = get_option('stylesheet') .'/'. strtolower(substr(basename($dir), strrpos(basename($dir), '/')));
60
 
65
  <div class="row template" id="tr-<?php echo $id; ?>">
66
  <h3 class="heading"><?php echo basename($file); ?></h3>
67
  <div class="expand-wrap">
68
+ <div class="wrap repeater-wrap cm-readonly" data-name="template-tr-<?php echo $id; ?>">
69
+
70
+ <div class="alm-row alm-row--margin-btm">
71
+ <div class="column">
72
+ <?php
73
+ $template = fopen ($file, "r"); // Open file
74
+ $tr_contents = '';
75
+ if(filesize ($file) != 0){
76
+ $tr_contents = fread ($template, filesize ($file));
77
+ }
78
+ fclose ($template);
79
+ ?>
80
+ <textarea rows="10" id="template-tr-<?php echo $id; ?>" class="_alm_repeater"><?php echo $tr_contents; ?></textarea>
81
+ <script>
82
+ var editorDefault = CodeMirror.fromTextArea(document.getElementById("template-tr-<?php echo $id; ?>"), {
83
+ mode: "application/x-httpd-php",
84
+ lineNumbers: true,
85
+ lineWrapping: true,
86
+ indentUnit: 0,
87
+ matchBrackets: true,
88
+ readOnly: true,
89
+ viewportMargin: Infinity,
90
+ extraKeys: {"Ctrl-Space": "autocomplete"},
91
+ });
92
+ </script>
93
+ </div>
94
+ </div>
95
+
96
+ <div class="alm-row">
97
+ <div class="column">
98
+ <div class="file-location">
99
+ <p title="<?php echo $file; ?>"><?php _e('Location', 'ajax-load-more'); ?>:</p>
100
+ <code><?php echo $file_directory; ?>/<?php echo basename($file); ?></code>
101
+ </div>
102
+ </div>
103
+ </div>
104
+ <?php
105
+ $repeater_options = array(
106
+ 'path' => $file,
107
+ 'name' => basename($file),
108
+ 'type' => 'theme-repeater'
109
+ );
110
+ include( ALM_PATH . 'admin/includes/components/repeater-options.php');
111
+ unset($repeater_options);
112
+ ?>
113
+
114
  </div>
115
  </div>
116
  </div>
195
  <div class="expand-wrap">
196
  <div class="wrap repeater-wrap<?php if($local_template){ echo ' cm-readonly'; } ?>" data-name="default" data-type="default">
197
  <?php
198
+ if(!$local_template){
199
+ echo '<div class="alm-row alm-row--margin-btm">';
200
+ echo '<div class="column column--two-third">';
201
+ // Add Label
202
+ echo '<label class="template-title" for="template-default">';
203
+ _e('Enter the HTML and PHP code for the default template', 'ajax-load-more');
204
+ echo ':</label>';
205
+ echo '</div>';
206
+ echo '<div class="column column--one-third">';
207
+ do_action('alm_get_layouts'); // Layouts - Template Selection
208
+ echo '</div>';
209
+ echo '</div>';
210
  }
211
  ?>
212
+ <div class="alm-row alm-row--margin-btm">
213
+ <div class="column">
214
+ <textarea rows="10" id="template-default" class="_alm_repeater"><?php echo $contents; ?></textarea>
215
+ <script>
216
+ var editorDefault = CodeMirror.fromTextArea(document.getElementById("template-default"), {
217
+ mode: "application/x-httpd-php",
218
+ lineNumbers: true,
219
+ lineWrapping: true,
220
+ indentUnit: 0,
221
+ matchBrackets: true,
222
+ readOnly: <?php echo $readOnly; ?>,
223
+ viewportMargin: Infinity,
224
+ extraKeys: {"Ctrl-Space": "autocomplete"},
225
+ });
226
+ </script>
227
+ </div>
228
+ </div>
229
 
230
+ <div class="alm-row">
231
+ <div class="column">
232
+ <?php if(!$local_template){ ?>
233
+ <input type="submit" value="<?php _e('Save Template', 'ajax-load-more'); ?>" class="button button-primary save-repeater" data-editor-id="template-default">
234
+ <div class="saved-response">&nbsp;</div>
235
+ <?php
236
+ $repeater_options = array(
237
+ 'path' => $filename,
238
+ 'name' => 'default',
239
+ 'type' => 'standard'
240
+ );
241
+ include( ALM_PATH . 'admin/includes/components/repeater-options.php');
242
+ unset($repeater_options);
243
+ ?>
244
+ <?php } else {
245
+ $file_directory = get_option('stylesheet') .'/'. strtolower(substr(basename($template_dir), strrpos(basename($template_dir), '/')));
246
+ ?>
247
+ <p class="warning-callout" style="margin-right: 0; margin-left: 0;"><?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>
248
+ <div class="file-location">
249
+ <p title="<?php echo $filename; ?>"><?php _e('Location', 'ajax-load-more'); ?>:</p>
250
+ <code><?php echo $file_directory; ?></code>
251
+ </div>
252
+ <?php } ?>
253
+ </div>
254
+ </div>
255
 
256
  </div>
257
  </div>
258
+ </div>
 
259
  <!-- End Default Template -->
260
+
261
 
262
  <!-- Custom Repeaters -->
263
  <?php
264
+
265
+ if ( !has_action('alm_get_unlimited_repeaters') && !has_action('alm_get_custom_repeaters') ){
266
  // If Custom Repeaters & Theme Repeaters is NOT installed
267
+ echo '<div class="alm-row" style="padding-top: 15px;">';
268
  include( ALM_PATH . 'admin/includes/cta/extend.php');
269
  echo '</div>';
270
  }
271
+
272
+ // Custom Repeaters V1
273
+ if (has_action('alm_custom_repeaters')){
274
  do_action('alm_custom_repeaters');
275
  }
276
+
277
+ // Custom Repeaters V2
278
+ if (has_action('alm_unlimited_repeaters')){
279
  do_action('alm_unlimited_repeaters');
280
  }
281
+
282
  ?>
283
 
284
  <script>
294
  */
295
 
296
  _alm_admin.saveRepeater = function(btn, editorId) {
297
+ var container = btn.closest('.repeater-wrap'),
298
  el = $('textarea._alm_repeater', container),
299
  textarea = el.next('.CodeMirror'),
300
  btn = btn,
493
  </div>
494
 
495
  </div>
496
+ </div>
admin/views/settings.php CHANGED
@@ -13,20 +13,16 @@
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>
@@ -34,11 +30,12 @@
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 } ?>
@@ -89,9 +86,9 @@
89
  </form>
90
 
91
  </div>
92
- <aside class="cnkt-sidebar">
93
- <?php //include_once( ALM_PATH . 'admin/includes/cta/mailinglist.php'); ?>
94
- <?php include_once( ALM_PATH . 'admin/includes/cta/sharing.php'); ?>
95
  <?php include_once( ALM_PATH . 'admin/includes/cta/resources.php'); ?>
96
  <?php include_once( ALM_PATH . 'admin/includes/cta/dyk.php'); ?>
97
  <?php include_once( ALM_PATH . 'admin/includes/cta/about.php'); ?>
13
  <div class="ajax-load-more-inner-wrapper">
14
 
15
  <div class="cnkt-main">
16
+
17
  <?php
18
  $alm_share_notification = get_transient( 'alm_dismiss_sharing');
19
+ if(!isset($alm_share_notification) || empty($alm_share_notification)){
20
  // If transient has not been set - display this notice.
21
  ?>
22
+ <div class="group alm-notification alm-notification--blue">
23
+ <h2><span>👋</span>Thank you for installing Ajax Load More!</h2>
24
+ <p class="opening">I hope you're finding the plugin easy to use and a nice feature addition to your website.</p>
25
+ <p>If so, would you consider helping <a href="https://twitter.com/KaptonKaos" target="_blank">me</a> widen the reach of Ajax Load More by sharing with your networks and/or leaving a review.</p>
 
 
 
 
 
26
  <ul class="share">
27
  <li class="twitter">
28
  <a target="blank" title="Share on Twitter" href="//twitter.com/home?status=I'm infinite scrolling with Ajax Load More for %23WordPress - https://connekthq.com/plugins/ajax-load-more/" class="share-twitter"><i class="fa fa-twitter"></i> Twitter</a>
30
  <li class="facebook">
31
  <a target="blank" title="Share on Facebook" href="//facebook.com/share.php?u=https://connekthq.com/plugins/ajax-load-more/" class="share-facebook"><i class="fa fa-facebook"></i> Facebook</a>
32
  </li>
33
+ <li class="review">
34
+ <a target="blank" title="Leave a Review" href="//wordpress.org/support/plugin/ajax-load-more/reviews/" class="share-review"><i class="fa fa-pencil"></i> Leave Review</a>
35
+ </li>
36
+ </ul>
37
+ <div class="clear"></div>
38
+ <a href="javascript: void(0);" class="dismiss alm-notification--dismiss" id="alm_dismiss_sharing" title="<?php _e('Don\'t show me this again!', 'ajax-load-more');?>">&times;</a>
39
 
40
  </div>
41
  <?php } ?>
86
  </form>
87
 
88
  </div>
89
+ <aside class="cnkt-sidebar">
90
+ <?php //include_once( ALM_PATH . 'admin/includes/cta/pro.php'); ?>
91
+ <?php //include_once( ALM_PATH . 'admin/includes/cta/sharing.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/about.php'); ?>
ajax-load-more.php CHANGED
@@ -7,14 +7,14 @@ Text Domain: ajax-load-more
7
  Author: Darren Cooney
8
  Twitter: @KaptonKaos
9
  Author URI: https://connekthq.com
10
- Version: 3.5.1
11
  License: GPL
12
  Copyright: Darren Cooney & Connekt Media
13
  */
14
 
15
 
16
- define('ALM_VERSION', '3.5.1');
17
- define('ALM_RELEASE', 'June 20, 2018');
18
  define('ALM_STORE_URL', 'https://connekthq.com');
19
 
20
 
@@ -182,10 +182,11 @@ if( !class_exists('AjaxLoadMore') ):
182
  if (!defined('ALM_PAGING_ITEM_NAME')) define('ALM_PAGING_ITEM_NAME', '6898');
183
  if (!defined('ALM_PRELOADED_ITEM_NAME')) define('ALM_PRELOADED_ITEM_NAME', '4293');
184
  if (!defined('ALM_PREV_POST_ITEM_NAME')) define('ALM_PREV_POST_ITEM_NAME', '9686');
185
- if (!defined('ALM_RESTAPI_ITEM_NAME')) define('ALM_RESTAPI_ITEM_NAME', '17105');
186
  if (!defined('ALM_SEO_ITEM_NAME')) define('ALM_SEO_ITEM_NAME', '3482');
187
  if (!defined('ALM_THEME_REPEATERS_ITEM_NAME')) define('ALM_THEME_REPEATERS_ITEM_NAME', '8860');
188
  if (!defined('ALM_USERS_ITEM_NAME')) define('ALM_USERS_ITEM_NAME', '32311');
 
189
 
190
  }
191
 
@@ -212,6 +213,19 @@ if( !class_exists('AjaxLoadMore') ):
212
  }
213
  }
214
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
215
 
216
 
217
 
@@ -285,8 +299,9 @@ if( !class_exists('AjaxLoadMore') ):
285
  $dependencies = apply_filters( 'alm_js_dependencies', array('jquery') );
286
 
287
 
288
- // Core ALM JS
289
- wp_register_script( 'ajax-load-more', plugins_url( '/core/dist/js/ajax-load-more.min.js', __FILE__ ), $dependencies, ALM_VERSION, true );
 
290
 
291
  // Progress Bar JS
292
  wp_register_script( 'ajax-load-more-progress', plugins_url( '/vendor/js/pace/pace.min.js', __FILE__ ), 'ajax-load-more', ALM_VERSION, true );
@@ -397,7 +412,7 @@ if( !class_exists('AjaxLoadMore') ):
397
  // Taxonomy
398
  $taxonomy = (isset($_GET['taxonomy'])) ? $_GET['taxonomy'] : '';
399
  $taxonomy_terms = (isset($_GET['taxonomy_terms'])) ? $_GET['taxonomy_terms'] : '';
400
- $taxonomy_operator = $_GET['taxonomy_operator'];
401
  if(empty($taxonomy_operator)) $taxonomy_operator = 'IN';
402
  $taxonomy_relation = (isset($_GET['taxonomy_relation'])) ? $_GET['taxonomy_relation'] : 'AND';
403
  if($taxonomy_relation == '') $taxonomy_relation = 'AND';
@@ -410,13 +425,13 @@ if( !class_exists('AjaxLoadMore') ):
410
  // Custom Fields
411
  $meta_key = (isset($_GET['meta_key'])) ? $_GET['meta_key'] : '';
412
  $meta_value = (isset($_GET['meta_value'])) ? $_GET['meta_value'] : '';
413
- $meta_compare = $_GET['meta_compare'];
414
  if($meta_compare == '') $meta_compare = 'IN';
415
  if($meta_compare === 'lessthan') $meta_compare = '<'; // do_shortcode fix (shortcode was rendering as HTML)
416
  if($meta_compare === 'lessthanequalto') $meta_compare = '<='; // do_shortcode fix (shortcode was rendering as HTML)
417
- $meta_relation = $_GET['meta_relation'];
418
  if($meta_relation == '') $meta_relation = 'AND';
419
- $meta_type = $_GET['meta_type'];
420
  if($meta_type == '') $meta_type = 'CHAR';
421
 
422
  $s = (isset($_GET['search'])) ? sanitize_text_field($_GET['search']) : '';
@@ -436,7 +451,7 @@ if( !class_exists('AjaxLoadMore') ):
436
  $post__not_in = (isset($_GET['post__not_in'])) ? $_GET['post__not_in'] : '';
437
  $exclude = (isset($_GET['exclude'])) ? $_GET['exclude'] : '';
438
  $offset = (isset($_GET['offset'])) ? $_GET['offset'] : 0;
439
- $post_status = $_GET['post_status'];
440
  if($post_status == '') $post_status = 'publish';
441
  if($post_status != 'publish' && $post_status != 'inherit'){
442
  // If not 'publish', OR 'inherit' confirm user has rights to view these old posts.
@@ -510,6 +525,7 @@ if( !class_exists('AjaxLoadMore') ):
510
 
511
  // Language (Is this required?)
512
  $lang = (isset($_GET['lang'])) ? $_GET['lang'] : '';
 
513
 
514
  // Set up initial query arguments
515
  $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
@@ -523,13 +539,7 @@ if( !class_exists('AjaxLoadMore') ):
523
  'ignore_sticky_posts' => true,
524
  'paged' => $paged,
525
  );
526
-
527
-
528
- // Paging
529
- // If !paging, turn off pagination information to improve wp_query performance
530
- if(!$paging){
531
- $args['no_found_rows'] = true;
532
- }
533
 
534
  // Post Format & Taxonomy
535
  // - Both use tax_query, so we combine these queries
@@ -924,13 +934,12 @@ if( !class_exists('AjaxLoadMore') ):
924
 
925
  function AjaxLoadMore(){
926
  global $ajax_load_more;
927
-
928
- if( !isset($ajax_load_more))
929
  $ajax_load_more = new AjaxLoadMore();
930
-
931
  return $ajax_load_more;
932
  }
933
- AjaxLoadMore(); // initialize
934
-
935
 
936
  endif; // class_exists check
7
  Author: Darren Cooney
8
  Twitter: @KaptonKaos
9
  Author URI: https://connekthq.com
10
+ Version: 3.6
11
  License: GPL
12
  Copyright: Darren Cooney & Connekt Media
13
  */
14
 
15
 
16
+ define('ALM_VERSION', '3.6');
17
+ define('ALM_RELEASE', 'August 24, 2018');
18
  define('ALM_STORE_URL', 'https://connekthq.com');
19
 
20
 
182
  if (!defined('ALM_PAGING_ITEM_NAME')) define('ALM_PAGING_ITEM_NAME', '6898');
183
  if (!defined('ALM_PRELOADED_ITEM_NAME')) define('ALM_PRELOADED_ITEM_NAME', '4293');
184
  if (!defined('ALM_PREV_POST_ITEM_NAME')) define('ALM_PREV_POST_ITEM_NAME', '9686');
185
+ if (!defined('ALM_RESTAPI_ITEM_NAME')) define('ALM_RESTAPI_ITEM_NAME', '17105'); // Deprecated
186
  if (!defined('ALM_SEO_ITEM_NAME')) define('ALM_SEO_ITEM_NAME', '3482');
187
  if (!defined('ALM_THEME_REPEATERS_ITEM_NAME')) define('ALM_THEME_REPEATERS_ITEM_NAME', '8860');
188
  if (!defined('ALM_USERS_ITEM_NAME')) define('ALM_USERS_ITEM_NAME', '32311');
189
+ if (!defined('ALM_PRO_ITEM_NAME')) define('ALM_PRO_ITEM_NAME', '42166');
190
 
191
  }
192
 
213
  }
214
  }
215
  }
216
+
217
+
218
+
219
+ /*
220
+ * alm_return_addons
221
+ * Returns add-on data (admin/admin-functions.php)
222
+ *
223
+ * @since 2.0.0
224
+ */
225
+
226
+ public function alm_return_addons(){
227
+ return alm_get_addons();
228
+ }
229
 
230
 
231
 
299
  $dependencies = apply_filters( 'alm_js_dependencies', array('jquery') );
300
 
301
 
302
+ // Core ALM JS
303
+ $suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min'; // Use minified libraries if SCRIPT_DEBUG is turned off
304
+ wp_register_script( 'ajax-load-more', plugins_url( '/core/dist/js/ajax-load-more'. $suffix .'.js', __FILE__ ), $dependencies, ALM_VERSION, true );
305
 
306
  // Progress Bar JS
307
  wp_register_script( 'ajax-load-more-progress', plugins_url( '/vendor/js/pace/pace.min.js', __FILE__ ), 'ajax-load-more', ALM_VERSION, true );
412
  // Taxonomy
413
  $taxonomy = (isset($_GET['taxonomy'])) ? $_GET['taxonomy'] : '';
414
  $taxonomy_terms = (isset($_GET['taxonomy_terms'])) ? $_GET['taxonomy_terms'] : '';
415
+ $taxonomy_operator = (isset($_GET['taxonomy_operator'])) ? $_GET['taxonomy_operator'] : '';
416
  if(empty($taxonomy_operator)) $taxonomy_operator = 'IN';
417
  $taxonomy_relation = (isset($_GET['taxonomy_relation'])) ? $_GET['taxonomy_relation'] : 'AND';
418
  if($taxonomy_relation == '') $taxonomy_relation = 'AND';
425
  // Custom Fields
426
  $meta_key = (isset($_GET['meta_key'])) ? $_GET['meta_key'] : '';
427
  $meta_value = (isset($_GET['meta_value'])) ? $_GET['meta_value'] : '';
428
+ $meta_compare = (isset($_GET['meta_compare'])) ? $_GET['meta_compare'] : '';
429
  if($meta_compare == '') $meta_compare = 'IN';
430
  if($meta_compare === 'lessthan') $meta_compare = '<'; // do_shortcode fix (shortcode was rendering as HTML)
431
  if($meta_compare === 'lessthanequalto') $meta_compare = '<='; // do_shortcode fix (shortcode was rendering as HTML)
432
+ $meta_relation = (isset($_GET['meta_relation'])) ? $_GET['meta_relation'] : '';
433
  if($meta_relation == '') $meta_relation = 'AND';
434
+ $meta_type = (isset($_GET['meta_type'])) ? $_GET['meta_type'] : '';
435
  if($meta_type == '') $meta_type = 'CHAR';
436
 
437
  $s = (isset($_GET['search'])) ? sanitize_text_field($_GET['search']) : '';
451
  $post__not_in = (isset($_GET['post__not_in'])) ? $_GET['post__not_in'] : '';
452
  $exclude = (isset($_GET['exclude'])) ? $_GET['exclude'] : '';
453
  $offset = (isset($_GET['offset'])) ? $_GET['offset'] : 0;
454
+ $post_status = (isset($_GET['post_status'])) ? $_GET['post_status'] : '';
455
  if($post_status == '') $post_status = 'publish';
456
  if($post_status != 'publish' && $post_status != 'inherit'){
457
  // If not 'publish', OR 'inherit' confirm user has rights to view these old posts.
525
 
526
  // Language (Is this required?)
527
  $lang = (isset($_GET['lang'])) ? $_GET['lang'] : '';
528
+
529
 
530
  // Set up initial query arguments
531
  $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
539
  'ignore_sticky_posts' => true,
540
  'paged' => $paged,
541
  );
542
+
 
 
 
 
 
 
543
 
544
  // Post Format & Taxonomy
545
  // - Both use tax_query, so we combine these queries
934
 
935
  function AjaxLoadMore(){
936
  global $ajax_load_more;
937
+ if( !isset($ajax_load_more) ){
 
938
  $ajax_load_more = new AjaxLoadMore();
939
+ }
940
  return $ajax_load_more;
941
  }
942
+ // initialize
943
+ AjaxLoadMore();
944
 
945
  endif; // class_exists check
core/classes/class.alm-shortcode.php CHANGED
@@ -420,255 +420,287 @@ if( !class_exists('ALM_SHORTCODE') ):
420
  $acf = false;
421
  $pause = 'true';
422
  }
 
423
 
424
  // Preloaded
425
- include(ALM_PATH .'core/classes/includes/preloaded.php');
 
 
426
  // End Preloaded
427
 
428
 
429
  $listing_class = 'alm-listing';
430
  $listing_class = ($comments === 'true') ? 'commentlist alm-comments' : $listing_class; // If Comments
431
-
432
-
433
  $ajaxloadmore .= '<'.$container_element.' class="'.$listing_class.' alm-ajax'. $paging_container_class . $classname . $css_classes .'"'; // Build ALM container
434
 
435
 
436
- // Advanced Custom Fields Extension
437
- if(has_action('alm_acf_installed') && $acf === 'true'){
438
- $acf_return = apply_filters(
439
- 'alm_acf_shortcode',
440
- $acf,
441
- $acf_field_type,
442
- $acf_field_name,
443
- $acf_post_id,
444
- $post_id
445
- );
446
- $ajaxloadmore .= $acf_return;
447
- }
448
-
449
-
450
- // Cache Add-on
451
- if(has_action('alm_cache_installed') && $cache === 'true'){
452
- $cache_return = apply_filters(
453
- 'alm_cache_shortcode',
454
- $cache,
455
- $cache_id,
456
- $options
457
- );
458
- $ajaxloadmore .= $cache_return;
459
- }
460
-
461
-
462
- // CTA Add-on
463
- if(has_action('alm_cta_installed') && $cta === 'true'){
464
- $cta_return = apply_filters(
465
- 'alm_cta_shortcode',
466
- $cta,
467
- $cta_position,
468
- $cta_repeater,
469
- $cta_theme_repeater
470
- );
471
- $ajaxloadmore .= $cta_return;
472
- }
473
-
474
-
475
- // Comments Add-on
476
- if(has_action('alm_comments_installed') && $comments === 'true'){
477
- $comments_return = apply_filters(
478
- 'alm_comments_shortcode',
479
- $comments,
480
- $comments_per_page,
481
- $comments_type,
482
- $comments_style,
483
- $comments_template,
484
- $comments_callback,
485
- $comments_post_id
486
- );
487
- $ajaxloadmore .= $comments_return;
488
- }
489
-
490
-
491
- // Filters Add-on
492
- if(has_action('alm_filters_installed') && $filters){
493
- $filters_return = apply_filters(
494
- 'alm_filters_shortcode_params',
495
- $filters,
496
- $target,
497
- $filters_analytics,
498
- $filters_debug,
499
- $options
500
- );
501
- $ajaxloadmore .= $filters_return;
502
- }
503
-
504
-
505
- // Paging Add-on
506
- if(has_action('alm_paging_installed') && $paging === 'true'){
507
- $paging_return = apply_filters(
508
- 'alm_paging_shortcode',
509
- $paging,
510
- $paging_controls,
511
- $paging_show_at_most,
512
- $paging_classes,
513
- $options
514
- );
515
- $ajaxloadmore .= $paging_return;
516
- }
517
-
518
-
519
- // Preloaded Add-on
520
- if(has_action('alm_preload_installed') && $preloaded === 'true'){
521
- $ajaxloadmore .= ' data-preloaded="'.$preloaded.'"';
522
- $ajaxloadmore .= ' data-preloaded-amount="'.$preloaded_amount.'"';
523
- }
524
-
525
-
526
- // REST API Extension
527
- if(has_action('alm_rest_api_installed') && $restapi === true){
528
- $restapi_return = apply_filters(
529
- 'alm_rest_api_shortcode',
530
- 'true',
531
- $restapi_base,
532
- $restapi_namespace,
533
- $restapi_endpoint,
534
- $restapi_template_id,
535
- $restapi_debug
536
- );
537
- $ajaxloadmore .= $restapi_return;
538
- }
539
-
540
-
541
- // SEO Add-on
542
- if(has_action('alm_seo_installed') && $seo === 'true'){
543
- $seo_return = apply_filters(
544
- 'alm_seo_shortcode',
545
- $seo,
546
- $preloaded,
547
- $options
548
- );
549
- $ajaxloadmore .= $seo_return;
550
- }
551
-
552
-
553
- // Previous Post Post Add-on
554
- if(has_action('alm_prev_post_installed') && $previous_post){
555
- $prev_post_return = apply_filters(
556
- 'alm_prev_post_shortcode',
557
- $previous_post_id,
558
- $previous_post_taxonomy,
559
- $previous_post_excluded_terms,
560
- $options
561
- );
562
- $ajaxloadmore .= $prev_post_return;
563
- }
564
-
565
-
566
- // Nextpage Post Add-on
567
- if(has_action('alm_nextpage_installed') && $nextpage){
568
- $nextpage_return = apply_filters(
569
- 'alm_nextpage_shortcode',
570
- $nextpage_urls,
571
- $nextpage_pageviews,
572
- $nextpage_post_id,
573
- $nextpage_scroll,
574
- $options
575
- );
576
- $ajaxloadmore .= $nextpage_return;
577
- }
578
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
579
 
580
- // Users Add-on
581
- if(has_action('alm_users_installed') && $users){
582
- $posts_per_page = $users_per_page; // Update $posts_per_page var to be $users_per_page
583
- $users_return = apply_filters(
584
- 'alm_users_shortcode',
585
- $users_role,
586
- $users_include,
587
- $users_exclude,
588
- $posts_per_page,
589
- $users_order,
590
- $users_orderby,
591
- $options
592
- );
593
- $ajaxloadmore .= $users_return;
594
- }
595
-
596
-
597
- $ajaxloadmore .= ' data-repeater="'.$repeater.'"';
598
- if($theme_repeater != 'null'){
599
- $ajaxloadmore .= ' data-theme-repeater="'.$theme_repeater.'"';
600
- }
601
- $ajaxloadmore .= ' data-post-type="'.$post_type.'"';
602
- $ajaxloadmore .= ' data-sticky-posts="'.$sticky_posts.'"';
603
- $ajaxloadmore .= ' data-post-format="'.$post_format.'"';
604
- $ajaxloadmore .= ' data-category="'.$category.'"';
605
- $ajaxloadmore .= ' data-category-not-in="'.$category__not_in.'"';
606
- $ajaxloadmore .= ' data-tag="'.$tag.'"';
607
- $ajaxloadmore .= ' data-tag-not-in="'.$tag__not_in.'"';
608
- $ajaxloadmore .= ' data-taxonomy="'.$taxonomy.'"';
609
- $ajaxloadmore .= ' data-taxonomy-terms="'.$taxonomy_terms.'"';
610
- $ajaxloadmore .= ' data-taxonomy-operator="'.$taxonomy_operator.'"';
611
- $ajaxloadmore .= ' data-taxonomy-relation="'.$taxonomy_relation.'"';
612
- $ajaxloadmore .= ' data-meta-key="'.$meta_key.'"';
613
- $ajaxloadmore .= ' data-meta-value="'.$meta_value.'"';
614
- $ajaxloadmore .= ' data-meta-compare="'.$meta_compare.'"';
615
- $ajaxloadmore .= ' data-meta-relation="'.$meta_relation.'"';
616
- $ajaxloadmore .= ' data-meta-type="'.$meta_type.'"';
617
- $ajaxloadmore .= ' data-year="'.$year.'"';
618
- $ajaxloadmore .= ' data-month="'.$month.'"';
619
- $ajaxloadmore .= ' data-day="'.$day.'"';
620
- $ajaxloadmore .= ' data-author="'.$author.'"';
621
- $ajaxloadmore .= ' data-post-in="'.$post__in.'"';
622
- $ajaxloadmore .= ' data-post-not-in="'.$post__not_in.'"';
623
- $ajaxloadmore .= ' data-exclude="'.$exclude.'"';
624
- $ajaxloadmore .= ' data-search="'.$search.'"';
625
- $ajaxloadmore .= ' data-custom-args="'.$custom_args.'"';
626
- $ajaxloadmore .= ' data-post-status="'.$post_status.'"';
627
- $ajaxloadmore .= ' data-order="'.$order.'"';
628
- $ajaxloadmore .= ' data-orderby="'.$orderby.'"';
629
- $ajaxloadmore .= ' data-offset="'.$offset.'"';
630
- $ajaxloadmore .= ' data-posts-per-page="'.$posts_per_page.'"';
631
- $ajaxloadmore .= ' data-lang="'.$lang.'"';
632
- $ajaxloadmore .= ' data-scroll="'.$scroll.'"';
633
- if($scroll === 'true'){
634
- $ajaxloadmore .= ' data-scroll-distance="'.$scroll_distance.'"';
635
- $ajaxloadmore .= ' data-scroll-container="'.$scroll_container.'"';
636
- $ajaxloadmore .= ' data-max-pages="'.$max_pages.'"';
637
- $ajaxloadmore .= ' data-pause-override="'.$pause_override.'"';
638
- }
639
- $ajaxloadmore .= ' data-pause="'.$pause.'"';
640
- $ajaxloadmore .= ' data-button-label="'.$button_label.'"';
641
- if(!empty($button_loading_label)){
642
- $ajaxloadmore .= ' data-button-loading-label="'.$button_loading_label.'"';
643
- }
644
- $ajaxloadmore .= ' data-destroy-after="'.$destroy_after.'"';
645
- $ajaxloadmore .= ' data-transition="'.$transition.'"';
646
- if($transition_speed !== '250'){
647
- $ajaxloadmore .= ' data-transition-speed="'.$transition_speed.'"';
648
- }
649
- if($transition_container === 'false'){
650
- $ajaxloadmore .= ' data-transition-container="'.$transition_container.'"';
651
- }
652
- if(!empty($transition_container_classes)){
653
- $ajaxloadmore .= ' data-transition-container-classes="'.$transition_container_classes.'"';
654
- }
655
- if(!empty($masonry_selector)){
656
- $ajaxloadmore .= ' data-masonry-selector="'.$masonry_selector.'"';
657
- }
658
- if(!empty($masonry_columnwidth)){
659
- $ajaxloadmore .= ' data-masonry-columnwidth="'.$masonry_columnwidth.'"';
660
- }
661
- if(!empty($masonry_animation)){
662
- $ajaxloadmore .= ' data-masonry-animation="'.$masonry_animation.'"';
663
- }
664
- if(!empty($masonry_horizontalorder)){
665
- $ajaxloadmore .= ' data-masonry-horizontalorder="'.$masonry_horizontalorder.'"';
666
- }
667
- $ajaxloadmore .= ' data-images-loaded="'.$images_loaded.'"';
668
-
669
- if($primary !== false){
670
- $ajaxloadmore .= ' data-primary="true"';
671
- }
672
  $ajaxloadmore .= '>';
673
 
674
 
@@ -732,13 +764,11 @@ if( !class_exists('ALM_SHORTCODE') ):
732
  *
733
  * @return html;
734
  */
735
- $ajaxloadmore .= apply_filters('alm_before_button', '');
736
-
737
 
738
 
739
  // Create Load More button
740
- $ajaxloadmore .= self::alm_render_button($seo, $paging, $button_classname, $button_label, $canonicalURL);
741
-
742
 
743
 
744
  // Close #ajax-load-more
@@ -755,6 +785,7 @@ if( !class_exists('ALM_SHORTCODE') ):
755
  $ajaxloadmore .= apply_filters('alm_after_container', '');
756
 
757
 
 
758
  $ajaxloadmore .= apply_filters('alm_progress_css', self::$counter, $progress_bar, $progress_bar_color); // ALM Core Filter Hook
759
 
760
 
@@ -768,7 +799,8 @@ if( !class_exists('ALM_SHORTCODE') ):
768
  }
769
  }
770
  // End REST API Add-on
771
-
 
772
  return $ajaxloadmore; // End ALM object
773
  }
774
 
420
  $acf = false;
421
  $pause = 'true';
422
  }
423
+
424
 
425
  // Preloaded
426
+ if(has_action('alm_preload_installed') && $preloaded === 'true'){
427
+ include(ALM_PATH .'core/classes/includes/preloaded.php');
428
+ }
429
  // End Preloaded
430
 
431
 
432
  $listing_class = 'alm-listing';
433
  $listing_class = ($comments === 'true') ? 'commentlist alm-comments' : $listing_class; // If Comments
434
+
435
+ // Open #ajax-load-more
436
  $ajaxloadmore .= '<'.$container_element.' class="'.$listing_class.' alm-ajax'. $paging_container_class . $classname . $css_classes .'"'; // Build ALM container
437
 
438
 
439
+ // Advanced Custom Fields Extension
440
+ if(has_action('alm_acf_installed') && $acf === 'true'){
441
+ $acf_return = apply_filters(
442
+ 'alm_acf_shortcode',
443
+ $acf,
444
+ $acf_field_type,
445
+ $acf_field_name,
446
+ $acf_post_id,
447
+ $post_id
448
+ );
449
+ $ajaxloadmore .= $acf_return;
450
+ }
451
+
452
+
453
+ // Cache Add-on
454
+ if(has_action('alm_cache_installed') && $cache === 'true'){
455
+ $cache_return = apply_filters(
456
+ 'alm_cache_shortcode',
457
+ $cache,
458
+ $cache_id,
459
+ $options
460
+ );
461
+ $ajaxloadmore .= $cache_return;
462
+ }
463
+
464
+
465
+ // CTA Add-on
466
+ if(has_action('alm_cta_installed') && $cta === 'true'){
467
+ $cta_return = apply_filters(
468
+ 'alm_cta_shortcode',
469
+ $cta,
470
+ $cta_position,
471
+ $cta_repeater,
472
+ $cta_theme_repeater
473
+ );
474
+ $ajaxloadmore .= $cta_return;
475
+ }
476
+
477
+
478
+ // Comments Add-on
479
+ if(has_action('alm_comments_installed') && $comments === 'true'){
480
+ $comments_return = apply_filters(
481
+ 'alm_comments_shortcode',
482
+ $comments,
483
+ $comments_per_page,
484
+ $comments_type,
485
+ $comments_style,
486
+ $comments_template,
487
+ $comments_callback,
488
+ $comments_post_id
489
+ );
490
+ $ajaxloadmore .= $comments_return;
491
+ }
492
+
493
+
494
+ // Filters Add-on
495
+ if(has_action('alm_filters_installed') && $filters){
496
+ $filters_return = apply_filters(
497
+ 'alm_filters_shortcode_params',
498
+ $filters,
499
+ $target,
500
+ $filters_analytics,
501
+ $filters_debug,
502
+ $options
503
+ );
504
+ $ajaxloadmore .= $filters_return;
505
+ }
506
+
507
+
508
+ // Paging Add-on
509
+ if(has_action('alm_paging_installed') && $paging === 'true'){
510
+ $paging_return = apply_filters(
511
+ 'alm_paging_shortcode',
512
+ $paging,
513
+ $paging_controls,
514
+ $paging_show_at_most,
515
+ $paging_classes,
516
+ $options
517
+ );
518
+ $ajaxloadmore .= $paging_return;
519
+ }
520
+
521
+
522
+ // Preloaded Add-on
523
+ if(has_action('alm_preload_installed') && $preloaded === 'true'){
524
+ $ajaxloadmore .= ' data-preloaded="'.$preloaded.'"';
525
+ $ajaxloadmore .= ' data-preloaded-amount="'.$preloaded_amount.'"';
526
+ }
527
+
528
+
529
+ // REST API Extension
530
+ if(has_action('alm_rest_api_installed') && $restapi === true){
531
+ $restapi_return = apply_filters(
532
+ 'alm_rest_api_shortcode',
533
+ 'true',
534
+ $restapi_base,
535
+ $restapi_namespace,
536
+ $restapi_endpoint,
537
+ $restapi_template_id,
538
+ $restapi_debug
539
+ );
540
+ $ajaxloadmore .= $restapi_return;
541
+ }
542
+
543
+
544
+ // SEO Add-on
545
+ if(has_action('alm_seo_installed') && $seo === 'true'){
546
+ $seo_return = apply_filters(
547
+ 'alm_seo_shortcode',
548
+ $seo,
549
+ $preloaded,
550
+ $options
551
+ );
552
+ $ajaxloadmore .= $seo_return;
553
+ }
554
+
555
+
556
+ // Previous Post Post Add-on
557
+ if(has_action('alm_prev_post_installed') && $previous_post){
558
+ $prev_post_return = apply_filters(
559
+ 'alm_prev_post_shortcode',
560
+ $previous_post_id,
561
+ $previous_post_taxonomy,
562
+ $previous_post_excluded_terms,
563
+ $options
564
+ );
565
+ $ajaxloadmore .= $prev_post_return;
566
+ }
567
+
568
+
569
+ // Nextpage Post Add-on
570
+ if(has_action('alm_nextpage_installed') && $nextpage){
571
+ $nextpage_return = apply_filters(
572
+ 'alm_nextpage_shortcode',
573
+ $nextpage_urls,
574
+ $nextpage_pageviews,
575
+ $nextpage_post_id,
576
+ $nextpage_scroll,
577
+ $options
578
+ );
579
+ $ajaxloadmore .= $nextpage_return;
580
+ }
581
+
582
+
583
+ // Users Add-on
584
+ if(has_action('alm_users_installed') && $users){
585
+ $posts_per_page = $users_per_page; // Update $posts_per_page var to be $users_per_page
586
+ $users_return = apply_filters(
587
+ 'alm_users_shortcode',
588
+ $users_role,
589
+ $users_include,
590
+ $users_exclude,
591
+ $posts_per_page,
592
+ $users_order,
593
+ $users_orderby,
594
+ $options
595
+ );
596
+ $ajaxloadmore .= $users_return;
597
+ }
598
+
599
+
600
+ $ajaxloadmore .= ' data-repeater="'.$repeater.'"';
601
+ $ajaxloadmore .= ($theme_repeater != 'null') ? ' data-theme-repeater="'.$theme_repeater.'"' : '';
602
+
603
+ // Post Type
604
+ $ajaxloadmore .= ' data-post-type="'.$post_type.'"';
605
+
606
+ // Sticky posts
607
+ $ajaxloadmore .= ($sticky_posts === 'true') ? ' data-sticky-posts="'.$sticky_posts.'"' : '';
608
+
609
+ // Post Format
610
+ $ajaxloadmore .= (!empty($post_format)) ? ' data-post-format="'.$post_format.'"' : '';
611
+
612
+ // Category
613
+ $ajaxloadmore .= (!empty($category)) ? ' data-category="'.$category.'"' : '';
614
+ $ajaxloadmore .= (!empty($category__not_in)) ? ' data-category-not-in="'.$category__not_in.'"' : '';
615
+
616
+ // Tag
617
+ $ajaxloadmore .= (!empty($tag)) ? ' data-tag="'.$tag.'"' : '';
618
+ $ajaxloadmore .= (!empty($tag__not_in)) ? ' data-tag-not-in="'.$tag__not_in.'"' : '';
619
+
620
+ // Taxonomy
621
+ $ajaxloadmore .= (!empty($taxonomy)) ? ' data-taxonomy="'.$taxonomy.'"' : '';
622
+ $ajaxloadmore .= (!empty($taxonomy_terms)) ? ' data-taxonomy-terms="'.$taxonomy_terms.'"' : '';
623
+ $ajaxloadmore .= (!empty($taxonomy_operator)) ? ' data-taxonomy-operator="'.$taxonomy_operator.'"' : '';
624
+ $ajaxloadmore .= (!empty($taxonomy_relation)) ? ' data-taxonomy-relation="'.$taxonomy_relation.'"' : '';
625
+
626
+ // Meta Query
627
+ $ajaxloadmore .= (!empty($meta_key)) ? ' data-meta-key="'.$meta_key.'"' : '';
628
+ $ajaxloadmore .= (!empty($meta_value)) ? ' data-meta-value="'.$meta_value.'"' : '';
629
+ $ajaxloadmore .= (!empty($meta_compare)) ? ' data-meta-compare="'.$meta_compare.'"' : '';
630
+ $ajaxloadmore .= (!empty($meta_relation)) ? ' data-meta-relation="'.$meta_relation.'"' : '';
631
+ $ajaxloadmore .= (!empty($meta_type)) ? ' data-meta-type="'.$meta_type.'"' : '';
632
+
633
+ // Dates
634
+ $ajaxloadmore .= (!empty($year)) ? ' data-year="'.$year.'"' : '';
635
+ $ajaxloadmore .= (!empty($month)) ? ' data-month="'.$month.'"' : '';
636
+ $ajaxloadmore .= (!empty($day)) ? ' data-day="'.$day.'"' : '';
637
+
638
+ // Author
639
+ $ajaxloadmore .= (!empty($author)) ? ' data-author="'.$author.'"' : '';
640
+
641
+ // Post Parameters
642
+ $ajaxloadmore .= (!empty($post__in)) ? ' data-post-in="'.$post__in.'"' : '';
643
+ $ajaxloadmore .= (!empty($post__not_in)) ? ' data-post-not-in="'.$post__not_in.'"' : '';
644
+ $ajaxloadmore .= (!empty($exclude)) ? ' data-exclude="'.$exclude.'"' : '';
645
+
646
+ // Search
647
+ $ajaxloadmore .= (!empty($custom_args)) ? ' data-search="'.$search.'"' : '';
648
+
649
+ // Custom Args
650
+ $ajaxloadmore .= (!empty($custom_args)) ? ' data-custom-args="'.$custom_args.'"' : '';
651
+
652
+ // Status
653
+ $ajaxloadmore .= ' data-post-status="'.$post_status.'"';
654
+
655
+ // Order
656
+ $ajaxloadmore .= ' data-order="'.$order.'"';
657
+ $ajaxloadmore .= ' data-orderby="'.$orderby.'"';
658
+
659
+ // Offset
660
+ $ajaxloadmore .= ' data-offset="'.$offset.'"';
661
+
662
+ // Posts Per Page
663
+ $ajaxloadmore .= ' data-posts-per-page="'.$posts_per_page.'"';
664
+
665
+ // Lang
666
+ $ajaxloadmore .= (!empty($lang)) ? ' data-lang="'.$lang.'"' : '';
667
+
668
+ // Scroll
669
+ $ajaxloadmore .= ' data-scroll="'.$scroll.'"';
670
+ if($scroll === 'true'){
671
+ $ajaxloadmore .= ' data-scroll-distance="'.$scroll_distance.'"';
672
+ $ajaxloadmore .= (!empty($scroll_container)) ? ' data-scroll-container="'.$scroll_container.'"' : '';
673
+ $ajaxloadmore .= ' data-max-pages="'.$max_pages.'"';
674
+ $ajaxloadmore .= (!empty($pause_override)) ? ' data-pause-override="'.$pause_override.'"' : '';
675
+ }
676
+
677
+ // Pause
678
+ $ajaxloadmore .= ' data-pause="'.$pause.'"';
679
+
680
+ // Button
681
+ $ajaxloadmore .= ' data-button-label="'.$button_label.'"';
682
+ $ajaxloadmore .= (!empty($button_loading_label)) ? ' data-button-loading-label="'.$button_loading_label.'"' : '';
683
+
684
+ // Destroy After
685
+ $ajaxloadmore .= (!empty($destroy_after)) ? ' data-destroy-after="'.$destroy_after.'"' : '';
686
+
687
+ // Transition
688
+ $ajaxloadmore .= ' data-transition="'.$transition.'"';
689
+ $ajaxloadmore .= ($transition_container === 'false') ? ' data-transition-container="'.$transition_container.'"' : '';
690
+ $ajaxloadmore .= (!empty($transition_container_classes)) ? ' data-transition-container-classes="'.$transition_container_classes.'"' : '';
691
+
692
+ // Masonry
693
+ $ajaxloadmore .= (!empty($masonry_selector)) ? ' data-masonry-selector="'.$masonry_selector.'"' : '';
694
+ $ajaxloadmore .= (!empty($masonry_columnwidth)) ? ' data-masonry-columnwidth="'.$masonry_columnwidth.'"' : '';
695
+ $ajaxloadmore .= (!empty($masonry_animation)) ? ' data-masonry-animation="'.$masonry_animation.'"' : '';
696
+ $ajaxloadmore .= (!empty($masonry_horizontalorder)) ? ' data-masonry-horizontalorder="'.$masonry_horizontalorder.'"' : '';
697
+
698
+ // Images Loaded
699
+ $ajaxloadmore .= (!empty($images_loaded)) ? ' data-images-loaded="'.$images_loaded.'"' : '';
700
+
701
+ // Primary
702
+ $ajaxloadmore .= ($primary !== false) ? ' data-primary="true"' : '';
703
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
704
  $ajaxloadmore .= '>';
705
 
706
 
764
  *
765
  * @return html;
766
  */
767
+ $ajaxloadmore .= apply_filters('alm_before_button', '');
 
768
 
769
 
770
  // Create Load More button
771
+ $ajaxloadmore .= self::alm_render_button($seo, $paging, $button_classname, $button_label, $canonicalURL);
 
772
 
773
 
774
  // Close #ajax-load-more
785
  $ajaxloadmore .= apply_filters('alm_after_container', '');
786
 
787
 
788
+ // Progress Bar CSS
789
  $ajaxloadmore .= apply_filters('alm_progress_css', self::$counter, $progress_bar, $progress_bar_color); // ALM Core Filter Hook
790
 
791
 
799
  }
800
  }
801
  // End REST API Add-on
802
+
803
+
804
  return $ajaxloadmore; // End ALM object
805
  }
806
 
core/classes/includes/preloaded.php CHANGED
@@ -1,308 +1,307 @@
1
  <?php
 
2
  // Preloaded
3
  // Get preloaded posts and append to ajax load more object
4
- if(has_action('alm_preload_installed') && $preloaded === 'true'){
5
-
6
- $preloaded_output = '';
7
- $preload_offset = $offset;
8
-
9
- // If $seo or $filters, set $preloaded_amount to $posts_per_page
10
- if((has_action('alm_seo_installed') && $seo === 'true' && !$users) || $filters){
11
- $preloaded_amount = $posts_per_page;
12
- }
13
-
14
- // Paging Add-on
15
- // Set $preloaded_amount to $posts_per_page
16
- if($paging === 'true'){
17
- $preloaded_amount = $posts_per_page;
18
- $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
19
- if($paged > 1){
20
- $preload_offset = $preloaded_amount * ($paged - 1);
21
- }
22
- }
23
-
24
- // CTA Add-on
25
- // Parse $cta_position
26
- if($cta){
27
- $cta_pos_array = explode(":", $cta_position);
28
- $cta_pos = (string)$cta_pos_array[0];
29
- $cta_val = (string)$cta_pos_array[1];
30
- if($cta_pos != 'after'){
31
- $cta_pos = 'before';
32
- }
33
- }
34
-
35
-
36
- // Create $preloaded_arr
37
- $preloaded_arr = array(
38
- 'post_id' => $post_id,
39
- 'acf' => $acf,
40
- 'acf_post_id' => $acf_post_id,
41
- 'acf_field_type' => $acf_field_type,
42
- 'acf_field_name' => $acf_field_name,
43
- 'users' => $users,
44
- 'users_include' => $users_include,
45
- 'users_exclude' => $users_exclude,
46
- 'users_per_page' => $users_per_page,
47
- 'users_order' => $users_order,
48
- 'users_orderby' => $users_orderby,
49
- 'comments_per_page' => $comments_per_page,
50
- 'comments_type' => $comments_type,
51
- 'comments_style' => $comments_style,
52
- 'comments_template' => $comments_template,
53
- 'comments_callback' => $comments_callback,
54
- 'comments_post_id' => $comments_post_id,
55
- 'post_type' => $post_type,
56
- 'sticky_posts' => $sticky_posts,
57
- 'post_format' => $post_format,
58
- 'category' => $category,
59
- 'category__not_in' => $category__not_in,
60
- 'tag' => $tag,
61
- 'tag__not_in' => $tag__not_in,
62
- 'taxonomy' => $taxonomy,
63
- 'taxonomy_terms' => $taxonomy_terms,
64
- 'taxonomy_operator' => $taxonomy_operator,
65
- 'taxonomy_relation' => $taxonomy_relation,
66
- 'meta_key' => $meta_key,
67
- 'meta_value' => $meta_value,
68
- 'meta_compare' => $meta_compare,
69
- 'meta_relation' => $meta_relation,
70
- 'meta_type' => $meta_type,
71
- 'year' => $year,
72
- 'month' => $month,
73
- 'day' => $day,
74
- 'author' => $author,
75
- 'post__in' => $post__in,
76
- 'post__not_in' => $post__not_in,
77
- 'search' => $search,
78
- 'custom_args' => $custom_args,
79
- 'post_status' => $post_status,
80
- 'order' => $order,
81
- 'orderby' => $orderby,
82
- 'exclude' => $exclude,
83
- 'offset' => $preload_offset,
84
- 'posts_per_page' => $preloaded_amount,
85
- 'lang' => $lang,
86
- 'css_classes' => $css_classes,
87
- );
88
-
89
-
90
- $type = alm_get_repeater_type($repeater);
91
-
92
- if($comments){ // Comments
93
-
94
- if(has_action('alm_comments_installed') && $comments){
95
-
96
- /*
97
- * alm_comments_preloaded
98
- *
99
- * Preloaded Comments Filter
100
- *
101
- * @return $preloaded_comments;
102
- */
103
- $preloaded_comments = apply_filters('alm_comments_preloaded', $preloaded_arr); // located in comments add-on
104
- $preloaded_output .= '<'.$comments_style.' class="alm-listing alm-preloaded commentlist alm-comments-preloaded'. $classname . $css_classes .'">';
105
-
106
- $preloaded_output .= ($seo === "true") ? '<div class="alm-reveal alm-seo'. $transition_container_classes .'" data-page="1" data-url="'.$canonicalURL.'">' : '';
107
- $preloaded_output .= $preloaded_comments;
108
- $preloaded_output .= ($seo === "true") ? '</div>' : '';
109
-
110
- $preloaded_output .= '</'.$container_element.'>';
111
- }
112
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
113
  }
114
-
115
- elseif($users){ // Users
116
-
117
- if(has_action('alm_users_preloaded') && $users){
 
 
 
 
 
 
 
 
 
118
 
119
- // Encrypt User Role
120
- if(!empty($users_role) && function_exists('alm_role_encrypt')){
121
- $preloaded_arr['users_role'] = alm_role_encrypt($users_role);
122
- }
123
-
124
-
125
-
126
- /*
127
- * alm_users_preloaded
128
- *
129
- * Preloaded Users Filter
130
- *
131
- * @return $preloaded_users;
132
- */
133
- $preloaded_users = apply_filters('alm_users_preloaded', $preloaded_arr, $preloaded_amount, $repeater, $theme_repeater); // located in Users add-on
134
- $preloaded_output .= '<'.$container_element.' class="alm-listing alm-preloaded alm-users-preloaded'. $classname . $css_classes .'">';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
135
 
136
- $preloaded_output .= ($seo === "true") ? '<div class="alm-reveal alm-seo'. $transition_container_classes .'" data-page="1" data-url="'.$canonicalURL.'">' : '';
137
- $preloaded_output .= $preloaded_users;
138
- $preloaded_output .= ($seo === "true") ? '</div>' : '';
139
 
140
- $preloaded_output .= '</'.$container_element.'>';
141
-
142
- }
143
  }
144
 
145
- elseif($acf && ($acf_field_type !== 'relationship')){ // Advanced Custom Fields
146
-
147
- if(has_action('alm_acf_installed') && $acf){
148
-
149
- /* alm_acf_preloaded
150
- *
151
- * Preloaded ACF Filter
152
- *
153
- * @return $preloaded_acf;
154
- */
155
- $preloaded_acf = apply_filters('alm_acf_preloaded', $preloaded_arr, $repeater, $theme_repeater); //located in ACF add-on
156
- $preloaded_output .= '<'.$container_element.' class="alm-listing alm-preloaded alm-acf-preloaded'. $classname . $css_classes .'" data-total-posts="'. apply_filters('alm_acf_total_rows', $preloaded_arr) .'">';
157
-
158
- $preloaded_output .= ($seo === "true") ? '<div class="alm-reveal alm-seo'. $transition_container_classes .'" data-page="1" data-url="'.$canonicalURL.'">' : '';
159
- $preloaded_output .= $preloaded_acf;
160
- $preloaded_output .= ($seo === "true") ? '</div>' : '';
161
-
162
- $preloaded_output .= '</'.$container_element.'>';
163
  }
164
-
165
- }
166
-
167
- else { // Standard
168
-
169
-
170
- /*
171
- * alm_preload_args
172
  *
173
- * ALM Preloaded add-on Hook
174
  *
175
- * @return $args;
176
  */
177
- $args = apply_filters('alm_preload_args', $preloaded_arr); // Create preloaded $args
 
 
 
 
 
 
 
 
 
 
178
 
 
179
 
 
180
 
181
- /*
182
- * alm_filters_preloaded_args
183
  *
184
- * ALM Filters add-on Hook
185
  *
186
- * @return $args;
187
  */
188
- if($filters && has_action('alm_filters_preloaded_args')){
189
- // $args = apply_filters('alm_filters_preloaded_args', $args); // Create filters $args
190
- }
 
 
 
191
 
 
 
192
 
 
193
 
194
- /*
195
- * alm_modify_query_args
196
- *
197
- * ALM Core Filter Hook
198
- *
199
- * @return $args;
200
- * Deprecated 2.10
201
- */
202
- $args = apply_filters('alm_modify_query_args', $args, $slug);
203
-
204
 
205
- /*
206
- * alm_query_args_[id]
207
- *
208
- * ALM Core Filter Hook
209
- *
210
- * @return $args;
211
- */
212
- $args = apply_filters('alm_query_args_'.$id, $args, $post_id);
213
 
 
 
 
 
 
 
 
 
214
 
215
- $alm_preload_query = new WP_Query($args);
216
-
217
- $alm_total_posts = $alm_preload_query->found_posts - $offset;
218
-
219
- $output = $noscript = '';
220
 
221
- if ($alm_preload_query->have_posts()) :
222
-
223
- $alm_item = $alm_page = $alm_current = 0;
224
- $alm_found_posts = $alm_total_posts;
225
-
226
- // Filters Wrap [Open]
227
- if($filters && has_filter('alm_filters_reveal_open')){
228
- $output .= apply_filters('alm_filters_reveal_open', $transition_container_classes, $canonicalURL);
229
- }
230
-
231
- while ($alm_preload_query->have_posts()) : $alm_preload_query->the_post();
232
 
233
- $alm_item++;
234
- $alm_current++;
 
 
 
 
 
 
 
 
235
 
236
- // Call to Action [Before]
237
- if($cta && has_action('alm_cta_inc') && $cta_pos == 'before'){
238
- $output .= ($alm_current == $cta_val) ? $output .= apply_filters('alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, true) : '';
239
- }
240
 
241
- $output .= apply_filters('alm_preload_inc', $repeater, $type, $theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current);
242
 
243
- // Call to Action [After]
244
- if($cta && has_action('alm_cta_inc') && $cta_pos == 'after'){
245
- $output .= ($alm_current == $cta_val) ? apply_filters('alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, true) : '';
246
- }
 
 
 
 
 
 
247
 
248
- endwhile; wp_reset_query();
249
-
250
- // Filters Wrap [close]
251
- if($filters && has_filter('alm_filters_reveal_close')){
252
- $output .= apply_filters('alm_filters_reveal_close', '</div>');
253
- }
254
-
255
- if(has_action('alm_seo_installed') && $seo === 'true'){ // If SEO, add noscript paging
256
- // Create noscript paging for SEO if preload and seo are enabled
257
- $noscript = alm_paging_no_script($alm_preload_query);
258
- }
259
 
260
- endif;
261
-
 
 
 
 
 
 
 
 
 
262
 
263
- if($filters && class_exists('ALMFILTERS')){
264
- // Maybe use this for Preloaded
265
- //$pg = ALMFILTERS::alm_filters_get_page_num();
266
- //$alm_total_posts = ($pg > 1 ) ? $alm_total_posts - ($preloaded_amount * $pg) + $preloaded_amount : $alm_total_posts;
267
  }
 
 
268
 
269
- $preloaded_output .= '<'.$container_element.' class="alm-listing alm-preloaded'. $classname . $css_classes .'" data-total-posts="'. $alm_total_posts .'">';
270
-
271
- // .alm-reveal
272
- if($seo === "true" && $paging === 'false'){
273
-
274
- // Get querystring to append to URL (Maybe in the future)
275
- // $querystring = $_SERVER['QUERY_STRING'];
276
- $querystring = '';
277
-
278
- if(is_search()){
279
- // If search, append slug (?s=term) to data-url
280
- $preloaded_output .= '<div class="alm-reveal alm-seo'. $transition_container_classes .'" data-page="1" data-url="'. $canonicalURL .''. $slug . $querystring .'">';
281
- }else{
282
- // Append querystring to data-url
283
- $querystring = ($querystring) ? '?'.$querystring : '';
284
- $preloaded_output .= '<div class="alm-reveal alm-seo'. $transition_container_classes .'" data-page="1" data-url="'. $canonicalURL . $querystring .'">';
285
- }
286
- }
287
-
288
- if($seo === "false" && $paging === 'true' || $seo === "true" && $paging === 'true'){
289
- $preloaded_output .= '<div class="alm-reveal'. $transition_container_classes .'">';
290
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
291
 
292
- // Preloaded output
293
- $preloaded_output .= $output;
 
294
 
295
- // Close .alm-reveal
296
- if($seo === "true" && $paging === 'false' || $seo === "true" && $paging === 'true'){
297
- $preloaded_output .= '</div>';
298
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
299
 
300
- $preloaded_output .= '</'.$container_element.'>';
301
 
302
- if(has_action('alm_seo_installed')){ // If SEO, add noscript paging
303
- $preloaded_output .= $noscript;
304
- }
305
- }
306
 
307
- $ajaxloadmore .= $preloaded_output; // Add $preloaded_output data to $ajaxloadmore
308
- }
1
  <?php
2
+
3
  // Preloaded
4
  // Get preloaded posts and append to ajax load more object
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
 
6
+ $preloaded_output = '';
7
+ $preload_offset = $offset;
8
+
9
+ // If $seo or $filters, set $preloaded_amount to $posts_per_page
10
+ if((has_action('alm_seo_installed') && $seo === 'true' && !$users) || $filters){
11
+ $preloaded_amount = $posts_per_page;
12
+ }
13
+
14
+ // Paging Add-on
15
+ // Set $preloaded_amount to $posts_per_page
16
+ if($paging === 'true'){
17
+ $preloaded_amount = $posts_per_page;
18
+ $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
19
+ if($paged > 1){
20
+ $preload_offset = $preloaded_amount * ($paged - 1);
21
  }
22
+ }
23
+
24
+ // CTA Add-on
25
+ // Parse $cta_position
26
+ if($cta){
27
+ $cta_pos_array = explode(":", $cta_position);
28
+ $cta_pos = (string)$cta_pos_array[0];
29
+ $cta_val = (string)$cta_pos_array[1];
30
+ if($cta_pos != 'after'){
31
+ $cta_pos = 'before';
32
+ }
33
+ }
34
+
35
 
36
+ // Create $preloaded_arr
37
+ $preloaded_arr = array(
38
+ 'post_id' => $post_id,
39
+ 'acf' => $acf,
40
+ 'acf_post_id' => $acf_post_id,
41
+ 'acf_field_type' => $acf_field_type,
42
+ 'acf_field_name' => $acf_field_name,
43
+ 'users' => $users,
44
+ 'users_include' => $users_include,
45
+ 'users_exclude' => $users_exclude,
46
+ 'users_per_page' => $users_per_page,
47
+ 'users_order' => $users_order,
48
+ 'users_orderby' => $users_orderby,
49
+ 'comments_per_page' => $comments_per_page,
50
+ 'comments_type' => $comments_type,
51
+ 'comments_style' => $comments_style,
52
+ 'comments_template' => $comments_template,
53
+ 'comments_callback' => $comments_callback,
54
+ 'comments_post_id' => $comments_post_id,
55
+ 'post_type' => $post_type,
56
+ 'sticky_posts' => $sticky_posts,
57
+ 'post_format' => $post_format,
58
+ 'category' => $category,
59
+ 'category__not_in' => $category__not_in,
60
+ 'tag' => $tag,
61
+ 'tag__not_in' => $tag__not_in,
62
+ 'taxonomy' => $taxonomy,
63
+ 'taxonomy_terms' => $taxonomy_terms,
64
+ 'taxonomy_operator' => $taxonomy_operator,
65
+ 'taxonomy_relation' => $taxonomy_relation,
66
+ 'meta_key' => $meta_key,
67
+ 'meta_value' => $meta_value,
68
+ 'meta_compare' => $meta_compare,
69
+ 'meta_relation' => $meta_relation,
70
+ 'meta_type' => $meta_type,
71
+ 'year' => $year,
72
+ 'month' => $month,
73
+ 'day' => $day,
74
+ 'author' => $author,
75
+ 'post__in' => $post__in,
76
+ 'post__not_in' => $post__not_in,
77
+ 'search' => $search,
78
+ 'custom_args' => $custom_args,
79
+ 'post_status' => $post_status,
80
+ 'order' => $order,
81
+ 'orderby' => $orderby,
82
+ 'exclude' => $exclude,
83
+ 'offset' => $preload_offset,
84
+ 'posts_per_page' => $preloaded_amount,
85
+ 'lang' => $lang,
86
+ 'css_classes' => $css_classes,
87
+ );
88
+
89
+
90
+ $type = alm_get_repeater_type($repeater);
91
+
92
+ if($comments){ // Comments
93
+
94
+ if(has_action('alm_comments_installed') && $comments){
95
+
96
+ /*
97
+ * alm_comments_preloaded
98
+ *
99
+ * Preloaded Comments Filter
100
+ *
101
+ * @return $preloaded_comments;
102
+ */
103
+ $preloaded_comments = apply_filters('alm_comments_preloaded', $preloaded_arr); // located in comments add-on
104
+ $preloaded_output .= '<'.$comments_style.' class="alm-listing alm-preloaded commentlist alm-comments-preloaded'. $classname . $css_classes .'">';
105
 
106
+ $preloaded_output .= ($seo === "true") ? '<div class="alm-reveal alm-seo'. $transition_container_classes .'" data-page="1" data-url="'.$canonicalURL.'">' : '';
107
+ $preloaded_output .= $preloaded_comments;
108
+ $preloaded_output .= ($seo === "true") ? '</div>' : '';
109
 
110
+ $preloaded_output .= '</'.$container_element.'>';
 
 
111
  }
112
 
113
+ }
114
+
115
+ elseif($users){ // Users
116
+
117
+ if(has_action('alm_users_preloaded') && $users){
118
+
119
+ // Encrypt User Role
120
+ if(!empty($users_role) && function_exists('alm_role_encrypt')){
121
+ $preloaded_arr['users_role'] = alm_role_encrypt($users_role);
 
 
 
 
 
 
 
 
 
122
  }
123
+
124
+
125
+
126
+ /*
127
+ * alm_users_preloaded
 
 
 
128
  *
129
+ * Preloaded Users Filter
130
  *
131
+ * @return $preloaded_users;
132
  */
133
+ $preloaded_users = apply_filters('alm_users_preloaded', $preloaded_arr, $preloaded_amount, $repeater, $theme_repeater); // located in Users add-on
134
+ $preloaded_output .= '<'.$container_element.' class="alm-listing alm-preloaded alm-users-preloaded'. $classname . $css_classes .'">';
135
+
136
+ $preloaded_output .= ($seo === "true") ? '<div class="alm-reveal alm-seo'. $transition_container_classes .'" data-page="1" data-url="'.$canonicalURL.'">' : '';
137
+ $preloaded_output .= $preloaded_users;
138
+ $preloaded_output .= ($seo === "true") ? '</div>' : '';
139
+
140
+ $preloaded_output .= '</'.$container_element.'>';
141
+
142
+ }
143
+ }
144
 
145
+ elseif($acf && ($acf_field_type !== 'relationship')){ // Advanced Custom Fields
146
 
147
+ if(has_action('alm_acf_installed') && $acf){
148
 
149
+ /* alm_acf_preloaded
 
150
  *
151
+ * Preloaded ACF Filter
152
  *
153
+ * @return $preloaded_acf;
154
  */
155
+ $preloaded_acf = apply_filters('alm_acf_preloaded', $preloaded_arr, $repeater, $theme_repeater); //located in ACF add-on
156
+ $preloaded_output .= '<'.$container_element.' class="alm-listing alm-preloaded alm-acf-preloaded'. $classname . $css_classes .'" data-total-posts="'. apply_filters('alm_acf_total_rows', $preloaded_arr) .'">';
157
+
158
+ $preloaded_output .= ($seo === "true") ? '<div class="alm-reveal alm-seo'. $transition_container_classes .'" data-page="1" data-url="'.$canonicalURL.'">' : '';
159
+ $preloaded_output .= $preloaded_acf;
160
+ $preloaded_output .= ($seo === "true") ? '</div>' : '';
161
 
162
+ $preloaded_output .= '</'.$container_element.'>';
163
+ }
164
 
165
+ }
166
 
167
+ else { // Standard
 
 
 
 
 
 
 
 
 
168
 
 
 
 
 
 
 
 
 
169
 
170
+ /*
171
+ * alm_preload_args
172
+ *
173
+ * ALM Preloaded add-on Hook
174
+ *
175
+ * @return $args;
176
+ */
177
+ $args = apply_filters('alm_preload_args', $preloaded_arr); // Create preloaded $args
178
 
 
 
 
 
 
179
 
 
 
 
 
 
 
 
 
 
 
 
180
 
181
+ /*
182
+ * alm_filters_preloaded_args
183
+ *
184
+ * ALM Filters add-on Hook
185
+ *
186
+ * @return $args;
187
+ */
188
+ if($filters && has_action('alm_filters_preloaded_args')){
189
+ // $args = apply_filters('alm_filters_preloaded_args', $args); // Create filters $args
190
+ }
191
 
 
 
 
 
192
 
 
193
 
194
+ /*
195
+ * alm_modify_query_args
196
+ *
197
+ * ALM Core Filter Hook
198
+ *
199
+ * @return $args;
200
+ * Deprecated 2.10
201
+ */
202
+ $args = apply_filters('alm_modify_query_args', $args, $slug);
203
+
204
 
205
+ /*
206
+ * alm_query_args_[id]
207
+ *
208
+ * ALM Core Filter Hook
209
+ *
210
+ * @return $args;
211
+ */
212
+ $args = apply_filters('alm_query_args_'.$id, $args, $post_id);
 
 
 
213
 
214
+
215
+ $alm_preload_query = new WP_Query($args);
216
+
217
+ $alm_total_posts = $alm_preload_query->found_posts - $offset;
218
+
219
+ $output = $noscript = '';
220
+
221
+ if ($alm_preload_query->have_posts()) :
222
+
223
+ $alm_item = $alm_page = $alm_current = 0;
224
+ $alm_found_posts = $alm_total_posts;
225
 
226
+ // Filters Wrap [Open]
227
+ if($filters && has_filter('alm_filters_reveal_open')){
228
+ $output .= apply_filters('alm_filters_reveal_open', $transition_container_classes, $canonicalURL);
 
229
  }
230
+
231
+ while ($alm_preload_query->have_posts()) : $alm_preload_query->the_post();
232
 
233
+ $alm_item++;
234
+ $alm_current++;
235
+
236
+ // Call to Action [Before]
237
+ if($cta && has_action('alm_cta_inc') && $cta_pos == 'before'){
238
+ $output .= ($alm_current == $cta_val) ? $output .= apply_filters('alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, true) : '';
239
+ }
240
+
241
+ $output .= apply_filters('alm_preload_inc', $repeater, $type, $theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current);
242
+
243
+ // Call to Action [After]
244
+ if($cta && has_action('alm_cta_inc') && $cta_pos == 'after'){
245
+ $output .= ($alm_current == $cta_val) ? apply_filters('alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, true) : '';
246
+ }
247
+
248
+ endwhile; wp_reset_query();
249
+
250
+ // Filters Wrap [close]
251
+ if($filters && has_filter('alm_filters_reveal_close')){
252
+ $output .= apply_filters('alm_filters_reveal_close', '</div>');
253
+ }
254
+
255
+ if(has_action('alm_seo_installed') && $seo === 'true'){ // If SEO, add noscript paging
256
+ // Create noscript paging for SEO if preload and seo are enabled
257
+ $noscript = alm_paging_no_script($alm_preload_query);
258
+ }
259
+
260
+ endif;
261
+
262
+
263
+ if($filters && class_exists('ALMFILTERS')){
264
+ // Maybe use this for Preloaded
265
+ //$pg = ALMFILTERS::alm_filters_get_page_num();
266
+ //$alm_total_posts = ($pg > 1 ) ? $alm_total_posts - ($preloaded_amount * $pg) + $preloaded_amount : $alm_total_posts;
267
+ }
268
+
269
+ $preloaded_output .= '<'.$container_element.' class="alm-listing alm-preloaded'. $classname . $css_classes .'" data-total-posts="'. $alm_total_posts .'">';
270
+
271
+ // .alm-reveal
272
+ if($seo === "true" && $paging === 'false'){
273
 
274
+ // Get querystring to append to URL (Maybe in the future)
275
+ // $querystring = $_SERVER['QUERY_STRING'];
276
+ $querystring = '';
277
 
278
+ if(is_search()){
279
+ // If search, append slug (?s=term) to data-url
280
+ $preloaded_output .= '<div class="alm-reveal alm-seo'. $transition_container_classes .'" data-page="1" data-url="'. $canonicalURL .''. $slug . $querystring .'">';
281
+ }else{
282
+ // Append querystring to data-url
283
+ $querystring = ($querystring) ? '?'.$querystring : '';
284
+ $preloaded_output .= '<div class="alm-reveal alm-seo'. $transition_container_classes .'" data-page="1" data-url="'. $canonicalURL . $querystring .'">';
285
+ }
286
+ }
287
+
288
+ if($seo === "false" && $paging === 'true' || $seo === "true" && $paging === 'true'){
289
+ $preloaded_output .= '<div class="alm-reveal'. $transition_container_classes .'">';
290
+ }
291
+
292
+ // Preloaded output
293
+ $preloaded_output .= $output;
294
+
295
+ // Close .alm-reveal
296
+ if($seo === "true" && $paging === 'false' || $seo === "true" && $paging === 'true'){
297
+ $preloaded_output .= '</div>';
298
+ }
299
 
300
+ $preloaded_output .= '</'.$container_element.'>';
301
 
302
+ if(has_action('alm_seo_installed')){ // If SEO, add noscript paging
303
+ $preloaded_output .= $noscript;
304
+ }
305
+ }
306
 
307
+ $ajaxloadmore .= $preloaded_output; // Add $preloaded_output data to $ajaxloadmore
 
core/dist/js/ajax-load-more.js CHANGED
@@ -91,6 +91,211 @@ var almGetParameterByName = function almGetParameterByName(name, url) {
91
  if (!results[2]) return '';
92
  return decodeURIComponent(results[2].replace(/\+/g, " "));
93
  };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
  "use strict";
95
 
96
  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); } }
@@ -213,18 +418,19 @@ var alm_is_filtering = false; // Global Masonry/Filtering var
213
 
214
  /*
215
  almMasonry
216
-
217
  Function to trigger built-in Ajax Load More Masonry
218
 
219
- @param container object
220
- @param items object
221
- @param selector string
222
- @param columnWidth string
223
- @param animation string
224
- @param speed int
225
- @param masonry_init boolean
226
- @param init boolean
227
- @param filtering boolean
 
 
228
  @since 3.1
229
  @updated 3.3.2
230
  */
@@ -255,7 +461,7 @@ var almMasonry = function almMasonry(container, items, selector, columnWidth, an
255
  visible = 'translateY(0)';
256
  }
257
 
258
- // Set default columnWidth
259
  if (columnWidth) {
260
  if (!isNaN(columnWidth)) {
261
  // Check if number
@@ -266,7 +472,7 @@ var almMasonry = function almMasonry(container, items, selector, columnWidth, an
266
  columnWidth = selector;
267
  }
268
 
269
- // Set horizontalOrder
270
  horizontalOrder = horizontalOrder === 'true' ? true : false;
271
 
272
  if (!filtering) {
@@ -274,7 +480,8 @@ var almMasonry = function almMasonry(container, items, selector, columnWidth, an
274
  // First Run
275
  if (masonry_init && init) {
276
  container.imagesLoaded(function () {
277
- container.masonry({
 
278
  itemSelector: selector,
279
  transitionDuration: duration,
280
  columnWidth: columnWidth,
@@ -287,7 +494,22 @@ var almMasonry = function almMasonry(container, items, selector, columnWidth, an
287
  transform: visible,
288
  opacity: 1
289
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
290
  });
 
 
291
  almMasonryFadeIn(container[0].parentNode, speed);
292
  });
293
  }
@@ -301,8 +523,9 @@ var almMasonry = function almMasonry(container, items, selector, columnWidth, an
301
  } else {
302
  // Filtering Reset
303
  container.masonry('destroy'); // destroy masonry
 
304
  container.append(items);
305
- almMasonry(container, items, selector, animation, horizontalOrder, speed, true, true, false);
306
  }
307
  };
308
 
@@ -392,7 +615,6 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
392
  alm.speed = 250;
393
  alm.images_loaded = alm.content.attr('data-images-loaded');
394
  alm.destroy_after = alm.content.attr('data-destroy-after');
395
- alm.lang = alm.content.attr('data-lang');
396
  alm.orginal_posts_per_page = alm.content.attr('data-posts-per-page'); // Used for paging add-on
397
  alm.posts_per_page = alm.content.attr('data-posts-per-page');
398
  alm.offset = alm.content.attr('data-offset');
@@ -676,9 +898,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
676
  if (alm.repeater === undefined) {
677
  alm.repeater = 'default';
678
  }
679
- if (alm.theme_repeater === undefined) {
680
- alm.theme_repeater = 'null';
681
- }
682
 
683
  /* Max Pages (while scrolling) */
684
  alm.max_pages = alm.max_pages === undefined || alm.max_pages === 0 ? 10000 : alm.max_pages;
@@ -736,7 +956,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
736
  alm.button_label = alm.button_label === undefined ? 'Older Posts' : alm.button_label;
737
  alm.button_loading_label = alm.button_loading_label === undefined ? false : alm.button_loading_label;
738
 
739
- // Paging add-on
740
  if (alm.paging) {
741
  alm.content.parent().addClass('loading'); // add loading class to main container
742
  } else {
@@ -900,53 +1120,15 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
900
 
901
  // REST API
902
  if (alm.restapi) {
903
- var alm_template = wp.template(alm.restapi_template_id),
904
- rest_url = alm.restapi_base_url + '/' + alm.restapi_namespace + '/' + alm.restapi_endpoint,
905
- rest_data = {
906
- id: el.attr('data-id'),
907
- post_id: alm.post_id,
908
- posts_per_page: alm.posts_per_page,
909
- page: alm.page,
910
- offset: alm.offset,
911
- slug: alm.slug,
912
- canonical_url: alm.canonical_url,
913
- post_type: alm.post_type,
914
- post_format: alm.content.attr('data-post-format'),
915
- category: alm.content.attr('data-category'),
916
- category__not_in: alm.content.attr('data-category-not-in'),
917
- tag: alm.content.attr('data-tag'),
918
- tag__not_in: alm.content.attr('data-tag-not-in'),
919
- taxonomy: alm.content.attr('data-taxonomy'),
920
- taxonomy_terms: alm.content.attr('data-taxonomy-terms'),
921
- taxonomy_operator: alm.content.attr('data-taxonomy-operator'),
922
- taxonomy_relation: alm.content.attr('data-taxonomy-relation'),
923
- meta_key: alm.content.attr('data-meta-key'),
924
- meta_value: alm.content.attr('data-meta-value'),
925
- meta_compare: alm.content.attr('data-meta-compare'),
926
- meta_relation: alm.content.attr('data-meta-relation'),
927
- meta_type: alm.content.attr('data-meta-type'),
928
- author: alm.content.attr('data-author'),
929
- year: alm.content.attr('data-year'),
930
- month: alm.content.attr('data-month'),
931
- day: alm.content.attr('data-day'),
932
- post_status: alm.content.attr('data-post-status'),
933
- order: alm.content.attr('data-order'),
934
- orderby: alm.content.attr('data-orderby'),
935
- post__in: alm.content.attr('data-post-in'),
936
- post__not_in: alm.content.attr('data-post-not-in'),
937
- search: alm.content.attr('data-search'),
938
- custom_args: alm.content.attr('data-custom-args'),
939
- lang: alm.lang,
940
- preloaded: alm.preloaded,
941
- preloaded_amount: alm.preloaded_amount,
942
- seo_start_page: alm.start_page
943
- };
944
 
945
  $.ajax({
946
- type: "GET",
947
- url: rest_url,
948
- data: rest_data,
949
- dataType: "JSON",
950
  beforeSend: function beforeSend() {
951
  if (alm.page != 1 && !alm.paging) {
952
  alm.button.addClass('loading');
@@ -966,7 +1148,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
966
  // If debug
967
  console.log(result);
968
  }
969
- data += alm_template(result);
970
  });
971
 
972
  // Create object to pass to success()
@@ -981,74 +1163,22 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
981
  }
982
  });
983
  }
 
984
  // Standard ALM
985
  else {
 
 
 
986
  $.ajax({
987
- type: "GET",
988
  url: alm_localize.ajaxurl,
989
- dataType: "JSON",
990
- data: {
991
- action: action,
992
- nonce: alm_localize.alm_nonce,
993
- query_type: queryType,
994
- id: el.attr('data-id'),
995
- post_id: alm.post_id,
996
- slug: alm.slug,
997
- canonical_url: alm.canonical_url,
998
- cache_id: alm.cache_id,
999
- cache_logged_in: alm.cache_logged_in,
1000
- repeater: alm.repeater,
1001
- theme_repeater: alm.theme_repeater,
1002
- acf: alm.acf_array,
1003
- nextpage: alm.nextpage_array,
1004
- cta: alm.cta_array,
1005
- comments: alm.comments_array,
1006
- users: alm.users_array,
1007
- post_type: alm.post_type,
1008
- sticky_posts: alm.sticky_posts,
1009
- post_format: alm.content.attr('data-post-format'),
1010
- category: alm.content.attr('data-category'),
1011
- category__not_in: alm.content.attr('data-category-not-in'),
1012
- tag: alm.content.attr('data-tag'),
1013
- tag__not_in: alm.content.attr('data-tag-not-in'),
1014
- taxonomy: alm.content.attr('data-taxonomy'),
1015
- taxonomy_terms: alm.content.attr('data-taxonomy-terms'),
1016
- taxonomy_operator: alm.content.attr('data-taxonomy-operator'),
1017
- taxonomy_relation: alm.content.attr('data-taxonomy-relation'),
1018
- meta_key: alm.content.attr('data-meta-key'),
1019
- meta_value: alm.content.attr('data-meta-value'),
1020
- meta_compare: alm.content.attr('data-meta-compare'),
1021
- meta_relation: alm.content.attr('data-meta-relation'),
1022
- meta_type: alm.content.attr('data-meta-type'),
1023
- author: alm.content.attr('data-author'),
1024
- year: alm.content.attr('data-year'),
1025
- month: alm.content.attr('data-month'),
1026
- day: alm.content.attr('data-day'),
1027
- post_status: alm.content.attr('data-post-status'),
1028
- order: alm.content.attr('data-order'),
1029
- orderby: alm.content.attr('data-orderby'),
1030
- post__in: alm.content.attr('data-post-in'),
1031
- post__not_in: alm.content.attr('data-post-not-in'),
1032
- exclude: alm.content.attr('data-exclude'), // Deprecate soon in favor of post__not_in
1033
- search: alm.content.attr('data-search'),
1034
- custom_args: alm.content.attr('data-custom-args'),
1035
- posts_per_page: alm.posts_per_page,
1036
- page: alm.page,
1037
- offset: alm.offset,
1038
- preloaded: alm.preloaded,
1039
- preloaded_amount: alm.preloaded_amount,
1040
- seo_start_page: alm.start_page,
1041
- paging: alm.paging,
1042
- previous_post: alm.previous_post_array,
1043
- lang: alm.lang
1044
- },
1045
-
1046
  beforeSend: function beforeSend() {
1047
  if (alm.page != 1 && !alm.paging) {
1048
  alm.button.addClass('loading');
1049
  }
1050
  },
1051
-
1052
  success: function success(data) {
1053
  // Standard Query
1054
  if (queryType === 'standard') {
@@ -1065,7 +1195,6 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
1065
  }
1066
  }
1067
  },
1068
-
1069
  error: function error(jqXHR, textStatus, errorThrown) {
1070
  alm.AjaxLoadMore.error(jqXHR, textStatus, errorThrown);
1071
  }
@@ -1670,7 +1799,10 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
1670
 
1671
  // If scroll_container specified, set window object to container.
1672
  if (alm.scroll_container !== '') {
1673
- alm.window = $(alm.scroll_container);
 
 
 
1674
  }
1675
 
1676
  alm.window.bind("scroll touchstart", function () {
91
  if (!results[2]) return '';
92
  return decodeURIComponent(results[2].replace(/\+/g, " "));
93
  };
94
+ 'use strict';
95
+
96
+ /*
97
+ almGetAjaxParams
98
+ Build the data object to send with the Ajax request
99
+
100
+ @param alm object
101
+ @param action string
102
+ @param queryType string
103
+
104
+ @since 3.6
105
+ */
106
+
107
+ var almGetAjaxParams = function almGetAjaxParams(alm, action, queryType) {
108
+
109
+ // Defaults
110
+ var data = {
111
+ action: action,
112
+ nonce: alm_localize.alm_nonce,
113
+ query_type: queryType,
114
+ id: alm.id,
115
+ post_id: alm.post_id,
116
+ slug: alm.slug,
117
+ canonical_url: alm.canonical_url,
118
+ posts_per_page: alm.posts_per_page,
119
+ page: alm.page,
120
+ offset: alm.offset,
121
+ post_type: alm.post_type,
122
+ repeater: alm.repeater,
123
+ seo_start_page: alm.start_page
124
+ };
125
+
126
+ // Addons
127
+ if (alm.theme_repeater) {
128
+ data.theme_repeater = alm.theme_repeater;
129
+ }
130
+ if (alm.paging) {
131
+ data.paging = alm.paging;
132
+ }
133
+ if (alm.preloaded) {
134
+ data.preloaded = alm.preloaded;
135
+ data.preloaded_amount = alm.preloaded_amount;
136
+ }
137
+ if (alm.cache === 'true') {
138
+ data.cache_id = alm.cache_id;
139
+ data.cache_logged_in = alm.cache_logged_in;
140
+ }
141
+ if (alm.acf_array) {
142
+ data.acf = alm.acf_array;
143
+ }
144
+ if (alm.cta_array) {
145
+ data.cta = alm.cta_array;
146
+ }
147
+ if (alm.comments_array) {
148
+ data.comments = alm.comments_array;
149
+ }
150
+ if (alm.nextpage_array) {
151
+ data.nextpage = alm.nextpage_array;
152
+ }
153
+ if (alm.previous_post_array) {
154
+ data.previous_post = alm.previous_post_array;
155
+ }
156
+ if (alm.users_array) {
157
+ data.users = alm.users_array;
158
+ }
159
+
160
+ // Query data
161
+ if (alm.content.attr('data-lang')) {
162
+ data.lang = alm.content.attr('data-lang');
163
+ }
164
+ if (alm.content.attr('data-sticky-posts')) {
165
+ data.sticky_posts = alm.content.attr('data-sticky-posts');
166
+ }
167
+ if (alm.content.attr('data-post-format')) {
168
+ data.post_format = alm.content.attr('data-post-format');
169
+ }
170
+ if (alm.content.attr('data-category')) {
171
+ data.category = alm.content.attr('data-category');
172
+ }
173
+ if (alm.content.attr('data-category-not-in')) {
174
+ data.category__not_in = alm.content.attr('data-category-not-in');
175
+ }
176
+ if (alm.content.attr('data-tag')) {
177
+ data.tag = alm.content.attr('data-tag');
178
+ }
179
+ if (alm.content.attr('data-tag-not-in')) {
180
+ data.tag__not_in = alm.content.attr('data-tag-not-in');
181
+ }
182
+ if (alm.content.attr('data-taxonomy')) {
183
+ data.taxonomy = alm.content.attr('data-taxonomy');
184
+ }
185
+ if (alm.content.attr('data-taxonomy-terms')) {
186
+ data.taxonomy_terms = alm.content.attr('data-taxonomy-terms');
187
+ }
188
+ if (alm.content.attr('data-taxonomy-operator')) {
189
+ data.taxonomy_operator = alm.content.attr('data-taxonomy-operator');
190
+ }
191
+ if (alm.content.attr('data-taxonomy-relation')) {
192
+ data.taxonomy_relation = alm.content.attr('data-taxonomy-relation');
193
+ }
194
+ if (alm.content.attr('data-meta-key')) {
195
+ data.meta_key = alm.content.attr('data-meta-key');
196
+ }
197
+ if (alm.content.attr('data-meta-value')) {
198
+ data.meta_value = alm.content.attr('data-meta-value');
199
+ }
200
+ if (alm.content.attr('data-meta-compare')) {
201
+ data.meta_compare = alm.content.attr('data-meta-compare');
202
+ }
203
+ if (alm.content.attr('data-meta-relation')) {
204
+ data.meta_relation = alm.content.attr('data-meta-relation');
205
+ }
206
+ if (alm.content.attr('data-meta-type')) {
207
+ data.meta_type = alm.content.attr('data-meta-type');
208
+ }
209
+ if (alm.content.attr('data-author')) {
210
+ data.author = alm.content.attr('data-author');
211
+ }
212
+ if (alm.content.attr('data-year')) {
213
+ data.year = alm.content.attr('data-year');
214
+ }
215
+ if (alm.content.attr('data-month')) {
216
+ data.month = alm.content.attr('data-month');
217
+ }
218
+ if (alm.content.attr('data-day')) {
219
+ data.day = alm.content.attr('data-day');
220
+ }
221
+ if (alm.content.attr('data-order')) {
222
+ data.order = alm.content.attr('data-order');
223
+ }
224
+ if (alm.content.attr('data-orderby')) {
225
+ data.orderby = alm.content.attr('data-orderby');
226
+ }
227
+ if (alm.content.attr('data-post-status')) {
228
+ data.post_status = alm.content.attr('data-post-status');
229
+ }
230
+ if (alm.content.attr('data-post-in')) {
231
+ data.post__in = alm.content.attr('data-post-in');
232
+ }
233
+ if (alm.content.attr('data-post-not-in')) {
234
+ data.post__not_in = alm.content.attr('data-post-not-in');
235
+ }
236
+ if (alm.content.attr('data-exclude')) {
237
+ data.exclude = alm.content.attr('data-exclude');
238
+ }
239
+ if (alm.content.attr('data-search')) {
240
+ data.search = alm.content.attr('data-search');
241
+ }
242
+ if (alm.content.attr('data-custom-args')) {
243
+ data.custom_args = alm.content.attr('data-custom-args');
244
+ }
245
+
246
+ return data;
247
+ };
248
+
249
+ /*
250
+ almGetRestParams
251
+ Build the REST API data object to send with REST API request
252
+
253
+ @param alm object
254
+
255
+ @since 3.6
256
+ */
257
+ var almGetRestParams = function almGetRestParams(alm) {
258
+ var data = {
259
+ id: alm.id,
260
+ post_id: alm.post_id,
261
+ posts_per_page: alm.posts_per_page,
262
+ page: alm.page,
263
+ offset: alm.offset,
264
+ slug: alm.slug,
265
+ canonical_url: alm.canonical_url,
266
+ post_type: alm.post_type,
267
+ post_format: alm.content.attr('data-post-format'),
268
+ category: alm.content.attr('data-category'),
269
+ category__not_in: alm.content.attr('data-category-not-in'),
270
+ tag: alm.content.attr('data-tag'),
271
+ tag__not_in: alm.content.attr('data-tag-not-in'),
272
+ taxonomy: alm.content.attr('data-taxonomy'),
273
+ taxonomy_terms: alm.content.attr('data-taxonomy-terms'),
274
+ taxonomy_operator: alm.content.attr('data-taxonomy-operator'),
275
+ taxonomy_relation: alm.content.attr('data-taxonomy-relation'),
276
+ meta_key: alm.content.attr('data-meta-key'),
277
+ meta_value: alm.content.attr('data-meta-value'),
278
+ meta_compare: alm.content.attr('data-meta-compare'),
279
+ meta_relation: alm.content.attr('data-meta-relation'),
280
+ meta_type: alm.content.attr('data-meta-type'),
281
+ author: alm.content.attr('data-author'),
282
+ year: alm.content.attr('data-year'),
283
+ month: alm.content.attr('data-month'),
284
+ day: alm.content.attr('data-day'),
285
+ post_status: alm.content.attr('data-post-status'),
286
+ order: alm.content.attr('data-order'),
287
+ orderby: alm.content.attr('data-orderby'),
288
+ post__in: alm.content.attr('data-post-in'),
289
+ post__not_in: alm.content.attr('data-post-not-in'),
290
+ search: alm.content.attr('data-search'),
291
+ custom_args: alm.content.attr('data-custom-args'),
292
+ lang: alm.lang,
293
+ preloaded: alm.preloaded,
294
+ preloaded_amount: alm.preloaded_amount,
295
+ seo_start_page: alm.start_page
296
+ };
297
+ return data;
298
+ };
299
  "use strict";
300
 
301
  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); } }
418
 
419
  /*
420
  almMasonry
 
421
  Function to trigger built-in Ajax Load More Masonry
422
 
423
+ @param container object
424
+ @param items object
425
+ @param selector string
426
+ @param columnWidth string
427
+ @param animation string
428
+ @param horizontalOrder string
429
+ @param speed int
430
+ @param masonry_init boolean
431
+ @param init boolean
432
+ @param filtering boolean
433
+
434
  @since 3.1
435
  @updated 3.3.2
436
  */
461
  visible = 'translateY(0)';
462
  }
463
 
464
+ // columnWidth
465
  if (columnWidth) {
466
  if (!isNaN(columnWidth)) {
467
  // Check if number
472
  columnWidth = selector;
473
  }
474
 
475
+ // horizontalOrder
476
  horizontalOrder = horizontalOrder === 'true' ? true : false;
477
 
478
  if (!filtering) {
480
  // First Run
481
  if (masonry_init && init) {
482
  container.imagesLoaded(function () {
483
+
484
+ var defaults = {
485
  itemSelector: selector,
486
  transitionDuration: duration,
487
  columnWidth: columnWidth,
494
  transform: visible,
495
  opacity: 1
496
  }
497
+
498
+ // Get custom Masonry options (https://masonry.desandro.com/options.html)
499
+ };var alm_masonry_vars = alm_masonry_vars;
500
+ if (alm_masonry_vars) {
501
+ Object.keys(alm_masonry_vars).forEach(function (key) {
502
+ // Loop object to create key:prop
503
+ defaults[key] = alm_masonry_vars[key];
504
+ });
505
+ }
506
+
507
+ // Trigger Masonry()
508
+ container.masonry({
509
+ defaults: defaults
510
  });
511
+
512
+ // Fade in
513
  almMasonryFadeIn(container[0].parentNode, speed);
514
  });
515
  }
523
  } else {
524
  // Filtering Reset
525
  container.masonry('destroy'); // destroy masonry
526
+ container[0].parentNode.style.opacity = 0;
527
  container.append(items);
528
+ almMasonry(container, items, selector, columnWidth, animation, horizontalOrder, speed, true, true, false);
529
  }
530
  };
531
 
615
  alm.speed = 250;
616
  alm.images_loaded = alm.content.attr('data-images-loaded');
617
  alm.destroy_after = alm.content.attr('data-destroy-after');
 
618
  alm.orginal_posts_per_page = alm.content.attr('data-posts-per-page'); // Used for paging add-on
619
  alm.posts_per_page = alm.content.attr('data-posts-per-page');
620
  alm.offset = alm.content.attr('data-offset');
898
  if (alm.repeater === undefined) {
899
  alm.repeater = 'default';
900
  }
901
+ alm.theme_repeater = alm.theme_repeater === undefined ? false : alm.theme_repeater;
 
 
902
 
903
  /* Max Pages (while scrolling) */
904
  alm.max_pages = alm.max_pages === undefined || alm.max_pages === 0 ? 10000 : alm.max_pages;
956
  alm.button_label = alm.button_label === undefined ? 'Older Posts' : alm.button_label;
957
  alm.button_loading_label = alm.button_loading_label === undefined ? false : alm.button_loading_label;
958
 
959
+ // Paging
960
  if (alm.paging) {
961
  alm.content.parent().addClass('loading'); // add loading class to main container
962
  } else {
1120
 
1121
  // REST API
1122
  if (alm.restapi) {
1123
+ var alm_rest_template = wp.template(alm.restapi_template_id);
1124
+ var alm_rest_url = alm.restapi_base_url + '/' + alm.restapi_namespace + '/' + alm.restapi_endpoint;
1125
+ var alm_rest_data = almGetRestParams(alm); // [./helpers/queryParams.js]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1126
 
1127
  $.ajax({
1128
+ type: 'GET',
1129
+ url: alm_rest_url,
1130
+ data: alm_rest_data,
1131
+ dataType: 'JSON',
1132
  beforeSend: function beforeSend() {
1133
  if (alm.page != 1 && !alm.paging) {
1134
  alm.button.addClass('loading');
1148
  // If debug
1149
  console.log(result);
1150
  }
1151
+ data += alm_rest_template(result);
1152
  });
1153
 
1154
  // Create object to pass to success()
1163
  }
1164
  });
1165
  }
1166
+
1167
  // Standard ALM
1168
  else {
1169
+
1170
+ var alm_data_params = almGetAjaxParams(alm, action, queryType); // [./helpers/queryParams.js]
1171
+
1172
  $.ajax({
1173
+ type: 'GET',
1174
  url: alm_localize.ajaxurl,
1175
+ dataType: 'JSON',
1176
+ data: alm_data_params,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1177
  beforeSend: function beforeSend() {
1178
  if (alm.page != 1 && !alm.paging) {
1179
  alm.button.addClass('loading');
1180
  }
1181
  },
 
1182
  success: function success(data) {
1183
  // Standard Query
1184
  if (queryType === 'standard') {
1195
  }
1196
  }
1197
  },
 
1198
  error: function error(jqXHR, textStatus, errorThrown) {
1199
  alm.AjaxLoadMore.error(jqXHR, textStatus, errorThrown);
1200
  }
1799
 
1800
  // If scroll_container specified, set window object to container.
1801
  if (alm.scroll_container !== '') {
1802
+ // Confirm scroll_container exists
1803
+ if ($(alm.scroll_container).length) {
1804
+ alm.window = $(alm.scroll_container);
1805
+ }
1806
  }
1807
 
1808
  alm.window.bind("scroll touchstart", function () {
core/dist/js/ajax-load-more.min.js CHANGED
@@ -1 +1 @@
1
- "use strict";Array.from||(Array.from=function(){var a=Object.prototype.toString,l=function(t){return"function"==typeof t||"[object Function]"===a.call(t)},o=Math.pow(2,53)-1,d=function(t){var a,e=(a=Number(t),isNaN(a)?0:0!==a&&isFinite(a)?(0<a?1:-1)*Math.floor(Math.abs(a)):a);return Math.min(Math.max(e,0),o)};return function(t){var a=Object(t);if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");var e,o=1<arguments.length?arguments[1]:void 0;if(void 0!==o){if(!l(o))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(e=arguments[2])}for(var n,r=d(a.length),s=l(this)?Object(new this(r)):new Array(r),i=0;i<r;)n=a[i],s[i]=o?void 0===e?o(n,i):o.call(e,n,i):n,i+=1;return s.length=r,s}}());var almGetParameterByName=function(t,a){a||(a=window.location.href),t=t.replace(/[\[\]]/g,"\\$&");var e=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(a);return e?e[2]?decodeURIComponent(e[2].replace(/\+/g," ")):"":null};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)}var alm_is_filtering=!1;!function(r){r.fn.almFilter=function(e,o,n){n.target?r(".ajax-load-more-wrap[data-id='"+n.target+"']").each(function(t){var a=r(this);r.fn.almFilterTransition(e,o,n,a)}):r(".ajax-load-more-wrap").each(function(t){var a=r(this);r.fn.almFilterTransition(e,o,n,a)})},r.fn.almFilterTransition=function(t,a,e,o){"slide"===t?o.slideUp(a,function(){n(a,e,o)}):"fade"===t||"masonry"===t?o.fadeOut(a,function(){n(a,e,o)}):n(a,e,o)};var n=function(t,a,e){var o=e.get(0),n=o.querySelectorAll(".alm-listing");[].concat(_toConsumableArray(n)).forEach(function(t){t.innerHTML=""});var r=o.querySelector(".alm-load-more-btn");r&&r.classList.remove("done"),s(t,a,e)},s=function(t,a,e){r.each(a,function(t,a){t=t.replace(/\W+/g,"-").replace(/([a-z\d])([A-Z])/g,"$1-$2"),r(".alm-listing",e).attr("data-"+t,a)}),r.isFunction(r.fn.almFilterComplete)&&r.fn.almFilterComplete(),"function"==typeof almFiltersAddonComplete&&almFiltersAddonComplete(e),alm_is_filtering=!0,e.fadeIn(t),a.target?r(".ajax-load-more-wrap[data-id="+a.target+"]").ajaxloadmore():r(".ajax-load-more-wrap").ajaxloadmore()}}(jQuery);var almMasonry=function t(a,e,o,n,r,s,i,l,d,p){var c=(i+100)/1e3+"s",_="scale(0.5)",g="scale(1)";"zoom-out"===r&&(_="translateY(-20px) scale(1.25)",g="translateY(0) scale(1)"),"slide-up"===r&&(_="translateY(50px)",g="translateY(0)"),"slide-down"===r&&(_="translateY(-50px)",g="translateY(0)"),"none"===r&&(g=_="translateY(0)"),n?isNaN(n)||(n=parseInt(n)):n=o,s="true"===s,p?(a.masonry("destroy"),a.append(e),t(a,e,o,r,s,i,!0,!0,!1)):l&&d?a.imagesLoaded(function(){a.masonry({itemSelector:o,transitionDuration:c,columnWidth:n,horizontalOrder:s,hiddenStyle:{transform:_,opacity:0},visibleStyle:{transform:g,opacity:1}}),almMasonryFadeIn(a[0].parentNode,i)}):e.imagesLoaded(function(){a.append(e).masonry("appended",e)})},almMasonryFadeIn=function(t,a){a/=10;var e=parseInt(t.style.opacity),o=setInterval(function(){.9<e&&(t.style.opacity=1,clearInterval(o)),t.style.opacity=e,e+=.1},a)};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(v){v.ajaxloadmore=function(n,t){"true"===alm_localize.scrolltop&&v(window).scrollTop(0);var f=this;if(f.AjaxLoadMore={},f.window=v(window),f.page=0,f.posts=0,f.totalposts=0,f.proceed=!1,f.disable_ajax=!1,f.init=!0,f.loading=!0,f.finished=!1,f.prefix="alm-",f.el=n,f.container=n,f.container.addClass("alm-"+t).attr("data-alm-id",t),f.content=v(".alm-ajax",f.container),f.content_preloaded=v(".alm-listing.alm-preloaded",f.container),f.canonical_url=f.el.attr("data-canonical-url"),f.is_search=f.el.attr("data-search"),f.slug=f.el.attr("data-slug"),f.post_id=f.el.attr("data-post-id"),f.id=f.el.attr("data-id")?f.el.attr("data-id"):"",f.repeater=f.content.attr("data-repeater"),f.theme_repeater=f.content.attr("data-theme-repeater"),f.post_type=f.content.attr("data-post-type"),f.post_type=f.post_type.split(","),f.sticky_posts=f.content.attr("data-sticky-posts"),f.btnWrap=v(".alm-btn-wrap",f.container),f.button_label=f.content.attr("data-button-label"),f.button_loading_label=f.content.attr("data-button-loading-label"),f.scroll_distance=f.content.attr("data-scroll-distance"),f.scroll_distance=f.scroll_distance?parseInt(f.scroll_distance):150,f.scroll_container=f.content.attr("data-scroll-container"),f.max_pages=f.content.attr("data-max-pages"),f.max_pages=f.max_pages?parseInt(f.max_pages):0,f.pause_override=f.content.attr("data-pause-override"),f.pause=f.content.attr("data-pause"),f.transition=f.content.attr("data-transition"),f.transition_container=f.content.attr("data-transition-container"),f.tcc=f.content.attr("data-transition-container-classes"),f.speed=250,f.images_loaded=f.content.attr("data-images-loaded"),f.destroy_after=f.content.attr("data-destroy-after"),f.lang=f.content.attr("data-lang"),f.orginal_posts_per_page=f.content.attr("data-posts-per-page"),f.posts_per_page=f.content.attr("data-posts-per-page"),f.offset=f.content.attr("data-offset"),f.cache=f.content.attr("data-cache"),f.cache_id=f.content.attr("data-cache-id"),f.cache_path=f.content.attr("data-cache-path"),f.cache_logged_in=f.content.attr("data-cache-logged-in"),f.cta=f.content.attr("data-cta"),f.cta_position=f.content.attr("data-cta-position"),f.cta_repeater=f.content.attr("data-cta-repeater"),f.cta_theme_repeater=f.content.attr("data-cta-theme-repeater"),f.acf=f.content.attr("data-acf"),f.acf_field_type=f.content.attr("data-acf-field-type"),f.acf_field_name=f.content.attr("data-acf-field-name"),f.acf_post_id=f.content.attr("data-acf-post-id"),f.nextpage=f.content.attr("data-nextpage"),f.nextpage_urls=f.content.attr("data-nextpage-urls"),f.nextpage_scroll=f.content.attr("data-nextpage-scroll"),f.nextpage_pageviews=f.content.attr("data-nextpage-pageviews"),f.nextpage_post_id=f.content.attr("data-nextpage-post-id"),f.nextpage_startpage=f.content.attr("data-nextpage-startpage"),f.previous_post=f.content.attr("data-previous-post"),f.previous_post_id=f.content.attr("data-previous-post-id"),f.previous_post_taxonomy=f.content.attr("data-previous-post-taxonomy"),f.previous_post_excluded_terms=f.content.attr("data-previous-post-excluded-terms"),f.comments=f.content.attr("data-comments"),"true"===f.comments&&(f.content=v(".alm-comments",f.container)),f.comments_post_id=f.content.attr("data-comments_post_id"),f.comments_per_page=f.content.attr("data-comments_per_page"),f.comments_type=f.content.attr("data-comments_type"),f.comments_style=f.content.attr("data-comments_style"),f.comments_template=f.content.attr("data-comments_template"),f.comments_callback=f.content.attr("data-comments_callback"),f.filters=f.content.attr("data-filters"),f.restapi=f.content.attr("data-restapi"),f.restapi_base_url=f.content.attr("data-restapi-base-url"),f.restapi_namespace=f.content.attr("data-restapi-namespace"),f.restapi_endpoint=f.content.attr("data-restapi-endpoint"),f.restapi_template_id=f.content.attr("data-restapi-template-id"),f.restapi_debug=f.content.attr("data-restapi-debug"),f.seo=f.content.attr("data-seo"),f.preloaded=f.content.attr("data-preloaded"),f.preloaded_amount=f.content.attr("data-preloaded-amount"),f.paging=f.content.attr("data-paging"),f.users="true"===f.content.attr("data-users"),f.users&&(f.orginal_posts_per_page=f.content.attr("data-users-per-page"),f.posts_per_page=f.content.attr("data-users-per-page")),"true"===f.filters){f.filters=!0,f.filters_analtyics=f.content.attr("data-filters-analtyics"),f.filters_debug=f.content.attr("data-filters-debug"),f.filters_startpage=0;var a=almGetParameterByName("pg");null!==a&&(f.filters_startpage=parseInt(a),f.page=f.filters_startpage),f.isPaged=!1,0<f.filters_startpage&&(f.isPaged=!0,f.page=f.filters_startpage-1)}else f.filters=!1;"true"===f.restapi?(f.restapi=!0,void 0===f.restapi_debug&&(f.restapi_debug=!1),""===f.restapi_template_id&&(f.restapi=!1)):f.restapi=!1,"true"===f.paging?(f.paging=!0,f.paging_controls=!!f.content.attr("data-paging-controls"),f.paging_show_at_most=f.content.attr("data-paging-show-at-most"),f.paging_classes=f.content.attr("data-paging-classes"),f.paging_init=!0,f.paging_show_at_most=void 0===f.paging_show_at_most?7:f.paging_show_at_most,"true"===f.preloaded&&(f.pause=!0)):f.paging=!1,void 0===f.cache&&(f.cache=!1),void 0===f.cache_logged_in&&(f.cache_logged_in=!1),void 0===f.comments_per_page&&(f.comments_per_page="5"),"true"===f.preloaded?(f.preload_wrap=f.content.prev(".alm-preloaded"),f.preloaded_total_posts=parseInt(f.preload_wrap.attr("data-total-posts")),void 0===f.preloaded_amount&&(f.preloaded_amount=!1),f.preloaded_total_posts<=f.preloaded_amount&&(f.disable_ajax=!0)):f.preloaded="false",void 0===f.seo&&(f.seo=!1),"true"===f.seo&&(f.seo=!0),void 0===f.is_search&&(f.is_search=!1),f.search_value="true"===f.is_search?f.slug:"",f.permalink=f.content.attr("data-seo-permalink"),f.pageview=f.content.attr("data-seo-pageview"),f.start_page=f.content.attr("data-seo-start-page"),f.seo_trailing_slash="false"===f.content.attr("data-seo-trailing-slash")?"":"/",f.seo_leading_slash="true"===f.content.attr("data-seo-leading-slash")?"/":"",f.start_page?(f.seo_scroll=f.content.attr("data-seo-scroll"),f.seo_scroll_speed=f.content.attr("data-seo-scroll-speed"),f.seo_scrolltop=f.content.attr("data-seo-scrolltop"),f.seo_controls=f.content.attr("data-seo-controls"),f.isPaged=!1,1<f.start_page&&(f.isPaged=!0,f.posts_per_page=f.start_page*f.posts_per_page),f.paging&&(f.posts_per_page=f.orginal_posts_per_page)):f.start_page=1,"true"===f.nextpage?(f.nextpage=!0,f.posts_per_page=1):f.nextpage=!1,void 0===f.nextpage_urls&&(f.nextpage_urls="true"),void 0===f.nextpage_scroll&&(f.nextpage_scroll="250:30"),void 0===f.nextpage_pageviews&&(f.nextpage_pageviews="true"),void 0===f.nextpage_post_id&&(f.nextpage=!1,f.nextpage_post_id=null),void 0===f.nextpage_startpage&&(f.nextpage_startpage=1),1<f.nextpage_startpage&&(f.isPaged=!0),f.acf="true"===f.acf,void 0!==f.acf_field_type&&void 0!==f.acf_field_name&&void 0!==f.acf_post_id||(f.acf=!1),"true"===f.previous_post?(f.previous_post=!0,f.previous_post_permalink="",f.previous_post_title="",f.previous_post_slug=""):f.previous_post=!1,void 0===f.previous_post_id&&(f.previous_post_id=""),void 0===f.previous_post_taxonomy&&(f.previous_post_taxonomy=""),void 0===f.previous_post_excluded_terms&&(f.previous_post_excluded_terms=""),f.previous_post_title_template=f.content.attr("data-previous-post-title-template"),f.siteTitle=f.content.attr("data-previous-post-site-title"),f.siteTagline=f.content.attr("data-previous-post-site-tagline"),f.previous_post_pageview=f.content.attr("data-previous-post-pageview"),f.previous_post_scroll=f.content.attr("data-previous-post-scroll"),f.previous_post_scroll_speed=f.content.attr("data-previous-post-scroll-speed"),f.previous_post_scroll_top=f.content.attr("data-previous-post-scrolltop"),f.previous_post_controls=f.content.attr("data-previous-post-controls"),f.offset=void 0===f.offset?0:f.offset,(void 0===f.pause||f.seo&&1<f.start_page)&&(f.pause=!1),"true"===f.preloaded&&f.seo&&0<f.start_page&&(f.pause=!1),"true"===f.preloaded&&f.paging&&(f.pause=!0),void 0===f.repeater&&(f.repeater="default"),void 0===f.theme_repeater&&(f.theme_repeater="null"),f.max_pages=void 0===f.max_pages||0===f.max_pages?1e4:f.max_pages,f.scroll_distance=void 0===f.scroll_distance?150:f.scroll_distance,f.scroll_container=void 0===f.scroll_container?"":f.scroll_container,f.transition=void 0===f.transition?"fade":f.transition,f.tcc=void 0===f.tcc?"":f.tcc,f.is_masonry_preloaded=!1,"masonry"===f.transition&&(f.masonry_init=!0,f.masonry_selector=f.content.attr("data-masonry-selector"),f.masonry_columnwidth=f.content.attr("data-masonry-columnwidth"),f.masonry_animation=f.content.attr("data-masonry-animation"),f.masonry_horizontalorder=f.content.attr("data-masonry-horizontalorder"),void 0===f.masonry_animation&&(f.masonry_animation="standard"),void 0===f.masonry_horizontalorder&&(f.masonry_horizontalorder="true"),f.masonry_wrap=f.content,f.transition_container=!1,document.body.contains(f.content_preloaded.get(0))&&(f.masonry_wrap=f.content_preloaded,f.is_masonry_preloaded=!0)),void 0===f.content.attr("data-scroll")?f.scroll=!0:"false"===f.content.attr("data-scroll")?f.scroll=!1:f.scroll=!0,f.transition_container=void 0===f.transition_container||"true"===f.transition_container,f.images_loaded=void 0===f.images_loaded?"false":f.images_loaded,f.button_label=void 0===f.button_label?"Older Posts":f.button_label,f.button_loading_label=void 0!==f.button_loading_label&&f.button_loading_label,f.paging?f.content.parent().addClass("loading"):f.button=v(".alm-load-more-btn",f.container),f.AjaxLoadMore.loadPosts=function(){if(!f.disable_ajax)if(f.paging||(f.button.addClass("loading"),!1!==f.button_loading_label&&f.button.html(f.button_loading_label)),f.container.addClass("alm-loading"),f.loading=!0,"true"!==f.cache||f.cache_logged_in)f.AjaxLoadMore.ajax("standard");else{var t;if(f.init&&f.seo&&f.isPaged){t=f.cache_path+f.cache_id+"/page-1-"+f.start_page+".html"}else if(f.nextpage){var a;f.paging?a=parseInt(f.page)+1:(a=parseInt(f.page)+2,f.isPaged&&(a=parseInt(f.page)+parseInt(f.nextpage_startpage)+1)),t=f.cache_path+f.cache_id+"/page-"+a+".html"}else t=f.previous_post?f.cache_path+f.cache_id+"/"+f.previous_post_id+".html":f.cache_path+f.cache_id+"/page-"+(f.page+1)+".html";v.get(t,function(t){f.AjaxLoadMore.success(t,!0)}).fail(function(){f.AjaxLoadMore.ajax("standard")})}},f.AjaxLoadMore.ajax=function(a){var t="alm_query_posts";if(f.acf_array="",f.acf&&("relationship"!==f.acf_field_type&&(t="alm_acf_query"),f.acf_array={acf:"true",post_id:f.acf_post_id,field_type:f.acf_field_type,field_name:f.acf_field_name}),f.nextpage_array="",f.nextpage&&(t="alm_nextpage_query",f.nextpage_array={nextpage:"true",urls:f.nextpage_urls,scroll:f.nextpage_scroll,pageviews:f.nextpage_pageviews,post_id:f.nextpage_post_id,startpage:f.nextpage_startpage}),f.previous_post_array="",f.previous_post&&(f.previous_post_array={previous_post:"true",id:f.previous_post_id,slug:f.previous_post_slug}),f.comments_array="","true"===f.comments&&(t="alm_comments_query",f.posts_per_page=f.comments_per_page,f.comments_array={comments:"true",post_id:f.comments_post_id,per_page:f.comments_per_page,type:f.comments_type,style:f.comments_style,template:f.comments_template,callback:f.comments_callback}),f.users_array="",f.users&&(t="alm_users_query",f.users_array={users:"true",role:f.content.attr("data-users-role"),include:f.content.attr("data-users-include"),exclude:f.content.attr("data-users-exclude"),per_page:f.posts_per_page,order:f.content.attr("data-users-order"),orderby:f.content.attr("data-users-orderby")}),f.cta_array="","true"===f.cta&&(f.cta_array={cta:"true",cta_position:f.cta_position,cta_repeater:f.cta_repeater,cta_theme_repeater:f.cta_theme_repeater}),f.restapi){var i=wp.template(f.restapi_template_id),e=f.restapi_base_url+"/"+f.restapi_namespace+"/"+f.restapi_endpoint,o={id:n.attr("data-id"),post_id:f.post_id,posts_per_page:f.posts_per_page,page:f.page,offset:f.offset,slug:f.slug,canonical_url:f.canonical_url,post_type:f.post_type,post_format:f.content.attr("data-post-format"),category:f.content.attr("data-category"),category__not_in:f.content.attr("data-category-not-in"),tag:f.content.attr("data-tag"),tag__not_in:f.content.attr("data-tag-not-in"),taxonomy:f.content.attr("data-taxonomy"),taxonomy_terms:f.content.attr("data-taxonomy-terms"),taxonomy_operator:f.content.attr("data-taxonomy-operator"),taxonomy_relation:f.content.attr("data-taxonomy-relation"),meta_key:f.content.attr("data-meta-key"),meta_value:f.content.attr("data-meta-value"),meta_compare:f.content.attr("data-meta-compare"),meta_relation:f.content.attr("data-meta-relation"),meta_type:f.content.attr("data-meta-type"),author:f.content.attr("data-author"),year:f.content.attr("data-year"),month:f.content.attr("data-month"),day:f.content.attr("data-day"),post_status:f.content.attr("data-post-status"),order:f.content.attr("data-order"),orderby:f.content.attr("data-orderby"),post__in:f.content.attr("data-post-in"),post__not_in:f.content.attr("data-post-not-in"),search:f.content.attr("data-search"),custom_args:f.content.attr("data-custom-args"),lang:f.lang,preloaded:f.preloaded,preloaded_amount:f.preloaded_amount,seo_start_page:f.start_page};v.ajax({type:"GET",url:e,data:o,dataType:"JSON",beforeSend:function(){1==f.page||f.paging||f.button.addClass("loading")},success:function(t){var e="",o=t.html,a=t.meta,n=a.postcount,r=a.totalposts;v.each(o,function(t){var a=o[t];"true"===f.restapi_debug&&console.log(a),e+=i(a)});var s={html:e,meta:{postcount:n,totalposts:r}};f.AjaxLoadMore.success(s,!1)}})}else v.ajax({type:"GET",url:alm_localize.ajaxurl,dataType:"JSON",data:{action:t,nonce:alm_localize.alm_nonce,query_type:a,id:n.attr("data-id"),post_id:f.post_id,slug:f.slug,canonical_url:f.canonical_url,cache_id:f.cache_id,cache_logged_in:f.cache_logged_in,repeater:f.repeater,theme_repeater:f.theme_repeater,acf:f.acf_array,nextpage:f.nextpage_array,cta:f.cta_array,comments:f.comments_array,users:f.users_array,post_type:f.post_type,sticky_posts:f.sticky_posts,post_format:f.content.attr("data-post-format"),category:f.content.attr("data-category"),category__not_in:f.content.attr("data-category-not-in"),tag:f.content.attr("data-tag"),tag__not_in:f.content.attr("data-tag-not-in"),taxonomy:f.content.attr("data-taxonomy"),taxonomy_terms:f.content.attr("data-taxonomy-terms"),taxonomy_operator:f.content.attr("data-taxonomy-operator"),taxonomy_relation:f.content.attr("data-taxonomy-relation"),meta_key:f.content.attr("data-meta-key"),meta_value:f.content.attr("data-meta-value"),meta_compare:f.content.attr("data-meta-compare"),meta_relation:f.content.attr("data-meta-relation"),meta_type:f.content.attr("data-meta-type"),author:f.content.attr("data-author"),year:f.content.attr("data-year"),month:f.content.attr("data-month"),day:f.content.attr("data-day"),post_status:f.content.attr("data-post-status"),order:f.content.attr("data-order"),orderby:f.content.attr("data-orderby"),post__in:f.content.attr("data-post-in"),post__not_in:f.content.attr("data-post-not-in"),exclude:f.content.attr("data-exclude"),search:f.content.attr("data-search"),custom_args:f.content.attr("data-custom-args"),posts_per_page:f.posts_per_page,page:f.page,offset:f.offset,preloaded:f.preloaded,preloaded_amount:f.preloaded_amount,seo_start_page:f.start_page,paging:f.paging,previous_post:f.previous_post_array,lang:f.lang},beforeSend:function(){1==f.page||f.paging||f.button.addClass("loading")},success:function(t){"standard"===a?f.AjaxLoadMore.success(t,!1):"totalpages"===a&&f.paging&&f.nextpage?v.isFunction(v.fn.almBuildPagination)&&v.fn.almBuildPagination(t,f):"totalposts"===a&&f.paging&&v.isFunction(v.fn.almBuildPagination)&&v.fn.almBuildPagination(t,f)},error:function(t,a,e){f.AjaxLoadMore.error(t,a,e)}})},f.paging&&(f.nextpage?f.AjaxLoadMore.ajax("totalpages"):f.AjaxLoadMore.ajax("totalposts")),f.AjaxLoadMore.success=function(t,a){f.previous_post&&f.AjaxLoadMore.getPreviousPost();var e,o,n,r='style="opacity: 0; height: 0;"';if(a?e=t:(e=t.html,o=t.meta,f.posts=f.posts+o.postcount,n=o.postcount,f.totalposts=o.totalposts,"true"===f.preloaded&&(f.totalposts=f.totalposts-f.preloaded_amount)),f.data=v(e),a&&(n=f.data.length),f.init&&(f.paging?0<n&&(f.el=v('<div class="alm-reveal'+f.tcc+'" '+r+"/>"),f.el.append('<div class="alm-paging-content'+f.tcc+'"></div><div class="alm-paging-loading"></div>'),v(".alm-paging-content",f.el).append(f.data),f.content.append(f.el),f.AjaxLoadMore.fadeIn(f.el.get(0),f.speed),f.content.parent().removeClass("loading"),f.AjaxLoadMore.resetBtnText(),setTimeout(function(){v(".alm-paging-content",f.el).fadeIn(f.speed,"alm_easeInOutQuad",function(){var t=parseInt(f.content.css("padding-top")),a=parseInt(f.content.css("padding-bottom"));f.content.css("height",f.el.height()+t+a+"px"),v.isFunction(v.fn.almFadePageControls)&&v.fn.almFadePageControls(f.btnWrap)})},f.speed)):f.button.html(f.button_label),0===n&&(f.paging&&v.isFunction(v.fn.almPagingEmpty)&&v.fn.almPagingEmpty(f),v.isFunction(v.fn.almEmpty)&&v.fn.almEmpty(f)),f.isPaged&&(f.posts_per_page=f.users?f.content.attr("data-users-per-page"):f.content.attr("data-posts-per-page"),f.start_page&&(f.page=f.start_page-1),f.filters&&f.filters_startpage&&(f.page=f.filters_startpage-1,f.posts_per_page=f.content.attr("data-posts-per-page")))),0<n){if(f.paging)f.init?(f.container.removeClass("alm-loading"),f.AjaxLoadMore.triggerAddons(f)):v(".alm-paging-content",f.el).html("").append(f.data).almWaitForImages().done(function(){v(".alm-paging-loading",f.el).fadeOut(f.speed),v.isFunction(v.fn.almOnPagingComplete)&&v.fn.almOnPagingComplete(f),f.container.removeClass("alm-loading"),f.AjaxLoadMore.triggerAddons(f)});else{if(f.previous_post)f.el=v('<div class="alm-reveal alm-previous-post post-'+f.previous_post_id+'" '+r+' data-id="'+f.previous_post_id+'" data-title="'+f.previous_post_title+'" data-url="'+f.previous_post_permalink+'" data-page="'+f.page+'"/>'),f.el.append(f.data);else if(f.transition_container){var s=void 0,i=window.location.search;if(f.init&&1<f.start_page){var l=[],d=parseInt(f.posts_per_page);"true"===f.cta&&(d+=1);Math.ceil(n/d);for(var p=0;p<n;p+=d)l.push(f.data.slice(p,d+p));f.el=f.content;for(var c=0;c<l.length;c++){var _="true"===f.preloaded?1:0,g=void 0;0<c||"true"===f.preloaded?(s=c+1+_,g="default"===f.permalink?v('<div class="alm-reveal alm-seo'+f.tcc+'" data-url="'+f.canonical_url+f.search_value+"&paged="+s+'" data-page="'+s+'" />'):v('<div class="alm-reveal alm-seo'+f.tcc+'" data-url="'+f.canonical_url+f.seo_leading_slash+"page/"+s+f.seo_trailing_slash+f.search_value+'" data-page="'+s+'" />')):g=v('<div class="alm-reveal alm-seo'+f.tcc+'" data-url="'+f.canonical_url+f.search_value+'" data-page="1" />'),g.append(l[c]),g=v(g),f.el.append(g)}}else{if(f.seo&&0<f.page||"true"===f.preloaded){var u="true"===f.preloaded?1:0;s=f.page+1+u,f.seo?"default"===f.permalink?f.el=v('<div class="alm-reveal alm-seo'+f.tcc+'" '+r+' data-url="'+f.canonical_url+f.search_value+"&paged="+s+'" data-page="'+s+'" />'):f.el=v('<div class="alm-reveal alm-seo'+f.tcc+'" '+r+' data-url="'+f.canonical_url+f.seo_leading_slash+"page/"+s+f.seo_trailing_slash+f.search_value+'" data-page="'+s+'" />'):f.filters?f.el=v('<div class="alm-reveal alm-filters'+f.tcc+'" '+r+' data-url="'+f.canonical_url+i+'" data-page="'+s+'" />'):f.el=v('<div class="alm-reveal'+f.tcc+'" '+r+" />")}else f.filters?f.el=v('<div class="alm-reveal alm-filters'+f.tcc+'" '+r+' data-url="'+f.canonical_url+i+'" data-page="'+(f.page+1)+'" />'):f.seo?f.el=v('<div class="alm-reveal alm-seo'+f.tcc+'" '+r+' data-url="'+f.canonical_url+f.search_value+'" data-page="1" />'):f.el=v('<div class="alm-reveal'+f.tcc+'" '+r+" />");f.el.append(f.data)}}else f.el=f.data;("masonry"!==f.transition||f.init&&!f.is_masonry_preloaded)&&f.content.append(f.el),"masonry"===f.transition?(almMasonry(f.masonry_wrap,f.el,f.masonry_selector,f.masonry_columnwidth,f.masonry_animation,f.masonry_horizontalorder,f.speed,f.masonry_init,f.init,alm_is_filtering),f.masonry_init=!1,f.AjaxLoadMore.transitionEnd()):"none"===f.transition?(f.AjaxLoadMore.fadeIn(f.el.get(0),0),f.AjaxLoadMore.transitionEnd()):"true"===f.images_loaded?f.el.almWaitForImages().done(function(){f.transition_container&&f.AjaxLoadMore.fadeIn(f.el.get(0),f.speed),f.AjaxLoadMore.transitionEnd()}):(f.transition_container&&f.AjaxLoadMore.fadeIn(f.el.get(0),f.speed),f.AjaxLoadMore.transitionEnd())}v.isFunction(v.fn.almComplete)&&("true"===f.images_loaded?f.el.almWaitForImages().done(function(){v.fn.almComplete(f)}):v.fn.almComplete(f)),f.cache?n<f.posts_per_page&&f.AjaxLoadMore.triggerDone():f.posts>=f.totalposts&&!f.previous_post&&f.AjaxLoadMore.triggerDone()}else f.paging||(f.button.delay(f.speed).removeClass("loading").addClass("done"),f.AjaxLoadMore.resetBtnText()),f.AjaxLoadMore.triggerDone();if(void 0!==f.destroy_after&&""!==f.destroy_after){var m=f.page+1;"true"===f.preloaded&&m++,m==f.destroy_after&&f.AjaxLoadMore.destroyed()}alm_is_filtering=!1,f.init=!1},f.AjaxLoadMore.pagingPreloadedInit=function(t){t=null==t?"":t,f.el=v('<div class="alm-reveal'+f.tcc+'"/>'),f.el.append('<div class="alm-paging-content">'+t+'</div><div class="alm-paging-loading"></div>'),f.content.append(f.el),f.content.parent().removeClass("loading"),f.AjaxLoadMore.resetBtnText();var a=parseInt(f.content.css("padding-top")),e=parseInt(f.content.css("padding-bottom"));f.content.css("height",f.el.height()+a+e+"px"),""===t&&(v.isFunction(v.fn.almPagingEmpty)&&v.fn.almPagingEmpty(f),v.isFunction(v.fn.almEmpty)&&v.fn.almEmpty(f)),setTimeout(function(){v.isFunction(v.fn.almFadePageControls)&&v.fn.almFadePageControls(f.btnWrap)},f.speed)},f.AjaxLoadMore.pagingNextpageInit=function(t){f.el=v('<div class="alm-reveal alm-nextpage"/>'),f.el.append('<div class="alm-paging-content">'+t+'</div><div class="alm-paging-loading"></div>'),f.el.appendTo(f.content),f.content.parent().removeClass("loading"),f.AjaxLoadMore.resetBtnText();var a=parseInt(f.content.css("padding-top")),e=parseInt(f.content.css("padding-bottom"));f.content.css("height",f.el.height()+a+e+"px"),v.isFunction(v.fn.almSetNextPageVars)&&v.fn.almSetNextPageVars(f),setTimeout(function(){v.isFunction(v.fn.almFadePageControls)&&v.fn.almFadePageControls(f.btnWrap),v.isFunction(v.fn.almOnWindowResize)&&v.fn.almOnWindowResize(f)},f.speed)},f.fetchingPreviousPost=!1,f.AjaxLoadMore.getPreviousPost=function(){f.fetchingPreviousPost=!0;var t={action:"alm_query_previous_post",id:f.previous_post_id,taxonomy:f.previous_post_taxonomy,excluded_terms:f.previous_post_excluded_terms};v.ajax({type:"GET",dataType:"JSON",url:alm_localize.ajaxurl,data:t,success:function(t){t.has_previous_post?(f.content.attr("data-previous-post-id",t.prev_id),f.previous_post_id=t.prev_id,f.previous_post_permalink=t.prev_permalink,f.previous_post_title=t.prev_title,f.previous_post_slug=t.prev_slug):t.has_previous_post||f.AjaxLoadMore.triggerDone(),v.isFunction(v.fn.almSetPreviousPost)&&v.fn.almSetPreviousPost(f,t.current_id,t.permalink,t.title),f.fetchingPreviousPost=!1},error:function(t,a,e){f.AjaxLoadMore.error(t,a,e),f.fetchingPreviousPost=!1}})},f.AjaxLoadMore.triggerAddons=function(t){v.isFunction(v.fn.almSEO)&&t.seo&&v.fn.almSEO(t,!1),v.isFunction(v.fn.almSetNextPage)&&v.fn.almSetNextPage(t)},f.AjaxLoadMore.triggerDone=function(){f.loading=!1,f.finished=!0,f.paging||f.button.addClass("done"),v.isFunction(v.fn.almDone)&&setTimeout(function(){v.fn.almDone(f)},f.speed+10)},f.AjaxLoadMore.resetBtnText=function(){!1===f.button_loading_label||f.paging||f.button.html(f.button_label)},f.AjaxLoadMore.error=function(t,a,e){f.loading=!1,f.paging||(f.button.removeClass("loading"),f.AjaxLoadMore.resetBtnText()),console.log(e)},f.paging||f.fetchingPreviousPost||(f.button.unbind("click"),f.button.on("click",function(t){t.preventDefault(),"true"===f.pause&&(f.pause=!1,f.pause_override=!1,f.AjaxLoadMore.loadPosts()),f.loading||f.finished||v(this).hasClass("done")||(f.loading=!0,f.page++,f.AjaxLoadMore.loadPosts()),f.filters&&"function"==typeof almFiltersPaged&&almFiltersPaged(f)})),f.paging&&(f.window.unbind("resizeEnd"),f.window.bind("resizeEnd",function(){v.isFunction(v.fn.almOnWindowResize)&&v.fn.almOnWindowResize(f)}),f.window.unbind("resize"),f.window.bind("resize",function(){this.resizeTO&&clearTimeout(this.resizeTO),this.resizeTO=setTimeout(function(){v(this).trigger("resizeEnd")},f.speed)})),f.AjaxLoadMore.isVisible=function(){return f.visible=!1,f.el.is(":visible")&&(f.visible=!0),f.visible},f.scroll&&!f.paging&&(""!==f.scroll_container&&(f.window=v(f.scroll_container)),f.window.bind("scroll touchstart",function(){if(f.AjaxLoadMore.isVisible()&&!f.fetchingPreviousPost){var t=f.button.offset().top,a=Math.round(t-(f.window.height()-f.scroll_distance)),e=f.window.scrollTop()>=a;""!==f.scroll_container&&(e=f.button.offset().top-(f.window.height()-f.scroll_distance)<f.window.offset().top),!f.loading&&!f.finished&&e&&f.page<f.max_pages-1&&f.proceed&&"true"===f.pause&&"true"===f.pause_override?f.button.trigger("click"):!f.loading&&!f.finished&&e&&f.page<f.max_pages-1&&f.proceed&&"true"!==f.pause&&f.button.trigger("click")}})),f.AjaxLoadMore.destroyed=function(){f.disable_ajax=!0,f.paging||(f.button.delay(f.speed).fadeOut(f.speed),v.isFunction(v.fn.almDestroyed)&&v.fn.almDestroyed(f))},f.AjaxLoadMore.fadeIn=function(t,a){if(0==a)t.style.opacity=1,t.style.height="auto";else{a/=10;var e=0,o=setInterval(function(){.9<e&&(t.style.opacity=1,clearInterval(o)),t.style.opacity=e,e+=.1},a);t.style.height="auto"}},f.AjaxLoadMore.transitionEnd=function(){setTimeout(function(){f.loading=!1,f.container.removeClass("alm-loading"),f.AjaxLoadMore.triggerAddons(f),f.paging||(f.button.delay(f.speed).removeClass("loading"),f.AjaxLoadMore.resetBtnText())},f.speed)},f.AjaxLoadMore.init=function(){("true"===f.preloaded&&1==f.destroy_after&&f.AjaxLoadMore.destroyed(),f.paging||f.previous_post||(f.disable_ajax?(f.finished=!0,f.button.addClass("done")):"true"===f.pause?(f.button.html(f.button_label),f.loading=!1):f.AjaxLoadMore.loadPosts()),f.previous_post&&(f.AjaxLoadMore.getPreviousPost(),f.loading=!1),"true"===f.preloaded&&f.seo&&!f.paging&&setTimeout(function(){v.isFunction(v.fn.almSEO)&&f.start_page<1&&v.fn.almSEO(f,!0)},f.speed),"true"!==f.preloaded||f.paging||setTimeout(function(){f.preloaded_total_posts<=parseInt(f.preloaded_amount)&&f.AjaxLoadMore.triggerDone(),0==f.preloaded_total_posts&&v.isFunction(v.fn.almEmpty)&&v.fn.almEmpty(f)},f.speed),f.nextpage)&&(1<v(".alm-nextpage").length&&v(".alm-nextpage").length==v(".alm-nextpage").eq(0).data("total-pages")&&f.AjaxLoadMore.triggerDone());f.window.bind("load",function(){f.is_masonry_preloaded&&(almMasonry(f.masonry_wrap,f.el,f.masonry_selector,f.masonry_columnwidth,f.masonry_animation,f.masonry_horizontalorder,f.speed,f.masonry_init,!0,!1),f.masonry_init=!1)})},f.AjaxLoadMore.init(),setTimeout(function(){f.proceed=!0},150),v.fn.almUpdateCurrentPage=function(t,a,e){e.page=t,e.nextpage&&!e.paging&&(e.page=e.page-1);var o="";e.paging_init&&"true"===e.preloaded?(o=v(".alm-preloaded .alm-reveal",e.el).html(),v(".alm-preloaded",e.el).remove(),e.preloaded_amount=0,e.AjaxLoadMore.pagingPreloadedInit(o),e.paging_init=!1,e.init=!1):e.paging_init&&e.nextpage?(o=v(".alm-nextpage",e.el).html(),v(".alm-nextpage",e.el).remove(),e.AjaxLoadMore.pagingNextpageInit(o),e.paging_init=!1,e.init=!1):e.AjaxLoadMore.loadPosts()},v.fn.almGetParentContainer=function(){return f.el.closest("#ajax-load-more")},v.fn.almGetObj=function(){return f},v.fn.almTriggerClick=function(){f.button.trigger("click")},v.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}},v.fn.ajaxloadmore=function(){return this.each(function(t){new v.ajaxloadmore(v(this),t)})};var t=document.querySelectorAll(".ajax-load-more-wrap");t.length&&[].concat(_toConsumableArray(t)).forEach(function(t,a){new v.ajaxloadmore(v(t),a)})}(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(g){var u="almWaitForImages";g.almWaitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage","cursor"],hasImageAttributes:["srcset"]},g.expr[":"]["has-src"]=function(t){return g(t).is('img[src][src!=""]')},g.expr[":"].uncached=function(t){return!!g(t).is(":has-src")&&!t.complete},g.fn.almWaitForImages=function(){var l,d,e,p=0,c=0,_=g.Deferred();if(g.isPlainObject(arguments[0])?(e=arguments[0].waitForAll,d=arguments[0].each,l=arguments[0].finished):1===arguments.length&&"boolean"===g.type(arguments[0])?e=arguments[0]:(l=arguments[0],d=arguments[1],e=arguments[2]),l=l||g.noop,d=d||g.noop,e=!!e,!g.isFunction(l)||!g.isFunction(d))throw new TypeError("An invalid callback was supplied.");return this.each(function(){var r=g(this),s=[],t=g.almWaitForImages.hasImageProperties||[],a=g.almWaitForImages.hasImageAttributes||[],i=/url\(\s*(['"]?)(.*?)\1\s*\)/g;e?r.find("*").addBack().each(function(){var n=g(this);n.is("img:has-src")&&s.push({src:n.attr("src"),element:n[0]}),g.each(t,function(t,a){var e,o=n.css(a);if(!o)return!0;for(;e=i.exec(o);)s.push({src:e[2],element:n[0]})}),g.each(a,function(t,a){var e,o=n.attr(a);if(!o)return!0;e=o.split(","),g.each(e,function(t,a){a=g.trim(a).split(" ")[0],s.push({src:a,element:n[0]})})})}):r.find("img:has-src").each(function(){s.push({src:this.src,element:this})}),p=s.length,(c=0)===p&&(l.call(r[0]),_.resolveWith(r[0])),g.each(s,function(t,o){var a=new Image,n="load."+u+" error."+u;g(a).one(n,function t(a){var e=[c,p,"load"==a.type];if(c++,d.apply(o.element,e),_.notifyWith(o.element,e),g(this).off(n,t),c==p)return l.call(r[0]),_.resolveWith(r[0]),!1}),a.src=o.src})}),_.promise()}});
1
+ "use strict";Array.from||(Array.from=function(){var a=Object.prototype.toString,l=function(t){return"function"==typeof t||"[object Function]"===a.call(t)},o=Math.pow(2,53)-1,d=function(t){var a,e=(a=Number(t),isNaN(a)?0:0!==a&&isFinite(a)?(0<a?1:-1)*Math.floor(Math.abs(a)):a);return Math.min(Math.max(e,0),o)};return function(t){var a=Object(t);if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");var e,o=1<arguments.length?arguments[1]:void 0;if(void 0!==o){if(!l(o))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(e=arguments[2])}for(var n,r=d(a.length),s=l(this)?Object(new this(r)):new Array(r),i=0;i<r;)n=a[i],s[i]=o?void 0===e?o(n,i):o.call(e,n,i):n,i+=1;return s.length=r,s}}());var almGetParameterByName=function(t,a){a||(a=window.location.href),t=t.replace(/[\[\]]/g,"\\$&");var e=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(a);return e?e[2]?decodeURIComponent(e[2].replace(/\+/g," ")):"":null},almGetAjaxParams=function(t,a,e){var o={action:a,nonce:alm_localize.alm_nonce,query_type:e,id:t.id,post_id:t.post_id,slug:t.slug,canonical_url:t.canonical_url,posts_per_page:t.posts_per_page,page:t.page,offset:t.offset,post_type:t.post_type,repeater:t.repeater,seo_start_page:t.start_page};return t.theme_repeater&&(o.theme_repeater=t.theme_repeater),t.paging&&(o.paging=t.paging),t.preloaded&&(o.preloaded=t.preloaded,o.preloaded_amount=t.preloaded_amount),"true"===t.cache&&(o.cache_id=t.cache_id,o.cache_logged_in=t.cache_logged_in),t.acf_array&&(o.acf=t.acf_array),t.cta_array&&(o.cta=t.cta_array),t.comments_array&&(o.comments=t.comments_array),t.nextpage_array&&(o.nextpage=t.nextpage_array),t.previous_post_array&&(o.previous_post=t.previous_post_array),t.users_array&&(o.users=t.users_array),t.content.attr("data-lang")&&(o.lang=t.content.attr("data-lang")),t.content.attr("data-sticky-posts")&&(o.sticky_posts=t.content.attr("data-sticky-posts")),t.content.attr("data-post-format")&&(o.post_format=t.content.attr("data-post-format")),t.content.attr("data-category")&&(o.category=t.content.attr("data-category")),t.content.attr("data-category-not-in")&&(o.category__not_in=t.content.attr("data-category-not-in")),t.content.attr("data-tag")&&(o.tag=t.content.attr("data-tag")),t.content.attr("data-tag-not-in")&&(o.tag__not_in=t.content.attr("data-tag-not-in")),t.content.attr("data-taxonomy")&&(o.taxonomy=t.content.attr("data-taxonomy")),t.content.attr("data-taxonomy-terms")&&(o.taxonomy_terms=t.content.attr("data-taxonomy-terms")),t.content.attr("data-taxonomy-operator")&&(o.taxonomy_operator=t.content.attr("data-taxonomy-operator")),t.content.attr("data-taxonomy-relation")&&(o.taxonomy_relation=t.content.attr("data-taxonomy-relation")),t.content.attr("data-meta-key")&&(o.meta_key=t.content.attr("data-meta-key")),t.content.attr("data-meta-value")&&(o.meta_value=t.content.attr("data-meta-value")),t.content.attr("data-meta-compare")&&(o.meta_compare=t.content.attr("data-meta-compare")),t.content.attr("data-meta-relation")&&(o.meta_relation=t.content.attr("data-meta-relation")),t.content.attr("data-meta-type")&&(o.meta_type=t.content.attr("data-meta-type")),t.content.attr("data-author")&&(o.author=t.content.attr("data-author")),t.content.attr("data-year")&&(o.year=t.content.attr("data-year")),t.content.attr("data-month")&&(o.month=t.content.attr("data-month")),t.content.attr("data-day")&&(o.day=t.content.attr("data-day")),t.content.attr("data-order")&&(o.order=t.content.attr("data-order")),t.content.attr("data-orderby")&&(o.orderby=t.content.attr("data-orderby")),t.content.attr("data-post-status")&&(o.post_status=t.content.attr("data-post-status")),t.content.attr("data-post-in")&&(o.post__in=t.content.attr("data-post-in")),t.content.attr("data-post-not-in")&&(o.post__not_in=t.content.attr("data-post-not-in")),t.content.attr("data-exclude")&&(o.exclude=t.content.attr("data-exclude")),t.content.attr("data-search")&&(o.search=t.content.attr("data-search")),t.content.attr("data-custom-args")&&(o.custom_args=t.content.attr("data-custom-args")),o},almGetRestParams=function(t){return{id:t.id,post_id:t.post_id,posts_per_page:t.posts_per_page,page:t.page,offset:t.offset,slug:t.slug,canonical_url:t.canonical_url,post_type:t.post_type,post_format:t.content.attr("data-post-format"),category:t.content.attr("data-category"),category__not_in:t.content.attr("data-category-not-in"),tag:t.content.attr("data-tag"),tag__not_in:t.content.attr("data-tag-not-in"),taxonomy:t.content.attr("data-taxonomy"),taxonomy_terms:t.content.attr("data-taxonomy-terms"),taxonomy_operator:t.content.attr("data-taxonomy-operator"),taxonomy_relation:t.content.attr("data-taxonomy-relation"),meta_key:t.content.attr("data-meta-key"),meta_value:t.content.attr("data-meta-value"),meta_compare:t.content.attr("data-meta-compare"),meta_relation:t.content.attr("data-meta-relation"),meta_type:t.content.attr("data-meta-type"),author:t.content.attr("data-author"),year:t.content.attr("data-year"),month:t.content.attr("data-month"),day:t.content.attr("data-day"),post_status:t.content.attr("data-post-status"),order:t.content.attr("data-order"),orderby:t.content.attr("data-orderby"),post__in:t.content.attr("data-post-in"),post__not_in:t.content.attr("data-post-not-in"),search:t.content.attr("data-search"),custom_args:t.content.attr("data-custom-args"),lang:t.lang,preloaded:t.preloaded,preloaded_amount:t.preloaded_amount,seo_start_page:t.start_page}};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)}var alm_is_filtering=!1;!function(r){r.fn.almFilter=function(e,o,n){n.target?r(".ajax-load-more-wrap[data-id='"+n.target+"']").each(function(t){var a=r(this);r.fn.almFilterTransition(e,o,n,a)}):r(".ajax-load-more-wrap").each(function(t){var a=r(this);r.fn.almFilterTransition(e,o,n,a)})},r.fn.almFilterTransition=function(t,a,e,o){"slide"===t?o.slideUp(a,function(){n(a,e,o)}):"fade"===t||"masonry"===t?o.fadeOut(a,function(){n(a,e,o)}):n(a,e,o)};var n=function(t,a,e){var o=e.get(0),n=o.querySelectorAll(".alm-listing");[].concat(_toConsumableArray(n)).forEach(function(t){t.innerHTML=""});var r=o.querySelector(".alm-load-more-btn");r&&r.classList.remove("done"),s(t,a,e)},s=function(t,a,e){r.each(a,function(t,a){t=t.replace(/\W+/g,"-").replace(/([a-z\d])([A-Z])/g,"$1-$2"),r(".alm-listing",e).attr("data-"+t,a)}),r.isFunction(r.fn.almFilterComplete)&&r.fn.almFilterComplete(),"function"==typeof almFiltersAddonComplete&&almFiltersAddonComplete(e),alm_is_filtering=!0,e.fadeIn(t),a.target?r(".ajax-load-more-wrap[data-id="+a.target+"]").ajaxloadmore():r(".ajax-load-more-wrap").ajaxloadmore()}}(jQuery);var almMasonry=function t(o,a,n,r,e,s,i,l,d,p){var c=(i+100)/1e3+"s",_="scale(0.5)",g="scale(1)";"zoom-out"===e&&(_="translateY(-20px) scale(1.25)",g="translateY(0) scale(1)"),"slide-up"===e&&(_="translateY(50px)",g="translateY(0)"),"slide-down"===e&&(_="translateY(-50px)",g="translateY(0)"),"none"===e&&(g=_="translateY(0)"),r?isNaN(r)||(r=parseInt(r)):r=n,s="true"===s,p?(o.masonry("destroy"),o[0].parentNode.style.opacity=0,o.append(a),t(o,a,n,r,e,s,i,!0,!0,!1)):l&&d?o.imagesLoaded(function(){var a={itemSelector:n,transitionDuration:c,columnWidth:r,horizontalOrder:s,hiddenStyle:{transform:_,opacity:0},visibleStyle:{transform:g,opacity:1}},e=e;e&&Object.keys(e).forEach(function(t){a[t]=e[t]}),o.masonry({defaults:a}),almMasonryFadeIn(o[0].parentNode,i)}):a.imagesLoaded(function(){o.append(a).masonry("appended",a)})},almMasonryFadeIn=function(t,a){a/=10;var e=parseInt(t.style.opacity),o=setInterval(function(){.9<e&&(t.style.opacity=1,clearInterval(o)),t.style.opacity=e,e+=.1},a)};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(y){y.ajaxloadmore=function(t,a){"true"===alm_localize.scrolltop&&y(window).scrollTop(0);var f=this;if(f.AjaxLoadMore={},f.window=y(window),f.page=0,f.posts=0,f.totalposts=0,f.proceed=!1,f.disable_ajax=!1,f.init=!0,f.loading=!0,f.finished=!1,f.prefix="alm-",f.el=t,f.container=t,f.container.addClass("alm-"+a).attr("data-alm-id",a),f.content=y(".alm-ajax",f.container),f.content_preloaded=y(".alm-listing.alm-preloaded",f.container),f.canonical_url=f.el.attr("data-canonical-url"),f.is_search=f.el.attr("data-search"),f.slug=f.el.attr("data-slug"),f.post_id=f.el.attr("data-post-id"),f.id=f.el.attr("data-id")?f.el.attr("data-id"):"",f.repeater=f.content.attr("data-repeater"),f.theme_repeater=f.content.attr("data-theme-repeater"),f.post_type=f.content.attr("data-post-type"),f.post_type=f.post_type.split(","),f.sticky_posts=f.content.attr("data-sticky-posts"),f.btnWrap=y(".alm-btn-wrap",f.container),f.button_label=f.content.attr("data-button-label"),f.button_loading_label=f.content.attr("data-button-loading-label"),f.scroll_distance=f.content.attr("data-scroll-distance"),f.scroll_distance=f.scroll_distance?parseInt(f.scroll_distance):150,f.scroll_container=f.content.attr("data-scroll-container"),f.max_pages=f.content.attr("data-max-pages"),f.max_pages=f.max_pages?parseInt(f.max_pages):0,f.pause_override=f.content.attr("data-pause-override"),f.pause=f.content.attr("data-pause"),f.transition=f.content.attr("data-transition"),f.transition_container=f.content.attr("data-transition-container"),f.tcc=f.content.attr("data-transition-container-classes"),f.speed=250,f.images_loaded=f.content.attr("data-images-loaded"),f.destroy_after=f.content.attr("data-destroy-after"),f.orginal_posts_per_page=f.content.attr("data-posts-per-page"),f.posts_per_page=f.content.attr("data-posts-per-page"),f.offset=f.content.attr("data-offset"),f.cache=f.content.attr("data-cache"),f.cache_id=f.content.attr("data-cache-id"),f.cache_path=f.content.attr("data-cache-path"),f.cache_logged_in=f.content.attr("data-cache-logged-in"),f.cta=f.content.attr("data-cta"),f.cta_position=f.content.attr("data-cta-position"),f.cta_repeater=f.content.attr("data-cta-repeater"),f.cta_theme_repeater=f.content.attr("data-cta-theme-repeater"),f.acf=f.content.attr("data-acf"),f.acf_field_type=f.content.attr("data-acf-field-type"),f.acf_field_name=f.content.attr("data-acf-field-name"),f.acf_post_id=f.content.attr("data-acf-post-id"),f.nextpage=f.content.attr("data-nextpage"),f.nextpage_urls=f.content.attr("data-nextpage-urls"),f.nextpage_scroll=f.content.attr("data-nextpage-scroll"),f.nextpage_pageviews=f.content.attr("data-nextpage-pageviews"),f.nextpage_post_id=f.content.attr("data-nextpage-post-id"),f.nextpage_startpage=f.content.attr("data-nextpage-startpage"),f.previous_post=f.content.attr("data-previous-post"),f.previous_post_id=f.content.attr("data-previous-post-id"),f.previous_post_taxonomy=f.content.attr("data-previous-post-taxonomy"),f.previous_post_excluded_terms=f.content.attr("data-previous-post-excluded-terms"),f.comments=f.content.attr("data-comments"),"true"===f.comments&&(f.content=y(".alm-comments",f.container)),f.comments_post_id=f.content.attr("data-comments_post_id"),f.comments_per_page=f.content.attr("data-comments_per_page"),f.comments_type=f.content.attr("data-comments_type"),f.comments_style=f.content.attr("data-comments_style"),f.comments_template=f.content.attr("data-comments_template"),f.comments_callback=f.content.attr("data-comments_callback"),f.filters=f.content.attr("data-filters"),f.restapi=f.content.attr("data-restapi"),f.restapi_base_url=f.content.attr("data-restapi-base-url"),f.restapi_namespace=f.content.attr("data-restapi-namespace"),f.restapi_endpoint=f.content.attr("data-restapi-endpoint"),f.restapi_template_id=f.content.attr("data-restapi-template-id"),f.restapi_debug=f.content.attr("data-restapi-debug"),f.seo=f.content.attr("data-seo"),f.preloaded=f.content.attr("data-preloaded"),f.preloaded_amount=f.content.attr("data-preloaded-amount"),f.paging=f.content.attr("data-paging"),f.users="true"===f.content.attr("data-users"),f.users&&(f.orginal_posts_per_page=f.content.attr("data-users-per-page"),f.posts_per_page=f.content.attr("data-users-per-page")),"true"===f.filters){f.filters=!0,f.filters_analtyics=f.content.attr("data-filters-analtyics"),f.filters_debug=f.content.attr("data-filters-debug"),f.filters_startpage=0;var e=almGetParameterByName("pg");null!==e&&(f.filters_startpage=parseInt(e),f.page=f.filters_startpage),f.isPaged=!1,0<f.filters_startpage&&(f.isPaged=!0,f.page=f.filters_startpage-1)}else f.filters=!1;"true"===f.restapi?(f.restapi=!0,void 0===f.restapi_debug&&(f.restapi_debug=!1),""===f.restapi_template_id&&(f.restapi=!1)):f.restapi=!1,"true"===f.paging?(f.paging=!0,f.paging_controls=!!f.content.attr("data-paging-controls"),f.paging_show_at_most=f.content.attr("data-paging-show-at-most"),f.paging_classes=f.content.attr("data-paging-classes"),f.paging_init=!0,f.paging_show_at_most=void 0===f.paging_show_at_most?7:f.paging_show_at_most,"true"===f.preloaded&&(f.pause=!0)):f.paging=!1,void 0===f.cache&&(f.cache=!1),void 0===f.cache_logged_in&&(f.cache_logged_in=!1),void 0===f.comments_per_page&&(f.comments_per_page="5"),"true"===f.preloaded?(f.preload_wrap=f.content.prev(".alm-preloaded"),f.preloaded_total_posts=parseInt(f.preload_wrap.attr("data-total-posts")),void 0===f.preloaded_amount&&(f.preloaded_amount=!1),f.preloaded_total_posts<=f.preloaded_amount&&(f.disable_ajax=!0)):f.preloaded="false",void 0===f.seo&&(f.seo=!1),"true"===f.seo&&(f.seo=!0),void 0===f.is_search&&(f.is_search=!1),f.search_value="true"===f.is_search?f.slug:"",f.permalink=f.content.attr("data-seo-permalink"),f.pageview=f.content.attr("data-seo-pageview"),f.start_page=f.content.attr("data-seo-start-page"),f.seo_trailing_slash="false"===f.content.attr("data-seo-trailing-slash")?"":"/",f.seo_leading_slash="true"===f.content.attr("data-seo-leading-slash")?"/":"",f.start_page?(f.seo_scroll=f.content.attr("data-seo-scroll"),f.seo_scroll_speed=f.content.attr("data-seo-scroll-speed"),f.seo_scrolltop=f.content.attr("data-seo-scrolltop"),f.seo_controls=f.content.attr("data-seo-controls"),f.isPaged=!1,1<f.start_page&&(f.isPaged=!0,f.posts_per_page=f.start_page*f.posts_per_page),f.paging&&(f.posts_per_page=f.orginal_posts_per_page)):f.start_page=1,"true"===f.nextpage?(f.nextpage=!0,f.posts_per_page=1):f.nextpage=!1,void 0===f.nextpage_urls&&(f.nextpage_urls="true"),void 0===f.nextpage_scroll&&(f.nextpage_scroll="250:30"),void 0===f.nextpage_pageviews&&(f.nextpage_pageviews="true"),void 0===f.nextpage_post_id&&(f.nextpage=!1,f.nextpage_post_id=null),void 0===f.nextpage_startpage&&(f.nextpage_startpage=1),1<f.nextpage_startpage&&(f.isPaged=!0),f.acf="true"===f.acf,void 0!==f.acf_field_type&&void 0!==f.acf_field_name&&void 0!==f.acf_post_id||(f.acf=!1),"true"===f.previous_post?(f.previous_post=!0,f.previous_post_permalink="",f.previous_post_title="",f.previous_post_slug=""):f.previous_post=!1,void 0===f.previous_post_id&&(f.previous_post_id=""),void 0===f.previous_post_taxonomy&&(f.previous_post_taxonomy=""),void 0===f.previous_post_excluded_terms&&(f.previous_post_excluded_terms=""),f.previous_post_title_template=f.content.attr("data-previous-post-title-template"),f.siteTitle=f.content.attr("data-previous-post-site-title"),f.siteTagline=f.content.attr("data-previous-post-site-tagline"),f.previous_post_pageview=f.content.attr("data-previous-post-pageview"),f.previous_post_scroll=f.content.attr("data-previous-post-scroll"),f.previous_post_scroll_speed=f.content.attr("data-previous-post-scroll-speed"),f.previous_post_scroll_top=f.content.attr("data-previous-post-scrolltop"),f.previous_post_controls=f.content.attr("data-previous-post-controls"),f.offset=void 0===f.offset?0:f.offset,(void 0===f.pause||f.seo&&1<f.start_page)&&(f.pause=!1),"true"===f.preloaded&&f.seo&&0<f.start_page&&(f.pause=!1),"true"===f.preloaded&&f.paging&&(f.pause=!0),void 0===f.repeater&&(f.repeater="default"),f.theme_repeater=void 0!==f.theme_repeater&&f.theme_repeater,f.max_pages=void 0===f.max_pages||0===f.max_pages?1e4:f.max_pages,f.scroll_distance=void 0===f.scroll_distance?150:f.scroll_distance,f.scroll_container=void 0===f.scroll_container?"":f.scroll_container,f.transition=void 0===f.transition?"fade":f.transition,f.tcc=void 0===f.tcc?"":f.tcc,f.is_masonry_preloaded=!1,"masonry"===f.transition&&(f.masonry_init=!0,f.masonry_selector=f.content.attr("data-masonry-selector"),f.masonry_columnwidth=f.content.attr("data-masonry-columnwidth"),f.masonry_animation=f.content.attr("data-masonry-animation"),f.masonry_horizontalorder=f.content.attr("data-masonry-horizontalorder"),void 0===f.masonry_animation&&(f.masonry_animation="standard"),void 0===f.masonry_horizontalorder&&(f.masonry_horizontalorder="true"),f.masonry_wrap=f.content,f.transition_container=!1,document.body.contains(f.content_preloaded.get(0))&&(f.masonry_wrap=f.content_preloaded,f.is_masonry_preloaded=!0)),void 0===f.content.attr("data-scroll")?f.scroll=!0:"false"===f.content.attr("data-scroll")?f.scroll=!1:f.scroll=!0,f.transition_container=void 0===f.transition_container||"true"===f.transition_container,f.images_loaded=void 0===f.images_loaded?"false":f.images_loaded,f.button_label=void 0===f.button_label?"Older Posts":f.button_label,f.button_loading_label=void 0!==f.button_loading_label&&f.button_loading_label,f.paging?f.content.parent().addClass("loading"):f.button=y(".alm-load-more-btn",f.container),f.AjaxLoadMore.loadPosts=function(){if(!f.disable_ajax)if(f.paging||(f.button.addClass("loading"),!1!==f.button_loading_label&&f.button.html(f.button_loading_label)),f.container.addClass("alm-loading"),f.loading=!0,"true"!==f.cache||f.cache_logged_in)f.AjaxLoadMore.ajax("standard");else{var t;if(f.init&&f.seo&&f.isPaged){t=f.cache_path+f.cache_id+"/page-1-"+f.start_page+".html"}else if(f.nextpage){var a;f.paging?a=parseInt(f.page)+1:(a=parseInt(f.page)+2,f.isPaged&&(a=parseInt(f.page)+parseInt(f.nextpage_startpage)+1)),t=f.cache_path+f.cache_id+"/page-"+a+".html"}else t=f.previous_post?f.cache_path+f.cache_id+"/"+f.previous_post_id+".html":f.cache_path+f.cache_id+"/page-"+(f.page+1)+".html";y.get(t,function(t){f.AjaxLoadMore.success(t,!0)}).fail(function(){f.AjaxLoadMore.ajax("standard")})}},f.AjaxLoadMore.ajax=function(a){var t="alm_query_posts";if(f.acf_array="",f.acf&&("relationship"!==f.acf_field_type&&(t="alm_acf_query"),f.acf_array={acf:"true",post_id:f.acf_post_id,field_type:f.acf_field_type,field_name:f.acf_field_name}),f.nextpage_array="",f.nextpage&&(t="alm_nextpage_query",f.nextpage_array={nextpage:"true",urls:f.nextpage_urls,scroll:f.nextpage_scroll,pageviews:f.nextpage_pageviews,post_id:f.nextpage_post_id,startpage:f.nextpage_startpage}),f.previous_post_array="",f.previous_post&&(f.previous_post_array={previous_post:"true",id:f.previous_post_id,slug:f.previous_post_slug}),f.comments_array="","true"===f.comments&&(t="alm_comments_query",f.posts_per_page=f.comments_per_page,f.comments_array={comments:"true",post_id:f.comments_post_id,per_page:f.comments_per_page,type:f.comments_type,style:f.comments_style,template:f.comments_template,callback:f.comments_callback}),f.users_array="",f.users&&(t="alm_users_query",f.users_array={users:"true",role:f.content.attr("data-users-role"),include:f.content.attr("data-users-include"),exclude:f.content.attr("data-users-exclude"),per_page:f.posts_per_page,order:f.content.attr("data-users-order"),orderby:f.content.attr("data-users-orderby")}),f.cta_array="","true"===f.cta&&(f.cta_array={cta:"true",cta_position:f.cta_position,cta_repeater:f.cta_repeater,cta_theme_repeater:f.cta_theme_repeater}),f.restapi){var i=wp.template(f.restapi_template_id),e=f.restapi_base_url+"/"+f.restapi_namespace+"/"+f.restapi_endpoint,o=almGetRestParams(f);y.ajax({type:"GET",url:e,data:o,dataType:"JSON",beforeSend:function(){1==f.page||f.paging||f.button.addClass("loading")},success:function(t){var e="",o=t.html,a=t.meta,n=a.postcount,r=a.totalposts;y.each(o,function(t){var a=o[t];"true"===f.restapi_debug&&console.log(a),e+=i(a)});var s={html:e,meta:{postcount:n,totalposts:r}};f.AjaxLoadMore.success(s,!1)}})}else{var n=almGetAjaxParams(f,t,a);y.ajax({type:"GET",url:alm_localize.ajaxurl,dataType:"JSON",data:n,beforeSend:function(){1==f.page||f.paging||f.button.addClass("loading")},success:function(t){"standard"===a?f.AjaxLoadMore.success(t,!1):"totalpages"===a&&f.paging&&f.nextpage?y.isFunction(y.fn.almBuildPagination)&&y.fn.almBuildPagination(t,f):"totalposts"===a&&f.paging&&y.isFunction(y.fn.almBuildPagination)&&y.fn.almBuildPagination(t,f)},error:function(t,a,e){f.AjaxLoadMore.error(t,a,e)}})}},f.paging&&(f.nextpage?f.AjaxLoadMore.ajax("totalpages"):f.AjaxLoadMore.ajax("totalposts")),f.AjaxLoadMore.success=function(t,a){f.previous_post&&f.AjaxLoadMore.getPreviousPost();var e,o,n,r='style="opacity: 0; height: 0;"';if(a?e=t:(e=t.html,o=t.meta,f.posts=f.posts+o.postcount,n=o.postcount,f.totalposts=o.totalposts,"true"===f.preloaded&&(f.totalposts=f.totalposts-f.preloaded_amount)),f.data=y(e),a&&(n=f.data.length),f.init&&(f.paging?0<n&&(f.el=y('<div class="alm-reveal'+f.tcc+'" '+r+"/>"),f.el.append('<div class="alm-paging-content'+f.tcc+'"></div><div class="alm-paging-loading"></div>'),y(".alm-paging-content",f.el).append(f.data),f.content.append(f.el),f.AjaxLoadMore.fadeIn(f.el.get(0),f.speed),f.content.parent().removeClass("loading"),f.AjaxLoadMore.resetBtnText(),setTimeout(function(){y(".alm-paging-content",f.el).fadeIn(f.speed,"alm_easeInOutQuad",function(){var t=parseInt(f.content.css("padding-top")),a=parseInt(f.content.css("padding-bottom"));f.content.css("height",f.el.height()+t+a+"px"),y.isFunction(y.fn.almFadePageControls)&&y.fn.almFadePageControls(f.btnWrap)})},f.speed)):f.button.html(f.button_label),0===n&&(f.paging&&y.isFunction(y.fn.almPagingEmpty)&&y.fn.almPagingEmpty(f),y.isFunction(y.fn.almEmpty)&&y.fn.almEmpty(f)),f.isPaged&&(f.posts_per_page=f.users?f.content.attr("data-users-per-page"):f.content.attr("data-posts-per-page"),f.start_page&&(f.page=f.start_page-1),f.filters&&f.filters_startpage&&(f.page=f.filters_startpage-1,f.posts_per_page=f.content.attr("data-posts-per-page")))),0<n){if(f.paging)f.init?(f.container.removeClass("alm-loading"),f.AjaxLoadMore.triggerAddons(f)):y(".alm-paging-content",f.el).html("").append(f.data).almWaitForImages().done(function(){y(".alm-paging-loading",f.el).fadeOut(f.speed),y.isFunction(y.fn.almOnPagingComplete)&&y.fn.almOnPagingComplete(f),f.container.removeClass("alm-loading"),f.AjaxLoadMore.triggerAddons(f)});else{if(f.previous_post)f.el=y('<div class="alm-reveal alm-previous-post post-'+f.previous_post_id+'" '+r+' data-id="'+f.previous_post_id+'" data-title="'+f.previous_post_title+'" data-url="'+f.previous_post_permalink+'" data-page="'+f.page+'"/>'),f.el.append(f.data);else if(f.transition_container){var s=void 0,i=window.location.search;if(f.init&&1<f.start_page){var l=[],d=parseInt(f.posts_per_page);"true"===f.cta&&(d+=1);Math.ceil(n/d);for(var p=0;p<n;p+=d)l.push(f.data.slice(p,d+p));f.el=f.content;for(var c=0;c<l.length;c++){var _="true"===f.preloaded?1:0,g=void 0;0<c||"true"===f.preloaded?(s=c+1+_,g="default"===f.permalink?y('<div class="alm-reveal alm-seo'+f.tcc+'" data-url="'+f.canonical_url+f.search_value+"&paged="+s+'" data-page="'+s+'" />'):y('<div class="alm-reveal alm-seo'+f.tcc+'" data-url="'+f.canonical_url+f.seo_leading_slash+"page/"+s+f.seo_trailing_slash+f.search_value+'" data-page="'+s+'" />')):g=y('<div class="alm-reveal alm-seo'+f.tcc+'" data-url="'+f.canonical_url+f.search_value+'" data-page="1" />'),g.append(l[c]),g=y(g),f.el.append(g)}}else{if(f.seo&&0<f.page||"true"===f.preloaded){var m="true"===f.preloaded?1:0;s=f.page+1+m,f.seo?"default"===f.permalink?f.el=y('<div class="alm-reveal alm-seo'+f.tcc+'" '+r+' data-url="'+f.canonical_url+f.search_value+"&paged="+s+'" data-page="'+s+'" />'):f.el=y('<div class="alm-reveal alm-seo'+f.tcc+'" '+r+' data-url="'+f.canonical_url+f.seo_leading_slash+"page/"+s+f.seo_trailing_slash+f.search_value+'" data-page="'+s+'" />'):f.filters?f.el=y('<div class="alm-reveal alm-filters'+f.tcc+'" '+r+' data-url="'+f.canonical_url+i+'" data-page="'+s+'" />'):f.el=y('<div class="alm-reveal'+f.tcc+'" '+r+" />")}else f.filters?f.el=y('<div class="alm-reveal alm-filters'+f.tcc+'" '+r+' data-url="'+f.canonical_url+i+'" data-page="'+(f.page+1)+'" />'):f.seo?f.el=y('<div class="alm-reveal alm-seo'+f.tcc+'" '+r+' data-url="'+f.canonical_url+f.search_value+'" data-page="1" />'):f.el=y('<div class="alm-reveal'+f.tcc+'" '+r+" />");f.el.append(f.data)}}else f.el=f.data;("masonry"!==f.transition||f.init&&!f.is_masonry_preloaded)&&f.content.append(f.el),"masonry"===f.transition?(almMasonry(f.masonry_wrap,f.el,f.masonry_selector,f.masonry_columnwidth,f.masonry_animation,f.masonry_horizontalorder,f.speed,f.masonry_init,f.init,alm_is_filtering),f.masonry_init=!1,f.AjaxLoadMore.transitionEnd()):"none"===f.transition?(f.AjaxLoadMore.fadeIn(f.el.get(0),0),f.AjaxLoadMore.transitionEnd()):"true"===f.images_loaded?f.el.almWaitForImages().done(function(){f.transition_container&&f.AjaxLoadMore.fadeIn(f.el.get(0),f.speed),f.AjaxLoadMore.transitionEnd()}):(f.transition_container&&f.AjaxLoadMore.fadeIn(f.el.get(0),f.speed),f.AjaxLoadMore.transitionEnd())}y.isFunction(y.fn.almComplete)&&("true"===f.images_loaded?f.el.almWaitForImages().done(function(){y.fn.almComplete(f)}):y.fn.almComplete(f)),f.cache?n<f.posts_per_page&&f.AjaxLoadMore.triggerDone():f.posts>=f.totalposts&&!f.previous_post&&f.AjaxLoadMore.triggerDone()}else f.paging||(f.button.delay(f.speed).removeClass("loading").addClass("done"),f.AjaxLoadMore.resetBtnText()),f.AjaxLoadMore.triggerDone();if(void 0!==f.destroy_after&&""!==f.destroy_after){var u=f.page+1;"true"===f.preloaded&&u++,u==f.destroy_after&&f.AjaxLoadMore.destroyed()}alm_is_filtering=!1,f.init=!1},f.AjaxLoadMore.pagingPreloadedInit=function(t){t=null==t?"":t,f.el=y('<div class="alm-reveal'+f.tcc+'"/>'),f.el.append('<div class="alm-paging-content">'+t+'</div><div class="alm-paging-loading"></div>'),f.content.append(f.el),f.content.parent().removeClass("loading"),f.AjaxLoadMore.resetBtnText();var a=parseInt(f.content.css("padding-top")),e=parseInt(f.content.css("padding-bottom"));f.content.css("height",f.el.height()+a+e+"px"),""===t&&(y.isFunction(y.fn.almPagingEmpty)&&y.fn.almPagingEmpty(f),y.isFunction(y.fn.almEmpty)&&y.fn.almEmpty(f)),setTimeout(function(){y.isFunction(y.fn.almFadePageControls)&&y.fn.almFadePageControls(f.btnWrap)},f.speed)},f.AjaxLoadMore.pagingNextpageInit=function(t){f.el=y('<div class="alm-reveal alm-nextpage"/>'),f.el.append('<div class="alm-paging-content">'+t+'</div><div class="alm-paging-loading"></div>'),f.el.appendTo(f.content),f.content.parent().removeClass("loading"),f.AjaxLoadMore.resetBtnText();var a=parseInt(f.content.css("padding-top")),e=parseInt(f.content.css("padding-bottom"));f.content.css("height",f.el.height()+a+e+"px"),y.isFunction(y.fn.almSetNextPageVars)&&y.fn.almSetNextPageVars(f),setTimeout(function(){y.isFunction(y.fn.almFadePageControls)&&y.fn.almFadePageControls(f.btnWrap),y.isFunction(y.fn.almOnWindowResize)&&y.fn.almOnWindowResize(f)},f.speed)},f.fetchingPreviousPost=!1,f.AjaxLoadMore.getPreviousPost=function(){f.fetchingPreviousPost=!0;var t={action:"alm_query_previous_post",id:f.previous_post_id,taxonomy:f.previous_post_taxonomy,excluded_terms:f.previous_post_excluded_terms};y.ajax({type:"GET",dataType:"JSON",url:alm_localize.ajaxurl,data:t,success:function(t){t.has_previous_post?(f.content.attr("data-previous-post-id",t.prev_id),f.previous_post_id=t.prev_id,f.previous_post_permalink=t.prev_permalink,f.previous_post_title=t.prev_title,f.previous_post_slug=t.prev_slug):t.has_previous_post||f.AjaxLoadMore.triggerDone(),y.isFunction(y.fn.almSetPreviousPost)&&y.fn.almSetPreviousPost(f,t.current_id,t.permalink,t.title),f.fetchingPreviousPost=!1},error:function(t,a,e){f.AjaxLoadMore.error(t,a,e),f.fetchingPreviousPost=!1}})},f.AjaxLoadMore.triggerAddons=function(t){y.isFunction(y.fn.almSEO)&&t.seo&&y.fn.almSEO(t,!1),y.isFunction(y.fn.almSetNextPage)&&y.fn.almSetNextPage(t)},f.AjaxLoadMore.triggerDone=function(){f.loading=!1,f.finished=!0,f.paging||f.button.addClass("done"),y.isFunction(y.fn.almDone)&&setTimeout(function(){y.fn.almDone(f)},f.speed+10)},f.AjaxLoadMore.resetBtnText=function(){!1===f.button_loading_label||f.paging||f.button.html(f.button_label)},f.AjaxLoadMore.error=function(t,a,e){f.loading=!1,f.paging||(f.button.removeClass("loading"),f.AjaxLoadMore.resetBtnText()),console.log(e)},f.paging||f.fetchingPreviousPost||(f.button.unbind("click"),f.button.on("click",function(t){t.preventDefault(),"true"===f.pause&&(f.pause=!1,f.pause_override=!1,f.AjaxLoadMore.loadPosts()),f.loading||f.finished||y(this).hasClass("done")||(f.loading=!0,f.page++,f.AjaxLoadMore.loadPosts()),f.filters&&"function"==typeof almFiltersPaged&&almFiltersPaged(f)})),f.paging&&(f.window.unbind("resizeEnd"),f.window.bind("resizeEnd",function(){y.isFunction(y.fn.almOnWindowResize)&&y.fn.almOnWindowResize(f)}),f.window.unbind("resize"),f.window.bind("resize",function(){this.resizeTO&&clearTimeout(this.resizeTO),this.resizeTO=setTimeout(function(){y(this).trigger("resizeEnd")},f.speed)})),f.AjaxLoadMore.isVisible=function(){return f.visible=!1,f.el.is(":visible")&&(f.visible=!0),f.visible},f.scroll&&!f.paging&&(""!==f.scroll_container&&y(f.scroll_container).length&&(f.window=y(f.scroll_container)),f.window.bind("scroll touchstart",function(){if(f.AjaxLoadMore.isVisible()&&!f.fetchingPreviousPost){var t=f.button.offset().top,a=Math.round(t-(f.window.height()-f.scroll_distance)),e=f.window.scrollTop()>=a;""!==f.scroll_container&&(e=f.button.offset().top-(f.window.height()-f.scroll_distance)<f.window.offset().top),!f.loading&&!f.finished&&e&&f.page<f.max_pages-1&&f.proceed&&"true"===f.pause&&"true"===f.pause_override?f.button.trigger("click"):!f.loading&&!f.finished&&e&&f.page<f.max_pages-1&&f.proceed&&"true"!==f.pause&&f.button.trigger("click")}})),f.AjaxLoadMore.destroyed=function(){f.disable_ajax=!0,f.paging||(f.button.delay(f.speed).fadeOut(f.speed),y.isFunction(y.fn.almDestroyed)&&y.fn.almDestroyed(f))},f.AjaxLoadMore.fadeIn=function(t,a){if(0==a)t.style.opacity=1,t.style.height="auto";else{a/=10;var e=0,o=setInterval(function(){.9<e&&(t.style.opacity=1,clearInterval(o)),t.style.opacity=e,e+=.1},a);t.style.height="auto"}},f.AjaxLoadMore.transitionEnd=function(){setTimeout(function(){f.loading=!1,f.container.removeClass("alm-loading"),f.AjaxLoadMore.triggerAddons(f),f.paging||(f.button.delay(f.speed).removeClass("loading"),f.AjaxLoadMore.resetBtnText())},f.speed)},f.AjaxLoadMore.init=function(){("true"===f.preloaded&&1==f.destroy_after&&f.AjaxLoadMore.destroyed(),f.paging||f.previous_post||(f.disable_ajax?(f.finished=!0,f.button.addClass("done")):"true"===f.pause?(f.button.html(f.button_label),f.loading=!1):f.AjaxLoadMore.loadPosts()),f.previous_post&&(f.AjaxLoadMore.getPreviousPost(),f.loading=!1),"true"===f.preloaded&&f.seo&&!f.paging&&setTimeout(function(){y.isFunction(y.fn.almSEO)&&f.start_page<1&&y.fn.almSEO(f,!0)},f.speed),"true"!==f.preloaded||f.paging||setTimeout(function(){f.preloaded_total_posts<=parseInt(f.preloaded_amount)&&f.AjaxLoadMore.triggerDone(),0==f.preloaded_total_posts&&y.isFunction(y.fn.almEmpty)&&y.fn.almEmpty(f)},f.speed),f.nextpage)&&(1<y(".alm-nextpage").length&&y(".alm-nextpage").length==y(".alm-nextpage").eq(0).data("total-pages")&&f.AjaxLoadMore.triggerDone());f.window.bind("load",function(){f.is_masonry_preloaded&&(almMasonry(f.masonry_wrap,f.el,f.masonry_selector,f.masonry_columnwidth,f.masonry_animation,f.masonry_horizontalorder,f.speed,f.masonry_init,!0,!1),f.masonry_init=!1)})},f.AjaxLoadMore.init(),setTimeout(function(){f.proceed=!0},150),y.fn.almUpdateCurrentPage=function(t,a,e){e.page=t,e.nextpage&&!e.paging&&(e.page=e.page-1);var o="";e.paging_init&&"true"===e.preloaded?(o=y(".alm-preloaded .alm-reveal",e.el).html(),y(".alm-preloaded",e.el).remove(),e.preloaded_amount=0,e.AjaxLoadMore.pagingPreloadedInit(o),e.paging_init=!1,e.init=!1):e.paging_init&&e.nextpage?(o=y(".alm-nextpage",e.el).html(),y(".alm-nextpage",e.el).remove(),e.AjaxLoadMore.pagingNextpageInit(o),e.paging_init=!1,e.init=!1):e.AjaxLoadMore.loadPosts()},y.fn.almGetParentContainer=function(){return f.el.closest("#ajax-load-more")},y.fn.almGetObj=function(){return f},y.fn.almTriggerClick=function(){f.button.trigger("click")},y.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}},y.fn.ajaxloadmore=function(){return this.each(function(t){new y.ajaxloadmore(y(this),t)})};var t=document.querySelectorAll(".ajax-load-more-wrap");t.length&&[].concat(_toConsumableArray(t)).forEach(function(t,a){new y.ajaxloadmore(y(t),a)})}(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(g){var m="almWaitForImages";g.almWaitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage","cursor"],hasImageAttributes:["srcset"]},g.expr[":"]["has-src"]=function(t){return g(t).is('img[src][src!=""]')},g.expr[":"].uncached=function(t){return!!g(t).is(":has-src")&&!t.complete},g.fn.almWaitForImages=function(){var l,d,e,p=0,c=0,_=g.Deferred();if(g.isPlainObject(arguments[0])?(e=arguments[0].waitForAll,d=arguments[0].each,l=arguments[0].finished):1===arguments.length&&"boolean"===g.type(arguments[0])?e=arguments[0]:(l=arguments[0],d=arguments[1],e=arguments[2]),l=l||g.noop,d=d||g.noop,e=!!e,!g.isFunction(l)||!g.isFunction(d))throw new TypeError("An invalid callback was supplied.");return this.each(function(){var r=g(this),s=[],t=g.almWaitForImages.hasImageProperties||[],a=g.almWaitForImages.hasImageAttributes||[],i=/url\(\s*(['"]?)(.*?)\1\s*\)/g;e?r.find("*").addBack().each(function(){var n=g(this);n.is("img:has-src")&&s.push({src:n.attr("src"),element:n[0]}),g.each(t,function(t,a){var e,o=n.css(a);if(!o)return!0;for(;e=i.exec(o);)s.push({src:e[2],element:n[0]})}),g.each(a,function(t,a){var e,o=n.attr(a);if(!o)return!0;e=o.split(","),g.each(e,function(t,a){a=g.trim(a).split(" ")[0],s.push({src:a,element:n[0]})})})}):r.find("img:has-src").each(function(){s.push({src:this.src,element:this})}),p=s.length,(c=0)===p&&(l.call(r[0]),_.resolveWith(r[0])),g.each(s,function(t,o){var a=new Image,n="load."+m+" error."+m;g(a).one(n,function t(a){var e=[c,p,"load"==a.type];if(c++,d.apply(o.element,e),_.notifyWith(o.element,e),g(this).off(n,t),c==p)return l.call(r[0]),_.resolveWith(r[0]),!1}),a.src=o.src})}),_.promise()}});
core/functions.php CHANGED
@@ -1,5 +1,234 @@
1
  <?php
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
 
4
  /*
5
  * alm_masonry_after
@@ -84,6 +313,12 @@ function alm_css_disabled($setting) {
84
  */
85
 
86
  function alm_do_inline_css($setting) {
 
 
 
 
 
 
87
  $options = get_option( 'alm_settings' );
88
  $inline = false;
89
  if(!isset($options[$setting]) || $options[$setting] === '1'){
1
  <?php
2
 
3
+ /*
4
+ * alm_get_pro_addon
5
+ * An array of pro addon parameters
6
+ *
7
+ * @return array
8
+ * @since 3.6
9
+ */
10
+
11
+ function alm_get_pro_addon(){
12
+ $path_prefix = 'ajax-load-more-';
13
+ $url_prefix = 'https://connekthq.com/plugins/ajax-load-more/pro/';
14
+ $addons = array(
15
+ array(
16
+ 'name' => __('Ajax Load More Pro', 'ajax-load-more'),
17
+ 'intro' => __('Improve performance with the Ajax Load More caching engine.', 'ajax-load-more'),
18
+ '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'),
19
+ 'action' => 'alm_pro_installed',
20
+ 'key' => 'alm_pro_license_key',
21
+ 'status' => 'alm_pro_license_status',
22
+ 'settings_field' => 'alm_pro_license',
23
+ 'img' => 'img/add-ons/pro-add-on.jpg',
24
+ 'url' => $url_prefix,
25
+ 'item_id' => ALM_PRO_ITEM_NAME,
26
+ 'path' => $path_prefix .'pro',
27
+ )
28
+ );
29
+ return $addons;
30
+ }
31
+
32
+
33
+ /*
34
+ * alm_get_addons
35
+ * An array of add-on parameters
36
+ *
37
+ * @return array
38
+ * @since 3.3.0
39
+ */
40
+
41
+ function alm_get_addons(){
42
+ $path_prefix = 'ajax-load-more-';
43
+ $url_prefix = 'https://connekthq.com/plugins/ajax-load-more/add-ons/';
44
+
45
+ $addons = array(
46
+ array(
47
+ 'name' => __('Cache', 'ajax-load-more'),
48
+ 'intro' => __('Improve performance with the Ajax Load More caching engine.', 'ajax-load-more'),
49
+ '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'),
50
+ 'action' => 'alm_cache_installed',
51
+ 'key' => 'alm_cache_license_key',
52
+ 'status' => 'alm_cache_license_status',
53
+ 'settings_field' => 'alm_cache_license',
54
+ 'img' => 'img/add-ons/cache-add-on.jpg',
55
+ 'url' => $url_prefix .'cache/',
56
+ 'item_id' => ALM_CACHE_ITEM_NAME,
57
+ 'path' => $path_prefix .'cache',
58
+ 'slug' => 'cache'
59
+ ),
60
+ array(
61
+ 'name' => __('Call to Actions', 'ajax-load-more'),
62
+ 'intro' => __('Ajax Load More extension for displaying advertisements and call to actions.', 'ajax-load-more'),
63
+ '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'),
64
+ 'action' => 'alm_cta_installed',
65
+ 'key' => 'alm_cta_license_key',
66
+ 'status' => 'alm_cta_license_status',
67
+ 'settings_field' => 'alm_cta_license',
68
+ 'img' => 'img/add-ons/cta-add-on.jpg',
69
+ 'url' => $url_prefix .'/call-to-actions/',
70
+ 'item_id' => ALM_CTA_ITEM_NAME,
71
+ 'path' => $path_prefix .'call-to-actions',
72
+ 'slug' => 'call-to-actions'
73
+ ),
74
+ array(
75
+ 'name' => __('Comments', 'ajax-load-more'),
76
+ 'intro' => __('Load blog comments on demand with Ajax Load More.', 'ajax-load-more'),
77
+ 'desc' => __('The Comments add-on will display your blog comments with Ajax Load More\'s infinite scroll functionality.', 'ajax-load-more'),
78
+ 'action' => 'alm_comments_installed',
79
+ 'key' => 'alm_comments_license_key',
80
+ 'status' => 'alm_comments_license_status',
81
+ 'settings_field' => 'alm_comments_license',
82
+ 'img' => 'img/add-ons/comments-add-on.jpg',
83
+ 'url' => $url_prefix .'comments/',
84
+ 'item_id' => ALM_COMMENTS_ITEM_NAME,
85
+ 'path' => $path_prefix .'comments',
86
+ 'slug' => 'comments'
87
+ ),
88
+ array(
89
+ 'name' => __('Custom Repeaters', 'ajax-load-more'),
90
+ 'intro' => __('Extend Ajax Load More with unlimited repeater templates.', 'ajax-load-more'),
91
+ 'desc' => __('Create, delete and modify repeater templates as you need them with absolutely zero restrictions.', 'ajax-load-more'),
92
+ 'action' => 'alm_unlimited_installed',
93
+ 'key' => 'alm_unlimited_license_key',
94
+ 'status' => 'alm_unlimited_license_status',
95
+ 'settings_field' => 'alm_unlimited_license',
96
+ 'img' => 'img/add-ons/unlimited-add-ons.jpg',
97
+ 'url' => $url_prefix .'custom-repeaters/',
98
+ 'item_id' => ALM_UNLIMITED_ITEM_NAME,
99
+ 'path' => $path_prefix .'repeaters-v2',
100
+ 'slug' => 'repeaters-v2'
101
+ ),
102
+ array(
103
+ 'name' => __('Filters', 'ajax-load-more'),
104
+ 'intro' => __('Create custom Ajax Load More filters in seconds.', 'ajax-load-more'),
105
+ 'desc' => __('The Filters add-on provides front-end and admin functionality for building and managing Ajax filters.', 'ajax-load-more'),
106
+ 'action' => 'alm_filters_installed',
107
+ 'key' => 'alm_filters_license_key',
108
+ 'status' => 'alm_filters_license_status',
109
+ 'settings_field' => 'alm_filters_license',
110
+ 'img' => 'img/add-ons/filters-add-on.jpg',
111
+ 'url' => $url_prefix .'filters/',
112
+ 'item_id' => ALM_FILTERS_ITEM_NAME,
113
+ 'path' => $path_prefix .'filters',
114
+ 'slug' => 'filters'
115
+ ),
116
+ array(
117
+ 'name' => __('Layouts', 'ajax-load-more'),
118
+ 'intro' => __('Predefined layouts for repeater templates.', 'ajax-load-more'),
119
+ 'desc' => __('The Layouts add-on provides a collection of unique, well designed and fully responsive templates.', 'ajax-load-more'),
120
+ 'action' => 'alm_layouts_installed',
121
+ 'key' => 'alm_layouts_license_key',
122
+ 'status' => 'alm_layouts_license_status',
123
+ 'settings_field' => 'alm_layouts_license',
124
+ 'img' => 'img/add-ons/layouts-add-on.jpg',
125
+ 'url' => $url_prefix .'layouts/',
126
+ 'item_id' => ALM_LAYOUTS_ITEM_NAME,
127
+ 'path' => $path_prefix .'layouts',
128
+ 'slug' => 'layouts'
129
+ ),
130
+ array(
131
+ 'name' => __('Next Page', 'ajax-load-more'),
132
+ 'intro' => __('Load and display multipage WordPress content.', 'ajax-load-more'),
133
+ 'desc' => __('The Next Page add-on will provide functionality for infinite scrolling paginated posts and pages.', 'ajax-load-more'),
134
+ 'action' => 'alm_nextpage_installed',
135
+ 'key' => 'alm_nextpage_license_key',
136
+ 'status' => 'alm_nextpage_license_status',
137
+ 'settings_field' => 'alm_nextpage_license',
138
+ 'img' => 'img/add-ons/next-page-add-on.jpg',
139
+ 'url' => $url_prefix .'nextpage/',
140
+ 'item_id' => ALM_NEXTPAGE_ITEM_NAME,
141
+ 'path' => $path_prefix .'next-page',
142
+ 'slug' => 'next-page'
143
+ ),
144
+ array(
145
+ 'name' => __('Paging', 'ajax-load-more'),
146
+ 'intro' => __('Extend Ajax Load More with a numbered navigation.', 'ajax-load-more'),
147
+ 'desc' => __('The Paging add-on will transform the default infinite scroll functionality into a robust ajax powered navigation system.', 'ajax-load-more'),
148
+ 'action' => 'alm_paging_installed',
149
+ 'key' => 'alm_paging_license_key',
150
+ 'status' => 'alm_paging_license_status',
151
+ 'settings_field' => 'alm_paging_license',
152
+ 'img' => 'img/add-ons/paging-add-ons.jpg',
153
+ 'url' => $url_prefix .'paging/',
154
+ 'item_id' => ALM_PAGING_ITEM_NAME,
155
+ 'path' => $path_prefix .'paging',
156
+ 'slug' => 'paging'
157
+ ),
158
+ array(
159
+ 'name' => __('Preloaded', 'ajax-load-more'),
160
+ 'intro' => __('Load an initial set of posts before making Ajax requests to the server.', 'ajax-load-more'),
161
+ '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'),
162
+ 'action' => 'alm_preload_installed',
163
+ 'key' => 'alm_preloaded_license_key',
164
+ 'status' => 'alm_preloaded_license_status',
165
+ 'settings_field' => 'alm_preloaded_license',
166
+ 'img' => 'img/add-ons/preloaded-add-ons.jpg',
167
+ 'url' => $url_prefix .'preloaded/',
168
+ 'item_id' => ALM_PRELOADED_ITEM_NAME,
169
+ 'path' => $path_prefix .'preloaded',
170
+ 'slug' => 'preloaded'
171
+ ),
172
+ array(
173
+ 'name' => __('Previous Post', 'ajax-load-more'),
174
+ 'intro' => __('An add-on to enable infinite scrolling of single posts.', 'ajax-load-more'),
175
+ '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'),
176
+ 'action' => 'alm_prev_post_installed',
177
+ 'key' => 'alm_prev_post_license_key',
178
+ 'status' => 'alm_prev_post_license_status',
179
+ 'settings_field' => 'alm_prev_post_license',
180
+ 'img' => 'img/add-ons/prev-post-add-on.jpg',
181
+ 'url' => $url_prefix .'previous-post/',
182
+ 'item_id' => ALM_PREV_POST_ITEM_NAME,
183
+ 'path' => $path_prefix .'previous-post',
184
+ 'slug' => 'previous-post'
185
+ ),
186
+ array(
187
+ 'name' => __('Search Engine Optimization', 'ajax-load-more'),
188
+ 'intro' => __('Generate unique paging URLs with every Ajax Load More query.', 'ajax-load-more'),
189
+ 'desc' => __('The SEO add-on will optimize your ajax loaded content for search engines by generating unique URLs with every query.', 'ajax-load-more'),
190
+ 'action' => 'alm_seo_installed',
191
+ 'key' => 'alm_seo_license_key',
192
+ 'status' => 'alm_seo_license_status',
193
+ 'settings_field' => 'alm_seo_license',
194
+ 'img' => 'img/add-ons/seo-add-ons.jpg',
195
+ 'url' => $url_prefix .'search-engine-optimization/',
196
+ 'item_id' => ALM_SEO_ITEM_NAME,
197
+ 'path' => $path_prefix .'seo',
198
+ 'slug' => 'seo'
199
+ ),
200
+ array(
201
+ 'name' => __('Theme Repeaters', 'ajax-load-more'),
202
+ 'intro' => __('Manage repeater templates within your current theme directory.', 'ajax-load-more'),
203
+ 'desc' => __('The Theme Repeater add-on will allow you load, edit and maintain templates from your current theme directory.', 'ajax-load-more'),
204
+ 'action' => 'alm_theme_repeaters_installed',
205
+ 'key' => 'alm_theme_repeaters_license_key',
206
+ 'status' => 'alm_theme_repeaters_license_status',
207
+ 'settings_field' => 'alm_theme_repeaters_license',
208
+ 'img' => 'img/add-ons/theme-repeater-add-on.jpg',
209
+ 'url' => $url_prefix .'theme-repeaters/',
210
+ 'item_id' => ALM_THEME_REPEATERS_ITEM_NAME,
211
+ 'path' => $path_prefix .'theme-repeaters',
212
+ 'slug' => 'theme-repeaters'
213
+ ),
214
+ array(
215
+ 'name' => __('Users', 'ajax-load-more'),
216
+ 'intro' => __('Enable infinite scrolling of WordPress users.', 'ajax-load-more'),
217
+ 'desc' => __('The Users add-on will allow lazy loading of users by role using a WP_User_Query.', 'ajax-load-more'),
218
+ 'action' => 'alm_users_installed',
219
+ 'key' => 'alm_users_license_key',
220
+ 'status' => 'alm_users_license_status',
221
+ 'settings_field' => 'alm_users_license',
222
+ 'img' => 'img/add-ons/users-add-on.jpg',
223
+ 'url' => $url_prefix .'users/',
224
+ 'item_id' => ALM_USERS_ITEM_NAME,
225
+ 'path' => $path_prefix .'users',
226
+ 'slug' => 'users'
227
+ )
228
+ );
229
+ return $addons;
230
+ }
231
+
232
 
233
  /*
234
  * alm_masonry_after
313
  */
314
 
315
  function alm_do_inline_css($setting) {
316
+
317
+ // Exit if this is a REST API request
318
+ if(defined('REST_REQUEST')){
319
+ if(REST_REQUEST) return false;
320
+ }
321
+
322
  $options = get_option( 'alm_settings' );
323
  $inline = false;
324
  if(!isset($options[$setting]) || $options[$setting] === '1'){
core/src/js/ajax-load-more.js CHANGED
@@ -25,7 +25,7 @@
25
  alm.window = $(window);
26
  alm.page = 0;
27
  alm.posts = 0;
28
- alm.totalposts = 0;
29
  alm.proceed = false;
30
  alm.disable_ajax = false;
31
  alm.init = true;
@@ -65,7 +65,6 @@
65
  alm.speed = 250;
66
  alm.images_loaded = alm.content.attr('data-images-loaded');
67
  alm.destroy_after = alm.content.attr('data-destroy-after');
68
- alm.lang = alm.content.attr('data-lang');
69
  alm.orginal_posts_per_page = alm.content.attr('data-posts-per-page'); // Used for paging add-on
70
  alm.posts_per_page = alm.content.attr('data-posts-per-page');
71
  alm.offset = alm.content.attr('data-offset');
@@ -128,8 +127,8 @@
128
  if(alm.users){ // Override paging params for users
129
  alm.orginal_posts_per_page = alm.content.attr('data-users-per-page');
130
  alm.posts_per_page = alm.content.attr('data-users-per-page');
131
- }
132
-
133
 
134
  /* Filters */
135
  if(alm.filters === 'true'){
@@ -356,9 +355,7 @@
356
  if (alm.repeater === undefined){
357
  alm.repeater = 'default';
358
  }
359
- if (alm.theme_repeater === undefined){
360
- alm.theme_repeater = 'null';
361
- }
362
 
363
  /* Max Pages (while scrolling) */
364
  alm.max_pages = (alm.max_pages === undefined || alm.max_pages === 0) ? 10000 : alm.max_pages;
@@ -415,9 +412,8 @@
415
  /* Button Labels */
416
  alm.button_label = (alm.button_label === undefined) ? 'Older Posts' : alm.button_label;
417
  alm.button_loading_label = (alm.button_loading_label === undefined) ? false : alm.button_loading_label;
418
-
419
 
420
- // Paging add-on
421
  if(alm.paging){
422
  alm.content.parent().addClass('loading'); // add loading class to main container
423
  }else{
@@ -506,7 +502,7 @@
506
  alm.AjaxLoadMore.ajax = function (queryType) {
507
 
508
  // Default action
509
- var action = 'alm_query_posts';
510
 
511
  // ACF Params
512
  alm.acf_array = '';
@@ -592,60 +588,22 @@
592
 
593
  // REST API
594
  if(alm.restapi){
595
- var alm_template = wp.template(alm.restapi_template_id),
596
- rest_url = alm.restapi_base_url + '/' + alm.restapi_namespace + '/' + alm.restapi_endpoint,
597
- rest_data = {
598
- id : el.attr('data-id'),
599
- post_id : alm.post_id,
600
- posts_per_page : alm.posts_per_page,
601
- page : alm.page,
602
- offset : alm.offset,
603
- slug : alm.slug,
604
- canonical_url : alm.canonical_url,
605
- post_type : alm.post_type,
606
- post_format : alm.content.attr('data-post-format'),
607
- category : alm.content.attr('data-category'),
608
- category__not_in : alm.content.attr('data-category-not-in'),
609
- tag : alm.content.attr('data-tag'),
610
- tag__not_in : alm.content.attr('data-tag-not-in'),
611
- taxonomy : alm.content.attr('data-taxonomy'),
612
- taxonomy_terms : alm.content.attr('data-taxonomy-terms'),
613
- taxonomy_operator : alm.content.attr('data-taxonomy-operator'),
614
- taxonomy_relation : alm.content.attr('data-taxonomy-relation'),
615
- meta_key : alm.content.attr('data-meta-key'),
616
- meta_value : alm.content.attr('data-meta-value'),
617
- meta_compare : alm.content.attr('data-meta-compare'),
618
- meta_relation : alm.content.attr('data-meta-relation'),
619
- meta_type : alm.content.attr('data-meta-type'),
620
- author : alm.content.attr('data-author'),
621
- year : alm.content.attr('data-year'),
622
- month : alm.content.attr('data-month'),
623
- day : alm.content.attr('data-day'),
624
- post_status : alm.content.attr('data-post-status'),
625
- order : alm.content.attr('data-order'),
626
- orderby : alm.content.attr('data-orderby'),
627
- post__in : alm.content.attr('data-post-in'),
628
- post__not_in : alm.content.attr('data-post-not-in'),
629
- search : alm.content.attr('data-search'),
630
- custom_args : alm.content.attr('data-custom-args'),
631
- lang : alm.lang,
632
- preloaded : alm.preloaded,
633
- preloaded_amount : alm.preloaded_amount,
634
- seo_start_page : alm.start_page
635
- };
636
 
637
  $.ajax({
638
- type : "GET",
639
- url : rest_url,
640
- data: rest_data,
641
- dataType: "JSON",
642
  beforeSend: function () {
643
- if (alm.page != 1 && !alm.paging) {
644
  alm.button.addClass('loading');
645
  }
646
  },
647
  success: function (results) {
648
- var data = '',
649
  html = results.html,
650
  meta = results.meta,
651
  postcount = meta.postcount,
@@ -653,11 +611,11 @@
653
 
654
  // loop results to get data from each
655
  $.each(html, function(e){
656
- var result = html[e];
657
  if(alm.restapi_debug === 'true'){ // If debug
658
  console.log(result);
659
  }
660
- data += alm_template(result);
661
  });
662
 
663
  // Create object to pass to success()
@@ -672,74 +630,22 @@
672
  }
673
  });
674
  }
 
675
  // Standard ALM
676
  else {
 
 
 
677
  $.ajax({
678
- type: "GET",
679
  url: alm_localize.ajaxurl,
680
- dataType: "JSON",
681
- data: {
682
- action : action,
683
- nonce : alm_localize.alm_nonce,
684
- query_type : queryType,
685
- id : el.attr('data-id'),
686
- post_id : alm.post_id,
687
- slug : alm.slug,
688
- canonical_url : alm.canonical_url,
689
- cache_id : alm.cache_id,
690
- cache_logged_in : alm.cache_logged_in,
691
- repeater : alm.repeater,
692
- theme_repeater : alm.theme_repeater,
693
- acf : alm.acf_array,
694
- nextpage : alm.nextpage_array,
695
- cta : alm.cta_array,
696
- comments : alm.comments_array,
697
- users : alm.users_array,
698
- post_type : alm.post_type,
699
- sticky_posts : alm.sticky_posts,
700
- post_format : alm.content.attr('data-post-format'),
701
- category : alm.content.attr('data-category'),
702
- category__not_in : alm.content.attr('data-category-not-in'),
703
- tag : alm.content.attr('data-tag'),
704
- tag__not_in : alm.content.attr('data-tag-not-in'),
705
- taxonomy : alm.content.attr('data-taxonomy'),
706
- taxonomy_terms : alm.content.attr('data-taxonomy-terms'),
707
- taxonomy_operator : alm.content.attr('data-taxonomy-operator'),
708
- taxonomy_relation : alm.content.attr('data-taxonomy-relation'),
709
- meta_key : alm.content.attr('data-meta-key'),
710
- meta_value : alm.content.attr('data-meta-value'),
711
- meta_compare : alm.content.attr('data-meta-compare'),
712
- meta_relation : alm.content.attr('data-meta-relation'),
713
- meta_type : alm.content.attr('data-meta-type'),
714
- author : alm.content.attr('data-author'),
715
- year : alm.content.attr('data-year'),
716
- month : alm.content.attr('data-month'),
717
- day : alm.content.attr('data-day'),
718
- post_status : alm.content.attr('data-post-status'),
719
- order : alm.content.attr('data-order'),
720
- orderby : alm.content.attr('data-orderby'),
721
- post__in : alm.content.attr('data-post-in'),
722
- post__not_in : alm.content.attr('data-post-not-in'),
723
- exclude : alm.content.attr('data-exclude'), // Deprecate soon in favor of post__not_in
724
- search : alm.content.attr('data-search'),
725
- custom_args : alm.content.attr('data-custom-args'),
726
- posts_per_page : alm.posts_per_page,
727
- page : alm.page,
728
- offset : alm.offset,
729
- preloaded : alm.preloaded,
730
- preloaded_amount : alm.preloaded_amount,
731
- seo_start_page : alm.start_page,
732
- paging : alm.paging,
733
- previous_post : alm.previous_post_array,
734
- lang : alm.lang
735
- },
736
-
737
  beforeSend: function () {
738
  if (alm.page != 1 && !alm.paging) {
739
  alm.button.addClass('loading');
740
  }
741
  },
742
-
743
  success: function (data) {
744
  // Standard Query
745
  if(queryType === 'standard'){
@@ -757,9 +663,7 @@
757
  $.fn.almBuildPagination(data, alm);
758
  }
759
  }
760
-
761
  },
762
-
763
  error: function (jqXHR, textStatus, errorThrown) {
764
  alm.AjaxLoadMore.error(jqXHR, textStatus, errorThrown);
765
  }
@@ -1414,7 +1318,10 @@
1414
 
1415
  // If scroll_container specified, set window object to container.
1416
  if(alm.scroll_container !== ''){
1417
- alm.window = $(alm.scroll_container);
 
 
 
1418
  }
1419
 
1420
  alm.window.bind("scroll touchstart", function () {
@@ -1423,14 +1330,12 @@
1423
 
1424
  let content_offset = alm.button.offset().top,
1425
  top = Math.round(content_offset - (alm.window.height() - alm.scroll_distance)),
1426
- scrollTrigger = (alm.window.scrollTop() >= top) ? true : false;
1427
-
1428
 
1429
  // If scroll_container specified
1430
  if(alm.scroll_container !== ''){
1431
  scrollTrigger = ((alm.button.offset().top - (alm.window.height() - alm.scroll_distance)) < alm.window.offset().top) ? true : false;
1432
- }
1433
-
1434
 
1435
  // If Pause && Pause Override
1436
  if(!alm.loading && !alm.finished && scrollTrigger && alm.page < (alm.max_pages - 1) && alm.proceed && alm.pause === 'true' && alm.pause_override === 'true'){
@@ -1444,6 +1349,7 @@
1444
  }
1445
  }
1446
  }
 
1447
  });
1448
  }
1449
 
25
  alm.window = $(window);
26
  alm.page = 0;
27
  alm.posts = 0;
28
+ alm.totalposts = 0;
29
  alm.proceed = false;
30
  alm.disable_ajax = false;
31
  alm.init = true;
65
  alm.speed = 250;
66
  alm.images_loaded = alm.content.attr('data-images-loaded');
67
  alm.destroy_after = alm.content.attr('data-destroy-after');
 
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');
127
  if(alm.users){ // Override paging params for users
128
  alm.orginal_posts_per_page = alm.content.attr('data-users-per-page');
129
  alm.posts_per_page = alm.content.attr('data-users-per-page');
130
+ }
131
+
132
 
133
  /* Filters */
134
  if(alm.filters === 'true'){
355
  if (alm.repeater === undefined){
356
  alm.repeater = 'default';
357
  }
358
+ alm.theme_repeater = (alm.theme_repeater === undefined) ? false : alm.theme_repeater;
 
 
359
 
360
  /* Max Pages (while scrolling) */
361
  alm.max_pages = (alm.max_pages === undefined || alm.max_pages === 0) ? 10000 : alm.max_pages;
412
  /* Button Labels */
413
  alm.button_label = (alm.button_label === undefined) ? 'Older Posts' : alm.button_label;
414
  alm.button_loading_label = (alm.button_loading_label === undefined) ? false : alm.button_loading_label;
 
415
 
416
+ // Paging
417
  if(alm.paging){
418
  alm.content.parent().addClass('loading'); // add loading class to main container
419
  }else{
502
  alm.AjaxLoadMore.ajax = function (queryType) {
503
 
504
  // Default action
505
+ let action = 'alm_query_posts';
506
 
507
  // ACF Params
508
  alm.acf_array = '';
588
 
589
  // REST API
590
  if(alm.restapi){
591
+ let alm_rest_template = wp.template(alm.restapi_template_id);
592
+ let alm_rest_url = alm.restapi_base_url + '/' + alm.restapi_namespace + '/' + alm.restapi_endpoint;
593
+ let alm_rest_data = almGetRestParams(alm); // [./helpers/queryParams.js]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
594
 
595
  $.ajax({
596
+ type : 'GET',
597
+ url : alm_rest_url,
598
+ data: alm_rest_data,
599
+ dataType: 'JSON',
600
  beforeSend: function () {
601
+ if (alm.page != 1 && !alm.paging) {
602
  alm.button.addClass('loading');
603
  }
604
  },
605
  success: function (results) {
606
+ let data = '',
607
  html = results.html,
608
  meta = results.meta,
609
  postcount = meta.postcount,
611
 
612
  // loop results to get data from each
613
  $.each(html, function(e){
614
+ let result = html[e];
615
  if(alm.restapi_debug === 'true'){ // If debug
616
  console.log(result);
617
  }
618
+ data += alm_rest_template(result);
619
  });
620
 
621
  // Create object to pass to success()
630
  }
631
  });
632
  }
633
+
634
  // Standard ALM
635
  else {
636
+
637
+ let alm_data_params = almGetAjaxParams(alm, action, queryType); // [./helpers/queryParams.js]
638
+
639
  $.ajax({
640
+ type: 'GET',
641
  url: alm_localize.ajaxurl,
642
+ dataType: 'JSON',
643
+ data: alm_data_params,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
644
  beforeSend: function () {
645
  if (alm.page != 1 && !alm.paging) {
646
  alm.button.addClass('loading');
647
  }
648
  },
 
649
  success: function (data) {
650
  // Standard Query
651
  if(queryType === 'standard'){
663
  $.fn.almBuildPagination(data, alm);
664
  }
665
  }
 
666
  },
 
667
  error: function (jqXHR, textStatus, errorThrown) {
668
  alm.AjaxLoadMore.error(jqXHR, textStatus, errorThrown);
669
  }
1318
 
1319
  // If scroll_container specified, set window object to container.
1320
  if(alm.scroll_container !== ''){
1321
+ // Confirm scroll_container exists
1322
+ if($(alm.scroll_container).length){
1323
+ alm.window = $(alm.scroll_container);
1324
+ }
1325
  }
1326
 
1327
  alm.window.bind("scroll touchstart", function () {
1330
 
1331
  let content_offset = alm.button.offset().top,
1332
  top = Math.round(content_offset - (alm.window.height() - alm.scroll_distance)),
1333
+ scrollTrigger = (alm.window.scrollTop() >= top) ? true : false;
 
1334
 
1335
  // If scroll_container specified
1336
  if(alm.scroll_container !== ''){
1337
  scrollTrigger = ((alm.button.offset().top - (alm.window.height() - alm.scroll_distance)) < alm.window.offset().top) ? true : false;
1338
+ }
 
1339
 
1340
  // If Pause && Pause Override
1341
  if(!alm.loading && !alm.finished && scrollTrigger && alm.page < (alm.max_pages - 1) && alm.proceed && alm.pause === 'true' && alm.pause_override === 'true'){
1349
  }
1350
  }
1351
  }
1352
+
1353
  });
1354
  }
1355
 
core/src/js/helpers/queryParams.js ADDED
@@ -0,0 +1,208 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ almGetAjaxParams
3
+ Build the data object to send with the Ajax request
4
+
5
+ @param alm object
6
+ @param action string
7
+ @param queryType string
8
+
9
+ @since 3.6
10
+ */
11
+
12
+ let almGetAjaxParams = function(alm, action, queryType){
13
+
14
+ // Defaults
15
+ let data = {
16
+ action : action,
17
+ nonce : alm_localize.alm_nonce,
18
+ query_type : queryType,
19
+ id : alm.id,
20
+ post_id : alm.post_id,
21
+ slug : alm.slug,
22
+ canonical_url : alm.canonical_url,
23
+ posts_per_page : alm.posts_per_page,
24
+ page : alm.page,
25
+ offset : alm.offset,
26
+ post_type : alm.post_type,
27
+ repeater : alm.repeater,
28
+ seo_start_page : alm.start_page
29
+ };
30
+
31
+
32
+ // Addons
33
+ if(alm.theme_repeater){
34
+ data.theme_repeater = alm.theme_repeater;
35
+ }
36
+ if(alm.paging){
37
+ data.paging = alm.paging;
38
+ }
39
+ if(alm.preloaded){
40
+ data.preloaded = alm.preloaded;
41
+ data.preloaded_amount = alm.preloaded_amount;
42
+ }
43
+ if(alm.cache === 'true'){
44
+ data.cache_id = alm.cache_id;
45
+ data.cache_logged_in = alm.cache_logged_in;
46
+ }
47
+ if(alm.acf_array){
48
+ data.acf = alm.acf_array;
49
+ }
50
+ if(alm.cta_array){
51
+ data.cta = alm.cta_array;
52
+ }
53
+ if(alm.comments_array){
54
+ data.comments = alm.comments_array;
55
+ }
56
+ if(alm.nextpage_array){
57
+ data.nextpage = alm.nextpage_array;
58
+ }
59
+ if(alm.previous_post_array){
60
+ data.previous_post = alm.previous_post_array;
61
+ }
62
+ if(alm.users_array){
63
+ data.users = alm.users_array;
64
+ }
65
+
66
+
67
+ // Query data
68
+ if(alm.content.attr('data-lang')){
69
+ data.lang = alm.content.attr('data-lang');
70
+ }
71
+ if(alm.content.attr('data-sticky-posts')){
72
+ data.sticky_posts = alm.content.attr('data-sticky-posts');
73
+ }
74
+ if(alm.content.attr('data-post-format')){
75
+ data.post_format = alm.content.attr('data-post-format');
76
+ }
77
+ if(alm.content.attr('data-category')){
78
+ data.category = alm.content.attr('data-category');
79
+ }
80
+ if(alm.content.attr('data-category-not-in')){
81
+ data.category__not_in = alm.content.attr('data-category-not-in');
82
+ }
83
+ if(alm.content.attr('data-tag')){
84
+ data.tag = alm.content.attr('data-tag');
85
+ }
86
+ if(alm.content.attr('data-tag-not-in')){
87
+ data.tag__not_in = alm.content.attr('data-tag-not-in');
88
+ }
89
+ if(alm.content.attr('data-taxonomy')){
90
+ data.taxonomy = alm.content.attr('data-taxonomy');
91
+ }
92
+ if(alm.content.attr('data-taxonomy-terms')){
93
+ data.taxonomy_terms = alm.content.attr('data-taxonomy-terms');
94
+ }
95
+ if(alm.content.attr('data-taxonomy-operator')){
96
+ data.taxonomy_operator = alm.content.attr('data-taxonomy-operator');
97
+ }
98
+ if(alm.content.attr('data-taxonomy-relation')){
99
+ data.taxonomy_relation = alm.content.attr('data-taxonomy-relation');
100
+ }
101
+ if(alm.content.attr('data-meta-key')){
102
+ data.meta_key = alm.content.attr('data-meta-key');
103
+ }
104
+ if(alm.content.attr('data-meta-value')){
105
+ data.meta_value = alm.content.attr('data-meta-value');
106
+ }
107
+ if(alm.content.attr('data-meta-compare')){
108
+ data.meta_compare = alm.content.attr('data-meta-compare');
109
+ }
110
+ if(alm.content.attr('data-meta-relation')){
111
+ data.meta_relation = alm.content.attr('data-meta-relation');
112
+ }
113
+ if(alm.content.attr('data-meta-type')){
114
+ data.meta_type = alm.content.attr('data-meta-type');
115
+ }
116
+ if(alm.content.attr('data-author')){
117
+ data.author = alm.content.attr('data-author');
118
+ }
119
+ if(alm.content.attr('data-year')){
120
+ data.year = alm.content.attr('data-year');
121
+ }
122
+ if(alm.content.attr('data-month')){
123
+ data.month = alm.content.attr('data-month');
124
+ }
125
+ if(alm.content.attr('data-day')){
126
+ data.day = alm.content.attr('data-day');
127
+ }
128
+ if(alm.content.attr('data-order')){
129
+ data.order = alm.content.attr('data-order');
130
+ }
131
+ if(alm.content.attr('data-orderby')){
132
+ data.orderby = alm.content.attr('data-orderby');
133
+ }
134
+ if(alm.content.attr('data-post-status')){
135
+ data.post_status = alm.content.attr('data-post-status');
136
+ }
137
+ if(alm.content.attr('data-post-in')){
138
+ data.post__in = alm.content.attr('data-post-in');
139
+ }
140
+ if(alm.content.attr('data-post-not-in')){
141
+ data.post__not_in = alm.content.attr('data-post-not-in');
142
+ }
143
+ if(alm.content.attr('data-exclude')){
144
+ data.exclude = alm.content.attr('data-exclude');
145
+ }
146
+ if(alm.content.attr('data-search')){
147
+ data.search = alm.content.attr('data-search');
148
+ }
149
+ if(alm.content.attr('data-custom-args')){
150
+ data.custom_args = alm.content.attr('data-custom-args');
151
+ }
152
+
153
+ return data;
154
+
155
+ }
156
+
157
+
158
+
159
+ /*
160
+ almGetRestParams
161
+ Build the REST API data object to send with REST API request
162
+
163
+ @param alm object
164
+
165
+ @since 3.6
166
+ */
167
+ let almGetRestParams = function(alm){
168
+ let data = {
169
+ id : alm.id,
170
+ post_id : alm.post_id,
171
+ posts_per_page : alm.posts_per_page,
172
+ page : alm.page,
173
+ offset : alm.offset,
174
+ slug : alm.slug,
175
+ canonical_url : alm.canonical_url,
176
+ post_type : alm.post_type,
177
+ post_format : alm.content.attr('data-post-format'),
178
+ category : alm.content.attr('data-category'),
179
+ category__not_in : alm.content.attr('data-category-not-in'),
180
+ tag : alm.content.attr('data-tag'),
181
+ tag__not_in : alm.content.attr('data-tag-not-in'),
182
+ taxonomy : alm.content.attr('data-taxonomy'),
183
+ taxonomy_terms : alm.content.attr('data-taxonomy-terms'),
184
+ taxonomy_operator : alm.content.attr('data-taxonomy-operator'),
185
+ taxonomy_relation : alm.content.attr('data-taxonomy-relation'),
186
+ meta_key : alm.content.attr('data-meta-key'),
187
+ meta_value : alm.content.attr('data-meta-value'),
188
+ meta_compare : alm.content.attr('data-meta-compare'),
189
+ meta_relation : alm.content.attr('data-meta-relation'),
190
+ meta_type : alm.content.attr('data-meta-type'),
191
+ author : alm.content.attr('data-author'),
192
+ year : alm.content.attr('data-year'),
193
+ month : alm.content.attr('data-month'),
194
+ day : alm.content.attr('data-day'),
195
+ post_status : alm.content.attr('data-post-status'),
196
+ order : alm.content.attr('data-order'),
197
+ orderby : alm.content.attr('data-orderby'),
198
+ post__in : alm.content.attr('data-post-in'),
199
+ post__not_in : alm.content.attr('data-post-not-in'),
200
+ search : alm.content.attr('data-search'),
201
+ custom_args : alm.content.attr('data-custom-args'),
202
+ lang : alm.lang,
203
+ preloaded : alm.preloaded,
204
+ preloaded_amount : alm.preloaded_amount,
205
+ seo_start_page : alm.start_page
206
+ };
207
+ return data;
208
+ }
core/src/js/modules/masonry.js CHANGED
@@ -1,24 +1,25 @@
1
  /*
2
  almMasonry
3
-
4
  Function to trigger built-in Ajax Load More Masonry
5
 
6
- @param container object
7
- @param items object
8
- @param selector string
9
- @param columnWidth string
10
- @param animation string
11
- @param speed int
12
- @param masonry_init boolean
13
- @param init boolean
14
- @param filtering boolean
 
 
15
  @since 3.1
16
  @updated 3.3.2
17
  */
18
 
19
 
20
  let almMasonry = (container, items, selector, columnWidth, animation, horizontalOrder, speed, masonry_init, init, filtering) => {
21
-
22
  let duration = (speed+100)/1000 +'s'; // Add 100 for some delay
23
  let hidden = 'scale(0.5)';
24
  let visible = 'scale(1)';
@@ -43,7 +44,7 @@ let almMasonry = (container, items, selector, columnWidth, animation, horizontal
43
  visible = 'translateY(0)';
44
  }
45
 
46
- // Set default columnWidth
47
  if(columnWidth){
48
  if(!isNaN(columnWidth)){// Check if number
49
  columnWidth = parseInt(columnWidth);
@@ -52,15 +53,16 @@ let almMasonry = (container, items, selector, columnWidth, animation, horizontal
52
  columnWidth = selector;
53
  }
54
 
55
- // Set horizontalOrder
56
  horizontalOrder = (horizontalOrder === 'true') ? true : false;
57
 
58
  if(!filtering){
59
 
60
  // First Run
61
  if(masonry_init && init){
62
- container.imagesLoaded( () => {
63
- container.masonry({
 
64
  itemSelector: selector,
65
  transitionDuration: duration,
66
  columnWidth: columnWidth,
@@ -72,9 +74,25 @@ let almMasonry = (container, items, selector, columnWidth, animation, horizontal
72
  visibleStyle: {
73
  transform: visible,
74
  opacity: 1
75
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  });
 
 
77
  almMasonryFadeIn(container[0].parentNode, speed);
 
78
  });
79
  }
80
 
@@ -88,8 +106,9 @@ let almMasonry = (container, items, selector, columnWidth, animation, horizontal
88
  } else{
89
  // Filtering Reset
90
  container.masonry('destroy'); // destroy masonry
 
91
  container.append( items );
92
- almMasonry(container, items, selector, animation, horizontalOrder, speed, true, true, false);
93
  }
94
 
95
  };
1
  /*
2
  almMasonry
 
3
  Function to trigger built-in Ajax Load More Masonry
4
 
5
+ @param container object
6
+ @param items object
7
+ @param selector string
8
+ @param columnWidth string
9
+ @param animation string
10
+ @param horizontalOrder string
11
+ @param speed int
12
+ @param masonry_init boolean
13
+ @param init boolean
14
+ @param filtering boolean
15
+
16
  @since 3.1
17
  @updated 3.3.2
18
  */
19
 
20
 
21
  let almMasonry = (container, items, selector, columnWidth, animation, horizontalOrder, speed, masonry_init, init, filtering) => {
22
+
23
  let duration = (speed+100)/1000 +'s'; // Add 100 for some delay
24
  let hidden = 'scale(0.5)';
25
  let visible = 'scale(1)';
44
  visible = 'translateY(0)';
45
  }
46
 
47
+ // columnWidth
48
  if(columnWidth){
49
  if(!isNaN(columnWidth)){// Check if number
50
  columnWidth = parseInt(columnWidth);
53
  columnWidth = selector;
54
  }
55
 
56
+ // horizontalOrder
57
  horizontalOrder = (horizontalOrder === 'true') ? true : false;
58
 
59
  if(!filtering){
60
 
61
  // First Run
62
  if(masonry_init && init){
63
+ container.imagesLoaded( () => {
64
+
65
+ let defaults = {
66
  itemSelector: selector,
67
  transitionDuration: duration,
68
  columnWidth: columnWidth,
74
  visibleStyle: {
75
  transform: visible,
76
  opacity: 1
77
+ }
78
+ }
79
+
80
+ // Get custom Masonry options (https://masonry.desandro.com/options.html)
81
+ let alm_masonry_vars = alm_masonry_vars;
82
+ if(alm_masonry_vars){
83
+ Object.keys(alm_masonry_vars).forEach(function(key) { // Loop object to create key:prop
84
+ defaults[key] = alm_masonry_vars[key];
85
+ });
86
+ }
87
+
88
+ // Trigger Masonry()
89
+ container.masonry({
90
+ defaults
91
  });
92
+
93
+ // Fade in
94
  almMasonryFadeIn(container[0].parentNode, speed);
95
+
96
  });
97
  }
98
 
106
  } else{
107
  // Filtering Reset
108
  container.masonry('destroy'); // destroy masonry
109
+ container[0].parentNode.style.opacity = 0;
110
  container.append( items );
111
+ almMasonry(container, items, selector, columnWidth, animation, horizontalOrder, speed, true, true, false);
112
  }
113
 
114
  };
gulpfile.js CHANGED
@@ -52,14 +52,16 @@ gulp.task('scripts', () => {
52
 
53
  // Sass [Core Compile]
54
  gulp.task('sass', () => {
55
- gulp.src('./core/src/scss/'+ appname +'.scss')
56
- .pipe(sass())
57
- .pipe(prefix({browsers: ['last 2 versions', 'ie >= 9', 'and_chr >= 2.3']}))
58
- .pipe(gulp.dest( dist +'/css/'))
59
- .pipe(cleanCSS())
60
- .pipe(rename({ suffix: '.min' }))
61
- .pipe(gulp.dest( dist +'/css/'))
62
- .pipe(notify({ message: 'Sass Complete' }));
 
 
63
  });
64
 
65
 
@@ -93,11 +95,13 @@ gulp.task('admin_scripts', () => {
93
 
94
  // Sass [Admin Compile]
95
  gulp.task('admin_sass', () => {
96
- gulp.src('./admin/src/scss/admin.scss')
97
- .pipe(sass())
98
- .pipe(prefix({browsers: ['last 2 versions', 'ie >= 9', 'and_chr >= 2.3']}))
99
- .pipe(gulp.dest( admin_dist +'/css/'))
100
- .pipe(notify({ message: 'Admin Sass Complete' }));
 
 
101
  });
102
 
103
 
52
 
53
  // Sass [Core Compile]
54
  gulp.task('sass', () => {
55
+ setTimeout(function(){
56
+ gulp.src('./core/src/scss/'+ appname +'.scss')
57
+ .pipe(sass())
58
+ .pipe(prefix({browsers: ['last 2 versions', 'ie >= 9', 'and_chr >= 2.3']}))
59
+ .pipe(gulp.dest( dist +'/css/'))
60
+ .pipe(cleanCSS())
61
+ .pipe(rename({ suffix: '.min' }))
62
+ .pipe(gulp.dest( dist +'/css/'))
63
+ .pipe(notify({ message: 'Sass Complete' }));
64
+ }, 250);
65
  });
66
 
67
 
95
 
96
  // Sass [Admin Compile]
97
  gulp.task('admin_sass', () => {
98
+ setTimeout(function(){
99
+ gulp.src('./admin/src/scss/admin.scss')
100
+ .pipe(sass())
101
+ .pipe(prefix({browsers: ['last 2 versions', 'ie >= 9', 'and_chr >= 2.3']}))
102
+ .pipe(gulp.dest( admin_dist +'/css/'))
103
+ .pipe(notify({ message: 'Admin Sass Complete' }));
104
+ }, 250);
105
  });
106
 
107
 
vendor/EDD_SL_Plugin_Updater.php CHANGED
@@ -7,7 +7,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
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
 
@@ -40,10 +40,19 @@ class EDD_SL_Plugin_Updater {
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
 
@@ -112,7 +121,7 @@ class EDD_SL_Plugin_Updater {
112
 
113
  }
114
 
115
- $_transient_data->last_checked = current_time( 'timestamp' );
116
  $_transient_data->checked[ $this->name ] = $this->version;
117
 
118
  }
@@ -171,7 +180,7 @@ class EDD_SL_Plugin_Updater {
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 );
@@ -307,11 +316,13 @@ class EDD_SL_Plugin_Updater {
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
  /**
@@ -351,7 +362,8 @@ class EDD_SL_Plugin_Updater {
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 ) );
@@ -413,7 +425,8 @@ class EDD_SL_Plugin_Updater {
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 ) );
@@ -451,7 +464,7 @@ class EDD_SL_Plugin_Updater {
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
 
@@ -466,12 +479,22 @@ class EDD_SL_Plugin_Updater {
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
- }
7
  * Allows plugins to use their own update API.
8
  *
9
  * @author Easy Digital Downloads
10
+ * @version 1.6.16
11
  */
12
  class EDD_SL_Plugin_Updater {
13
 
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 = 'edd_sl_' . md5( serialize( $this->slug . $this->api_data['license'] . $this->beta ) );
44
 
45
  $edd_plugin_data[ $this->slug ] = $this->api_data;
46
 
47
+ /**
48
+ * Fires after the $edd_plugin_data is setup.
49
+ *
50
+ * @since x.x.x
51
+ *
52
+ * @param array $edd_plugin_data Array of EDD SL plugin data.
53
+ */
54
+ do_action( 'post_edd_sl_plugin_updater_setup', $edd_plugin_data );
55
+
56
  // Set up hooks.
57
  $this->init();
58
 
121
 
122
  }
123
 
124
+ $_transient_data->last_checked = time();
125
  $_transient_data->checked[ $this->name ] = $this->version;
126
 
127
  }
180
 
181
  }
182
 
183
+ $update_cache->last_checked = time();
184
  $update_cache->checked[ $this->name ] = $this->version;
185
 
186
  set_site_transient( 'update_plugins', $update_cache );
316
  * @return object $array
317
  */
318
  public function http_request_args( $args, $url ) {
319
+
320
+ $verify_ssl = $this->verify_ssl();
321
  if ( strpos( $url, 'https://' ) !== false && strpos( $url, 'edd_action=package_download' ) ) {
322
+ $args['sslverify'] = $verify_ssl;
323
  }
324
  return $args;
325
+
326
  }
327
 
328
  /**
362
  'beta' => ! empty( $data['beta'] ),
363
  );
364
 
365
+ $verify_ssl = $this->verify_ssl();
366
+ $request = wp_remote_post( $this->api_url, array( 'timeout' => 15, 'sslverify' => $verify_ssl, 'body' => $api_params ) );
367
 
368
  if ( ! is_wp_error( $request ) ) {
369
  $request = json_decode( wp_remote_retrieve_body( $request ) );
425
  'beta' => ! empty( $data['beta'] )
426
  );
427
 
428
+ $verify_ssl = $this->verify_ssl();
429
+ $request = wp_remote_post( $this->api_url, array( 'timeout' => 15, 'sslverify' => $verify_ssl, 'body' => $api_params ) );
430
 
431
  if ( ! is_wp_error( $request ) ) {
432
  $version_info = json_decode( wp_remote_retrieve_body( $request ) );
464
 
465
  $cache = get_option( $cache_key );
466
 
467
+ if( empty( $cache['timeout'] ) || time() > $cache['timeout'] ) {
468
  return false; // Cache is expired
469
  }
470
 
479
  }
480
 
481
  $data = array(
482
+ 'timeout' => strtotime( '+3 hours', time() ),
483
  'value' => json_encode( $value )
484
  );
485
 
486
+ update_option( $cache_key, $data, 'no' );
487
+
488
+ }
489
 
490
+ /**
491
+ * Returns if the SSL of the store should be verified.
492
+ *
493
+ * @since 1.6.13
494
+ * @return bool
495
+ */
496
+ private function verify_ssl() {
497
+ return (bool) apply_filters( 'edd_sl_api_request_verify_ssl', true, $this );
498
  }
499
 
500
+ }