WordPress Infinite Scroll – Ajax Load More - Version 5.4.4

Version Description

  • March 31, 2021 =

  • FIX - Fixed issue when filtering and updating the Load More button label.

  • FIX - Fixed JS error when using transition_container="false" and transition="false" in the same shortcode.

  • FIX - Fixed 'Cannot read property postcount of undefined' error that can appear. The underlying still exists and I've been unable to solve it but the error is now surpressed and Ajax Load More will function as expected. A console warning will be rendered in it's place.

  • UPDATE - Updated core ALM button CSS selectors.

  • UPDATE - Admin UI/UX updates to Shortcode Builder and Settings screen.

  • UPDATE - Attempting to fix with license activation script to prevent issues with wp_remote_post.

  • UPDATE - Added console warning if Ajax Load More is not able to access meta object in Ajax response.

Download this release

Release Info

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

Code changes from version 5.4.2.1 to 5.4.4

Files changed (56) hide show
  1. README.txt +95 -372
  2. admin/admin-functions.php +57 -34
  3. admin/admin.php +633 -806
  4. admin/dist/css/admin.css +468 -381
  5. admin/dist/js/admin.js +122 -70
  6. admin/img/logos/block-manager.png +0 -0
  7. admin/includes/components/custom-layouts.php +0 -0
  8. admin/includes/cta/about.php +10 -3
  9. admin/includes/cta/add-ons.php +5 -5
  10. admin/includes/cta/dyk.php +77 -63
  11. admin/includes/cta/extend.php +0 -0
  12. admin/includes/cta/pro-hero.php +0 -0
  13. admin/includes/cta/resources.php +36 -17
  14. admin/shortcode-builder/components/nextpage.php +42 -16
  15. admin/shortcode-builder/components/seo.php +3 -3
  16. admin/shortcode-builder/components/single-post.php +83 -34
  17. admin/shortcode-builder/includes/meta-query-options.php +12 -13
  18. admin/shortcode-builder/js/shortcode-builder.js +76 -82
  19. admin/shortcode-builder/shortcode-builder.php +1351 -1359
  20. admin/src/js/admin.js +101 -51
  21. admin/src/js/modules/sticky.js +48 -47
  22. admin/src/scss/_variables.scss +10 -2
  23. admin/src/scss/admin.scss +282 -374
  24. admin/src/scss/partials/_alm-settings-feedback.scss +68 -61
  25. admin/src/scss/partials/_alm-tabbed-wrapper.scss +139 -0
  26. admin/src/scss/partials/_header.scss +2 -3
  27. admin/src/scss/partials/_shortcode-builder.scss +177 -139
  28. admin/src/scss/partials/_sidebar.scss +1 -1
  29. admin/src/scss/partials/_template-tags.scss +36 -0
  30. admin/views/add-ons.php +0 -0
  31. admin/views/go-pro.php +0 -0
  32. admin/views/help.php +7 -7
  33. admin/views/licenses.php +0 -0
  34. admin/views/repeater-templates.php +0 -0
  35. admin/views/settings.php +80 -57
  36. admin/views/shortcode-builder.php +1 -6
  37. ajax-load-more.php +10 -13
  38. core/classes/class-alm-enqueue.php +1 -3
  39. core/classes/class-alm-noscript.php +21 -36
  40. core/classes/class-alm-queryargs.php +5 -5
  41. core/classes/class-alm-shortcode.php +193 -210
  42. core/classes/includes/preloaded.php +9 -15
  43. core/dist/css/ajax-load-more.css +11 -11
  44. core/dist/css/ajax-load-more.min.css +1 -1
  45. core/dist/js/ajax-load-more.js +589 -256
  46. core/dist/js/ajax-load-more.min.js +2 -9
  47. core/functions.php +116 -228
  48. core/functions/deprecated.php +106 -0
  49. core/src/js/addons/singleposts.js +62 -15
  50. core/src/js/addons/woocommerce.js +44 -10
  51. core/src/js/ajax-load-more.js +86 -76
  52. core/src/js/helpers/queryParams.js +0 -0
  53. core/src/js/modules/fadeIn.js +8 -9
  54. core/src/scss/_loaders.scss +32 -30
  55. core/src/scss/ajax-load-more.scss +1 -2
  56. lang/ajax-load-more.pot +524 -509
README.txt CHANGED
@@ -1,10 +1,10 @@
1
  === WordPress Infinite Scroll - Ajax Load More ===
2
  Contributors: dcooney, connekthq
3
- Donate link: https://connekthq.com/donate/
4
  Tags: infinite scroll, load more, scroll, infinite, lazy load, lazy loading, endless scroll, pagination, ajax pagination, ajax, ajax posts, woocommerce, ajax load more, masonry
5
  Requires at least: 4.0
6
- Tested up to: 5.6
7
- Stable tag: 5.4.2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -18,7 +18,7 @@ Build complex custom WordPress queries with the Ajax Load More shortcode builder
18
 
19
  Ajax Load More is compatible for endless scrolling with popular eCommerce plugins such as WooCommerce and Easy Digital Downloads.
20
 
21
- [Get More Information](https://connekthq.com/plugins/ajax-load-more/)
22
 
23
  ### Features
24
 
@@ -30,15 +30,14 @@ Ajax Load More is compatible for endless scrolling with popular eCommerce plugin
30
  - **Multisite Compatibility** - Manage repeater templates across all sites in your network.
31
  - **Setting Panel** - Customize your version of Ajax Load More by updating various plugin settings.
32
 
33
- Check out the **[demo site](https://connekthq.com/plugins/ajax-load-more/)** for more information!
34
 
35
- #### What's New
36
 
37
- - **[Elementor](https://connekthq.com/plugins/ajax-load-more/add-ons/elementor/)** - Infinite scroll Elementor Posts Widget content with Ajax Load More.
38
- - **[WooCommerce](https://connekthq.com/plugins/ajax-load-more/add-ons/woocommerce/)** - Infinite scroll WooCommerce products without updating a line of template code.
39
- - **[Pro](https://connekthq.com/plugins/ajax-load-more/pro/)** - Access to all premium add-ons in a single installation.
40
- - **[Filters](https://connekthq.com/plugins/ajax-load-more/add-ons/filters/)** - The Filters add-on provides front-end and admin functionality for building and managing Ajax filters.
41
- - **[User Query](https://connekthq.com/plugins/ajax-load-more/add-ons/users/)** - Query and display a list of WordPress users by role using a `WP_User_Query` and Ajax Load More.
42
  - **[Advanced Custom Fields](https://connekthq.com/plugins/ajax-load-more/examples/advanced-custom-fields/)** - Compatibility and integration added for infinite scrolling Flexible Content, Gallery, Relationship and Repeater fields for Advanced Custom Fields.
43
  - **[Masonry](https://connekthq.com/plugins/ajax-load-more/examples/masonry/)** - Built-in support and functionality for Masonry layouts.
44
  - **[Progress Bars](https://connekthq.com/plugins/ajax-load-more/examples/progress-bar/)** - Display a Progress Bar load indicator with each Ajax request.
@@ -46,7 +45,7 @@ Check out the **[demo site](https://connekthq.com/plugins/ajax-load-more/)** for
46
 
47
  ### Content Types
48
 
49
- Ajax Load More can infinite scroll any content type WordPress offers - from blog posts to multipage content to WooCommerce products - Ajax Load More can handle it all.
50
 
51
  Check out the examples below:
52
 
@@ -58,78 +57,29 @@ Check out the examples below:
58
  - [Comments](http://examples.connekthq.com/alm-comments/example-post/) \*
59
  - [Advanced Custom Fields](https://connekthq.com/plugins/ajax-load-more/examples/advanced-custom-fields/)
60
 
61
- _\*Add-on required_
62
-
63
- ### Shortcode Parameters
64
-
65
- Ajax Load More accepts a number of parameters that are passed to the WordPress query. These parameters are transferred via shortcode - don't worry, creating a custom shortcode is easy with the intuitive [Shortcode Builder](https://connekthq.com/plugins/ajax-load-more/screenshots/#shortcode-builder)
66
-
67
- - **repeater** - Choose a repeater template (<a href="https://connekthq.com/plugins/ajax-load-more/custom-repeaters/">Add-on available</a>). Default = ‘default’
68
- - **post_type** - Comma separated list of post types. Default = ‘post’
69
- - **sticky_posts** - Preserve sticky post ordering in Ajax listing. Default = false
70
- - **post_format** - Query by post format. Default = null
71
- - **category** - A comma separated list of categories to include by slug. Default = null
72
- - **category\_\_and** - A comma separated list of categories to include by ID. Default = null
73
- - **category\_\_not_in** - A comma separated list of categories to exclude by ID. Default = null
74
- - **tag** - A comma separated list of tags to include by slug. Default = null
75
- - **tag\_\_and** - A comma separated list of tags to include by ID. Default = null
76
- - **tag\_\_not_in** - A comma separated list of tags to exclude by ID. Default = null
77
- - **taxonomy** - Query by custom taxonomy name. Default = null
78
- - **taxonomy_terms** - Comma separated list of custom taxonomy terms(slug). Default = null
79
- - **taxonomy_operator** - Operator to compare Taxonomy Terms against (IN/NOT IN). Default = ‘IN’
80
- - **taxonomy_relation** - The logical relationship between each taxonomy when there is more than one. (AND/OR). Default = ‘AND’
81
- - **day** - Day of the week. Default = null
82
- - **month** - Month of the year. Default = null
83
- - **year** - Year of post. Default = null
84
- - **taxonomy_operator** - Operator to compare Taxonomy Terms against (IN/NOT IN). Default = ‘IN’
85
- - **meta_key** - Custom field key(name). Default = null
86
- - **meta_value** - Custom field value. Default = null
87
- - **meta_compare** - Operator to compare meta_key and meta_value against. Default = ‘IN’
88
- - **meta_type** - Custom field type. Default = ‘CHAR’
89
- - **meta_relation** - Used with multiple custom field entries (AND/OR). Default = ‘AND’
90
- - **author** - Comma separated list of authors by id. Default = null
91
- - **post\_\_in** - Comma separated list of post ID’s to include in query. Default = null
92
- - **post\_\_not_in** - Comma separated list of post ID’s to exclude from query. Default = null
93
- - **search** - Query search term (‘s’). Default = null
94
- - **custom_args** - A semicolon separated list of value:pair arguments. e.g. tag_slug\_\_and:design,development; event_display:upcoming. Default = null
95
- - **post_status** - Select status of the post. Default = 'publish'
96
- - **order** - Display posts in ASC(ascending) or DESC(descending) order. Default = ‘DESC’
97
- - **orderby** - Order posts by date, title, name, menu order, author, post ID or comment count. Default = ‘date’
98
- - **offset** - Offset the initial query (number). Default = ’0′
99
- - **posts_per_page** - Number of posts to load with each Ajax request. Default = ’5′
100
- - **scroll** - Load more posts as the user scrolls the page (true/false). Default = ‘true’
101
- - **scroll_distance** - The distance from the bottom of the screen to trigger the loading of posts while scrolling. Default = '150'
102
- - **scroll_container** - Constrain Ajax Load More infinite scrolling to a parent container. Default = null
103
- - **max_pages** - Maximum number of pages to load while user is scrolling (activated on when scroll = true). Default = '0'
104
- - **pause_override** - Allow scrolling to override the Pause parameter and trigger the loading of posts on scroll. Default = null
105
- - **pause** - Do not load posts until user clicks the Load More button (true/false). Default = 'false'
106
- - **transition** - Choose a posts reveal transition (fade/masonry/none). Default = 'fade'
107
- - **transition_container** - Display the Ajax Load More (.alm-reveal) loading container. Default = 'true'
108
- - **transition_container_classes** - Add classes to the `.alm-reveal` transition div.
109
- - **masonry_selector** - The target classname of each masonry item. Default = null
110
- - **masonry_animation** - Select a loading transition type for Masonry items. (default/zoom-out/slide-up/slide-down/none). Default = default
111
- - **masonry_horizontalorder** - Maintain horizontal order. Default = true
112
- - **images_loaded** - Wait for all images to load before displaying ajax loaded content (true/false). Default = 'false'
113
- - **destroy_after** - Remove ajax load more functionality after 'n' number of pages have been loaded. Default = null
114
- - **progress_bar** - Display progress bar indicator at the top of the window while loading Ajax content. Default = 'false'
115
- - **progress_bar_color** - Enter the hex color of the progress bar. Default = 'ed7070'
116
- - **button_label** - The label text for Load More button. Default = 'Load More'
117
- - **button_loading_label** - Update the text of the Load More button while content is loading. Default = null
118
- - **loading_style** - Select an Ajax loading style - you can choose between a Button or Infinite Scroll. Default = null
119
- - **container_type** - Override the global Container Type that was set on ALM Settings page. Default = null
120
- - **css_classes** - Add custom CSS classes to the Ajax Load More container. Default = null
121
- - **id** - A unique ID for the Ajax Load More instance.
122
- - **nested** - Is this a nested Ajax Load More instance. Default = false
123
- - **no_results_text** - Display text/html when zero results are returned in an Ajax Load More query. Default = null
124
- - **placeholder** - Display a placeholder image while Ajax content is being loaded. Default = false
125
-
126
- &rarr; [See All Parameters](https://connekthq.com/plugins/ajax-load-more/docs/shortcode-parameters/)
127
 
128
  #### Example Ajax Load More Shortcode
129
 
130
- [ajax_load_more post_type="post, portfolio" repeater="default" posts_per_page="5" transition="fade" button_label="Load More"]
131
 
132
- #### Example Demos
 
 
133
 
134
  - **[Default](https://connekthq.com/plugins/ajax-load-more/examples/default/)** - Out of the box functionality and styling.
135
  - **[Advanced Custom Fields](https://connekthq.com/plugins/ajax-load-more/examples/advanced-custom-fields/)** - Infinite scroll Advanced Custom Fields data with Ajax Load More.
@@ -154,80 +104,43 @@ Ajax Load More accepts a number of parameters that are passed to the WordPress q
154
 
155
  &rarr; [See All Examples](https://connekthq.com/plugins/ajax-load-more/examples/)
156
 
157
- The [Custom Repeater Add-On](https://connekthq.com/plugins/ajax-load-more/custom-repeaters/) has been installed for use on each of our product demos.
158
 
159
  [youtube https://www.youtube.com/watch?v=EQ57i6dkOew]
160
 
161
  ### Add-ons
162
 
163
- The following [add-ons](https://connekthq.com/plugins/ajax-load-more/add-ons/) are available to increase the functionality of Ajax Load More.
164
-
165
- - **[Cache](https://connekthq.com/plugins/ajax-load-more/add-ons/cache/)**: Improve website performance by caching the results of Ajax server requests.
166
- - **[Call to Actions](https://connekthq.com/plugins/ajax-load-more/add-ons/call-to-actions/)**: Extend Ajax Load More with advertisement and call to action content blocks.
167
- - **[Comments](https://connekthq.com/plugins/ajax-load-more/add-ons/comments/)**: Load and display WordPress blog comments using the core Ajax Load More infinite scroll functionality.
168
- - **[Custom Repeaters](https://connekthq.com/plugins/ajax-load-more/add-ons/custom-repeaters/)**: Create, modify and delete repeater templates as you need them with absolutely zero restrictions.
169
- - **[Filters](https://connekthq.com/plugins/ajax-load-more/add-ons/filters/)**: Front-end and admin functionality for creating, managing and displaying Ajax Load More filters.
170
- - **[Layouts](https://connekthq.com/plugins/ajax-load-more/add-ons/layouts/)**: Predefined responsive layouts for Ajax Load More repeater templates.
171
- - **[Next Page](https://connekthq.com/plugins/ajax-load-more/add-ons/next-page/)**: Infinite scroll multipage WordPress content with Ajax Load More and the Next Page add-on.
172
- - **[Paging](https://connekthq.com/plugins/ajax-load-more/add-ons/paging/)**: Replace the default lazy load/infinite scroll functionality of Ajax Load More with a numbered navigation system.
173
- - **[Preloaded](https://connekthq.com/plugins/ajax-load-more/add-ons/preloaded/)**: Load an initial set of posts before sending any Ajax requests to your server.
174
- - **[SEO](https://connekthq.com/plugins/ajax-load-more/add-ons/search-engine-optimization/)**: Generate unique paging URLs with each Ajax Load More query.
175
- - **[Single Post](https://connekthq.com/plugins/ajax-load-more/add-ons/single-post/)**: Enable infinite scrolling of single posts on your WordPress post templates.
176
- - **[Theme Repeaters](https://connekthq.com/plugins/ajax-load-more/add-ons/theme-repeaters/)**: Manage Ajax Load More repeater templates from within your current theme directory.
177
- - **[Users](https://connekthq.com/plugins/ajax-load-more/add-ons/users/)**: Lazy loading WordPress Users with Ajax Load More.
178
- - **[WooCommerce](https://connekthq.com/plugins/ajax-load-more/add-ons/woocommerce/)**: Infinite scroll WooCommerce products with Ajax Load More.
 
179
 
180
  ### Extensions
181
 
182
- The following [extensions](https://connekthq.com/plugins/ajax-load-more/extensions/) are available to provide compatibility with popular WordPress plugins and core features.
183
 
184
- - **[Advanced Custom Fields](https://connekthq.com/plugins/ajax-load-more/extensions/advanced-custom-fields/)**: Display field type data with Ajax Load More.
185
- - **[Relevanssi](https://connekthq.com/plugins/ajax-load-more/extensions/relevanssi/)**: Display Relevanssi search results with Ajax Load More.
186
- - **[REST API](https://connekthq.com/plugins/ajax-load-more/extensions/rest-api/)**: Enable compatibility with the WordPress REST API.
187
- - **[SearchWP](https://connekthq.com/plugins/ajax-load-more/extensions/searchwp/)**: Display SearchWP query results with Ajax Load More.
188
- - **[Term Query](https://wordpress.org/plugins/ajax-load-more-for-terms/)**: Infinite scroll WordPress Terms.
189
 
190
  ### Callback Functions
191
 
192
- The following [functions](https://connekthq.com/plugins/ajax-load-more/docs/callback-functions/) are available to be dispatched by Ajax Load More.
193
-
194
- **Complete** - The almComplete() function is triggered after every _successful_ ajax call made by Ajax Load More.
195
-
196
- almComplete = function(alm){
197
- // Your on complete code goes here
198
- };
199
-
200
- **Destroyed** - The almDestroyed() function is dispatched after the destroy_after shortcode parameter is triggered.
201
-
202
- almDestroyed = function(alm){
203
- console.log('"Ajax Load More functionality has been destroyed!');
204
- };
205
-
206
- **Done** - The almDone() function is triggered after all posts have been loaded.
207
-
208
- almDone = function(alm){
209
- console.log('All posts have been loaded!');
210
- };
211
-
212
- **Empty** - The almEmpty() function is triggered if there are zero results returned in the initial query.
213
-
214
- almEmpty = function(alm){
215
- console.log('Sorry, but we could not locate any posts that matched your criteria.');
216
- };
217
-
218
- **Filter Complete** - The almFilterComplete() function is triggered after a successful call to the public function almFilter().
219
-
220
- almFilterComplete = function(){
221
- console.log('Ajax Load More filter has completed!');
222
- };
223
-
224
- **URL Update** - The almUrlUpdate() function is triggered after a successful URL update (pushState) from the Single Post or the Search Engine Optimization add-on
225
-
226
- almUrlUpdate = function(permalink, type){
227
- console.log("URL updated to " + permalink + '- dispatched from the '+ type + ' add-on.');
228
- };
229
-
230
- ---
231
 
232
  &rarr; [View All Callback Functions](https://connekthq.com/plugins/ajax-load-more/docs/callback-functions/)
233
 
@@ -241,10 +154,10 @@ Ajax Load More has a variety of WordPress [filters](https://connekthq.com/plugin
241
 
242
  Ajax Load More passes the following PHP **[variables](https://connekthq.com/plugins/ajax-load-more/docs/variables/)** to each repeater template - these template variables can help you style and transform your repeater templates.
243
 
244
- - **\$alm_current** - Returns the current item number in the current Ajax Load More loop and will reset to zero with every 'Load More' action.
245
- - **\$alm_page** - Returns the current page number.
246
- - **\$alm_item** - Returns the current item number within your loop.
247
- - **\$alm_found_posts** - Returns the total number of posts found within the entire WordPress query.
248
 
249
  ### Plugin Links
250
 
@@ -293,7 +206,7 @@ Repeater template data is saved into your WordPress database as well as written
293
  = Can I use custom fields in a repeater? =
294
 
295
  Yes, but you will need to define $post at the top of the repeater before requesting your custom fields. Like so:
296
- global $post;
297
 
298
  = Which browsers are supported? =
299
 
@@ -347,18 +260,39 @@ How to install Ajax Load More.
347
 
348
  == Changelog ==
349
 
350
- = 5.4.2.1 - January 3, 2020 =
351
- * HOTFIX - Fixed issue with non-functioning Shortcode Builder on sites without `tags` or `categories` present.
352
 
353
- = 5.4.2 - January 3, 2020 =
354
- * NEW - Added new `vars` parameter that allows for passing data into Hooks and Repeater Templates.
355
- Variables can accessed in Repeater Templates by accessing the `$args` array. This will pull in all query and variable parameters into an array.
356
- `[ajax_load_more vars="var1:The value of var1 value;var2:The value for #2"]`
357
- `echo $args['alm_vars'];` // Prints an array of key value pairs. See docs for more info.
358
- * UPDATE - Various admin UI/UX updates and layout improvements.
359
- * FIX - Fixed issue with Single Posts add-on custom query returning all posts if the query was empty.
360
- * FIX - Fixed issue with height of Ajax Load More when filtering with Masonry and zero results are returned.
361
- * FIX - Fixed issue in Shortcode builder caused by updated Select2 JS.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
362
 
363
  = 5.4.1 - November 25, 2020 =
364
 
@@ -386,73 +320,6 @@ Ajax Load More no longer uses the `Numbers` pagination type, please follow the s
386
  - NEW - Added new `alm_disable_noscript` filter to disable all `<noscript/>` tags generated by ALM. `add_filter( 'alm_disable_noscript', '__return_true' );`
387
  - UPDATE - Updated [Pace.js](https://github.com/CodeByZach/pace) library that is used for progress bar functionality.
388
 
389
- = 5.3.8 - September 10, 2020 =
390
-
391
- ** UPGRADE NOTICE **
392
- ALM users with the WooCommerce add-on activated MUST update the add-on to version `1.0.2` when prompted.
393
-
394
- - NEW - Added [Cache](https://connekthq.com/plugins/ajax-load-more/add-ons/cache/) support for the [Comments Add-on](https://connekthq.com/plugins/ajax-load-more/add-ons/comments/)
395
- - NEW - Adding querystring variables to [Single Post add-on](https://connekthq.com/plugins/ajax-load-more/add-ons/single-posts/) URLs that allows users to perform tasks based on these values. Much like you can do with [ALM Variables](https://connekthq.com/plugins/ajax-load-more/docs/variables/). e.g. http://website.com/post-title/?id=469&alm_page=2
396
- - NEW - Added new `ajaxloadmore.reset` public JavaScript function that will reset Ajax Load More back to it's original state (page 1).
397
-
398
- = 5.3.7 - July 31, 2020 =
399
-
400
- ** UPGRADE NOTICE **
401
- ALM users who are using out of the box styling of Ajax Load More listing elements should be aware of the following update to the core plugin CSS.
402
-
403
- The default Ajax Load More listing CSS has been updated for individual list items. The CSS now targets a `li.alm-item` element for styling.
404
- Previously, the CSS referenced only the `<li />` element. Adding this classname to the `<li class="alm-item" />` will allow for easier overriding of styles.
405
- I have also added default resposnive styles for users making use of this classname.
406
-
407
- If you notice issues with your list styling, update your Repeater Template and add the `alm-item` classname to the `<li/>`.
408
-
409
- ** OTHER UPDATES **
410
-
411
- - NEW - Adding responsive CSS styling for the default Repeater Template.
412
- - NEW - Added new `button_done_label` parameter that allows for updating the button label after all posts have been loaded.
413
- - NEW - Added custom Ajax Load More shortcode widget to the [Elementor](https://elementor.com/) page builder live edit mode.
414
- - FIX - Fixed issue with placeholder image not be removed after `almDone` callback is fired.
415
- - FIX - Fixed issue in Chrome scroll position issue that was introduced after a recent Chrome update.
416
-
417
- = 5.3.6 - June 29, 2020 =
418
-
419
- - NEW - Added support for Masonry `transition` and [Filters](https://connekthq.com/plugins/ajax-load-more/add-ons/filters/) add-on - previously when using Masonry paging URLs would not update as users load additional pages.
420
- This requires Filters 1.9.3
421
- - FIX - Fixed issue with `Load More` not working after running a [custom filter](https://connekthq.com/plugins/ajax-load-more/docs/public-functions/#filter) when using Masonry `transition` .
422
- - UPDATE - Updated Babel dependancy versions to (hopefully) resolve issues around IE11 `startsWith` and `endsWith` errors.
423
- - UPDATE - Updated uninstall.php script to skip removal of Repeater Templates if the template directory has been changed via the `alm_repeater_path` hook.
424
-
425
- = 5.3.5 - June 12, 2020 =
426
-
427
- - UPDATE - Adding required functionality to support caching with Filters and WooCommerce add-ons.
428
-
429
- = 5.3.4 - May 29, 2020 =
430
-
431
- - NEW - Added required functionality for integrating for [Cache](https://connekthq.com/plugins/ajax-load-more/add-ons/cache/) and [WooCommerce])https://connekthq.com/plugins/ajax-load-more/add-ons/woocommerce/0) add-ons.
432
- - FIX - Fixed issue when using [Next Page](https://connekthq.com/plugins/ajax-load-more/add-ons/next-page/) and [Cache](https://connekthq.com/plugins/ajax-load-more/add-ons/cache/) add-ons together. When a user would hit a paged URL, infinite scroll would disable itself after the 2nd page load.
433
- - FIX - Fixed issue with undefined `alm.localize` variables when Ajax Load More is loaded via Ajax itself.
434
- - NEW - Adding [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/) compatibility.
435
-
436
- = 5.3.3 - May 20, 2020 =
437
-
438
- - FIX - Added fix for when using Masonry and Filters add-on. Filter would become inaccessible after the first first attempt.
439
- - FIX - Added fix for new WooCommerce Add-on and SPA sites throwing an error about undefined variable.
440
- - UPDATE - Updated a11y focus feature for users with `transition_container=false`. Focus will now be set on the newly added items.
441
-
442
- = 5.3.2 - May 19, 2020 =
443
-
444
- - SECURITY FIX - Added security fix for a possible authenticated SQL injection. Attacker needs to be authenticated, with edit_theme_options capability. (Read More)[https://wpvulndb.com/vulnerabilities/10230]
445
- - FIX - Fix for accidental `print_r` left inside a WooCommerce function. Sorry!
446
-
447
- = 5.3.1 - May 1, 2020 =
448
-
449
- - NEW - Added support for creating paged URLs with the SEO add-on and Masonry.
450
- - UPDATE - Improved accessiblity of element focus feature by implementing native browser support (`preventScroll`) for focusing on elements without scrolling after an Ajax load. There is still a slight jump on mobile safari and chrome for iOS. Hopefully these browsers will implement better native support for [preventScroll](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOrForeignElement/focus)
451
- - UPDATE - Removed `Top of Page` global ALM setting.
452
- - FIX - Add accessibility fix for when using Masonry transition. New item is now auto focused after an Ajax load.
453
- - FIX - Fixed issue with Destroy After not working correctly after being filtered.
454
- - FIX - Fixed bug with CTA and Preloaded add-ons. If `cta="false"` was set Ajax Load More may still render the CTA is some cases.
455
- - FIX- Fixed issue with custom Filtering and Masonry not appending items after a filter.
456
 
457
  = 5.3.0 - April 22, 2020 =
458
 
@@ -473,96 +340,6 @@ If you notice issues with your list styling, update your Repeater Template and a
473
  - UPDATE - Updated `.alm-listing` CSS styles to better integrate with WooCommerce.
474
  - UPDATE - Added new Single Post [implementation](https://connekthq.com/plugins/ajax-load-more/add-ons/single-posts/#implementation) technique.
475
 
476
- = 5.1.8 =- March 2, 2020 =
477
-
478
- UPGRADE NOTICE
479
- This release updates the default text for users who implemented [Results Text](https://connekthq.com/plugins/ajax-load-more/examples/results-text/).
480
- [New variables](https://connekthq.com/plugins/ajax-load-more/docs/results-text/) have been added to this feature and the default text has changes from `Displaying {num} of {total}.` to `Viewing {post_count} of {total_posts} results.`.
481
- If you wish to revert this update, you can with the `alm_display_results` [filter](https://connekthq.com/plugins/ajax-load-more/docs/results-text/#filter-hooks).
482
-
483
- - NEW - Added rtl (right to left) support for the default ALM Repeater Template. Add `.rtl` to the container to align items right to left. Use `css_classes="rtl"` in a shortcode or globally via ALM settings.
484
- - NEW - Added `archive="true"` parameter that will automatically pull content on archive pages - taxonomy, category, tag, date (year, month, day) and authors are currently supported. [View Docs](https://connekthq.com/plugins/ajax-load-more/docs/archives/)
485
- - NEW - Added `woocommerce="true"` parameter that will automatically pull product content on woocommerce pages - [docs](https://connekthq.com/plugins/ajax-load-more/docs/woocommerce/) coming soon on this new integration.
486
- - UPDATE - Updated [Results Text](https://connekthq.com/plugins/ajax-load-more/docs/results-text/) to include post_count and total_posts.
487
- - UPDATE - Updated time of filter transitions. In some cases users were reporting issues of double clicks causing no results to be returned.
488
- - FIX - Fixed almComplete callback not firing when zero results are returned in Ajax.
489
- - FIX - Fixed issue with JavaScript not triggering in Repeater Templates used with Paging add-on.
490
-
491
- = 5.1.7.2 - January 25, 2020 =
492
-
493
- - NEW - Added support for percentage values in `scroll_distance`. Users can now trigger Ajax requests based on the percentage height of their browsers. e.g. `scroll_distance="-50%"`
494
- - NEW - Added `alm_query_after_{id}` filter to allow for modification of the returned query.
495
- - NEW - Added new `alm_id` parameter for the `WP_Query` that allows for easier access of query args using `pre_get_post` using the Ajax Load More ID.
496
-
497
- ```
498
- add_action( 'pre_get_posts', 'my_custom_category' );
499
- function my_custom_category( $query ) {
500
- if ( isset($query->query['alm_id']) && $query->query['alm_id'] === 'preloaded' ) {
501
- $query->set( 'category_name', 'design' );
502
- }
503
- }
504
- ```
505
-
506
- - FIX - Added fix for Masonry functionality triggering callbacks to early.
507
- - FIX - Fixed issue with placeholder value in Shortcode Builder.
508
- - UPDATE - Updated the look and feel of the Shortcode Builder.
509
-
510
- = 5.1.7.1 - December 9, 2019 =
511
-
512
- - FIX - Hotfix to remove JavaSscript error/warning message for Single Posts and Next Page add-on users.
513
-
514
- = 5.1.7 - December 6, 2019 =
515
-
516
- - NEW - Added support for multiple instances on ALM Masonry on the same page.
517
- - NEW - Added `CTRL+S` and `CMD+S` support for saving Repeater Templates in the Ajax Load More admin :)
518
- - NEW - Added built-in support for Elementor using the `elementor="true"` shortcode parameter. [View Blog Post](https://connekthq.com/elementor-infinite-scrolling/)
519
- - FIX - Fixed issue where loading `placeholder` would remain on screen if no results were found.
520
- - FIX - Added fix for Safari desktop moving browser window when an instance of ALM is filtered.
521
- - FIX - Fixed error in PHP 7.2.2 in the `plugin_action_links_` filter related to a string array.
522
- - UPDATE - Added functionality to get the current post ID is not specified in the shortcode for Single Posts and Next page add-ons.
523
- - UPDATE - Updated Code Mirror code editor for Repeater Templates.
524
- - UPDATE - Improved admin UI and UX.
525
-
526
- = 5.1.6.1 - November 19, 2019 =
527
-
528
- - NEW - Added new `placeholder` parameter that allows users to display a placeholder image while Ajax content is being loaded. [View Example](https://connekthq.com/plugins/ajax-load-more/examples/placeholder/).
529
- - FIX - Fixed issue with deep linking URLs in the filters add-on not sending user to correct location on the page.
530
- - FIX - Fixed issue with HTML elements in `no_results_text` being rendered as plain text.
531
- - UPDATE - Updated admin CSS to match WordPress 5.3.
532
- - UPDATE - Improved license expiration notices and renewal links.
533
- - UPDATE - Updated `alm_canonical_url` filter. This filter now requires the ALM ID to be added into the filter. `alm_canonical_url_{id}` like the other filter hooks.
534
-
535
- = 5.1.6 - October 22, 2019 =
536
-
537
- - NEW - Added support for ACF Sub Fields in the [ACF extension](https://connekthq.com/plugins/ajax-load-more/extensions/advanced-custom-fields/).
538
- - FIX - Fixed issue with ALM not starting if the global settings were not saved previously 😔.
539
- - UPDATE - Improved the functionality of the [alm_debug](https://connekthq.com/plugins/ajax-load-more/docs/filter-hooks/#alm_debug) filter hook. Query args are now displayed in the browser console under it's own entry.
540
-
541
- = 5.1.5 - October 1, 2019 =
542
-
543
- - NEW - Added new `loading_style` parameter that allows users to override the global button style at the shortcode level.
544
- - NEW - Added mousewheel detection, 'end' and 'page down' keyup listeners for loading posts. In some rare cases users would not be able to load posts unless the user scroll back up the page. This will hopefully solve that issue.
545
- - UPDATE - Improved plugin accessibility and focus states.
546
- - UPDATE - Improved admin UI of license updates and expiration notifications.
547
- - FIX - Fixed issue with `no_results_text` not displaying for some users.
548
- - FIX - Fixed issue with table data not rendering correctly in Ajax results.
549
- - FIX - Added fix for `meta_value` not working if set to `0` in a Meta_Query.
550
- - FIX - Fixed issue with focus not being set on Ajax Load More after a filter method.
551
- - FIX - Fixed posisble issue with ALM continuously loading posts when using SEO/Next Page or Single Posts addon.
552
- - FIX - Fixed issue in ALM admin with filename adding single quotes when exporting a Repeater Template from inside the ALM admin.
553
-
554
- = 5.1.4 - August 15, 2019 =
555
-
556
- - NEW - Added No Results Text(`no_results_text`) parameter to display text/html when zero results are returned in an Ajax Load More query.
557
- - NEW - Added `almOnChange` callback dispatch at the beginning of every Ajax Load More query.
558
- - NEW - Added `almOnLoad` callback dispatched when Ajax Load More initiates.
559
-
560
- = 5.1.3 - August 6, 2019 =
561
-
562
- - FIX - Fixed issue with tag archives when using WPML or Polylang translation plugins.
563
- - FIX - Fixed issue with deep link pagination in the [SEO](https://connekthq.com/plugins/ajax-load-more/add-ons/search-engine-optimization/) and [Filters](https://connekthq.com/plugins/ajax-load-more/add-ons/filters/) addon when adding HTML comments or empty whitespace to the start/end of Repeater Template
564
- - UPDATE - Updated SEO `<noscript/>` markup to include First and Last pagination links for search crawlers.
565
- - UPDATE - Admin UI/UX updates.
566
 
567
  = 5.1.2 - June 24, 2019 =
568
 
@@ -570,18 +347,6 @@ function my_custom_category( $query ) {
570
  - FIX - Fixed issue with element scroll and auto-focus in iOS and Android devices.
571
  - UPDATE - Removing REST API code introduced in 5.1 that caused issues for some users. Please make sure you clear your site cache and any combined JavaScript.
572
 
573
- = 5.1.1 - May 29, 2019 =
574
-
575
- - NEW - Added new `ALM_DISABLE_REPEATER_TEMPLATES` PHP constant that prevents ALM from creating the default Repeater Template or storing template data in your database. To use this feature, add the following to your `wp-config.php` in the root of your site: `define('ALM_DISABLE_REPEATER_TEMPLATES', true);`.
576
- - UPDATE - Removed REST API settings from admin/admin.php and ajax-load-more.php.
577
- - UPDATE - Better error reporting for failed Ajax requests.
578
- - UPDATE - Updated the scroll trigger from the Load More `<button class="button"/>` to the button wrap `<div class="alm-btn-wrap/>`. This is because many users were setting `display: none;` on the button directly and that caused loading issues.
579
- - FIX - FIxed issue with ALM not maintaining past page scroll position when a user hits the browser back button.
580
- - FIX - Security fix for \$querystring URLs in Preloaded content.
581
- - FIX - Fixed issue with nested `.alm-preloaded` div elements with Filters and Preloaded addon.
582
- - FIX - Fixed issue with alm_render function throwing non static function warning message.
583
- - FIX - Fixed JS console warning message abut duplicate `babel/polyfill scripts` for users running other versions of Babel.
584
- - FIX - Fixed `srcSet` issue with paged results in Filters and SEO addon when using Safari browser.
585
 
586
  = 5.1.0.1 - May 7, 2019 =
587
 
@@ -608,58 +373,16 @@ What's New in 5.1.0
608
  - FIX - Fixed issue with `meta_value` shortcode parameter. Passing zero as a value was returning false and not the number.
609
  - FIX - Fixed IE11 issue where filtering was not working with camelCase data attributes.
610
 
611
- = 5.0.2 - April 4, 2019 =
612
-
613
- - NEW - `alm_shortcode_defaults` filter.
614
- - NEW - `Added`alm_settings` filter.
615
- - FIX - Added custom Safari polyfill for srcset img height issue with Masonry and ImagesLoaded.
616
- - FIX - Fixed issue with encoding URLs in HTTP Ajax request.
617
- - FIX - Fix for undefined labels in Shortcode Builder.
618
- - FIX - Fixed issue with HTML comments in repeater templates causing issues with Masonry.
619
-
620
- = 5.0.1 - March 13, 2019 =
621
-
622
- - FIX - Fixed issue with Masonry not working when empty whitespace was present in a Repeater Template.
623
- - FIX - Fixed issue with innerHTML and appendChild not trigger JavaScript present in Repeater Templates.
624
 
625
  = 5.0.0 - March 8, 2019 =
 
626
 
627
- MAJOR UPDATE NOTICE
628
- All users running the Filters, SEO, Paging or Next Page add-ons MUST also update each of these plugins when running this 5.0 update.
629
- Failing to upgrade the add-ons may result in JavaScript errors or broken functionality. It's always best to also backup your site prior to updating.
630
-
631
- If you are using one of the add-ons listed above and you do not see a plugin update notification, please hold off on updating until prompted. Or try installing [Force Plugin Updates Check](https://wordpress.org/plugins/force-plugin-updates-check/) to force the plugin cache to clear.
632
-
633
- Callback Functions
634
- ALL [callback](https://connekthq.com/plugins/ajax-load-more/docs/callback-functions/) functions have been updated to remove legacy jQuery `$.fn()` prototype properties.
635
- Users are encouraged to update their current callbacks to the new methods, but for now can autoload a helper JS file that has these legacy callbacks in place.
636
- To maintain the legacy callbacks, visit Ajax Load More > Settings > Legacy Callbacks to enable the library.
637
-
638
- What's New in 5.0.0
639
-
640
- - NEW - Removing jQuery dependancy. Ajax Load More and all the add-ons plugins have been completely rewritten in Vanilla JS and ES6. 🎉
641
- - NEW - Added [ImagesLoaded](https://imagesloaded.desandro.com/) library in place of WaitForImages for `images_loaded` param.
642
- - NEW - Nested Ajax Load More instances will now auto-trigger on load.
643
- - UPDATE - Updated build process from Gulp to Webpack.
644
- - UPDATE - Added JS polyfills for various IE 11, 10 and 9 issues.
645
- - UPDATE - Added ALM ID to `alm_nextpage_query` for Next page users.
646
- - Fix - Fixed issue with `querySelector` on button element when using nested ALM instances.
647
- - FIX - Removed duplicate `transition_container_classes` when using Paging add-on.
648
- - FIX - Fixed issue with `alm-listing` container causing an error with the Comments addon.
649
- - FIX - Added fix for `destroy_after` not triggered button `.done` class.
650
- - Fix - Various JS other fixes and UX improvements.
651
 
652
  = 4.0 - November 5, 2018 =
653
-
654
- - NEW - Introducing [Ajax Load More Pro](https://connekthq.com/plugins/ajax-load-more/pro/)! Access to every Ajax Load More add-on in a single installation.
655
- - NEW - Adding `category__and` and `tag__and` support for querying categories and tags.
656
- - UPDATE - Adding fix for permission error on repeater template directory by replacing `mkdir()` with WordPress core function `wp_mkdir_p`.
657
- - FIX - Fixed issue with Filters onComplete functions triggering before Ajax results were rendered on the screen.
658
- - FIX - Adding fix for `alm_get_canonical_url` function when getting URLs of child category and tag archives.
659
-
660
  ...
661
 
662
- = 2.0.1 - June 20, 2014 =
 
663
 
664
  - Ajax Load More
665
 
1
  === WordPress Infinite Scroll - Ajax Load More ===
2
  Contributors: dcooney, connekthq
3
+ Donate;WordPressInfiniteScrollAjaxLoadMoreContributorsWordPressInfiniteScrollAjaxLoadMoreContributorsWordPressInfiniteScrollAjaxLoadMoreContributorsWordPressInfiniteScrollAjaxLoadMoreContributors link: https://connekthq.com/donate/
4
  Tags: infinite scroll, load more, scroll, infinite, lazy load, lazy loading, endless scroll, pagination, ajax pagination, ajax, ajax posts, woocommerce, ajax load more, masonry
5
  Requires at least: 4.0
6
+ Tested up to: 5.7
7
+ Stable tag: 5.4.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
18
 
19
  Ajax Load More is compatible for endless scrolling with popular eCommerce plugins such as WooCommerce and Easy Digital Downloads.
20
 
21
+ &rarr; [Get More Information](https://connekthq.com/plugins/ajax-load-more/)
22
 
23
  ### Features
24
 
30
  - **Multisite Compatibility** - Manage repeater templates across all sites in your network.
31
  - **Setting Panel** - Customize your version of Ajax Load More by updating various plugin settings.
32
 
33
+ Check out the **[website](https://connekthq.com/plugins/ajax-load-more/)** for more information on the features and functionality of Ajax Load More.
34
 
35
+ ### What's New
36
 
37
+ - **[Elementor Add-on](https://connekthq.com/plugins/ajax-load-more/add-ons/elementor/)** - Infinite scroll Elementor Posts Widget and WooCommerce widget content with Ajax Load More.
38
+ - **[WooCommerce Add-on](https://connekthq.com/plugins/ajax-load-more/add-ons/woocommerce/)** - Infinite scroll WooCommerce products without updating a line of template code.
39
+ - **[Pro Bundle](https://connekthq.com/plugins/ajax-load-more/pro/)** - Access to all premium Ajax Load More add-ons in a single installation.
40
+ - **[Filters Add-on](https://connekthq.com/plugins/ajax-load-more/add-ons/filters/)** - The Filters add-on provides front-end and admin functionality for building and managing Ajax filters.
 
41
  - **[Advanced Custom Fields](https://connekthq.com/plugins/ajax-load-more/examples/advanced-custom-fields/)** - Compatibility and integration added for infinite scrolling Flexible Content, Gallery, Relationship and Repeater fields for Advanced Custom Fields.
42
  - **[Masonry](https://connekthq.com/plugins/ajax-load-more/examples/masonry/)** - Built-in support and functionality for Masonry layouts.
43
  - **[Progress Bars](https://connekthq.com/plugins/ajax-load-more/examples/progress-bar/)** - Display a Progress Bar load indicator with each Ajax request.
45
 
46
  ### Content Types
47
 
48
+ Ajax Load More can infinite scroll _almost_ any content type WordPress offers - from blog posts to multipage content to WooCommerce products - Ajax Load More can handle it all.
49
 
50
  Check out the examples below:
51
 
57
  - [Comments](http://examples.connekthq.com/alm-comments/example-post/) \*
58
  - [Advanced Custom Fields](https://connekthq.com/plugins/ajax-load-more/examples/advanced-custom-fields/)
59
 
60
+ _*Add-on required_
61
+
62
+ ### Parameters
63
+
64
+ Ajax Load More accepts a variety of query and styling parameters that are passed to WordPress via shortcode or [PHP function](https://connekthq.com/plugins/ajax-load-more/docs/implementation-methods).
65
+
66
+ These parameters allow you to customize the content of your infinite scroll by selecting query parameters such as Post Types, Taxonomies, Categories, Tags, etc… you can also control interactive properties such as button labels, scrolling options and transition styles.
67
+
68
+ &rarr; [View Parameters](https://connekthq.com/plugins/ajax-load-more/docs/shortcode-parameters/)
69
+
70
+ ### Shortcode Builder
71
+
72
+ The Ajax Load More [Shortcode Builder](https://connekthq.com/plugins/ajax-load-more/docs/shortcode-builder/) provides an intuitive and easy-to-use admin interface that transforms complex WordPress queries into manageable shortcodes.
73
+
74
+ &rarr; [View Shortcode Builder](https://connekthq.com/plugins/ajax-load-more/docs/shortcode-builder/)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
 
76
  #### Example Ajax Load More Shortcode
77
 
78
+ [ajax_load_more post_type="post, portfolio" posts_per_page="6" button_label="Load More"]
79
 
80
+ ---
81
+
82
+ #### Examples & Demos
83
 
84
  - **[Default](https://connekthq.com/plugins/ajax-load-more/examples/default/)** - Out of the box functionality and styling.
85
  - **[Advanced Custom Fields](https://connekthq.com/plugins/ajax-load-more/examples/advanced-custom-fields/)** - Infinite scroll Advanced Custom Fields data with Ajax Load More.
104
 
105
  &rarr; [See All Examples](https://connekthq.com/plugins/ajax-load-more/examples/)
106
 
107
+ **Note**: The [Custom Repeater Add-On](;;;AllExampleshttpsAllExampleshttpsAllExampleshttpshttps://connekthq.com/plugins/ajax-load-more/custom-repeaters/) has been installed for use on each of our product demos.
108
 
109
  [youtube https://www.youtube.com/watch?v=EQ57i6dkOew]
110
 
111
  ### Add-ons
112
 
113
+ The following [add-ons](;;;https://connekthq.com/plugins/ajax-load-more/add-ons/) are available to increase the functionality of Ajax Load More.
114
+
115
+ - **[Cache](;;;https://connekthq.com/plugins/ajax-load-more/add-ons/cache/)**: Improve website performance by caching the results of Ajax server requests.
116
+ - **[Call to Actions](;;;https://connekthq.com/plugins/ajax-load-more/add-ons/call-to-actions/)**: Extend Ajax Load More with advertisement and call to action content blocks.
117
+ - **[Comments](;;;https://connekthq.com/plugins/ajax-load-more/add-ons/comments/)**: Load and display WordPress blog comments using the core Ajax Load More infinite scroll functionality.
118
+ - **[Custom Repeaters](;;;https://connekthq.com/plugins/ajax-load-more/add-ons/custom-repeaters/)**: Create, modify and delete repeater templates as you need them with absolutely zero restrictions.
119
+ - **[Elementor](;;;https://connekthq.com/plugins/ajax-load-more/add-ons/elementor/)**: Add infinite scroll or load more to your Elementor Posts and WooCommerce listing widgets with Ajax Load More and the intuitive Elementor Widget Connector.
120
+ - **[Filters](;;;https://connekthq.com/plugins/ajax-load-more/add-ons/filters/)**: Front-end and admin functionality for creating, managing and displaying Ajax Load More filters.
121
+ - **[Layouts](;;;https://connekthq.com/plugins/ajax-load-more/add-ons/layouts/)**: Predefined responsive layouts for Ajax Load More repeater templates.
122
+ - **[Next Page](;;;https://connekthq.com/plugins/ajax-load-more/add-ons/next-page/)**: Infinite scroll multipage WordPress content with Ajax Load More and the Next Page add-on.
123
+ - **[Paging](;;;https://connekthq.com/plugins/ajax-load-more/add-ons/paging/)**: Replace the default lazy load/infinite scroll functionality of Ajax Load More with a numbered navigation system.
124
+ - **[Preloaded](;;;https://connekthq.com/plugins/ajax-load-more/add-ons/preloaded/)**: Load an initial set of posts before sending any Ajax requests to your server.
125
+ - **[SEO](;;;https://connekthq.com/plugins/ajax-load-more/add-ons/search-engine-optimization/)**: Generate unique paging URLs with each Ajax Load More query.
126
+ - **[Single Post](;;;https://connekthq.com/plugins/ajax-load-more/add-ons/single-post/)**: Enable infinite scrolling of single posts on your WordPress post templates.
127
+ - **[Theme Repeaters](;;;https://connekthq.com/plugins/ajax-load-more/add-ons/theme-repeaters/)**: Manage Ajax Load More repeater templates from within your current theme directory.
128
+ - **[Users](;;;https://connekthq.com/plugins/ajax-load-more/add-ons/users/)**: Lazy loading WordPress Users with Ajax Load More.
129
+ - **[WooCommerce](;;;https://connekthq.com/plugins/ajax-load-more/add-ons/woocommerce/)**: Infinite scroll WooCommerce products with Ajax Load More.
130
 
131
  ### Extensions
132
 
133
+ The following free [extensions](;;;https://connekthq.com/plugins/ajax-load-more/extensions/) are available to provide compatibility with popular WordPress plugins and core features.
134
 
135
+ - **[Advanced Custom Fields](;;;https://connekthq.com/plugins/ajax-load-more/extensions/advanced-custom-fields/)**: Display field type data with Ajax Load More.
136
+ - **[Relevanssi](;;;https://connekthq.com/plugins/ajax-load-more/extensions/relevanssi/)**: Display Relevanssi search results with Ajax Load More.
137
+ - **[REST API](;;;https://connekthq.com/plugins/ajax-load-more/extensions/rest-api/)**: Enable compatibility with the WordPress REST API.
138
+ - **[SearchWP](;;;https://connekthq.com/plugins/ajax-load-more/extensions/searchwp/)**: Display SearchWP query results with Ajax Load More.
139
+ - **[Term Query](;;;https://wordpress.org/plugins/ajax-load-more-for-terms/)**: Infinite scroll WordPress Terms.
140
 
141
  ### Callback Functions
142
 
143
+ Ajax Load More dispatches callbacks during various stages in the plugins lifecycle. Callback functions are dispatched directly from core Ajax Load More or one of the various add-ons.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
144
 
145
  &rarr; [View All Callback Functions](https://connekthq.com/plugins/ajax-load-more/docs/callback-functions/)
146
 
154
 
155
  Ajax Load More passes the following PHP **[variables](https://connekthq.com/plugins/ajax-load-more/docs/variables/)** to each repeater template - these template variables can help you style and transform your repeater templates.
156
 
157
+ - **$alm_current** - Returns the current item number in the current Ajax Load More loop and will reset to zero with every 'Load More' action.
158
+ - **$alm_page** - Returns the current page number.
159
+ - **$alm_item** - Returns the current item number within your loop.
160
+ - **$alm_found_posts** - Returns the total number of posts found within the entire WordPress query.
161
 
162
  ### Plugin Links
163
 
206
  = Can I use custom fields in a repeater? =
207
 
208
  Yes, but you will need to define $post at the top of the repeater before requesting your custom fields. Like so:
209
+ global $post;
210
 
211
  = Which browsers are supported? =
212
 
260
 
261
  == Changelog ==
262
 
263
+ = 5.4.4 - March 31, 2021 =
 
264
 
265
+ * FIX - Fixed issue when filtering and updating the Load More button label.
266
+ * FIX - Fixed JS error when using `transition_container="false"` and `transition="false"` in the same shortcode.
267
+ * FIX - Fixed 'Cannot read property postcount of undefined' error that can appear. The underlying still exists and I've been unable to solve it but the error is now surpressed and Ajax Load More will function as expected. A console warning will be rendered in it's place.
268
+ * UPDATE - Updated core ALM button CSS selectors.
269
+ * UPDATE - Admin UI/UX updates to Shortcode Builder and Settings screen.
270
+ * UPDATE - Attempting to fix with license activation script to prevent issues with `wp_remote_post`.
271
+ * UPDATE - Added console warning if Ajax Load More is not able to access meta object in Ajax response.
272
+
273
+ = 5.4.3 - February 11, 2021 =
274
+
275
+ - FIX - Fixed JS error in shortcode builder when a site was missing tags or categories.
276
+ - FIX - Various admin UX/UX updates.
277
+ - UPDATE - Various fixes and updates to support PHP 8+.
278
+ - UPDATE - Added `['X-Requested-With'] = 'XMLHttpRequest'` headers to each Ajax request so the server side functions can determine the type of request.
279
+ - UPDATE - Updated `axios` library to latest version.
280
+ - UPDATE - Varius admin updates.
281
+
282
+ = 5.4.2.1 - January 3, 2021 =
283
+
284
+ - HOTFIX - Fixed issue with non-functioning Shortcode Builder on sites without `tags` or `categories` present.
285
+
286
+ = 5.4.2 - January 3, 2021 =
287
+
288
+ - NEW - Added new `vars` parameter that allows for passing data into Hooks and Repeater Templates.
289
+ Variables can accessed in Repeater Templates by accessing the `$args` array. This will pull in all query and variable parameters into an array.
290
+ `[ajax_load_more vars="var1:The value of var1 value;var2:The value for #2"]`
291
+ `echo $args['alm_vars'];` // Prints an array of key value pairs. See docs for more info.
292
+ - UPDATE - Various admin UI/UX updates and layout improvements.
293
+ - FIX - Fixed issue with Single Posts add-on custom query returning all posts if the query was empty.
294
+ - FIX - Fixed issue with height of Ajax Load More when filtering with Masonry and zero results are returned.
295
+ - FIX - Fixed issue in Shortcode builder caused by updated Select2 JS.
296
 
297
  = 5.4.1 - November 25, 2020 =
298
 
320
  - NEW - Added new `alm_disable_noscript` filter to disable all `<noscript/>` tags generated by ALM. `add_filter( 'alm_disable_noscript', '__return_true' );`
321
  - UPDATE - Updated [Pace.js](https://github.com/CodeByZach/pace) library that is used for progress bar functionality.
322
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
323
 
324
  = 5.3.0 - April 22, 2020 =
325
 
340
  - UPDATE - Updated `.alm-listing` CSS styles to better integrate with WooCommerce.
341
  - UPDATE - Added new Single Post [implementation](https://connekthq.com/plugins/ajax-load-more/add-ons/single-posts/#implementation) technique.
342
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
343
 
344
  = 5.1.2 - June 24, 2019 =
345
 
347
  - FIX - Fixed issue with element scroll and auto-focus in iOS and Android devices.
348
  - UPDATE - Removing REST API code introduced in 5.1 that caused issues for some users. Please make sure you clear your site cache and any combined JavaScript.
349
 
 
 
 
 
 
 
 
 
 
 
 
 
350
 
351
  = 5.1.0.1 - May 7, 2019 =
352
 
373
  - FIX - Fixed issue with `meta_value` shortcode parameter. Passing zero as a value was returning false and not the number.
374
  - FIX - Fixed IE11 issue where filtering was not working with camelCase data attributes.
375
 
 
 
 
 
 
 
 
 
 
 
 
 
 
376
 
377
  = 5.0.0 - March 8, 2019 =
378
+ ...
379
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
380
 
381
  = 4.0 - November 5, 2018 =
 
 
 
 
 
 
 
382
  ...
383
 
384
+
385
+ = 2.0 - June 20, 2014 =
386
 
387
  - Ajax Load More
388
 
admin/admin-functions.php CHANGED
@@ -17,43 +17,66 @@ function alm_is_admin_screen(){
17
  return $return;
18
  }
19
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
 
 
 
 
 
 
 
21
 
22
- /*
23
- * alm_has_addon_shortcodes
24
- * Does user have an add-ons or extensions for shortcode builder installed and activated?
25
- *
26
- * @return boolean
27
- * @since 2.13.0.1
28
- */
29
 
30
- function alm_has_addon_shortcodes(){
31
- $installed = false;
32
- $actions = array(
33
- 'alm_acf_installed',
34
- 'alm_cache_installed',
35
- 'alm_cta_installed',
36
- 'alm_filters_installed',
37
- 'alm_comments_installed',
38
- 'alm_nextpage_installed',
39
- 'alm_preload_installed',
40
- 'alm_paging_installed',
41
- 'alm_prev_post_installed',
42
- 'alm_rest_api_installed',
43
- 'alm_seo_installed',
44
- 'alm_single_post_installed',
45
- 'alm_users_installed'
46
- );
47
-
48
- // Loop actions to determine if add-on/extension is installed
49
- foreach($actions as $action){
50
- if(has_action($action)) $installed = true;
51
- }
52
-
53
- if($installed) {
54
- return true;
55
  } else {
56
- return false;
57
  }
58
  }
59
 
@@ -76,4 +99,4 @@ function alm_has_addon(){
76
  } else {
77
  return false;
78
  }
79
- }
17
  return $return;
18
  }
19
 
20
+ /**
21
+ * Does user have an add-ons for shortcode builder installed and activated?
22
+ *
23
+ * @return boolean
24
+ * @since 2.13.0.1
25
+ */
26
+ function alm_has_addon_shortcodes() {
27
+ $installed = false;
28
+ $actions = array(
29
+ 'alm_cache_installed',
30
+ 'alm_filters_installed',
31
+ 'alm_comments_installed',
32
+ 'alm_nextpage_installed',
33
+ 'alm_preload_installed',
34
+ 'alm_paging_installed',
35
+ 'alm_prev_post_installed',
36
+ 'alm_seo_installed',
37
+ 'alm_single_post_installed',
38
+ 'alm_users_installed'
39
+ );
40
 
41
+ // Loop actions to determine if add-on/extension is installed.
42
+ foreach ( $actions as $action ) {
43
+ if ( has_action( $action ) ) {
44
+ $installed = true;
45
+ }
46
+ }
47
 
48
+ if ( $installed ) {
49
+ return true;
50
+ } else {
51
+ return false;
52
+ }
53
+ }
 
54
 
55
+ /**
56
+ * Does user have an extensions for shortcode builder installed and activated?
57
+ *
58
+ * @return boolean
59
+ * @since 5.4
60
+ */
61
+ function alm_has_extension_shortcodes() {
62
+ $installed = false;
63
+ $actions = array(
64
+ 'alm_acf_installed',
65
+ 'alm_rest_api_installed',
66
+ 'alm_terms_installed'
67
+ );
68
+
69
+ // Loop actions to determine if add-on/extension is installed.
70
+ foreach ( $actions as $action ) {
71
+ if ( has_action( $action ) ) {
72
+ $installed = true;
73
+ }
74
+ }
75
+
76
+ if ( $installed ) {
77
+ return true;
 
 
78
  } else {
79
+ return false;
80
  }
81
  }
82
 
99
  } else {
100
  return false;
101
  }
102
+ }
admin/admin.php CHANGED
@@ -1,4 +1,6 @@
1
  <?php
 
 
2
  add_action( 'init', 'alm_core_update' ); // Core Update.
3
  add_action( 'admin_init', 'alm_admin_hooks' );
4
  add_action( 'wp_ajax_alm_save_repeater', 'alm_save_repeater' ); // Ajax Save Repeater.
@@ -66,24 +68,24 @@ function alm_prefix_plugin_update_message( $data, $response ) {
66
  $status = get_option($addon['status']);
67
 
68
  // Expired
69
- if($status === 'expired'){
70
- printf('<span style="'. $style .'">%s %s</span>',
71
  __( 'Looks like your subscription has expired.', 'ajax-load-more' ),
72
  __( 'Please login to your <a href="https://connekthq.com/account/" target="_blank">Account</a> to renew the license.', 'ajax-load-more' )
73
  );
74
  }
75
 
76
  // Invalid/Inactive
77
- if($status === 'invalid' || $status === 'disabled'){
78
- printf('<span style="'. $style .'">%s %s</span>',
79
  __( 'Looks like your license is inactive and/or invalid.', 'ajax-load-more' ),
80
  __( 'Please activate the <a href="admin.php?page=ajax-load-more-licenses" target="_blank">license</a> or login to your <a href="https://connekthq.com/account/" target="_blank">Account</a> to renew the license.', 'ajax-load-more' )
81
  );
82
  }
83
 
84
  // Deactivated
85
- if($status === 'deactivated'){
86
- printf('<span style="'. $style .'">%s %s</span>',
87
  __( 'Looks like your license has been deactivated.', 'ajax-load-more' ),
88
  __( 'Please activate the <a href="admin.php?page=ajax-load-more-licenses" target="_blank">license</a> to update.', 'ajax-load-more' )
89
  );
@@ -114,11 +116,11 @@ function alm_plugin_row( $plugin_name ) {
114
  $style = 'margin: 5px 20px 6px 40px;';
115
 
116
  // !valid
117
- if($status !== 'valid'){
118
- $name = ($addon['name'] === 'Ajax Load More Pro') ? '<strong>'. $addon['name'] .'</strong>' : '<strong>'. 'Ajax Load More: '. $addon['name'] .'</strong>';
119
 
120
  $row = '</tr><tr class="plugin-update-tr"><td colspan="3" class="plugin-update"><div class="update-message" style="'. $style .'">';
121
- $row .= sprintf(__('%sRegister%s your copy of %s to receive access to automatic upgrades and support. Need a license key? %sPurchase one now%s.'), '<a href="admin.php?page=ajax-load-more-licenses">', '</a>', $name, '<a href="'. $addon['url'] .'" target="blank">', '</a>');
122
  $row .= '</div></td>';
123
  echo $row;
124
  }
@@ -134,7 +136,7 @@ function alm_plugin_row( $plugin_name ) {
134
  */
135
  function alm_render_transient_notification() {
136
  if ( ! has_action( 'alm_pro_installed' ) ) {
137
- $msg = '🔥 Introducing <strong><a href="https://connekthq.com/plugins/ajax-load-more/pro/" target="_blank">Ajax Load More Pro</a></strong> - get instant access to all 13 add-ons in a single installation! &nbsp; <strong><a href="https://connekthq.com/plugins/ajax-load-more/pro/" target="_blank" class="button button-primary">Upgrade Now</a></strong>';
138
  alm_transient_notification( $msg, 'alm_pro_upgrade', 'YEAR_IN_SECONDS', true );
139
  }
140
  }
@@ -144,7 +146,7 @@ function alm_render_transient_notification() {
144
  *
145
  * @since 4.0
146
  */
147
- function alm_transient_notification($message = '', $transient = '', $duration = 'YEAR_IN_SECONDS', $dismissible = true, $type = 'info'){
148
  if(!empty($transient)){
149
  $transient_value = get_transient( $transient );
150
  $dismissible = ($dismissible) ? ' is-dismissible' : '';
@@ -174,147 +176,145 @@ function alm_set_transient(){
174
 
175
  // Check our nonce, if they don't match then bounce!
176
  if (! wp_verify_nonce( $nonce, 'alm_repeater_nonce' ))
177
- die(__('Error - unable to verify nonce, please try again.', 'ajax-load-more'));
178
 
179
  if($transient){
180
  set_transient( $transient, 'true', constant($duration) );
181
- echo __('Transient set successfully', 'ajax-load-more');
182
  }
183
 
184
  wp_die();
185
  }
186
  }
187
 
188
-
189
-
190
-
191
- /*
192
- * alm_repeaters_export
193
- * This function will export a repeater template and force download
194
- *
195
- * @since 3.6
196
- */
197
- function alm_repeaters_export(){
198
- if( isset($_POST["alm_repeaters_export"]) && ( !wp_doing_ajax()) ) {
199
- if (current_user_can( 'edit_theme_options' )) { // Confirm credentials
200
- $file = $_POST["alm_repeaters_export"];
201
- if(file_exists($file)){
202
- header("Content-Description: File Transfer");
203
- header("Content-Type: application/octet-stream");
204
- header('Content-Disposition: attachment; filename="'. basename($file) .'"');
205
- readfile ($file);
206
- exit();
207
- }
208
- }
209
- }
210
  }
211
- add_action( 'admin_init', 'alm_repeaters_export');
212
-
213
 
214
-
215
- /*
216
- * alm_license_activation
217
- * Activate Add-on licenses
218
- *
219
- * @since 2.8.3
220
  */
221
  function alm_license_activation(){
222
 
223
  if (current_user_can( 'edit_theme_options' )){
224
 
225
- $nonce = $_GET["nonce"];
226
- $type = $_GET["type"]; // activate / deactivate
227
- $item_id = $_GET["item"];
228
- $license = $_GET["license"];
229
- $url = $_GET["url"];
230
- $upgrade = $_GET["upgrade"];
231
- $option_status = $_GET["status"];
232
- $option_key = $_GET["key"];
233
 
234
  // Check our nonce, if they don't match then bounce!
235
- if (! wp_verify_nonce( $nonce, 'alm_repeater_nonce' )){
236
- die('Error - unable to verify nonce, please try again.');
237
  }
238
 
239
- // API Action
240
- if($type === 'activate' || $type === 'check'){
241
  $action = 'activate_license';
242
- }else{
243
  $action = 'deactivate_license';
244
  }
245
 
246
- // Create the params for the request
247
  $api_params = array(
248
- 'edd_action'=> $action,
249
- 'license' => $license,
250
- 'item_id' => $item_id, // the ID of our product in EDD
251
- 'url' => home_url()
252
  );
253
 
254
- // Call API
255
- $response = wp_remote_post( ALM_STORE_URL, array( 'body' => $api_params, 'timeout' => 15, 'sslverify' => false ) );
 
 
 
 
 
 
 
 
256
 
257
- // make sure the response came back okay
258
- if ( is_wp_error($response) ){
259
  return false;
260
  }
261
 
262
  $license_data = $response['body'];
263
- $license_data = json_decode($license_data); // decode the license data
264
- $return["success"] = $license_data->success;
 
265
 
266
  $msg = '';
267
- if($type === 'activate'){
268
- $return["license_limit"] = $license_data->license_limit;
269
- $return["expires"] = $license_data->expires;
270
- $return["site_count"] = $license_data->site_count;
271
- $return["activations_left"] = $license_data->activations_left;
272
- $return["item_name"] = $license_data->item_name;
273
-
274
- if($license_data->activations_left === 0 && $license_data->success === false){
275
- $msg = '<strong>You\'re out of available licenses <em>('. $license_data->license_limit .' / '. $license_data->site_count .')</em></strong>. Please visit the <a href="'.$upgrade.'" target="_blank">'.$license_data->item_name.'</a> website to add additional licenses.';
276
  }
277
  }
278
- $return["msg"] = $msg;
279
-
280
 
281
- // If error, make error the status of the license
282
- $license_status = (isset($license_data->error)) ? $license_data->error : $license_data->license;
283
 
284
- $return["license"] = $license_status;
285
 
286
- // Update the options table
287
- update_option( $option_status, $license_status);
288
- update_option( $option_key, $license );
289
 
290
- // Set transient value to store license status
291
  set_transient( "alm_{$item_id}_{$license}", $license_status, 96 * HOUR_IN_SECONDS ); // 4 days
292
 
293
- // Send the response
294
- wp_send_json($return);
295
 
296
  } else {
297
 
298
- echo __('You don\'t belong here.', 'ajax-load-more');
299
 
300
  }
301
  }
302
 
303
-
304
-
305
- /*
306
- * alm_admin_notice_errors
307
- * Invalid license notifications
308
- *
309
- * @since 3.3.0
310
- */
311
  function alm_admin_notice_errors() {
312
 
313
  $screen = get_current_screen();
314
  $alm_is_admin_screen = alm_is_admin_screen();
315
 
316
  // Exit if screen is not dashboard, plugins, settings or ALM admin.
317
- if(!$alm_is_admin_screen && $screen->id !== 'dashboard' && $screen->id !== 'plugins' && $screen->id !== 'options-general' && $screen->id !== 'options'){
318
  return;
319
  }
320
 
@@ -322,7 +322,7 @@ function alm_admin_notice_errors() {
322
  $message = '';
323
  $count = 0;
324
 
325
- if(has_action('alm_pro_installed')){ // Pro
326
  $addons = alm_get_pro_addon();
327
  $message = __( 'You have an invalid or expired <a href="admin.php?page=ajax-load-more"><b>Ajax Load More Pro</b></a> license key - please visit the <a href="admin.php?page=ajax-load-more-licenses">License</a> section to input your key or <a href="https://connekthq.com/plugins/ajax-load-more/pro/" target="_blank">purchase</a> one now.', 'ajax-load-more' );
328
 
@@ -356,353 +356,327 @@ add_action( 'admin_notices', 'alm_admin_notice_errors' );
356
 
357
 
358
 
359
- /*
360
- * alm_license_check
361
- * Check the status of a license
362
- *
363
- * @param {String} $item_id The ID of the product
364
- * @param {String} $license The actual license key
365
- * @param {String} $option_status The status of the license
366
- * @updated 5.1.7
367
- * @since 2.8.3
368
- */
369
- function alm_license_check($item_id = null, $license = null, $option_status = null){
370
 
371
- if(!$item_id || !$license || !$option_status){
372
  return false;
373
  }
374
 
375
- // Get plugin transient for license status
376
- if(get_transient( "alm_{$item_id}_{$license}")){
377
 
378
- // Transient exists
379
- return get_transient( "alm_{$item_id}_{$license}");
380
 
381
  } else {
382
-
383
  $api_params = array(
384
  'edd_action' => 'check_license',
385
- 'license' => $license,
386
- 'item_id' => $item_id,
387
- 'url' => home_url()
 
 
 
 
 
 
 
388
  );
389
- $response = wp_remote_post( ALM_STORE_URL, array( 'body' => $api_params, 'timeout' => 15, 'sslverify' => false ) );
390
  if ( is_wp_error( $response ) ) {
391
  return false;
392
  }
393
 
394
- // Get Data
395
  $license_data = json_decode( wp_remote_retrieve_body( $response ) );
396
 
397
- // Update the options table
398
- update_option( $option_status, $license_data->license);
399
 
400
- // Set transient value to store license status
401
  set_transient( "alm_{$item_id}_{$license}", $license_data->license, 168 * HOUR_IN_SECONDS ); // 7 days
402
 
403
- // Return the status
404
  return $license_data->license;
405
-
406
  }
407
-
408
  }
409
 
 
 
 
 
 
 
 
 
410
 
 
 
 
411
 
412
- /*
413
- * alm_get_layout
414
- * Get layout and return value to repeater template
415
- *
416
- * @since 2.8.3
417
- * @updated 2.14.0
418
- */
419
-
420
- function alm_get_layout(){
421
- if (current_user_can( 'edit_theme_options' )){
422
-
423
- $nonce = sanitize_text_field($_GET["nonce"]);
424
- $type = sanitize_text_field($_GET["type"]);
425
- $custom = sanitize_text_field($_GET["custom"]);
426
-
427
- // Check our nonce, if they don't match then bounce!
428
- if (! wp_verify_nonce( $nonce, 'alm_repeater_nonce' ))
429
- die('Error - unable to verify nonce, please try again.');
430
-
431
- if($type === 'default'){ // Default Layout
432
-
433
- $content = file_get_contents(ALM_PATH.'admin/includes/layout/'.$type.'.php');
434
-
435
- }else{ // Custom Layout
436
 
437
- if($custom == 'true'){
438
- $dir = 'alm_layouts';
 
439
 
440
- if(is_child_theme()){
441
- $path = get_stylesheet_directory().'/'. $dir .'/' .$type;
442
- // if child theme does not have the layout, check the parent theme
443
- if(!file_exists($path)){
444
- $path = get_template_directory().'/'. $dir .'/' .$type;
 
 
 
 
445
  }
 
 
446
  }
447
- else{
448
- $path = get_template_directory().'/'. $dir .'/' .$type;
449
- }
450
- $content = file_get_contents($path);
451
-
452
- }
453
-
454
- // Layouts Add-on
455
- else {
456
- $content = file_get_contents(ALM_LAYOUTS_PATH.'layouts/'.$type.'.php');
457
- }
458
- }
459
-
460
- $return["value"] = $content;
461
- echo json_encode($return);
462
- }else {
463
- echo __('You don\'t belong here.', 'ajax-load-more');
464
- }
465
- die();
466
- }
467
 
 
 
 
 
 
468
 
 
469
 
 
 
470
 
471
- /*
472
- * alm_get_layouts
473
- * Get the list of layout templates
474
- *
475
- * @since 2.8.7
476
- */
477
- function alm_get_layouts(){ // do_action
478
- include( ALM_PATH . 'admin/includes/components/layout-list.php');
479
  }
480
 
 
 
 
 
 
 
 
 
481
 
482
-
483
- /*
484
- * alm_admin_vars
485
- * Create admin variables and ajax nonce
486
- *
487
- * @since 2.0.0
488
- */
489
  function alm_admin_vars() { ?>
490
- <script type='text/javascript'>
491
  /* <![CDATA[ */
492
- var alm_admin_localize = <?php echo json_encode( array(
493
- 'ajax_admin_url' => admin_url( 'admin-ajax.php' ),
494
- 'restapi' => array(
495
- 'url' => function_exists('get_rest_url') ? get_rest_url() : '',
496
- 'namespace' => ALM_REST_NAMESPACE
497
- ),
498
- 'ajax_load_more' => __('Ajax Load More', 'ajax-load-more'),
499
- 'active' => __('Active', 'ajax-load-more'),
500
- 'inactive' => __('Inactive', 'ajax-load-more'),
501
- 'applying_layout' => __('Applying layout', 'ajax-load-more'),
502
- 'template_updated' => __('Template Updated', 'ajax-load-more'),
503
- 'alm_admin_nonce' => wp_create_nonce( 'alm_repeater_nonce' ),
504
- 'select_authors' => __('Select Author(s)', 'ajax-load-more'),
505
- 'select_cats' => __('Select Categories', 'ajax-load-more'),
506
- 'select_tags' => __('Select Tags', 'ajax-load-more'),
507
- 'select' => __('Select', 'ajax-load-more'),
508
- 'jump_to_option' => __('Jump to Option', 'ajax-load-more'),
509
- 'jump_to_template' => __('Jump to Template', 'ajax-load-more'),
510
- 'install_now' => __('Are you sure you want to install this Ajax Load More extension?', 'ajax-load-more'),
511
- 'install_btn' => __('Install Now', 'ajax-load-more'),
512
- 'activate_btn' => __('Activate', 'ajax-load-more'),
513
- 'settings_saving' => '<i class="fa fa-spinner fa-spin" aria-hidden="true"></i> ' . __('Saving Settings', 'ajax-load-more'),
514
- 'settings_saved' => '<i class="fa fa-check" aria-hidden="true"></i> ' . __('Settings Saved Successfully', 'ajax-load-more'),
515
- 'settings_error' => '<i class="fa fa-exclamation-circle" aria-hidden="true"></i> ' . __('Error Saving Settings', 'ajax-load-more'),
516
- 'shortcode_max' => __('There is a maximum of 3 tax_query objects while using the shortcode builder', 'ajax-load-more'),
517
- )); ?>
518
- /* ]]> */
519
- </script>
520
  <?php }
521
 
522
-
523
-
524
- /*
525
- * alm_set_admin_nonce
526
- * Create admin nonce on ALM pages only
527
- *
528
- * @since 2.8.2
529
- */
530
- function alm_set_admin_nonce(){
531
- add_action( 'admin_head', 'alm_admin_vars' ); // Localized Vars
532
  }
533
 
534
-
535
-
536
  /**
537
- * alm_core_update
538
- * Update default repeater on plugin update.
539
- * If plugin versions do not match or the plugin has been updated and we need to update our repeaters.
540
- *
541
- * @since 2.0.5
542
- */
543
-
544
  function alm_core_update() {
545
 
546
- // Exit if Repeater Templates are disbaled
547
- if(defined('ALM_DISABLE_REPEATER_TEMPLATES') && ALM_DISABLE_REPEATER_TEMPLATES){
548
  return false;
549
  }
550
 
551
- // Add 'alm_version' to WP options table if it does not exist
552
- if(!get_option( 'alm_version')){
553
  add_option( 'alm_version', ALM_VERSION );
554
  }
555
 
556
- $alm_installed_ver = get_option( "alm_version" ); // Get value from WP Option tbl
557
- if ( $alm_installed_ver != ALM_VERSION ) {
558
- delete_transient('alm_dismiss_sharing'); // Delete ALM transients
559
- alm_run_update(); // Update repeaters
560
  }
561
  }
562
 
563
-
564
-
565
  /**
566
- * alm_run_update
567
- * Run the update on all 'blogs'
568
- *
569
- * @since 2.7.2
570
- */
571
-
572
- function alm_run_update(){
573
  global $wpdb;
574
 
575
- if ( is_multisite()) {
576
- $blog_ids = $wpdb->get_col( "SELECT blog_id FROM $wpdb->blogs" );
577
- // Loop all blogs and run update routine
578
- foreach ( $blog_ids as $blog_id ) {
579
- switch_to_blog( $blog_id );
580
- alm_update_template_files();
581
- restore_current_blog();
582
- }
583
- } else {
584
- alm_update_template_files();
585
- }
586
 
587
- update_option( "alm_version", ALM_VERSION ); // Update the WP Option tbl with the new version num
588
  }
589
 
590
 
591
  /**
592
- * alm_update_template_files
593
- * Update routine for template files
594
- *
595
- * @since 2.7.2
596
- */
597
-
598
- function alm_update_template_files(){
599
  global $wpdb;
600
  $table_name = $wpdb->prefix . "alm";
601
 
602
  // Get all rows where name is 'default'
603
- $rows = $wpdb->get_results("SELECT * FROM $table_name WHERE name = 'default'");
604
 
605
- if($rows){
606
 
607
- foreach( $rows as $row ) { // Loop $rows
608
 
609
- $data = $wpdb->get_var("SELECT repeaterDefault FROM $table_name WHERE name = 'default'");
610
 
611
- // Create Base Repeater Dir (alm_templates)
612
- $base_dir = AjaxLoadMore::alm_get_repeater_path();
613
- AjaxLoadMore::alm_mkdir($base_dir);
614
 
615
- $file = $base_dir .'/default.php';
616
-
617
- // Wrap is file_exists to avoid updating without cause
618
- if( !file_exists($file) ){
619
- try {
620
- $o = fopen($file, 'w+'); //Open file
621
- if ( !$o ) {
622
- throw new Exception(__('[Ajax Load More] Error opening default repeater template - Please check your file path and ensure your server is configured to allow Ajax Load More to read and write files within the /ajax-load-more/core/repeater directory', 'ajax-load-more'));
623
- }
624
- $w = fwrite($o, $data); //Save the file
625
- if ( !$w ) {
626
- throw new Exception(__('[Ajax Load More] Error updating default repeater template - Please check your file path and ensure your server is configured to allow Ajax Load More to read and write files within the /ajax-load-more/core/repeater directory.', 'ajax-load-more'));
627
- }
628
- fclose($o); // Close file
629
-
630
- } catch ( Exception $e ) { // Display error message in console.
631
- if(!isset($options['_alm_error_notices']) || $options['_alm_error_notices'] == '1'){
632
- echo '<script>console.log("' .$e->getMessage(). '");</script>';
633
- }
634
- }
635
- }
636
 
637
  }
638
  }
639
  }
640
 
641
-
642
-
643
  /**
644
- * alm_admin_menu
645
- * Create Admin Menu
646
  *
647
  * @since 2.0.0
648
  */
649
-
650
  add_action( 'admin_menu', 'alm_admin_menu' );
651
  function alm_admin_menu() {
652
  $icon = 'dashicons-plus-alt';
653
  $icon = ALM_ADMIN_URL . "/img/alm-logo-16x16.svg";
654
 
655
  $alm_page = add_menu_page(
656
- 'Ajax Load More',
657
- 'Ajax Load More',
658
- 'edit_theme_options',
659
- 'ajax-load-more',
660
- 'alm_settings_page',
661
- $icon
662
  );
663
 
664
  $alm_settings_page = add_submenu_page(
665
- 'ajax-load-more',
666
- __('Settings', 'ajax-load-more'),
667
- __('Settings', 'ajax-load-more'),
668
- 'edit_theme_options',
669
- 'ajax-load-more',
670
- 'alm_settings_page'
671
  );
672
 
673
  $alm_template_page = add_submenu_page(
674
- 'ajax-load-more',
675
- __('Repeater Templates', 'ajax-load-more'),
676
- __('Repeater Templates', 'ajax-load-more'),
677
- 'edit_theme_options',
678
- 'ajax-load-more-repeaters',
679
- 'alm_repeater_page'
680
  );
681
 
682
  $alm_shortcode_page = add_submenu_page(
683
- 'ajax-load-more',
684
- __('Shortcode Builder', 'ajax-load-more'),
685
- __('Shortcode Builder', 'ajax-load-more'),
686
- 'edit_theme_options',
687
- 'ajax-load-more-shortcode-builder',
688
- 'alm_shortcode_builder_page'
689
  );
690
 
691
- if(!has_action('alm_pro_installed')){ // Not Pro
692
  $alm_addons_page = add_submenu_page(
693
- 'ajax-load-more',
694
- __('Add-ons', 'ajax-load-more'),
695
- __('Add-ons', 'ajax-load-more'),
696
- 'edit_theme_options',
697
- 'ajax-load-more-add-ons',
698
- 'alm_add_ons_page'
699
  );
700
  }
701
 
702
  $alm_extensions_page = add_submenu_page(
703
  'ajax-load-more',
704
- __('Extensions', 'ajax-load-more'),
705
- __('Extensions', 'ajax-load-more'),
706
  'edit_theme_options',
707
  'ajax-load-more-extensions',
708
  'alm_extensions_page'
@@ -710,14 +684,14 @@ function alm_admin_menu() {
710
 
711
  $alm_help_page = add_submenu_page(
712
  'ajax-load-more',
713
- __('Help', 'ajax-load-more'),
714
- __('Help', 'ajax-load-more'),
715
  'edit_theme_options',
716
  'ajax-load-more-help',
717
  'alm_help_page'
718
  );
719
 
720
- $license_title = (has_action('alm_pro_installed')) ? __('License', 'ajax-load-more') : __('Licenses', 'ajax-load-more');
721
  $alm_licenses_page = add_submenu_page(
722
  'ajax-load-more',
723
  $license_title,
@@ -727,18 +701,16 @@ function alm_admin_menu() {
727
  'alm_licenses_page'
728
  );
729
 
730
-
731
  $before_link = '<span style="display:block; border-top: 1px solid #555; padding-top: 8px;">';
732
  $after_link = '</span>';
733
  $style_link_icon = 'style="opacity: 0.6; font-size: 18px; height: 18px; width: 18px; position: relative; left: -2px;"';
734
 
735
-
736
- // Pro
737
- if(has_action('alm_pro_installed')){
738
  $alm_pro_page = add_submenu_page(
739
  'ajax-load-more',
740
- __('Pro', 'ajax-load-more'),
741
- $before_link . '<span class="dashicons dashicons-plus-alt" '.$style_link_icon.'></span> '. __('Pro', 'ajax-load-more') . $after_link,
742
  'edit_theme_options',
743
  'ajax-load-more-pro',
744
  'alm_pro_page'
@@ -746,21 +718,20 @@ function alm_admin_menu() {
746
  } else {
747
  $alm_go_pro_page = add_submenu_page(
748
  'ajax-load-more',
749
- __('Pro', 'ajax-load-more'),
750
- $before_link . '<span class="dashicons dashicons-plus-alt" '.$style_link_icon.'></span> '. __('Go Pro', 'ajax-load-more') . $after_link,
751
  'edit_theme_options',
752
  'ajax-load-more-go-pro',
753
  'alm_go_pro_page'
754
  );
755
  }
756
 
757
-
758
- // Cache
759
- if(has_action('alm_cache_installed')){
760
  $alm_cache_page = add_submenu_page(
761
  'ajax-load-more',
762
- __('Cache', 'ajax-load-more'),
763
- $before_link . '<span class="dashicons dashicons-admin-generic" '.$style_link_icon.'></span> ' .__('Cache', 'ajax-load-more') . $after_link,
764
  'edit_theme_options',
765
  'ajax-load-more-cache',
766
  'alm_cache_page'
@@ -770,18 +741,17 @@ function alm_admin_menu() {
770
  add_action( 'load-' . $alm_cache_page, 'alm_set_admin_nonce' );
771
  }
772
 
 
 
773
 
774
- // Filters
775
- if(has_action('alm_filters_installed')){
776
-
777
- if(has_action('alm_cache_installed')){
778
  $before_link = '<span style="display:block;">';
779
  }
780
 
781
  $alm_filters_page = add_submenu_page(
782
  'ajax-load-more',
783
- __('Filters', 'ajax-load-more'),
784
- $before_link . '<span class="dashicons dashicons-filter" '.$style_link_icon.'></span> '. __('Filters', 'ajax-load-more') . $after_link,
785
  'edit_theme_options',
786
  'ajax-load-more-filters',
787
  'alm_filters_page'
@@ -791,19 +761,18 @@ function alm_admin_menu() {
791
  add_action( 'load-' . $alm_filters_page, 'alm_set_admin_nonce' );
792
  }
793
 
 
 
794
 
795
- // WooCommerce
796
- if(has_action('alm_woocommerce_installed') && in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option('active_plugins')))){
797
-
798
- if(has_action('alm_cache_installed') || has_action('alm_filters_installed')){
799
  $before_link = '<span style="display:block;">';
800
  }
801
  $wooIcon = '<style>.dashicons.alm-woo:before{font-family: WooCommerce!important; content: "\e03d"; font-size: 16px; margin-top: 2px;}</style>';
802
 
803
  $alm_woocommerce_page = add_submenu_page(
804
  'ajax-load-more',
805
- __('WooCommerce', 'ajax-load-more'),
806
- $before_link . $wooIcon . '<span class="dashicons dashicons-before dashicons-admin-generic alm-woo" '.$style_link_icon.'></span> '. __('WooCommerce', 'ajax-load-more') . $after_link,
807
  'edit_theme_options',
808
  'ajax-load-more-woocommerce',
809
  'alm_woocommerce_page'
@@ -823,7 +792,7 @@ function alm_admin_menu() {
823
  add_action( 'load-' . $alm_help_page, 'alm_set_admin_nonce' );
824
 
825
  // Pro
826
- if(has_action('alm_pro_installed')){
827
  add_action( 'load-' . $alm_pro_page, 'alm_load_admin_js' );
828
  add_action( 'load-' . $alm_pro_page, 'alm_load_pro_admin_js' );
829
  add_action( 'load-' . $alm_pro_page, 'alm_set_admin_nonce' );
@@ -841,171 +810,123 @@ function alm_admin_menu() {
841
 
842
  }
843
 
844
-
845
-
846
-
847
- /*
848
- * alm_settings_page
849
- * Settings page
850
- *
851
- * @since 2.0.0
852
- */
853
-
854
  function alm_settings_page(){
855
- include_once( ALM_PATH . 'admin/views/settings.php');
856
  }
857
 
858
-
859
-
860
- /*
861
- * alm_repeater_page
862
- * Custom Repeaters
863
- *
864
- * @since 2.0.0
865
- */
866
-
867
  function alm_repeater_page(){
868
- include_once( ALM_PATH . 'admin/views/repeater-templates.php');
869
  }
870
 
871
-
872
-
873
- /*
874
- * alm_shortcode_builder_page
875
- * Shortcode Builder
876
- *
877
- * @since 2.0.0
878
- */
879
-
880
  function alm_shortcode_builder_page(){
881
- include_once( ALM_PATH . 'admin/views/shortcode-builder.php');
882
  }
883
 
884
-
885
-
886
- /*
887
- * alm_add_ons_page
888
- * Ajax Load More Add-ons
889
- *
890
- * @since 2.0.0
891
- */
892
-
893
  function alm_add_ons_page(){
894
- include_once( ALM_PATH . 'admin/views/add-ons.php');
895
  }
896
 
897
-
898
-
899
- /*
900
- * alm_extensions_ons_page
901
- * Ajax Load More Add-ons
902
- *
903
- * @since 3.0.0
904
- */
905
-
906
  function alm_extensions_page(){
907
- include_once( ALM_PATH . 'admin/views/extensions.php');
908
  }
909
 
910
-
911
-
912
- /*
913
- * alm_extensions_ons_page
914
- * Ajax Load More Add-ons
915
- *
916
- * @since 4.0.0
917
- */
918
-
919
  function alm_go_pro_page(){
920
- include_once( ALM_PATH . 'admin/views/go-pro.php');
921
  }
922
 
923
-
924
-
925
- /*
926
- * alm_example_page
927
- * Examples Page
928
- *
929
- * @since 2.0.0
930
- */
931
-
932
  function alm_examples_page(){
933
- include_once( ALM_PATH . 'admin/views/examples.php');
934
  }
935
 
936
-
937
-
938
- /*
939
- * alm_help_page
940
- * Help Page (Implementation Inforgraphic)
941
- *
942
- * @since 2.8.7
943
- */
944
 
945
  function alm_help_page(){
946
- include_once( ALM_PATH . 'admin/views/help.php');
947
  }
948
 
949
-
950
-
951
- /*
952
- * alm_licenses_page
953
- * Ajax Load More Licenses
954
- *
955
- * @since 2.7.0
956
- */
957
-
958
  function alm_licenses_page(){
959
- include_once( ALM_PATH . 'admin/views/licenses.php');
960
  }
961
 
962
-
963
- /*
964
- * alm_cache_page
965
- * Cache Add-on page
966
- *
967
- * @since 3.6.0
968
- */
969
-
970
  function alm_pro_page(){
971
- include_once( ALM_PRO_ADMIN_PATH . 'admin/views/pro.php');
972
  }
973
 
974
-
975
- /*
976
- * alm_cache_page
977
- * Cache Add-on page
978
- *
979
- * @since 2.6.0
980
- */
981
-
982
  function alm_cache_page(){
983
- include_once( ALM_CACHE_ADMIN_PATH . 'admin/views/cache.php');
984
  }
985
 
986
-
987
- /*
988
- * alm_filters_page
989
- * Filters Add-on page
990
- *
991
- * @since 3.4.0
992
- */
993
-
994
  function alm_filters_page(){
995
- include_once( ALM_FILTERS_PATH . 'admin/functions.php');
996
- include_once( ALM_FILTERS_PATH . 'admin/views/filters.php');
997
  }
998
 
999
-
1000
- /*
1001
- * alm_woocommerce_page
1002
- * WooCommerce Add-on page
1003
- *
1004
- * @since 5.3.0
1005
- */
1006
-
1007
  function alm_woocommerce_page(){
1008
- include_once( ALM_WOO_PATH. 'admin/views/woocommerce.php');
1009
  }
1010
 
1011
 
@@ -1022,19 +943,19 @@ function alm_load_admin_js(){
1022
  }
1023
  // Pro Scripts
1024
  function alm_load_pro_admin_js(){
1025
- if(class_exists('ALMPro')){
1026
  ALMPro::alm_enqueue_pro_admin_scripts();
1027
  }
1028
  }
1029
  // Cache Scripts
1030
  function alm_load_cache_admin_js(){
1031
- if(class_exists('ALMCache')){
1032
  ALMCache::alm_enqueue_cache_admin_scripts();
1033
  }
1034
  }
1035
  // Filters Scripts
1036
  function alm_load_filters_admin_scripts(){
1037
- if(class_exists('ALMFilters')){
1038
  ALMFilters::alm_enqueue_filters_admin_scripts();
1039
  }
1040
  }
@@ -1059,13 +980,13 @@ function alm_enqueue_admin_scripts(){
1059
 
1060
  // CodeMirror Syntax Highlighting if on Repater Template page
1061
  $screen = get_current_screen();
1062
- if ( in_array( $screen->id, array( 'ajax-load-more_page_ajax-load-more-repeaters') ) ){
1063
 
1064
  //CodeMirror CSS
1065
  wp_enqueue_style( 'alm-codemirror-css', ALM_ADMIN_URL. 'codemirror/lib/codemirror.css' );
1066
 
1067
  //CodeMirror JS
1068
- wp_enqueue_script( 'alm-codemirror', ALM_ADMIN_URL. 'codemirror/lib/codemirror.js');
1069
  wp_enqueue_script( 'alm-codemirror-matchbrackets', ALM_ADMIN_URL. 'codemirror/addon/edit/matchbrackets.js' );
1070
  wp_enqueue_script( 'alm-codemirror-htmlmixed', ALM_ADMIN_URL. 'codemirror/mode/htmlmixed/htmlmixed.js' );
1071
  wp_enqueue_script( 'alm-codemirror-xml', ALM_ADMIN_URL. 'codemirror/mode/xml/xml.js' );
@@ -1105,7 +1026,7 @@ function alm_save_repeater(){
1105
  $nonce = $_POST["nonce"];
1106
 
1107
  if (! wp_verify_nonce( $nonce, 'alm_repeater_nonce' )){ // Check our nonce
1108
- die('Error - unable to verify nonce, please try again.');
1109
  }
1110
 
1111
  // Get _POST Vars
@@ -1116,7 +1037,7 @@ function alm_save_repeater(){
1116
 
1117
 
1118
  // Default
1119
- if($t === 'default'){
1120
 
1121
  // Create Base Repeater Dir (alm-templates)
1122
  $base_dir = AjaxLoadMore::alm_get_repeater_path();
@@ -1127,10 +1048,10 @@ function alm_save_repeater(){
1127
  }
1128
 
1129
  // Custom Repeaters v2
1130
- elseif($t === 'unlimited'){
1131
 
1132
  // Custom Repeaters 2.5+
1133
- if(ALM_UNLIMITED_VERSION >= '2.5'){
1134
 
1135
  // Get path to repeater dir (alm_templates)
1136
  $base_dir = AjaxLoadMore::alm_get_repeater_path();
@@ -1155,19 +1076,19 @@ function alm_save_repeater(){
1155
 
1156
  // Write Repeater Template
1157
  try {
1158
- $o = fopen($f, 'w+'); //Open file
1159
  if ( !$o ) {
1160
- throw new Exception(__('[Ajax Load More] Unable to open repeater template - '.$f.' - Please check your file path and ensure your server is configured to allow Ajax Load More to read and write files.', 'ajax-load-more'));
1161
  }
1162
  $w = fwrite($o, $c); //Save the file
1163
  if ( !$w ) {
1164
- throw new Exception(__('[Ajax Load More] Error saving repeater template - '.$f.' - Please check your file path and ensure your server is configured to allow Ajax Load More to read and write files.', 'ajax-load-more'));
1165
  }
1166
  fclose($o); //now close it
1167
 
1168
  } catch ( Exception $e ) {
1169
  // Display error message in console.
1170
- if(!isset($options['_alm_error_notices']) || $options['_alm_error_notices'] == '1'){
1171
  echo '<script>console.log("' .$e->getMessage(). '");</script>';
1172
  }
1173
  }
@@ -1175,33 +1096,33 @@ function alm_save_repeater(){
1175
 
1176
  // Save to database
1177
 
1178
- if($t === 'default') {
1179
- $data_update = array('repeaterDefault' => "$c", 'pluginVersion' => ALM_VERSION);
1180
- $data_where = array('name' => "default");
1181
  }
1182
- elseif($t === 'unlimited'){ // Custom Repeaters v2
1183
  $table_name = $wpdb->prefix . "alm_unlimited";
1184
- $data_update = array('repeaterDefault' => "$c", 'alias' => "$a", 'pluginVersion' => ALM_UNLIMITED_VERSION);
1185
- $data_where = array('name' => $n);
1186
  }
1187
  else{ // Custom Repeaters
1188
- $data_update = array('repeaterDefault' => "$c", 'alias' => "$a", 'pluginVersion' => ALM_REPEATER_VERSION);
1189
- $data_where = array('name' => $n);
1190
  }
1191
 
1192
  $wpdb->update($table_name , $data_update, $data_where);
1193
 
1194
  //Our results
1195
  if($w){
1196
- echo '<span class="saved">'. __('Template Saved Successfully', 'ajax-load-more') .'</span>';
1197
  } else {
1198
- echo '<span class="saved-error"><b>'. __('Error Writing File', 'ajax-load-more') .'</b></span><br/>'. __('Something went wrong and the data could not be saved.', 'ajax-load-more');
1199
  }
1200
 
1201
  wp_die();
1202
 
1203
  }else {
1204
- echo __('You don\'t belong here.', 'ajax-load-more');
1205
  }
1206
  }
1207
 
@@ -1223,7 +1144,7 @@ function alm_update_repeater(){
1223
  $nonce = $_POST["nonce"];
1224
  // Check our nonce
1225
  if (! wp_verify_nonce( $nonce, 'alm_repeater_nonce' )){ // Check our nonce
1226
- die('Error - unable to verify nonce, please try again.');
1227
  }
1228
 
1229
  // Get _POST Vars
@@ -1235,8 +1156,8 @@ function alm_update_repeater(){
1235
  global $wpdb;
1236
  $table_name = $wpdb->prefix . "alm";
1237
 
1238
- if($t === 'default') $n = 'default';
1239
- if($t === 'unlimited') $table_name = $wpdb->prefix . "alm_unlimited";
1240
 
1241
  //$the_repeater = $wpdb->get_var("SELECT repeaterDefault FROM " . $table_name . " WHERE name = '$n'");
1242
  $the_repeater = $wpdb->get_var("SELECT repeaterDefault FROM " . $table_name . " WHERE name = '".esc_sql($n)."'");
@@ -1247,7 +1168,7 @@ function alm_update_repeater(){
1247
 
1248
  } else {
1249
 
1250
- echo __('You don\'t belong here.', 'ajax-load-more');
1251
 
1252
  }
1253
  }
@@ -1268,7 +1189,7 @@ function alm_get_tax_terms(){
1268
  $nonce = $_GET["nonce"];
1269
  // Check our nonce, if they don't match then bounce!
1270
  if (! wp_verify_nonce( $nonce, 'alm_repeater_nonce' ))
1271
- die('Get Bounced!');
1272
 
1273
  $taxonomy = (isset($_GET['taxonomy'])) ? $_GET['taxonomy'] : '';
1274
  $index = (isset($_GET['index'])) ? $_GET['index'] : '1';
@@ -1297,12 +1218,10 @@ function alm_get_tax_terms(){
1297
  }
1298
 
1299
  } else {
1300
- echo __('You don\'t belong here.', 'ajax-load-more');
1301
  }
1302
  }
1303
 
1304
-
1305
-
1306
  /*
1307
  * alm_layouts_dismiss
1308
  * Dismiss Add Layouts CTA in repeater templates.
@@ -1315,17 +1234,15 @@ function alm_layouts_dismiss(){
1315
 
1316
  // Check our nonce, if they don't match then bounce!
1317
  if (! wp_verify_nonce( $nonce, 'alm_repeater_nonce' ))
1318
- die('Error - unable to verify nonce, please try again.');
1319
 
1320
- update_option('alm_layouts_dismiss', 'true');
1321
  echo 'Success';
1322
 
1323
  die();
1324
  }
1325
  }
1326
 
1327
-
1328
-
1329
  /*
1330
  * alm_dismiss_sharing
1331
  * Dismiss sharing widget on plugin settings page.
@@ -1340,7 +1257,7 @@ function alm_dismiss_sharing(){
1340
 
1341
  // Check our nonce, if they don't match then bounce!
1342
  if (! wp_verify_nonce( $nonce, 'alm_repeater_nonce' ))
1343
- die(__('Error - unable to verify nonce, please try again.', 'ajax-load-more'));
1344
 
1345
  set_transient( 'alm_dismiss_sharing', 'true', YEAR_IN_SECONDS );
1346
  echo 'ALM sharing dismissed successfully.';
@@ -1349,8 +1266,6 @@ function alm_dismiss_sharing(){
1349
  }
1350
  }
1351
 
1352
-
1353
-
1354
  /*
1355
  * alm_filter_admin_footer_text
1356
  * Filter the WP Admin footer text only on ALM pages
@@ -1366,13 +1281,11 @@ function alm_filter_admin_footer_text( $text ) {
1366
 
1367
  echo '<strong>Ajax Load More</strong> is made with <span style="color: #e25555;">♥</span> by <a href="https://connekthq.com" target="_blank" style="font-weight: 500;">Connekt</a> | <a href="https://wordpress.org/support/plugin/ajax-load-more/reviews/" target="_blank" style="font-weight: 500;">Leave a Review</a> | <a href="https://connekthq.com/plugins/ajax-load-more/support/" target="_blank" style="font-weight: 500;">Get Support</a>';
1368
 
1369
- if(!has_action('alm_pro_installed')){
1370
  echo ' | <a href="https://connekthq.com/plugins/ajax-load-more/pro/" target="_blank" style="font-weight: 500;">Go Pro</a>';
1371
  }
1372
  }
1373
 
1374
-
1375
-
1376
  /*
1377
  * admin_init
1378
  * Initiate the plugin, create our setting variables.
@@ -1380,7 +1293,7 @@ function alm_filter_admin_footer_text( $text ) {
1380
  * @since 2.0.0
1381
  */
1382
 
1383
- add_action( 'admin_init', 'alm_admin_init');
1384
  function alm_admin_init(){
1385
 
1386
  register_setting(
@@ -1405,7 +1318,7 @@ function alm_admin_init(){
1405
 
1406
  add_settings_field( // Container type
1407
  '_alm_container_type',
1408
- __('Container Type', 'ajax-load-more' ),
1409
  'alm_container_type_callback',
1410
  'ajax-load-more',
1411
  'alm_general_settings'
@@ -1413,7 +1326,7 @@ function alm_admin_init(){
1413
 
1414
  add_settings_field( // Classnames
1415
  '_alm_classname',
1416
- __('Container Classes', 'ajax-load-more' ),
1417
  'alm_class_callback',
1418
  'ajax-load-more',
1419
  'alm_general_settings'
@@ -1421,7 +1334,7 @@ function alm_admin_init(){
1421
 
1422
  add_settings_field( // Disbale CSS
1423
  '_alm_disable_css',
1424
- __('Disable CSS', 'ajax-load-more' ),
1425
  'alm_disable_css_callback',
1426
  'ajax-load-more',
1427
  'alm_general_settings'
@@ -1429,7 +1342,7 @@ function alm_admin_init(){
1429
 
1430
  add_settings_field( // Btn color
1431
  '_alm_btn_color',
1432
- __('Button/Loading Style', 'ajax-load-more' ),
1433
  'alm_btn_color_callback',
1434
  'ajax-load-more',
1435
  'alm_general_settings'
@@ -1437,7 +1350,7 @@ function alm_admin_init(){
1437
 
1438
  add_settings_field( // Inline CSS
1439
  '_alm_inline_css',
1440
- __('Load CSS Inline', 'ajax-load-more' ),
1441
  'alm_inline_css_callback',
1442
  'ajax-load-more',
1443
  'alm_general_settings'
@@ -1445,7 +1358,7 @@ function alm_admin_init(){
1445
 
1446
  add_settings_field( // Button classes
1447
  '_alm_btn_classname',
1448
- __('Button Classes', 'ajax-load-more' ),
1449
  'alm_btn_class_callback',
1450
  'ajax-load-more',
1451
  'alm_general_settings'
@@ -1454,7 +1367,7 @@ function alm_admin_init(){
1454
  /*
1455
  add_settings_field( // Disable REST API
1456
  '_alm_use_rest_api',
1457
- __('REST API', 'ajax-load-more' ),
1458
  '_alm_use_rest_api_callback',
1459
  'ajax-load-more',
1460
  'alm_general_settings'
@@ -1463,182 +1376,138 @@ function alm_admin_init(){
1463
 
1464
  add_settings_field( // Legacy Callbacks
1465
  '_alm_legacy_callbacks',
1466
- __('Legacy Callbacks', 'ajax-load-more' ),
1467
  '_alm_legacy_callbacks_callback',
1468
  'ajax-load-more',
1469
  'alm_general_settings'
1470
  );
1471
 
1472
- /*
1473
- add_settings_field( // Scroll to top on load
1474
- '_alm_scroll_top',
1475
- __('Top of Page', 'ajax-load-more' ),
1476
- '_alm_scroll_top_callback',
1477
- 'ajax-load-more',
1478
- 'alm_general_settings'
1479
- );
1480
- */
1481
-
1482
- add_settings_field( // Uninstall
1483
- '_alm_uninstall',
1484
- __('Delete on Uninstall', 'ajax-load-more' ),
1485
- '_alm_uninstall_callback',
1486
- 'ajax-load-more',
1487
- 'alm_general_settings'
1488
- );
1489
-
1490
  add_settings_field( // Load dynamic queries
1491
  '_alm_disable_dynamic',
1492
- __('Dynamic Content', 'ajax-load-more' ),
1493
  'alm_disable_dynamic_callback',
1494
  'ajax-load-more',
1495
  'alm_admin_settings'
1496
  );
1497
 
1498
- // add_settings_field( // Hide btn
1499
- // '_alm_hide_btn',
1500
- // __('Editor Button', 'ajax-load-more' ),
1501
- // 'alm_hide_btn_callback',
1502
- // 'ajax-load-more',
1503
- // 'alm_admin_settings'
1504
- // );
1505
-
1506
  add_settings_field( // Display error notices
1507
  '_alm_error_notices',
1508
- __('Error Notices', 'ajax-load-more' ),
1509
  '_alm_error_notices_callback',
1510
  'ajax-load-more',
1511
  'alm_admin_settings'
1512
  );
1513
 
 
 
 
 
 
 
 
1514
 
1515
  // CACHE
1516
- if(has_action('alm_cache_settings')){
1517
- do_action('alm_cache_settings');
1518
  }
1519
 
1520
-
1521
  // CUSTOM REPEATERS
1522
- if(has_action('alm_unlimited_settings')){
1523
- do_action('alm_unlimited_settings');
1524
  }
1525
 
1526
-
1527
  // FILTERS
1528
- if(has_action('alm_filters_settings')){
1529
- do_action('alm_filters_settings');
1530
  }
1531
 
1532
-
1533
  // LAYOUTS
1534
- if(has_action('alm_layouts_settings')){
1535
- do_action('alm_layouts_settings');
1536
  }
1537
 
1538
-
1539
  // PAGINATION
1540
- if(has_action('alm_paging_settings')){
1541
- do_action('alm_paging_settings');
1542
  }
1543
 
1544
-
1545
  // PRELOADED
1546
- if(has_action('alm_preloaded_settings')){
1547
- do_action('alm_preloaded_settings');
1548
  }
1549
 
1550
-
1551
  // REST API
1552
- if(has_action('alm_rest_api_settings')){
1553
- do_action('alm_rest_api_settings');
1554
  }
1555
 
1556
-
1557
  // SEO
1558
- if(has_action('alm_seo_settings')){
1559
- do_action('alm_seo_settings');
1560
  }
1561
 
1562
-
1563
  // SINGLE POST
1564
- if(has_action('alm_prev_post_settings')){
1565
- do_action('alm_prev_post_settings');
1566
- }
1567
-
1568
 
1569
  // TABS
1570
- if(has_action('alm_tabs_settings')){
1571
- do_action('alm_tabs_settings');
1572
  }
1573
 
1574
-
1575
-
1576
  // THEME REPEATERS
1577
- if(has_action('alm_theme_repeaters_settings')){
1578
- do_action('alm_theme_repeaters_settings');
1579
- }
1580
- }
1581
-
1582
-
1583
 
1584
- /*
1585
- * alm_general_settings_callback
1586
- * Some general settings text
1587
- *
1588
- * @since 2.0.0
1589
- */
1590
 
 
 
 
 
 
1591
  function alm_general_settings_callback() {
1592
- echo '<p>' . __('Customize the user experience of Ajax Load More by updating the fields below.', 'ajax-load-more') . '</p>';
1593
  }
1594
 
1595
-
1596
-
1597
- /*
1598
- * alm_admin_settings_callback
1599
- * Some general admin settings text
1600
- *
1601
- * @since 2.0.0
1602
- */
1603
-
1604
  function alm_admin_settings_callback() {
1605
- echo '<p>' . __('The following settings affect the WordPress admin area only.', 'ajax-load-more') . '</p>';
1606
  }
1607
 
1608
-
1609
- /*
1610
- * alm_sanitize_settings
1611
- * Sanitize our form fields
1612
- *
1613
- * @since 2.0.0
1614
- */
1615
-
1616
  function alm_sanitize_settings( $input ) {
1617
  return $input;
1618
  }
1619
 
1620
-
1621
-
1622
- /*
1623
- * alm_disable_css_callback
1624
- * Diabale Ajax Load More CSS.
1625
- *
1626
- * @since 2.0.0
1627
- */
1628
-
1629
  function alm_disable_css_callback(){
1630
  $options = get_option( 'alm_settings' );
1631
  if(!isset($options['_alm_disable_css']))
1632
  $options['_alm_disable_css'] = '0';
1633
 
1634
  $html = '<input type="hidden" name="alm_settings[_alm_disable_css]" value="0" />';
1635
- $html .= '<input type="checkbox" id="alm_disable_css_input" name="alm_settings[_alm_disable_css]" value="1"'. (($options['_alm_disable_css']) ? ' checked="checked"' : '') .' />';
1636
- $html .= '<label for="alm_disable_css_input">'.__('I want to use my own CSS styles.', 'ajax-load-more').'<br/><span style="display:block;"><i class="fa fa-file-text-o"></i> &nbsp;<a href="'.ALM_URL.'/core/dist/css/ajax-load-more.css" target="blank">'.__('View Ajax Load More CSS', 'ajax-load-more').'</a></span></label>';
1637
 
1638
  echo $html;
1639
  }
1640
 
1641
- /*
1642
  * Disbale the ALM shortcode button in the WordPress content editor.
1643
  *
1644
  * @since 2.2.1
@@ -1649,61 +1518,51 @@ function alm_hide_btn_callback(){
1649
  if(!isset($options['_alm_hide_btn']))
1650
  $options['_alm_hide_btn'] = '0';
1651
 
1652
- $html = '<input type="hidden" name="alm_settings[_alm_hide_btn]" value="0" /><input type="checkbox" id="alm_hide_btn" name="alm_settings[_alm_hide_btn]" value="1"'. (($options['_alm_hide_btn']) ? ' checked="checked"' : '') .' />';
1653
- $html .= '<label for="alm_hide_btn">'.__('Hide shortcode button in WYSIWYG editor.', 'ajax-load-more').'</label>';
1654
 
1655
  echo $html;
1656
  }
1657
 
1658
-
1659
- /*
1660
- * _alm_error_notices_callback
1661
- * Display admin error notices in browser console.
1662
- *
1663
- * @since 2.7.2
1664
- */
1665
-
1666
  function _alm_error_notices_callback(){
1667
  $options = get_option( 'alm_settings' );
1668
  if(!isset($options['_alm_error_notices']))
1669
  $options['_alm_error_notices'] = '1';
1670
 
1671
  $html = '<input type="hidden" name="alm_settings[_alm_error_notices]" value="0" />';
1672
- $html .= '<input type="checkbox" name="alm_settings[_alm_error_notices]" id="_alm_error_notices" value="1"'. (($options['_alm_error_notices']) ? ' checked="checked"' : '') .' />';
1673
- $html .= '<label for="_alm_error_notices">'.__('Display error messaging regarding repeater template updates in the browser console.', 'ajax-load-more').'</label>';
1674
 
1675
  echo $html;
1676
  }
1677
 
1678
-
1679
-
1680
- /*
1681
- * alm_disable_dynamic_callback
1682
- * Disable the dynamic population of categories, tags and authors
1683
- *
1684
- * @since 2.6.0
1685
- */
1686
-
1687
  function alm_disable_dynamic_callback(){
1688
  $options = get_option( 'alm_settings' );
1689
  if(!isset($options['_alm_disable_dynamic']))
1690
  $options['_alm_disable_dynamic'] = '0';
1691
 
1692
  $html = '<input type="hidden" name="alm_settings[_alm_disable_dynamic]" value="0" />';
1693
- $html .= '<input type="checkbox" name="alm_settings[_alm_disable_dynamic]" id="_alm_disable_dynamic" value="1"'. (($options['_alm_disable_dynamic']) ? ' checked="checked"' : '') .' />';
1694
- $html .= '<label for="_alm_disable_dynamic">'.__('Disable dynamic population of categories, tags and authors in the Shortcode Builder.<span style="display:block">Recommended if you have a large number of categories, tags and/or authors.', 'ajax-load-more').'</label>';
1695
 
1696
  echo $html;
1697
  }
1698
 
1699
-
1700
- /*
1701
- * alm_container_type_callback
1702
- * The type of container ul or div
1703
- *
1704
- * @since 2.0.0
1705
- */
1706
-
1707
  function alm_container_type_callback() {
1708
 
1709
  $options = get_option( 'alm_settings' );
@@ -1712,43 +1571,36 @@ function alm_container_type_callback() {
1712
  $options['_alm_container_type'] = '1';
1713
 
1714
  $html = '<input type="radio" id="_alm_container_type_one" name="alm_settings[_alm_container_type]" value="1"' . checked( 1, $options['_alm_container_type'], false ) . '/>';
1715
- $html .= '<label for="_alm_container_type_one">&lt;ul&gt; <span style="padding-top: 2px;">&lt;!-- '.__('Ajax Posts Here', 'ajax-load-more').' --&gt;</span> &lt;/ul&gt;</label><br/>';
1716
 
1717
  $html .= '<input type="radio" id="_alm_container_type_two" name="alm_settings[_alm_container_type]" value="2"' . checked( 2, $options['_alm_container_type'], false ) . '/>';
1718
- $html .= '<label for="_alm_container_type_two">&lt;div&gt; <span style="padding-top: 2px;">&lt;!-- '.__('Ajax Posts Here', 'ajax-load-more').' --&gt;</span> &lt;/div&gt;</label>';
1719
 
1720
- $html .= '<label style="cursor: default !important"><span style="display:block">'.__('You can modify the container type when building a shortcode.', 'ajax-load-more').'</span></label>';
1721
 
1722
  echo $html;
1723
 
1724
  }
1725
 
1726
-
1727
- /*
1728
- * alm_class_callback
1729
- * Add classes to the Ajax Load More wrapper
1730
- *
1731
- * @since 2.0.0
1732
- */
1733
-
1734
  function alm_class_callback(){
1735
  $options = get_option( 'alm_settings' );
1736
 
1737
- $html = '<label for="alm_settings[_alm_classname]">'.__('Add custom classes to the <i>.alm-listing</i> container - classes are applied globally and will appear with every instance of Ajax Load More. <span style="display:block">You can also add classes when building a shortcode.</span>', 'ajax-load-more').'</label><br/>';
1738
  $html .= '<input type="text" id="alm_settings[_alm_classname]" name="alm_settings[_alm_classname]" value="'.$options['_alm_classname'].'" placeholder="posts listing etc..." /> ';
1739
 
1740
  echo $html;
1741
  }
1742
 
1743
-
1744
-
1745
- /*
1746
- * alm_btn_color_callback
1747
- * Get button color
1748
- *
1749
- * @since 2.0.0
1750
- */
1751
-
1752
  function alm_btn_color_callback() {
1753
 
1754
  $options = get_option( 'alm_settings' );
@@ -1758,65 +1610,65 @@ function alm_btn_color_callback() {
1758
  $options['_alm_btn_color'] = '0';
1759
 
1760
  $selected0 = '';
1761
- if($type == 'default') $selected0 = 'selected="selected"';
1762
 
1763
  $selected1 = '';
1764
- if($type == 'blue') $selected1 = 'selected="selected"';
1765
 
1766
  $selected2 = '';
1767
- if($type == 'green') $selected2 = 'selected="selected"';
1768
 
1769
  $selected3 = '';
1770
- if($type == 'red') $selected3 = 'selected="selected"';
1771
 
1772
  $selected4 = '';
1773
- if($type == 'purple') $selected4 = 'selected="selected"';
1774
 
1775
  $selected5 = '';
1776
- if($type == 'grey') $selected5 = 'selected="selected"';
1777
 
1778
  $selected6 = '';
1779
- if($type == 'white') $selected6 = 'selected="selected"';
1780
 
1781
  $selected13 = '';
1782
- if($type == 'light-grey') $selected13 = 'selected="selected"';
1783
 
1784
  $selected7 = '';
1785
- if($type == 'infinite classic') $selected7 = 'selected="selected"';
1786
 
1787
  $selected8 = '';
1788
- if($type == 'infinite skype') $selected8 = 'selected="selected"';
1789
 
1790
  $selected9 = '';
1791
- if($type == 'infinite ring') $selected9 = 'selected="selected"';
1792
 
1793
  $selected10 = '';
1794
- if($type == 'infinite fading-blocks') $selected10 = 'selected="selected"';
1795
 
1796
  $selected11 = '';
1797
- if($type == 'infinite fading-circles') $selected11 = 'selected="selected"';
1798
 
1799
  $selected12 = '';
1800
- if($type == 'infinite chasing-arrows') $selected12 = 'selected="selected"';
1801
 
1802
- $html = '<label for="alm_settings_btn_color">'.__('Select an Ajax loading style - you can choose between a <strong>Button</strong> or <strong>Infinite Scroll</strong>', 'ajax-load-more');
1803
  $html .= '.<br/><span style="display:block">Selecting an Infinite Scroll style will remove the click interaction and load content on scroll <u>only</u>.</span>';
1804
  $html .= '</label>';
1805
  $html .= '<select id="alm_settings_btn_color" name="alm_settings[_alm_btn_color]">';
1806
 
1807
- $html .= '<optgroup label="'. __('Button Style (Dark)', 'ajax-load-more') .'">';
1808
  $html .= '<option value="default" class="alm-color default" ' . $selected0 .'>Default</option>';
1809
  $html .= '<option value="blue" class="alm-color blue" ' . $selected1 .'>Blue</option>';
1810
  $html .= '<option value="green" class="alm-color green" ' . $selected2 .'>Green</option>';
1811
  $html .= '<option value="purple" class="alm-color purple" ' . $selected4 .'>Purple</option>';
1812
  $html .= '<option value="grey" class="alm-color grey" ' . $selected5 .'>Grey</option>';
1813
  $html .= '</optgroup>';
1814
- $html .= '<optgroup label="'. __('Button Style (Light)', 'ajax-load-more') .'">';
1815
  $html .= '<option value="white" class="alm-color white" ' . $selected6 .'>White</option>';
1816
  $html .= '<option value="light-grey" class="alm-color light-grey" ' . $selected13 .'>Light Grey</option>';
1817
  $html .= '</optgroup>';
1818
 
1819
- $html .= '<optgroup label="'. __('Infinite Scroll (No Button)', 'ajax-load-more') .'">';
1820
  $html .= '<option value="infinite classic" class="infinite classic" ' . $selected7 .'>Classic</option>';
1821
  $html .= '<option value="infinite skype" class="infinite skype" ' . $selected8 .'>Skype</option>';
1822
  $html .= '<option value="infinite ring" class="infinite ring" ' . $selected9 .'>Circle Fill</option>';
@@ -1828,56 +1680,48 @@ function alm_btn_color_callback() {
1828
  $html .= '</select>';
1829
 
1830
  // Set loading class for infinite type only
1831
- $loadingClass = (strpos($type, 'infinite') !== false) ? ' loading' : '';
1832
-
1833
- $html .= '<div class="clear"></div>';
1834
- $html .= '<div class="alm-btn-wrap">';
1835
- $html .= '<div class="ajax-load-more-wrap core '.$type.'">';
1836
- $html .='<span>'.__('Click to Preview', 'ajax-load-more') .'</span>';
1837
- $html .= '<button style="cursor: pointer;" type="button" class="alm-load-more-btn'. $loadingClass .'" id="test-alm-button">'.apply_filters('alm_button_label', __('Load More', 'ajax-load-more')).'</button>';
1838
 
1839
- $html .= '</div>';
 
 
 
 
 
1840
  $html .= '</div>';
1841
 
1842
  echo $html;
1843
  }
1844
 
1845
-
1846
-
1847
- /*
1848
- * alm_inline_css_callback
1849
- * Load CSS Inline vs the head
1850
- *
1851
- * @since 3.3.1
1852
- */
1853
  function alm_inline_css_callback(){
1854
  $options = get_option( 'alm_settings' );
1855
  if(!isset($options['_alm_inline_css']))
1856
  $options['_alm_inline_css'] = '1';
1857
 
1858
  $html = '<input type="hidden" name="alm_settings[_alm_inline_css]" value="0" />';
1859
- $html .= '<input type="checkbox" name="alm_settings[_alm_inline_css]" id="alm_inline_css" value="1"'. (($options['_alm_inline_css']) ? ' checked="checked"' : '') .' />';
1860
- $html .= '<label for="alm_inline_css">'.__('Improve site performance by loading Ajax Load More CSS inline.', 'ajax-load-more').'</label>';
1861
 
1862
  echo $html;
1863
  }
1864
 
1865
-
1866
-
1867
- /*
1868
- * alm_btn_class_callback
1869
- * Add classes to the Ajax Load More button
1870
- *
1871
- * @since 2.4.1
1872
- */
1873
-
1874
  function alm_btn_class_callback(){
1875
  $options = get_option( 'alm_settings' );
1876
 
1877
  if(!isset($options['_alm_btn_classname']))
1878
  $options['_alm_btn_classname'] = '';
1879
 
1880
- $html = '<label for="alm_settings[_alm_btn_classname]">'.__('Add classes to your <strong>Load More</strong> button.', 'ajax-load-more').'</label>';
1881
  $html .= '<input type="text" class="btn-classes" id="alm_settings[_alm_btn_classname]" name="alm_settings[_alm_btn_classname]" value="'.$options['_alm_btn_classname'].'" placeholder="button rounded listing etc..." /> ';
1882
 
1883
  echo $html;
@@ -1885,18 +1729,18 @@ function alm_btn_class_callback(){
1885
  <script>
1886
 
1887
  // Check if Disable CSS === true
1888
- if(jQuery('input#alm_disable_css_input').is(":checked")){
1889
- jQuery('select#alm_settings_btn_color').parent().parent().hide(); // Hide button color
1890
- jQuery('input#alm_inline_css').parent().parent().hide(); // Hide inline css
1891
  }
1892
- jQuery('input#alm_disable_css_input').change(function() {
1893
  var el = jQuery(this);
1894
  if(el.is(":checked")) {
1895
- el.parent().parent('tr').next('tr').hide(); // Hide button color
1896
- el.parent().parent('tr').next('tr').next('tr').hide(); // Hide inline css
1897
  }else{
1898
- el.parent().parent('tr').next('tr').show(); // show button color
1899
- el.parent().parent('tr').next('tr').next('tr').show(); // show inline css
1900
  }
1901
  });
1902
 
@@ -1904,87 +1748,71 @@ function alm_btn_class_callback(){
1904
  <?php
1905
  }
1906
 
1907
-
1908
-
1909
- /*
1910
- * _alm_scroll_top_callback
1911
- * Move window to top of screen on page load
1912
- *
1913
- * @since 2.6.0
1914
  */
1915
-
1916
  function _alm_scroll_top_callback(){
1917
  $options = get_option( 'alm_settings' );
1918
  if(!isset($options['_alm_scroll_top']))
1919
  $options['_alm_scroll_top'] = '0';
1920
 
1921
  $html = '<input type="hidden" name="alm_settings[_alm_scroll_top]" value="0" />';
1922
- $html .= '<input type="checkbox" name="alm_settings[_alm_scroll_top]" id="_alm_scroll_top" value="1"'. (($options['_alm_scroll_top']) ? ' checked="checked"' : '') .' />';
1923
  $html .= '<label for="_alm_scroll_top">';
1924
- $html .= __('On initial page load, move the user\'s browser window to the top of the screen.', 'ajax-load-more');
1925
- $html .= '<span style="display:block">'. __('This may help prevent the loading of unnecessary posts.', 'ajax-load-more') .'</span>';
1926
  $html .= '</label>';
1927
 
1928
  echo $html;
1929
  }
1930
 
1931
-
1932
-
1933
- /*
1934
- * _alm_use_rest_api
1935
- * Disable REST API in favor of admin-ajax.php
1936
- *
1937
- * @since 5.1
1938
- */
1939
-
1940
  function _alm_use_rest_api_callback(){
1941
  $options = get_option( 'alm_settings' );
1942
  if(!isset($options['_alm_use_rest_api']))
1943
  $options['_alm_use_rest_api'] = '0';
1944
 
1945
  $html = '<input type="hidden" name="alm_settings[_alm_use_rest_api]" value="0" />';
1946
- $html .= '<input type="checkbox" name="alm_settings[_alm_use_rest_api]" id="_alm_use_rest_api" value="1"'. (($options['_alm_use_rest_api']) ? ' checked="checked"' : '') .' />';
1947
  $html .= '<label for="_alm_use_rest_api">';
1948
- $html .= __('Disable REST API.', 'ajax-load-more');
1949
- $html .= '<span style="display:block">'. __('Use `admin-ajax.php` in favour of the WordPress REST API for all Ajax requests.', 'ajax-load-more') .'</span>';
1950
  $html .= '</label>';
1951
 
1952
  echo $html;
1953
  }
1954
 
1955
-
1956
-
1957
- /*
1958
- * _alm_legacy_callbacks_callback
1959
- * Load legacy callback actions
1960
- *
1961
- * @since 5.0.0
1962
- */
1963
-
1964
  function _alm_legacy_callbacks_callback(){
1965
  $options = get_option( 'alm_settings' );
1966
  if(!isset($options['_alm_legacy_callbacks']))
1967
  $options['_alm_legacy_callbacks'] = '0';
1968
 
1969
  $html = '<input type="hidden" name="alm_settings[_alm_legacy_callbacks]" value="0" />';
1970
- $html .= '<input type="checkbox" name="alm_settings[_alm_legacy_callbacks]" id="_alm_legacy_callbacks" value="1"'. (($options['_alm_legacy_callbacks']) ? ' checked="checked"' : '') .' />';
1971
  $html .= '<label for="_alm_legacy_callbacks">';
1972
- $html .= __('Load legacy JavaScript callback functions.', 'ajax-load-more');
1973
- $html .= '<span style="display:block">'. __('Ajax Load More <a href="https://connekthq.com/plugins/ajax-load-more/docs/callback-functions/" target="_blank">callback functions</a> were updated in 5.0. Users who were using callbacks prior to ALM 5.0 can load this helper library to maintain compatibility.', 'ajax-load-more') .'</span>';
1974
  $html .= '</label>';
1975
 
1976
  echo $html;
1977
  }
1978
 
1979
-
1980
-
1981
- /*
1982
- * _alm_uninstall_callback
1983
- * Remove all ALM data on uninstall
1984
- *
1985
- * @since 4.1.0
1986
- */
1987
-
1988
  function _alm_uninstall_callback(){
1989
  $options = get_option( 'alm_settings' );
1990
 
@@ -1992,11 +1820,10 @@ function _alm_uninstall_callback(){
1992
  $options['_alm_uninstall'] = '0';
1993
 
1994
  $html = '<input type="hidden" name="alm_settings[_alm_uninstall]" value="0" />';
1995
- $html .= '<input type="checkbox" name="alm_settings[_alm_uninstall]" id="_alm_uninstall" value="1"'. (($options['_alm_uninstall']) ? ' checked="checked"' : '') .' />';
1996
- $html .= '<label for="_alm_uninstall">'.__('Check this box if Ajax Load More should remove all of its data* when the plugin is deleted.', 'ajax-load-more');
1997
- $html .= '<span style="display:block"><em>'. __('* Database Tables, Options and Repeater Templates', 'ajax-load-more') .'</em></span>';
1998
  $html .= '</label>';
1999
 
2000
  echo $html;
2001
  }
2002
-
1
  <?php
2
+ // @codingStandardsIgnoreStart
3
+
4
  add_action( 'init', 'alm_core_update' ); // Core Update.
5
  add_action( 'admin_init', 'alm_admin_hooks' );
6
  add_action( 'wp_ajax_alm_save_repeater', 'alm_save_repeater' ); // Ajax Save Repeater.
68
  $status = get_option($addon['status']);
69
 
70
  // Expired
71
+ if($status === 'expired' ){
72
+ printf( '<span style="'. $style .'">%s %s</span>',
73
  __( 'Looks like your subscription has expired.', 'ajax-load-more' ),
74
  __( 'Please login to your <a href="https://connekthq.com/account/" target="_blank">Account</a> to renew the license.', 'ajax-load-more' )
75
  );
76
  }
77
 
78
  // Invalid/Inactive
79
+ if($status === 'invalid' || $status === 'disabled' ){
80
+ printf( '<span style="'. $style .'">%s %s</span>',
81
  __( 'Looks like your license is inactive and/or invalid.', 'ajax-load-more' ),
82
  __( 'Please activate the <a href="admin.php?page=ajax-load-more-licenses" target="_blank">license</a> or login to your <a href="https://connekthq.com/account/" target="_blank">Account</a> to renew the license.', 'ajax-load-more' )
83
  );
84
  }
85
 
86
  // Deactivated
87
+ if($status === 'deactivated' ){
88
+ printf( '<span style="'. $style .'">%s %s</span>',
89
  __( 'Looks like your license has been deactivated.', 'ajax-load-more' ),
90
  __( 'Please activate the <a href="admin.php?page=ajax-load-more-licenses" target="_blank">license</a> to update.', 'ajax-load-more' )
91
  );
116
  $style = 'margin: 5px 20px 6px 40px;';
117
 
118
  // !valid
119
+ if($status !== 'valid' ){
120
+ $name = ($addon['name'] === 'Ajax Load More Pro' ) ? '<strong>'. $addon['name'] .'</strong>' : '<strong>'. 'Ajax Load More: '. $addon['name'] .'</strong>';
121
 
122
  $row = '</tr><tr class="plugin-update-tr"><td colspan="3" class="plugin-update"><div class="update-message" style="'. $style .'">';
123
+ $row .= sprintf(__( '%sRegister%s your copy of %s to receive access to automatic upgrades and support. Need a license key? %sPurchase one now%s.' ), '<a href="admin.php?page=ajax-load-more-licenses">', '</a>', $name, '<a href="'. $addon['url'] .'" target="blank">', '</a>' );
124
  $row .= '</div></td>';
125
  echo $row;
126
  }
136
  */
137
  function alm_render_transient_notification() {
138
  if ( ! has_action( 'alm_pro_installed' ) ) {
139
+ $msg = '🔥&nbsp; <strong><a href="https://connekthq.com/plugins/ajax-load-more/pro/" target="_blank">Ajax Load More Pro</a></strong>: Get instant access to all 15 add-ons in a single installation! &nbsp; <strong><a href="https://connekthq.com/plugins/ajax-load-more/pro/" target="_blank" class="button button-primary">Upgrade Now</a></strong>';
140
  alm_transient_notification( $msg, 'alm_pro_upgrade', 'YEAR_IN_SECONDS', true );
141
  }
142
  }
146
  *
147
  * @since 4.0
148
  */
149
+ function alm_transient_notification($message = '', $transient = '', $duration = 'YEAR_IN_SECONDS', $dismissible = true, $type = 'info' ){
150
  if(!empty($transient)){
151
  $transient_value = get_transient( $transient );
152
  $dismissible = ($dismissible) ? ' is-dismissible' : '';
176
 
177
  // Check our nonce, if they don't match then bounce!
178
  if (! wp_verify_nonce( $nonce, 'alm_repeater_nonce' ))
179
+ die(__( 'Error - unable to verify nonce, please try again.', 'ajax-load-more' ));
180
 
181
  if($transient){
182
  set_transient( $transient, 'true', constant($duration) );
183
+ echo __( 'Transient set successfully', 'ajax-load-more' );
184
  }
185
 
186
  wp_die();
187
  }
188
  }
189
 
190
+ /**
191
+ * This function will export a repeater template and force download.
192
+ *
193
+ * @since 3.6
194
+ */
195
+ function alm_repeaters_export() {
196
+ if ( isset( $_POST['alm_repeaters_export'] ) && ( ! wp_doing_ajax() ) ) {
197
+ if ( current_user_can( 'edit_theme_options' ) ) {
198
+ $file = $_POST['alm_repeaters_export'];
199
+ if ( file_exists( $file ) ) {
200
+ header( 'Content-Description: File Transfer' );
201
+ header( 'Content-Type: application/octet-stream' );
202
+ header( 'Content-Disposition: attachment; filename="' . basename( $file ) . '"' );
203
+ readfile( $file );
204
+ exit();
205
+ }
206
+ }
207
+ }
 
 
 
 
208
  }
209
+ add_action( 'admin_init', 'alm_repeaters_export' );
 
210
 
211
+ /**
212
+ * Activate Add-on licenses.
213
+ *
214
+ * @since 2.8.3
 
 
215
  */
216
  function alm_license_activation(){
217
 
218
  if (current_user_can( 'edit_theme_options' )){
219
 
220
+ $nonce = $_GET['nonce'];
221
+ $type = $_GET['type']; // activate / deactivate.
222
+ $item_id = $_GET['item'];
223
+ $license = $_GET['license'];
224
+ $url = $_GET['url'];
225
+ $upgrade = $_GET['upgrade'];
226
+ $status = $_GET['status'];
227
+ $key = $_GET['key'];
228
 
229
  // Check our nonce, if they don't match then bounce!
230
+ if ( ! wp_verify_nonce( $nonce, 'alm_repeater_nonce' ) ) {
231
+ die( 'Error - unable to verify nonce, please try again.' );
232
  }
233
 
234
+ // API Action.
235
+ if ( 'activate' === $type || 'check' === $type ) {
236
  $action = 'activate_license';
237
+ } else {
238
  $action = 'deactivate_license';
239
  }
240
 
241
+ // Create the params for the request.
242
  $api_params = array(
243
+ 'edd_action' => $action,
244
+ 'license' => $license,
245
+ 'item_id' => $item_id, // the ID of our product in EDD.
246
+ 'url' => home_url()
247
  );
248
 
249
+ // Call API.
250
+ $response = wp_remote_post( ALM_STORE_URL,
251
+ array(
252
+ 'method' => 'POST',
253
+ 'body' => $api_params,
254
+ 'timeout' => 45
255
+ //'sslverify' => true,
256
+ //'blocking' => true
257
+ )
258
+ );
259
 
260
+ // make sure the response came back okay.
261
+ if ( is_wp_error( $response ) ) {
262
  return false;
263
  }
264
 
265
  $license_data = $response['body'];
266
+ $license_data = json_decode( $license_data ); // decode the license data.
267
+
268
+ $return['success'] = $license_data->success;
269
 
270
  $msg = '';
271
+ if ( 'activate' === $type ) {
272
+ $return['license_limit'] = $license_data->license_limit;
273
+ $return['expires'] = $license_data->expires;
274
+ $return['site_count'] = $license_data->site_count;
275
+ $return['activations_left'] = $license_data->activations_left;
276
+ $return['item_name'] = $license_data->item_name;
277
+
278
+ if ( $license_data->activations_left === 0 && $license_data->success === false ) {
279
+ $msg = '<strong>You\'re out of available licenses <em>( '. $license_data->license_limit . ' / ' . $license_data->site_count . ' )</em></strong>. Please visit the <a href="' . $upgrade . '" target="_blank">' . $license_data->item_name . '</a> website to add additional licenses.';
280
  }
281
  }
282
+ $return['msg'] = $msg;
 
283
 
284
+ // If error, make error the status of the license.
285
+ $license_status = ( isset( $license_data->error )) ? $license_data->error : $license_data->license;
286
 
287
+ $return['license'] = $license_status;
288
 
289
+ // Update the options table.
290
+ update_option( $status, $license_status );
291
+ update_option( $key, $license );
292
 
293
+ // Set transient value to store license status.
294
  set_transient( "alm_{$item_id}_{$license}", $license_status, 96 * HOUR_IN_SECONDS ); // 4 days
295
 
296
+ // Send the response.
297
+ wp_send_json( $return );
298
 
299
  } else {
300
 
301
+ echo __( 'You don\'t belong here.', 'ajax-load-more' );
302
 
303
  }
304
  }
305
 
306
+ /**
307
+ * Invalid license notifications.
308
+ *
309
+ * @since 3.3.0
310
+ */
 
 
 
311
  function alm_admin_notice_errors() {
312
 
313
  $screen = get_current_screen();
314
  $alm_is_admin_screen = alm_is_admin_screen();
315
 
316
  // Exit if screen is not dashboard, plugins, settings or ALM admin.
317
+ if(!$alm_is_admin_screen && $screen->id !== 'dashboard' && $screen->id !== 'plugins' && $screen->id !== 'options-general' && $screen->id !== 'options' ){
318
  return;
319
  }
320
 
322
  $message = '';
323
  $count = 0;
324
 
325
+ if(has_action( 'alm_pro_installed' )){ // Pro
326
  $addons = alm_get_pro_addon();
327
  $message = __( 'You have an invalid or expired <a href="admin.php?page=ajax-load-more"><b>Ajax Load More Pro</b></a> license key - please visit the <a href="admin.php?page=ajax-load-more-licenses">License</a> section to input your key or <a href="https://connekthq.com/plugins/ajax-load-more/pro/" target="_blank">purchase</a> one now.', 'ajax-load-more' );
328
 
356
 
357
 
358
 
359
+ /**
360
+ * Check the status of a license.
361
+ *
362
+ * @param {String} $item_id The ID of the product
363
+ * @param {String} $license The actual license key
364
+ * @param {String} $status The status of the license
365
+ * @updated 5.1.7
366
+ * @since 2.8.3
367
+ */
368
+ function alm_license_check( $item_id = null, $license = null, $status = null ) {
 
369
 
370
+ if ( ! $item_id || ! $license || ! $status ) {
371
  return false;
372
  }
373
 
374
+ // Get plugin transient for license status.
375
+ if ( get_transient( "alm_{$item_id}_{$license}" ) ) {
376
 
377
+ // Transient exists.
378
+ return get_transient( "alm_{$item_id}_{$license}" );
379
 
380
  } else {
 
381
  $api_params = array(
382
  'edd_action' => 'check_license',
383
+ 'license' => $license,
384
+ 'item_id' => $item_id,
385
+ 'url' => home_url()
386
+ );
387
+ $response = wp_remote_post( ALM_STORE_URL,
388
+ array(
389
+ 'body' => $api_params,
390
+ 'timeout' => 15,
391
+ 'sslverify' => false
392
+ )
393
  );
 
394
  if ( is_wp_error( $response ) ) {
395
  return false;
396
  }
397
 
398
+ // Get Data.
399
  $license_data = json_decode( wp_remote_retrieve_body( $response ) );
400
 
401
+ // Update the options table.
402
+ update_option( $status, $license_data->license );
403
 
404
+ // Set transient value to store license status.
405
  set_transient( "alm_{$item_id}_{$license}", $license_data->license, 168 * HOUR_IN_SECONDS ); // 7 days
406
 
407
+ // Return the status.
408
  return $license_data->license;
 
409
  }
 
410
  }
411
 
412
+ /**
413
+ * Get layout and return value to repeater template.
414
+ *
415
+ * @since 2.8.3
416
+ * @updated 2.14.0
417
+ */
418
+ function alm_get_layout() {
419
+ if ( current_user_can( 'edit_theme_options' ) ) {
420
 
421
+ $nonce = sanitize_text_field( $_GET["nonce"] );
422
+ $type = sanitize_text_field( $_GET["type"] );
423
+ $custom = sanitize_text_field( $_GET["custom"] ) ;
424
 
425
+ // Check our nonce, if they don't match then bounce!
426
+ if ( ! wp_verify_nonce( $nonce, 'alm_repeater_nonce' ) ) {
427
+ wp_die( 'Error - unable to verify nonce, please try again.' );
428
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
429
 
430
+ if ( $type === 'default' ) {
431
+ // Default Layout.
432
+ $content = file_get_contents( ALM_PATH . 'admin/includes/layout/' . $type.'.php' );
433
 
434
+ } else {
435
+ // Custom Layout.
436
+ if ( $custom == 'true' ) {
437
+ $dir = 'alm_layouts';
438
+ if ( is_child_theme() ) {
439
+ $path = get_stylesheet_directory() . '/' . $dir . '/' . $type;
440
+ // if child theme does not have the layout, check the parent theme.
441
+ if ( ! file_exists( $path ) ) {
442
+ $path = get_template_directory() . '/' . $dir . '/' . $type;
443
  }
444
+ } else {
445
+ $path = get_template_directory() . '/' . $dir . '/' . $type;
446
  }
447
+ $content = file_get_contents( $path );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
448
 
449
+ }
450
+ // Layouts Add-on.
451
+ else {
452
+ $content = file_get_contents( ALM_LAYOUTS_PATH . 'layouts/' . $type . '.php' );
453
+ }
454
 
455
+ }
456
 
457
+ $return['value'] = $content;
458
+ echo json_encode( $return );
459
 
460
+ } else {
461
+ echo __( 'You don\'t belong here.', 'ajax-load-more' );
462
+ }
463
+ wp_die();
 
 
 
 
464
  }
465
 
466
+ /**
467
+ * Get the list of layout templates.
468
+ *
469
+ * @since 2.8.7
470
+ */
471
+ function alm_get_layouts() {
472
+ include ALM_PATH . 'admin/includes/components/layout-list.php';
473
+ }
474
 
475
+ /**
476
+ * Create admin variables and ajax nonce.
477
+ *
478
+ * @since 2.0.0
479
+ */
 
 
480
  function alm_admin_vars() { ?>
481
+ <script type='text/javascript'>
482
  /* <![CDATA[ */
483
+ var alm_admin_localize = <?php echo json_encode( array(
484
+ 'ajax_admin_url' => admin_url( 'admin-ajax.php' ),
485
+ 'ajax_load_more' => __( 'Ajax Load More', 'ajax-load-more' ),
486
+ 'active' => __( 'Active', 'ajax-load-more' ),
487
+ 'inactive' => __( 'Inactive', 'ajax-load-more' ),
488
+ 'applying_layout' => __( 'Applying layout', 'ajax-load-more' ),
489
+ 'template_updated' => __( 'Template Updated', 'ajax-load-more' ),
490
+ 'alm_admin_nonce' => wp_create_nonce( 'alm_repeater_nonce' ),
491
+ 'select_authors' => __( 'Select Author(s)', 'ajax-load-more' ),
492
+ 'select_cats' => __( 'Select Categories', 'ajax-load-more' ),
493
+ 'select_tags' => __( 'Select Tags', 'ajax-load-more' ),
494
+ 'select' => __( 'Select', 'ajax-load-more' ),
495
+ 'jump_to_option' => __( 'Jump to Option', 'ajax-load-more' ),
496
+ 'jump_to_template' => __( 'Jump to Template', 'ajax-load-more' ),
497
+ 'install_now' => __( 'Are you sure you want to install this Ajax Load More extension?', 'ajax-load-more' ),
498
+ 'install_btn' => __( 'Install Now', 'ajax-load-more' ),
499
+ 'activate_btn' => __( 'Activate', 'ajax-load-more' ),
500
+ 'settings_saving' => '<i class="fa fa-spinner fa-spin" aria-hidden="true"></i> ' . __( 'Saving Settings', 'ajax-load-more' ),
501
+ 'settings_saved' => '<i class="fa fa-check" aria-hidden="true"></i> ' . __( 'Settings Saved Successfully', 'ajax-load-more' ),
502
+ 'settings_error' => '<i class="fa fa-exclamation-circle" aria-hidden="true"></i> ' . __( 'Error Saving Settings', 'ajax-load-more' ),
503
+ 'shortcode_max' => __( 'There is a maximum of 3 tax_query objects while using the shortcode builder', 'ajax-load-more' ),
504
+ 'restapi' => array(
505
+ 'url' => function_exists( 'get_rest_url' ) ? get_rest_url() : '',
506
+ 'namespace' => ALM_REST_NAMESPACE
507
+ ),
508
+ )); ?>
509
+ /* ]]> */
510
+ </script>
511
  <?php }
512
 
513
+ /**
514
+ * Create admin nonce on ALM pages only.
515
+ *
516
+ * @since 2.8.2
517
+ */
518
+ function alm_set_admin_nonce() {
519
+ add_action( 'admin_head', 'alm_admin_vars' );
 
 
 
520
  }
521
 
 
 
522
  /**
523
+ * Update default repeater on plugin update.
524
+ * If plugin versions do not match or the plugin has been updated and we need to update our repeaters.
525
+ *
526
+ * @since 2.0.5
527
+ */
 
 
528
  function alm_core_update() {
529
 
530
+ // Exit if Repeater Templates are disbaled.
531
+ if ( defined( 'ALM_DISABLE_REPEATER_TEMPLATES' ) && ALM_DISABLE_REPEATER_TEMPLATES ) {
532
  return false;
533
  }
534
 
535
+ // Add 'alm_version' to WP options table if it does not exist.
536
+ if(!get_option( 'alm_version' )){
537
  add_option( 'alm_version', ALM_VERSION );
538
  }
539
 
540
+ $alm_installed_ver = get_option( "alm_version" );
541
+ if ( $alm_installed_ver !== ALM_VERSION ) {
542
+ delete_transient( 'alm_dismiss_sharing' ); // Delete ALM transients.
543
+ alm_run_update(); // Update repeaters.
544
  }
545
  }
546
 
 
 
547
  /**
548
+ * Run the update on all 'blogs'.
549
+ *
550
+ * @since 2.7.2
551
+ */
552
+ function alm_run_update() {
 
 
553
  global $wpdb;
554
 
555
+ if ( is_multisite() ) {
556
+ $blog_ids = $wpdb->get_col( "SELECT blog_id FROM $wpdb->blogs" );
557
+ // Loop all blogs and run update routine
558
+ foreach ( $blog_ids as $blog_id ) {
559
+ switch_to_blog( $blog_id );
560
+ alm_update_template_files();
561
+ restore_current_blog();
562
+ }
563
+ } else {
564
+ alm_update_template_files();
565
+ }
566
 
567
+ update_option( "alm_version", ALM_VERSION ); // Update the WP Option tbl with the new version num.
568
  }
569
 
570
 
571
  /**
572
+ * Update routine for template files.
573
+ *
574
+ * @since 2.7.2
575
+ */
576
+ function alm_update_template_files() {
 
 
577
  global $wpdb;
578
  $table_name = $wpdb->prefix . "alm";
579
 
580
  // Get all rows where name is 'default'
581
+ $rows = $wpdb->get_results( "SELECT * FROM $table_name WHERE name = 'default'" );
582
 
583
+ if ( $rows ) {
584
 
585
+ foreach( $rows as $row ) {
586
 
587
+ $data = $wpdb->get_var( "SELECT repeaterDefault FROM $table_name WHERE name = 'default'" );
588
 
589
+ // Create Base Repeater Dir (alm_templates).
590
+ $base_dir = AjaxLoadMore::alm_get_repeater_path();
591
+ AjaxLoadMore::alm_mkdir( $base_dir );
592
 
593
+ $file = $base_dir . '/default.php';
594
+
595
+ // Wrap is file_exists to avoid updating without cause.
596
+ if ( ! file_exists( $file ) ) {
597
+ try {
598
+ $o = fopen($file, 'w+' ); //Open file.
599
+ if ( ! $o ) {
600
+ throw new Exception( __( '[Ajax Load More] Error opening default repeater template - Please check your file path and ensure your server is configured to allow Ajax Load More to read and write files within the /ajax-load-more/core/repeater directory', 'ajax-load-more' ) );
601
+ }
602
+ $w = fwrite( $o, $data ); //Save the file.
603
+ if ( ! $w ) {
604
+ throw new Exception( __( '[Ajax Load More] Error updating default repeater template - Please check your file path and ensure your server is configured to allow Ajax Load More to read and write files within the /ajax-load-more/core/repeater directory.', 'ajax-load-more' ) );
605
+ }
606
+ fclose($o); // Close file.
607
+
608
+ } catch ( Exception $e ) { // Display error message in console.
609
+ if(!isset($options['_alm_error_notices']) || $options['_alm_error_notices'] == '1' ){
610
+ echo '<script>console.log("' .$e->getMessage(). '");</script>';
611
+ }
612
+ }
613
+ }
614
 
615
  }
616
  }
617
  }
618
 
 
 
619
  /**
620
+ * Create Admin Menu.
 
621
  *
622
  * @since 2.0.0
623
  */
 
624
  add_action( 'admin_menu', 'alm_admin_menu' );
625
  function alm_admin_menu() {
626
  $icon = 'dashicons-plus-alt';
627
  $icon = ALM_ADMIN_URL . "/img/alm-logo-16x16.svg";
628
 
629
  $alm_page = add_menu_page(
630
+ 'Ajax Load More',
631
+ 'Ajax Load More',
632
+ 'edit_theme_options',
633
+ 'ajax-load-more',
634
+ 'alm_settings_page',
635
+ $icon
636
  );
637
 
638
  $alm_settings_page = add_submenu_page(
639
+ 'ajax-load-more',
640
+ __( 'Settings', 'ajax-load-more' ),
641
+ __( 'Settings', 'ajax-load-more' ),
642
+ 'edit_theme_options',
643
+ 'ajax-load-more',
644
+ 'alm_settings_page'
645
  );
646
 
647
  $alm_template_page = add_submenu_page(
648
+ 'ajax-load-more',
649
+ __( 'Repeater Templates', 'ajax-load-more' ),
650
+ __( 'Repeater Templates', 'ajax-load-more' ),
651
+ 'edit_theme_options',
652
+ 'ajax-load-more-repeaters',
653
+ 'alm_repeater_page'
654
  );
655
 
656
  $alm_shortcode_page = add_submenu_page(
657
+ 'ajax-load-more',
658
+ __( 'Shortcode Builder', 'ajax-load-more' ),
659
+ __( 'Shortcode Builder', 'ajax-load-more' ),
660
+ 'edit_theme_options',
661
+ 'ajax-load-more-shortcode-builder',
662
+ 'alm_shortcode_builder_page'
663
  );
664
 
665
+ if ( ! has_action( 'alm_pro_installed' ) ) { // Not Pro.
666
  $alm_addons_page = add_submenu_page(
667
+ 'ajax-load-more',
668
+ __( 'Add-ons', 'ajax-load-more' ),
669
+ __( 'Add-ons', 'ajax-load-more' ),
670
+ 'edit_theme_options',
671
+ 'ajax-load-more-add-ons',
672
+ 'alm_add_ons_page'
673
  );
674
  }
675
 
676
  $alm_extensions_page = add_submenu_page(
677
  'ajax-load-more',
678
+ __( 'Extensions', 'ajax-load-more' ),
679
+ __( 'Extensions', 'ajax-load-more' ),
680
  'edit_theme_options',
681
  'ajax-load-more-extensions',
682
  'alm_extensions_page'
684
 
685
  $alm_help_page = add_submenu_page(
686
  'ajax-load-more',
687
+ __( 'Help', 'ajax-load-more' ),
688
+ __( 'Help', 'ajax-load-more' ),
689
  'edit_theme_options',
690
  'ajax-load-more-help',
691
  'alm_help_page'
692
  );
693
 
694
+ $license_title = ( has_action( 'alm_pro_installed' ) ) ? __( 'License', 'ajax-load-more' ) : __( 'Licenses', 'ajax-load-more' );
695
  $alm_licenses_page = add_submenu_page(
696
  'ajax-load-more',
697
  $license_title,
701
  'alm_licenses_page'
702
  );
703
 
 
704
  $before_link = '<span style="display:block; border-top: 1px solid #555; padding-top: 8px;">';
705
  $after_link = '</span>';
706
  $style_link_icon = 'style="opacity: 0.6; font-size: 18px; height: 18px; width: 18px; position: relative; left: -2px;"';
707
 
708
+ // Pro.
709
+ if ( has_action( 'alm_pro_installed' ) ) {
 
710
  $alm_pro_page = add_submenu_page(
711
  'ajax-load-more',
712
+ __( 'Pro', 'ajax-load-more' ),
713
+ $before_link . '<span class="dashicons dashicons-plus-alt" ' . $style_link_icon . '></span> ' . __( 'Pro', 'ajax-load-more' ) . $after_link,
714
  'edit_theme_options',
715
  'ajax-load-more-pro',
716
  'alm_pro_page'
718
  } else {
719
  $alm_go_pro_page = add_submenu_page(
720
  'ajax-load-more',
721
+ __( 'Pro', 'ajax-load-more' ),
722
+ $before_link . '<span class="dashicons dashicons-plus-alt" ' . $style_link_icon . '></span> ' . __( 'Go Pro', 'ajax-load-more' ) . $after_link,
723
  'edit_theme_options',
724
  'ajax-load-more-go-pro',
725
  'alm_go_pro_page'
726
  );
727
  }
728
 
729
+ // Cache.
730
+ if ( has_action( 'alm_cache_installed' ) ) {
 
731
  $alm_cache_page = add_submenu_page(
732
  'ajax-load-more',
733
+ __( 'Cache', 'ajax-load-more' ),
734
+ $before_link . '<span class="dashicons dashicons-admin-generic" '.$style_link_icon.'></span> ' .__( 'Cache', 'ajax-load-more' ) . $after_link,
735
  'edit_theme_options',
736
  'ajax-load-more-cache',
737
  'alm_cache_page'
741
  add_action( 'load-' . $alm_cache_page, 'alm_set_admin_nonce' );
742
  }
743
 
744
+ // Filters.
745
+ if ( has_action( 'alm_filters_installed' ) ) {
746
 
747
+ if ( has_action( 'alm_cache_installed' ) ) {
 
 
 
748
  $before_link = '<span style="display:block;">';
749
  }
750
 
751
  $alm_filters_page = add_submenu_page(
752
  'ajax-load-more',
753
+ __( 'Filters', 'ajax-load-more' ),
754
+ $before_link . '<span class="dashicons dashicons-filter" '.$style_link_icon.'></span> '. __( 'Filters', 'ajax-load-more' ) . $after_link,
755
  'edit_theme_options',
756
  'ajax-load-more-filters',
757
  'alm_filters_page'
761
  add_action( 'load-' . $alm_filters_page, 'alm_set_admin_nonce' );
762
  }
763
 
764
+ // WooCommerce.
765
+ if ( has_action( 'alm_woocommerce_installed' ) && in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
766
 
767
+ if(has_action( 'alm_cache_installed' ) || has_action( 'alm_filters_installed' )){
 
 
 
768
  $before_link = '<span style="display:block;">';
769
  }
770
  $wooIcon = '<style>.dashicons.alm-woo:before{font-family: WooCommerce!important; content: "\e03d"; font-size: 16px; margin-top: 2px;}</style>';
771
 
772
  $alm_woocommerce_page = add_submenu_page(
773
  'ajax-load-more',
774
+ __( 'WooCommerce', 'ajax-load-more' ),
775
+ $before_link . $wooIcon . '<span class="dashicons dashicons-before dashicons-admin-generic alm-woo" '.$style_link_icon.'></span> '. __( 'WooCommerce', 'ajax-load-more' ) . $after_link,
776
  'edit_theme_options',
777
  'ajax-load-more-woocommerce',
778
  'alm_woocommerce_page'
792
  add_action( 'load-' . $alm_help_page, 'alm_set_admin_nonce' );
793
 
794
  // Pro
795
+ if ( has_action( 'alm_pro_installed' ) ) {
796
  add_action( 'load-' . $alm_pro_page, 'alm_load_admin_js' );
797
  add_action( 'load-' . $alm_pro_page, 'alm_load_pro_admin_js' );
798
  add_action( 'load-' . $alm_pro_page, 'alm_set_admin_nonce' );
810
 
811
  }
812
 
813
+ /**
814
+ * Settings page.
815
+ *
816
+ * @since 2.0.0
817
+ */
 
 
 
 
 
818
  function alm_settings_page(){
819
+ include_once ALM_PATH . 'admin/views/settings.php';
820
  }
821
 
822
+ /**
823
+ * Custom Repeaters.
824
+ *
825
+ * @since 2.0.0
826
+ */
 
 
 
 
827
  function alm_repeater_page(){
828
+ include_once ALM_PATH . 'admin/views/repeater-templates.php';
829
  }
830
 
831
+ /**
832
+ * Shortcode Builder.
833
+ *
834
+ * @since 2.0.0
835
+ */
 
 
 
 
836
  function alm_shortcode_builder_page(){
837
+ include_once ALM_PATH . 'admin/views/shortcode-builder.php';
838
  }
839
 
840
+ /**
841
+ * Ajax Load More Add-ons
842
+ *
843
+ * @since 2.0.0
844
+ */
 
 
 
 
845
  function alm_add_ons_page(){
846
+ include_once ALM_PATH . 'admin/views/add-ons.php';
847
  }
848
 
849
+ /**
850
+ * Ajax Load More Extensions
851
+ *
852
+ * @since 3.0.0
853
+ */
 
 
 
 
854
  function alm_extensions_page(){
855
+ include_once ALM_PATH . 'admin/views/extensions.php';
856
  }
857
 
858
+ /**
859
+ * Ajax Load More Pro.
860
+ *
861
+ * @since 4.0.0
862
+ */
 
 
 
 
863
  function alm_go_pro_page(){
864
+ include_once ALM_PATH . 'admin/views/go-pro.php';
865
  }
866
 
867
+ /**
868
+ * Examples Page
869
+ *
870
+ * @since 2.0.0
871
+ */
 
 
 
 
872
  function alm_examples_page(){
873
+ include_once ALM_PATH . 'admin/views/examples.php';
874
  }
875
 
876
+ /**
877
+ * Help Page (Implementation Inforgraphic).
878
+ *
879
+ * @since 2.8.7
880
+ */
 
 
 
881
 
882
  function alm_help_page(){
883
+ include_once ALM_PATH . 'admin/views/help.php';
884
  }
885
 
886
+ /**
887
+ * Ajax Load More Licenses
888
+ *
889
+ * @since 2.7.0
890
+ */
 
 
 
 
891
  function alm_licenses_page(){
892
+ include_once ALM_PATH . 'admin/views/licenses.php';
893
  }
894
 
895
+ /**
896
+ * Cache Add-on page
897
+ *
898
+ * @since 3.6.0
899
+ */
 
 
 
900
  function alm_pro_page(){
901
+ include_once ALM_PRO_ADMIN_PATH . 'admin/views/pro.php';
902
  }
903
 
904
+ /**
905
+ * Cache Add-on page
906
+ *
907
+ * @since 2.6.0
908
+ */
 
 
 
909
  function alm_cache_page(){
910
+ include_once ALM_CACHE_ADMIN_PATH . 'admin/views/cache.php';
911
  }
912
 
913
+ /**
914
+ * Filters Add-on page.
915
+ *
916
+ * @since 3.4.0
917
+ */
 
 
 
918
  function alm_filters_page(){
919
+ include_once ALM_FILTERS_PATH . 'admin/functions.php';
920
+ include_once ALM_FILTERS_PATH . 'admin/views/filters.php';
921
  }
922
 
923
+ /**
924
+ * WooCommerce Add-on page.
925
+ *
926
+ * @since 5.3.0
927
+ */
 
 
 
928
  function alm_woocommerce_page(){
929
+ include_once ALM_WOO_PATH. 'admin/views/woocommerce.php';
930
  }
931
 
932
 
943
  }
944
  // Pro Scripts
945
  function alm_load_pro_admin_js(){
946
+ if(class_exists( 'ALMPro' )){
947
  ALMPro::alm_enqueue_pro_admin_scripts();
948
  }
949
  }
950
  // Cache Scripts
951
  function alm_load_cache_admin_js(){
952
+ if(class_exists( 'ALMCache' )){
953
  ALMCache::alm_enqueue_cache_admin_scripts();
954
  }
955
  }
956
  // Filters Scripts
957
  function alm_load_filters_admin_scripts(){
958
+ if(class_exists( 'ALMFilters' )){
959
  ALMFilters::alm_enqueue_filters_admin_scripts();
960
  }
961
  }
980
 
981
  // CodeMirror Syntax Highlighting if on Repater Template page
982
  $screen = get_current_screen();
983
+ if ( in_array( $screen->id, array( 'ajax-load-more_page_ajax-load-more-repeaters' ) ) ){
984
 
985
  //CodeMirror CSS
986
  wp_enqueue_style( 'alm-codemirror-css', ALM_ADMIN_URL. 'codemirror/lib/codemirror.css' );
987
 
988
  //CodeMirror JS
989
+ wp_enqueue_script( 'alm-codemirror', ALM_ADMIN_URL. 'codemirror/lib/codemirror.js' );
990
  wp_enqueue_script( 'alm-codemirror-matchbrackets', ALM_ADMIN_URL. 'codemirror/addon/edit/matchbrackets.js' );
991
  wp_enqueue_script( 'alm-codemirror-htmlmixed', ALM_ADMIN_URL. 'codemirror/mode/htmlmixed/htmlmixed.js' );
992
  wp_enqueue_script( 'alm-codemirror-xml', ALM_ADMIN_URL. 'codemirror/mode/xml/xml.js' );
1026
  $nonce = $_POST["nonce"];
1027
 
1028
  if (! wp_verify_nonce( $nonce, 'alm_repeater_nonce' )){ // Check our nonce
1029
+ die( 'Error - unable to verify nonce, please try again.' );
1030
  }
1031
 
1032
  // Get _POST Vars
1037
 
1038
 
1039
  // Default
1040
+ if($t === 'default' ){
1041
 
1042
  // Create Base Repeater Dir (alm-templates)
1043
  $base_dir = AjaxLoadMore::alm_get_repeater_path();
1048
  }
1049
 
1050
  // Custom Repeaters v2
1051
+ elseif($t === 'unlimited' ){
1052
 
1053
  // Custom Repeaters 2.5+
1054
+ if(ALM_UNLIMITED_VERSION >= '2.5' ){
1055
 
1056
  // Get path to repeater dir (alm_templates)
1057
  $base_dir = AjaxLoadMore::alm_get_repeater_path();
1076
 
1077
  // Write Repeater Template
1078
  try {
1079
+ $o = fopen($f, 'w+' ); //Open file
1080
  if ( !$o ) {
1081
+ throw new Exception(__( '[Ajax Load More] Unable to open repeater template - '.$f.' - Please check your file path and ensure your server is configured to allow Ajax Load More to read and write files.', 'ajax-load-more' ));
1082
  }
1083
  $w = fwrite($o, $c); //Save the file
1084
  if ( !$w ) {
1085
+ throw new Exception(__( '[Ajax Load More] Error saving repeater template - '.$f.' - Please check your file path and ensure your server is configured to allow Ajax Load More to read and write files.', 'ajax-load-more' ));
1086
  }
1087
  fclose($o); //now close it
1088
 
1089
  } catch ( Exception $e ) {
1090
  // Display error message in console.
1091
+ if(!isset($options['_alm_error_notices']) || $options['_alm_error_notices'] == '1' ){
1092
  echo '<script>console.log("' .$e->getMessage(). '");</script>';
1093
  }
1094
  }
1096
 
1097
  // Save to database
1098
 
1099
+ if($t === 'default' ) {
1100
+ $data_update = array( 'repeaterDefault' => "$c", 'pluginVersion' => ALM_VERSION);
1101
+ $data_where = array( 'name' => "default");
1102
  }
1103
+ elseif($t === 'unlimited' ){ // Custom Repeaters v2
1104
  $table_name = $wpdb->prefix . "alm_unlimited";
1105
+ $data_update = array( 'repeaterDefault' => "$c", 'alias' => "$a", 'pluginVersion' => ALM_UNLIMITED_VERSION);
1106
+ $data_where = array( 'name' => $n);
1107
  }
1108
  else{ // Custom Repeaters
1109
+ $data_update = array( 'repeaterDefault' => "$c", 'alias' => "$a", 'pluginVersion' => ALM_REPEATER_VERSION);
1110
+ $data_where = array( 'name' => $n);
1111
  }
1112
 
1113
  $wpdb->update($table_name , $data_update, $data_where);
1114
 
1115
  //Our results
1116
  if($w){
1117
+ echo '<span class="saved">'. __( 'Template Saved Successfully', 'ajax-load-more' ) .'</span>';
1118
  } else {
1119
+ echo '<span class="saved-error"><b>'. __( 'Error Writing File', 'ajax-load-more' ) .'</b></span><br/>'. __( 'Something went wrong and the data could not be saved.', 'ajax-load-more' );
1120
  }
1121
 
1122
  wp_die();
1123
 
1124
  }else {
1125
+ echo __( 'You don\'t belong here.', 'ajax-load-more' );
1126
  }
1127
  }
1128
 
1144
  $nonce = $_POST["nonce"];
1145
  // Check our nonce
1146
  if (! wp_verify_nonce( $nonce, 'alm_repeater_nonce' )){ // Check our nonce
1147
+ die( 'Error - unable to verify nonce, please try again.' );
1148
  }
1149
 
1150
  // Get _POST Vars
1156
  global $wpdb;
1157
  $table_name = $wpdb->prefix . "alm";
1158
 
1159
+ if($t === 'default' ) $n = 'default';
1160
+ if($t === 'unlimited' ) $table_name = $wpdb->prefix . "alm_unlimited";
1161
 
1162
  //$the_repeater = $wpdb->get_var("SELECT repeaterDefault FROM " . $table_name . " WHERE name = '$n'");
1163
  $the_repeater = $wpdb->get_var("SELECT repeaterDefault FROM " . $table_name . " WHERE name = '".esc_sql($n)."'");
1168
 
1169
  } else {
1170
 
1171
+ echo __( 'You don\'t belong here.', 'ajax-load-more' );
1172
 
1173
  }
1174
  }
1189
  $nonce = $_GET["nonce"];
1190
  // Check our nonce, if they don't match then bounce!
1191
  if (! wp_verify_nonce( $nonce, 'alm_repeater_nonce' ))
1192
+ die( 'Get Bounced!' );
1193
 
1194
  $taxonomy = (isset($_GET['taxonomy'])) ? $_GET['taxonomy'] : '';
1195
  $index = (isset($_GET['index'])) ? $_GET['index'] : '1';
1218
  }
1219
 
1220
  } else {
1221
+ echo __( 'You don\'t belong here.', 'ajax-load-more' );
1222
  }
1223
  }
1224
 
 
 
1225
  /*
1226
  * alm_layouts_dismiss
1227
  * Dismiss Add Layouts CTA in repeater templates.
1234
 
1235
  // Check our nonce, if they don't match then bounce!
1236
  if (! wp_verify_nonce( $nonce, 'alm_repeater_nonce' ))
1237
+ die( 'Error - unable to verify nonce, please try again.' );
1238
 
1239
+ update_option( 'alm_layouts_dismiss', 'true' );
1240
  echo 'Success';
1241
 
1242
  die();
1243
  }
1244
  }
1245
 
 
 
1246
  /*
1247
  * alm_dismiss_sharing
1248
  * Dismiss sharing widget on plugin settings page.
1257
 
1258
  // Check our nonce, if they don't match then bounce!
1259
  if (! wp_verify_nonce( $nonce, 'alm_repeater_nonce' ))
1260
+ die(__( 'Error - unable to verify nonce, please try again.', 'ajax-load-more' ));
1261
 
1262
  set_transient( 'alm_dismiss_sharing', 'true', YEAR_IN_SECONDS );
1263
  echo 'ALM sharing dismissed successfully.';
1266
  }
1267
  }
1268
 
 
 
1269
  /*
1270
  * alm_filter_admin_footer_text
1271
  * Filter the WP Admin footer text only on ALM pages
1281
 
1282
  echo '<strong>Ajax Load More</strong> is made with <span style="color: #e25555;">♥</span> by <a href="https://connekthq.com" target="_blank" style="font-weight: 500;">Connekt</a> | <a href="https://wordpress.org/support/plugin/ajax-load-more/reviews/" target="_blank" style="font-weight: 500;">Leave a Review</a> | <a href="https://connekthq.com/plugins/ajax-load-more/support/" target="_blank" style="font-weight: 500;">Get Support</a>';
1283
 
1284
+ if(!has_action( 'alm_pro_installed' )){
1285
  echo ' | <a href="https://connekthq.com/plugins/ajax-load-more/pro/" target="_blank" style="font-weight: 500;">Go Pro</a>';
1286
  }
1287
  }
1288
 
 
 
1289
  /*
1290
  * admin_init
1291
  * Initiate the plugin, create our setting variables.
1293
  * @since 2.0.0
1294
  */
1295
 
1296
+ add_action( 'admin_init', 'alm_admin_init' );
1297
  function alm_admin_init(){
1298
 
1299
  register_setting(
1318
 
1319
  add_settings_field( // Container type
1320
  '_alm_container_type',
1321
+ __( 'Container Type', 'ajax-load-more' ),
1322
  'alm_container_type_callback',
1323
  'ajax-load-more',
1324
  'alm_general_settings'
1326
 
1327
  add_settings_field( // Classnames
1328
  '_alm_classname',
1329
+ __( 'Container Classes', 'ajax-load-more' ),
1330
  'alm_class_callback',
1331
  'ajax-load-more',
1332
  'alm_general_settings'
1334
 
1335
  add_settings_field( // Disbale CSS
1336
  '_alm_disable_css',
1337
+ __( 'Disable CSS', 'ajax-load-more' ),
1338
  'alm_disable_css_callback',
1339
  'ajax-load-more',
1340
  'alm_general_settings'
1342
 
1343
  add_settings_field( // Btn color
1344
  '_alm_btn_color',
1345
+ __( 'Button/Loading Style', 'ajax-load-more' ),
1346
  'alm_btn_color_callback',
1347
  'ajax-load-more',
1348
  'alm_general_settings'
1350
 
1351
  add_settings_field( // Inline CSS
1352
  '_alm_inline_css',
1353
+ __( 'Load CSS Inline', 'ajax-load-more' ),
1354
  'alm_inline_css_callback',
1355
  'ajax-load-more',
1356
  'alm_general_settings'
1358
 
1359
  add_settings_field( // Button classes
1360
  '_alm_btn_classname',
1361
+ __( 'Button Classes', 'ajax-load-more' ),
1362
  'alm_btn_class_callback',
1363
  'ajax-load-more',
1364
  'alm_general_settings'
1367
  /*
1368
  add_settings_field( // Disable REST API
1369
  '_alm_use_rest_api',
1370
+ __( 'REST API', 'ajax-load-more' ),
1371
  '_alm_use_rest_api_callback',
1372
  'ajax-load-more',
1373
  'alm_general_settings'
1376
 
1377
  add_settings_field( // Legacy Callbacks
1378
  '_alm_legacy_callbacks',
1379
+ __( 'Legacy Callbacks', 'ajax-load-more' ),
1380
  '_alm_legacy_callbacks_callback',
1381
  'ajax-load-more',
1382
  'alm_general_settings'
1383
  );
1384
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1385
  add_settings_field( // Load dynamic queries
1386
  '_alm_disable_dynamic',
1387
+ __( 'Dynamic Content', 'ajax-load-more' ),
1388
  'alm_disable_dynamic_callback',
1389
  'ajax-load-more',
1390
  'alm_admin_settings'
1391
  );
1392
 
 
 
 
 
 
 
 
 
1393
  add_settings_field( // Display error notices
1394
  '_alm_error_notices',
1395
+ __( 'Error Notices', 'ajax-load-more' ),
1396
  '_alm_error_notices_callback',
1397
  'ajax-load-more',
1398
  'alm_admin_settings'
1399
  );
1400
 
1401
+ add_settings_field( // Uninstall
1402
+ '_alm_uninstall',
1403
+ __( 'Delete on Uninstall', 'ajax-load-more' ),
1404
+ '_alm_uninstall_callback',
1405
+ 'ajax-load-more',
1406
+ 'alm_admin_settings'
1407
+ );
1408
 
1409
  // CACHE
1410
+ if(has_action( 'alm_cache_settings' )){
1411
+ do_action( 'alm_cache_settings' );
1412
  }
1413
 
 
1414
  // CUSTOM REPEATERS
1415
+ if(has_action( 'alm_unlimited_settings' )){
1416
+ do_action( 'alm_unlimited_settings' );
1417
  }
1418
 
 
1419
  // FILTERS
1420
+ if(has_action( 'alm_filters_settings' )){
1421
+ do_action( 'alm_filters_settings' );
1422
  }
1423
 
 
1424
  // LAYOUTS
1425
+ if(has_action( 'alm_layouts_settings' )){
1426
+ do_action( 'alm_layouts_settings' );
1427
  }
1428
 
 
1429
  // PAGINATION
1430
+ if(has_action( 'alm_paging_settings' )){
1431
+ do_action( 'alm_paging_settings' );
1432
  }
1433
 
 
1434
  // PRELOADED
1435
+ if(has_action( 'alm_preloaded_settings' )){
1436
+ do_action( 'alm_preloaded_settings' );
1437
  }
1438
 
 
1439
  // REST API
1440
+ if(has_action( 'alm_rest_api_settings' )){
1441
+ do_action( 'alm_rest_api_settings' );
1442
  }
1443
 
 
1444
  // SEO
1445
+ if(has_action( 'alm_seo_settings' )){
1446
+ do_action( 'alm_seo_settings' );
1447
  }
1448
 
 
1449
  // SINGLE POST
1450
+ if(has_action( 'alm_prev_post_settings' )){
1451
+ do_action( 'alm_prev_post_settings' );
1452
+ }
 
1453
 
1454
  // TABS
1455
+ if(has_action( 'alm_tabs_settings' )){
1456
+ do_action( 'alm_tabs_settings' );
1457
  }
1458
 
 
 
1459
  // THEME REPEATERS
1460
+ if(has_action( 'alm_theme_repeaters_settings' )){
1461
+ do_action( 'alm_theme_repeaters_settings' );
1462
+ }
 
 
 
1463
 
1464
+ }
 
 
 
 
 
1465
 
1466
+ /**
1467
+ * Some general settings text.
1468
+ *
1469
+ * @since 2.0.0
1470
+ */
1471
  function alm_general_settings_callback() {
1472
+ echo '<p>' . __( 'Customize the user experience of Ajax Load More by updating the fields below.', 'ajax-load-more' ) . '</p>';
1473
  }
1474
 
1475
+ /**
1476
+ * Some general admin settings text.
1477
+ *
1478
+ * @since 2.0.0
1479
+ */
 
 
 
 
1480
  function alm_admin_settings_callback() {
1481
+ echo '<p>' . __( 'The following settings affect the WordPress admin area only.', 'ajax-load-more' ) . '</p>';
1482
  }
1483
 
1484
+ /**
1485
+ * Sanitize our form fields.
1486
+ *
1487
+ * @since 2.0.0
1488
+ */
 
 
 
1489
  function alm_sanitize_settings( $input ) {
1490
  return $input;
1491
  }
1492
 
1493
+ /**
1494
+ * Diabale Ajax Load More CSS.
1495
+ *
1496
+ * @since 2.0.0
1497
+ */
 
 
 
 
1498
  function alm_disable_css_callback(){
1499
  $options = get_option( 'alm_settings' );
1500
  if(!isset($options['_alm_disable_css']))
1501
  $options['_alm_disable_css'] = '0';
1502
 
1503
  $html = '<input type="hidden" name="alm_settings[_alm_disable_css]" value="0" />';
1504
+ $html .= '<input type="checkbox" id="alm_disable_css_input" name="alm_settings[_alm_disable_css]" value="1"'. (($options['_alm_disable_css']) ? ' checked="checked"' : '' ) .' />';
1505
+ $html .= '<label for="alm_disable_css_input">'.__( 'I want to use my own CSS styles.', 'ajax-load-more' ).'<br/><span style="display:block;"><i class="fa fa-file-text-o"></i> &nbsp;<a href="'.ALM_URL.'/core/dist/css/ajax-load-more.css" target="blank">'.__( 'View Ajax Load More CSS', 'ajax-load-more' ).'</a></span></label>';
1506
 
1507
  echo $html;
1508
  }
1509
 
1510
+ /**
1511
  * Disbale the ALM shortcode button in the WordPress content editor.
1512
  *
1513
  * @since 2.2.1
1518
  if(!isset($options['_alm_hide_btn']))
1519
  $options['_alm_hide_btn'] = '0';
1520
 
1521
+ $html = '<input type="hidden" name="alm_settings[_alm_hide_btn]" value="0" /><input type="checkbox" id="alm_hide_btn" name="alm_settings[_alm_hide_btn]" value="1"'. (($options['_alm_hide_btn']) ? ' checked="checked"' : '' ) .' />';
1522
+ $html .= '<label for="alm_hide_btn">'.__( 'Hide shortcode button in WYSIWYG editor.', 'ajax-load-more' ).'</label>';
1523
 
1524
  echo $html;
1525
  }
1526
 
1527
+ /**
1528
+ * Display admin error notices in browser console.
1529
+ *
1530
+ * @since 2.7.2
1531
+ */
 
 
 
1532
  function _alm_error_notices_callback(){
1533
  $options = get_option( 'alm_settings' );
1534
  if(!isset($options['_alm_error_notices']))
1535
  $options['_alm_error_notices'] = '1';
1536
 
1537
  $html = '<input type="hidden" name="alm_settings[_alm_error_notices]" value="0" />';
1538
+ $html .= '<input type="checkbox" name="alm_settings[_alm_error_notices]" id="_alm_error_notices" value="1"'. (($options['_alm_error_notices']) ? ' checked="checked"' : '' ) .' />';
1539
+ $html .= '<label for="_alm_error_notices">'.__( 'Display error messaging regarding repeater template updates in the browser console.', 'ajax-load-more' ).'</label>';
1540
 
1541
  echo $html;
1542
  }
1543
 
1544
+ /**
1545
+ * Disable the dynamic population of categories, tags and authors
1546
+ *
1547
+ * @since 2.6.0
1548
+ */
 
 
 
 
1549
  function alm_disable_dynamic_callback(){
1550
  $options = get_option( 'alm_settings' );
1551
  if(!isset($options['_alm_disable_dynamic']))
1552
  $options['_alm_disable_dynamic'] = '0';
1553
 
1554
  $html = '<input type="hidden" name="alm_settings[_alm_disable_dynamic]" value="0" />';
1555
+ $html .= '<input type="checkbox" name="alm_settings[_alm_disable_dynamic]" id="_alm_disable_dynamic" value="1"'. (($options['_alm_disable_dynamic']) ? ' checked="checked"' : '' ) .' />';
1556
+ $html .= '<label for="_alm_disable_dynamic">'.__( 'Disable dynamic population of categories, tags and authors in the Shortcode Builder.<span style="display:block">Recommended if you have a large number of categories, tags and/or authors.', 'ajax-load-more' ).'</label>';
1557
 
1558
  echo $html;
1559
  }
1560
 
1561
+ /**
1562
+ * The type of container ul or div
1563
+ *
1564
+ * @since 2.0.0
1565
+ */
 
 
 
1566
  function alm_container_type_callback() {
1567
 
1568
  $options = get_option( 'alm_settings' );
1571
  $options['_alm_container_type'] = '1';
1572
 
1573
  $html = '<input type="radio" id="_alm_container_type_one" name="alm_settings[_alm_container_type]" value="1"' . checked( 1, $options['_alm_container_type'], false ) . '/>';
1574
+ $html .= '<label for="_alm_container_type_one">&lt;ul&gt; <span style="padding-top: 2px;">&lt;!-- '.__( 'Ajax Posts Here', 'ajax-load-more' ).' --&gt;</span> &lt;/ul&gt;</label><br/>';
1575
 
1576
  $html .= '<input type="radio" id="_alm_container_type_two" name="alm_settings[_alm_container_type]" value="2"' . checked( 2, $options['_alm_container_type'], false ) . '/>';
1577
+ $html .= '<label for="_alm_container_type_two">&lt;div&gt; <span style="padding-top: 2px;">&lt;!-- '.__( 'Ajax Posts Here', 'ajax-load-more' ).' --&gt;</span> &lt;/div&gt;</label>';
1578
 
1579
+ $html .= '<label style="cursor: default !important"><span style="display:block">'.__( 'You can modify the container type when building a shortcode.', 'ajax-load-more' ).'</span></label>';
1580
 
1581
  echo $html;
1582
 
1583
  }
1584
 
1585
+ /**
1586
+ * Add classes to the Ajax Load More wrapper
1587
+ *
1588
+ * @since 2.0.0
1589
+ */
 
 
 
1590
  function alm_class_callback(){
1591
  $options = get_option( 'alm_settings' );
1592
 
1593
+ $html = '<label for="alm_settings[_alm_classname]">'.__( 'Add custom classes to the <i>.alm-listing</i> container - classes are applied globally and will appear with every instance of Ajax Load More. <span style="display:block">You can also add classes when building a shortcode.</span>', 'ajax-load-more' ).'</label><br/>';
1594
  $html .= '<input type="text" id="alm_settings[_alm_classname]" name="alm_settings[_alm_classname]" value="'.$options['_alm_classname'].'" placeholder="posts listing etc..." /> ';
1595
 
1596
  echo $html;
1597
  }
1598
 
1599
+ /**
1600
+ * Get button color
1601
+ *
1602
+ * @since 2.0.0
1603
+ */
 
 
 
 
1604
  function alm_btn_color_callback() {
1605
 
1606
  $options = get_option( 'alm_settings' );
1610
  $options['_alm_btn_color'] = '0';
1611
 
1612
  $selected0 = '';
1613
+ if($type == 'default' ) $selected0 = 'selected="selected"';
1614
 
1615
  $selected1 = '';
1616
+ if($type == 'blue' ) $selected1 = 'selected="selected"';
1617
 
1618
  $selected2 = '';
1619
+ if($type == 'green' ) $selected2 = 'selected="selected"';
1620
 
1621
  $selected3 = '';
1622
+ if($type == 'red' ) $selected3 = 'selected="selected"';
1623
 
1624
  $selected4 = '';
1625
+ if($type == 'purple' ) $selected4 = 'selected="selected"';
1626
 
1627
  $selected5 = '';
1628
+ if($type == 'grey' ) $selected5 = 'selected="selected"';
1629
 
1630
  $selected6 = '';
1631
+ if($type == 'white' ) $selected6 = 'selected="selected"';
1632
 
1633
  $selected13 = '';
1634
+ if($type == 'light-grey' ) $selected13 = 'selected="selected"';
1635
 
1636
  $selected7 = '';
1637
+ if($type == 'infinite classic' ) $selected7 = 'selected="selected"';
1638
 
1639
  $selected8 = '';
1640
+ if($type == 'infinite skype' ) $selected8 = 'selected="selected"';
1641
 
1642
  $selected9 = '';
1643
+ if($type == 'infinite ring' ) $selected9 = 'selected="selected"';
1644
 
1645
  $selected10 = '';
1646
+ if($type == 'infinite fading-blocks' ) $selected10 = 'selected="selected"';
1647
 
1648
  $selected11 = '';
1649
+ if($type == 'infinite fading-circles' ) $selected11 = 'selected="selected"';
1650
 
1651
  $selected12 = '';
1652
+ if($type == 'infinite chasing-arrows' ) $selected12 = 'selected="selected"';
1653
 
1654
+ $html = '<label for="alm_settings_btn_color">'.__( 'Select an Ajax loading style - you can choose between a <strong>Button</strong> or <strong>Infinite Scroll</strong>', 'ajax-load-more' );
1655
  $html .= '.<br/><span style="display:block">Selecting an Infinite Scroll style will remove the click interaction and load content on scroll <u>only</u>.</span>';
1656
  $html .= '</label>';
1657
  $html .= '<select id="alm_settings_btn_color" name="alm_settings[_alm_btn_color]">';
1658
 
1659
+ $html .= '<optgroup label="'. __( 'Button Style (Dark)', 'ajax-load-more' ) .'">';
1660
  $html .= '<option value="default" class="alm-color default" ' . $selected0 .'>Default</option>';
1661
  $html .= '<option value="blue" class="alm-color blue" ' . $selected1 .'>Blue</option>';
1662
  $html .= '<option value="green" class="alm-color green" ' . $selected2 .'>Green</option>';
1663
  $html .= '<option value="purple" class="alm-color purple" ' . $selected4 .'>Purple</option>';
1664
  $html .= '<option value="grey" class="alm-color grey" ' . $selected5 .'>Grey</option>';
1665
  $html .= '</optgroup>';
1666
+ $html .= '<optgroup label="'. __( 'Button Style (Light)', 'ajax-load-more' ) .'">';
1667
  $html .= '<option value="white" class="alm-color white" ' . $selected6 .'>White</option>';
1668
  $html .= '<option value="light-grey" class="alm-color light-grey" ' . $selected13 .'>Light Grey</option>';
1669
  $html .= '</optgroup>';
1670
 
1671
+ $html .= '<optgroup label="'. __( 'Infinite Scroll (No Button)', 'ajax-load-more' ) .'">';
1672
  $html .= '<option value="infinite classic" class="infinite classic" ' . $selected7 .'>Classic</option>';
1673
  $html .= '<option value="infinite skype" class="infinite skype" ' . $selected8 .'>Skype</option>';
1674
  $html .= '<option value="infinite ring" class="infinite ring" ' . $selected9 .'>Circle Fill</option>';
1680
  $html .= '</select>';
1681
 
1682
  // Set loading class for infinite type only
1683
+ $loadingClass = (strpos($type, 'infinite' ) !== false) ? ' loading' : '';
 
 
 
 
 
 
1684
 
1685
+ $html .= '<div class="clear"></div>';
1686
+ $html .= '<div class="ajax-load-more-wrap core '.$type.'">';
1687
+ $html .='<span>'.__( 'Click to Preview', 'ajax-load-more' ) .'</span>';
1688
+ $html .= '<div class="alm-btn-wrap">';
1689
+ $html .= '<button style="cursor: pointer;" type="button" class="alm-load-more-btn'. $loadingClass .'" id="test-alm-button">'.apply_filters( 'alm_button_label', __( 'Load More', 'ajax-load-more' )).'</button>';
1690
+ $html .= '</div>';
1691
  $html .= '</div>';
1692
 
1693
  echo $html;
1694
  }
1695
 
1696
+ /**
1697
+ * Load CSS Inline vs the head
1698
+ *
1699
+ * @since 3.3.1
1700
+ */
 
 
 
1701
  function alm_inline_css_callback(){
1702
  $options = get_option( 'alm_settings' );
1703
  if(!isset($options['_alm_inline_css']))
1704
  $options['_alm_inline_css'] = '1';
1705
 
1706
  $html = '<input type="hidden" name="alm_settings[_alm_inline_css]" value="0" />';
1707
+ $html .= '<input type="checkbox" name="alm_settings[_alm_inline_css]" id="alm_inline_css" value="1"'. (($options['_alm_inline_css']) ? ' checked="checked"' : '' ) .' />';
1708
+ $html .= '<label for="alm_inline_css">'.__( 'Improve site performance by loading Ajax Load More CSS inline.', 'ajax-load-more' ).'</label>';
1709
 
1710
  echo $html;
1711
  }
1712
 
1713
+ /**
1714
+ * Add classes to the Ajax Load More button
1715
+ *
1716
+ * @since 2.4.1
1717
+ */
 
 
 
 
1718
  function alm_btn_class_callback(){
1719
  $options = get_option( 'alm_settings' );
1720
 
1721
  if(!isset($options['_alm_btn_classname']))
1722
  $options['_alm_btn_classname'] = '';
1723
 
1724
+ $html = '<label for="alm_settings[_alm_btn_classname]">'.__( 'Add classes to your <strong>Load More</strong> button.', 'ajax-load-more' ).'</label>';
1725
  $html .= '<input type="text" class="btn-classes" id="alm_settings[_alm_btn_classname]" name="alm_settings[_alm_btn_classname]" value="'.$options['_alm_btn_classname'].'" placeholder="button rounded listing etc..." /> ';
1726
 
1727
  echo $html;
1729
  <script>
1730
 
1731
  // Check if Disable CSS === true
1732
+ if(jQuery( 'input#alm_disable_css_input' ).is(":checked")){
1733
+ jQuery( 'select#alm_settings_btn_color' ).parent().parent().hide(); // Hide button color
1734
+ jQuery( 'input#alm_inline_css' ).parent().parent().hide(); // Hide inline css
1735
  }
1736
+ jQuery( 'input#alm_disable_css_input' ).change(function() {
1737
  var el = jQuery(this);
1738
  if(el.is(":checked")) {
1739
+ el.parent().parent( 'tr' ).next( 'tr' ).hide(); // Hide button color
1740
+ el.parent().parent( 'tr' ).next( 'tr' ).next( 'tr' ).hide(); // Hide inline css
1741
  }else{
1742
+ el.parent().parent( 'tr' ).next( 'tr' ).show(); // show button color
1743
+ el.parent().parent( 'tr' ).next( 'tr' ).next( 'tr' ).show(); // show inline css
1744
  }
1745
  });
1746
 
1748
  <?php
1749
  }
1750
 
1751
+ /**
1752
+ * Move window to top of screen on page load.
1753
+ *
1754
+ * @since 2.6.0
 
 
 
1755
  */
 
1756
  function _alm_scroll_top_callback(){
1757
  $options = get_option( 'alm_settings' );
1758
  if(!isset($options['_alm_scroll_top']))
1759
  $options['_alm_scroll_top'] = '0';
1760
 
1761
  $html = '<input type="hidden" name="alm_settings[_alm_scroll_top]" value="0" />';
1762
+ $html .= '<input type="checkbox" name="alm_settings[_alm_scroll_top]" id="_alm_scroll_top" value="1"'. (($options['_alm_scroll_top']) ? ' checked="checked"' : '' ) .' />';
1763
  $html .= '<label for="_alm_scroll_top">';
1764
+ $html .= __( 'On initial page load, move the user\'s browser window to the top of the screen.', 'ajax-load-more' );
1765
+ $html .= '<span style="display:block">'. __( 'This may help prevent the loading of unnecessary posts.', 'ajax-load-more' ) .'</span>';
1766
  $html .= '</label>';
1767
 
1768
  echo $html;
1769
  }
1770
 
1771
+ /**
1772
+ * Disable REST API in favor of admin-ajax.php.
1773
+ *
1774
+ * @since 5.1
1775
+ */
 
 
 
 
1776
  function _alm_use_rest_api_callback(){
1777
  $options = get_option( 'alm_settings' );
1778
  if(!isset($options['_alm_use_rest_api']))
1779
  $options['_alm_use_rest_api'] = '0';
1780
 
1781
  $html = '<input type="hidden" name="alm_settings[_alm_use_rest_api]" value="0" />';
1782
+ $html .= '<input type="checkbox" name="alm_settings[_alm_use_rest_api]" id="_alm_use_rest_api" value="1"'. (($options['_alm_use_rest_api']) ? ' checked="checked"' : '' ) .' />';
1783
  $html .= '<label for="_alm_use_rest_api">';
1784
+ $html .= __( 'Disable REST API.', 'ajax-load-more' );
1785
+ $html .= '<span style="display:block">'. __( 'Use `admin-ajax.php` in favour of the WordPress REST API for all Ajax requests.', 'ajax-load-more' ) .'</span>';
1786
  $html .= '</label>';
1787
 
1788
  echo $html;
1789
  }
1790
 
1791
+ /**
1792
+ * Load legacy callback actions.
1793
+ *
1794
+ * @since 5.0.0
1795
+ */
 
 
 
 
1796
  function _alm_legacy_callbacks_callback(){
1797
  $options = get_option( 'alm_settings' );
1798
  if(!isset($options['_alm_legacy_callbacks']))
1799
  $options['_alm_legacy_callbacks'] = '0';
1800
 
1801
  $html = '<input type="hidden" name="alm_settings[_alm_legacy_callbacks]" value="0" />';
1802
+ $html .= '<input type="checkbox" name="alm_settings[_alm_legacy_callbacks]" id="_alm_legacy_callbacks" value="1"'. (($options['_alm_legacy_callbacks']) ? ' checked="checked"' : '' ) .' />';
1803
  $html .= '<label for="_alm_legacy_callbacks">';
1804
+ $html .= __( 'Load legacy JavaScript callback functions.', 'ajax-load-more' );
1805
+ $html .= '<span style="display:block">'. __( 'Ajax Load More <a href="https://connekthq.com/plugins/ajax-load-more/docs/callback-functions/" target="_blank">callback functions</a> were updated in 5.0. Users who were using callbacks prior to ALM 5.0 can load this helper library to maintain compatibility.', 'ajax-load-more' ) .'</span>';
1806
  $html .= '</label>';
1807
 
1808
  echo $html;
1809
  }
1810
 
1811
+ /**
1812
+ * Remove all ALM data on uninstall.
1813
+ *
1814
+ * @since 4.1.0
1815
+ */
 
 
 
 
1816
  function _alm_uninstall_callback(){
1817
  $options = get_option( 'alm_settings' );
1818
 
1820
  $options['_alm_uninstall'] = '0';
1821
 
1822
  $html = '<input type="hidden" name="alm_settings[_alm_uninstall]" value="0" />';
1823
+ $html .= '<input type="checkbox" name="alm_settings[_alm_uninstall]" id="_alm_uninstall" value="1"'. (($options['_alm_uninstall']) ? ' checked="checked"' : '' ) .' />';
1824
+ $html .= '<label for="_alm_uninstall">'.__( 'Check this box if Ajax Load More should remove all of its data* when the plugin is deleted.', 'ajax-load-more' );
1825
+ $html .= '<span style="display:block"><em>'. __( '* Database Tables, Options and Repeater Templates', 'ajax-load-more' ) .'</em></span>';
1826
  $html .= '</label>';
1827
 
1828
  echo $html;
1829
  }
 
admin/dist/css/admin.css CHANGED
@@ -520,11 +520,11 @@ disabled look for disabled choices in the results dropdown
520
  position: relative;
521
  z-index: 1; }
522
  .ajax-load-more .header-wrap h1 {
523
- padding: 15px 15px 15px 80px;
524
  margin: 0;
525
  min-height: 48px;
526
- background: #fff url("../../img/alm-logo-48x48.png") no-repeat 15px 15px;
527
- background: #fff url("../../img/alm-logo-48x48.svg") no-repeat 15px 15px;
528
  font-size: 18px;
529
  font-weight: 800;
530
  border-bottom: 1px solid #e1e1e1; }
@@ -534,7 +534,7 @@ disabled look for disabled choices in the results dropdown
534
  .ajax-load-more .header-wrap h1 em {
535
  display: block;
536
  position: relative;
537
- font-size: 12px;
538
  color: #999;
539
  font-style: normal;
540
  font-weight: 400;
@@ -549,7 +549,6 @@ disabled look for disabled choices in the results dropdown
549
  .ajax-load-more .header-wrap h1 span {
550
  color: #999;
551
  font-weight: 300;
552
- font-style: italic;
553
  margin: 0 0 0 5px;
554
  vertical-align: top;
555
  font-size: 12px;
@@ -564,7 +563,7 @@ disabled look for disabled choices in the results dropdown
564
  .ajax-load-more .header-wrap h1 span {
565
  font-size: 13px; } }
566
  .ajax-load-more .header-wrap .notice {
567
- margin: 15px; }
568
 
569
  /* Pro Add-on Listing */
570
  .alm-pro-listing {
@@ -871,7 +870,7 @@ disabled look for disabled choices in the results dropdown
871
  .ajax-load-more .cnkt-sidebar {
872
  width: 30%;
873
  float: right;
874
- padding: 15px;
875
  position: absolute;
876
  right: 0;
877
  top: 0;
@@ -894,8 +893,8 @@ disabled look for disabled choices in the results dropdown
894
 
895
  .alm-settings-feedback {
896
  position: fixed;
897
- bottom: 20px;
898
- right: 25px;
899
  width: auto;
900
  height: auto;
901
  background: #fff;
@@ -907,8 +906,8 @@ disabled look for disabled choices in the results dropdown
907
  border-radius: 2px;
908
  opacity: 0;
909
  visibility: hidden;
910
- -webkit-transition: all 0.2s ease-in-out;
911
- transition: all 0.2s ease-in-out;
912
  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
913
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
914
  font-size: 13px; }
@@ -916,16 +915,22 @@ disabled look for disabled choices in the results dropdown
916
  border-color: #e0bd5e;
917
  opacity: 1;
918
  visibility: visible;
919
- bottom: 25px; }
 
920
  .alm-settings-feedback.--saved {
921
  opacity: 1;
922
  visibility: visible;
923
- bottom: 25px; }
 
 
 
 
924
  .alm-settings-feedback.--error {
925
  border-color: #e03e3e;
926
  opacity: 1;
927
  visibility: visible;
928
- bottom: 25px; }
 
929
  .alm-settings-feedback i {
930
  opacity: 0.6;
931
  margin: 0 3px 0 0; }
@@ -1019,6 +1024,9 @@ disabled look for disabled choices in the results dropdown
1019
  background-size: 30px 10px;
1020
  background-position: 95% center; }
1021
 
 
 
 
1022
  .shortcode-builder p.warning-callout:before {
1023
  display: block;
1024
  width: calc(100% + 36px);
@@ -1049,10 +1057,11 @@ disabled look for disabled choices in the results dropdown
1049
  .shortcode-builder section.full .shortcode-builder--fields {
1050
  width: 100%; }
1051
  .shortcode-builder section.full .shortcode-builder--label {
 
1052
  border-bottom: 1px solid #f1f1f1; }
1053
- .shortcode-builder section input[type=text],
1054
- .shortcode-builder section input[type=email],
1055
- .shortcode-builder section input[type=number],
1056
  .shortcode-builder section textarea {
1057
  width: 100%; }
1058
  .shortcode-builder section .select2-container {
@@ -1060,12 +1069,12 @@ disabled look for disabled choices in the results dropdown
1060
  width: 100%; }
1061
 
1062
  .shortcode-builder--label, .shortcode-builder--fields {
1063
- padding: 23px 20px; }
1064
 
1065
  .shortcode-builder--label {
1066
  background-color: #fcfcfc;
1067
  border-right: 1px solid #f1f1f1;
1068
- width: 40%;
1069
  padding-right: 30px; }
1070
  .shortcode-builder--label.full {
1071
  width: 100%; }
@@ -1086,7 +1095,9 @@ disabled look for disabled choices in the results dropdown
1086
  -webkit-box-flex: 1;
1087
  -ms-flex: 1;
1088
  flex: 1; }
1089
- .shortcode-builder--fields input, .shortcode-builder--fields textarea, .shortcode-builder--fields select {
 
 
1090
  width: 100%; }
1091
  .shortcode-builder--fields section {
1092
  width: 104%;
@@ -1101,15 +1112,28 @@ disabled look for disabled choices in the results dropdown
1101
  display: flex;
1102
  width: 100%;
1103
  -ms-flex-wrap: nowrap;
1104
- flex-wrap: nowrap; }
 
 
 
1105
  .shortcode-builder--fields .flex-grid--two, .shortcode-builder--fields .flex-grid--three {
1106
- width: 102%;
1107
- margin-left: -1%; }
1108
  .shortcode-builder--fields .flex-grid--two > div, .shortcode-builder--fields .flex-grid--three > div {
1109
- width: 50%;
1110
- padding: 0 1%; }
1111
  .shortcode-builder--fields .flex-grid--three > div {
1112
- width: 33.333%; }
 
 
 
 
 
 
 
 
 
 
 
 
1113
 
1114
  @media screen and (max-width: 1000px) {
1115
  .shortcode-builder section {
@@ -1157,7 +1181,7 @@ disabled look for disabled choices in the results dropdown
1157
  top: 0;
1158
  left: 35px;
1159
  border: solid transparent;
1160
- content: " ";
1161
  height: 0;
1162
  width: 0;
1163
  position: absolute;
@@ -1181,12 +1205,30 @@ disabled look for disabled choices in the results dropdown
1181
  clear: both;
1182
  display: table;
1183
  content: ''; }
 
 
1184
 
1185
  .shortcode-builder .section-intro {
1186
- font-size: 13px;
1187
- padding: 20px 5px 20px;
1188
- margin: 0 0 20px;
1189
- border-bottom: 1px solid #f1f1f1; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1190
 
1191
  .woocommerce-help--item {
1192
  width: 100%;
@@ -1274,34 +1316,190 @@ disabled look for disabled choices in the results dropdown
1274
  color: #fff;
1275
  cursor: default; }
1276
 
1277
- body.toplevel_page_ajax-load-more #wpcontent,
1278
- body.ajax-load-more_page_ajax-load-more-repeaters #wpcontent,
1279
- body.ajax-load-more_page_ajax-load-more-shortcode-builder #wpcontent,
1280
- body.ajax-load-more_page_ajax-load-more-add-ons #wpcontent,
1281
- body.ajax-load-more_page_ajax-load-more-extensions #wpcontent,
1282
- body.ajax-load-more_page_ajax-load-more-help #wpcontent,
1283
- body.ajax-load-more_page_ajax-load-more-licenses #wpcontent,
1284
- body.ajax-load-more_page_ajax-load-more-cache #wpcontent,
1285
- body.ajax-load-more_page_ajax-load-more-filters #wpcontent,
1286
- body.ajax-load-more_page_ajax-load-more-pro #wpcontent,
1287
- body.ajax-load-more_page_ajax-load-more-go-pro #wpcontent,
1288
- body.ajax-load-more_page_ajax-load-more-woocommerce #wpcontent {
1289
- padding-left: 0;
1290
- padding-bottom: 20px; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1291
 
1292
- body.toplevel_page_ajax-load-more #wpbody-content,
1293
- body.ajax-load-more_page_ajax-load-more-repeaters #wpbody-content,
1294
- body.ajax-load-more_page_ajax-load-more-shortcode-builder #wpbody-content,
1295
- body.ajax-load-more_page_ajax-load-more-add-ons #wpbody-content,
1296
- body.ajax-load-more_page_ajax-load-more-extensions #wpbody-content,
1297
- body.ajax-load-more_page_ajax-load-more-help #wpbody-content,
1298
- body.ajax-load-more_page_ajax-load-more-licenses #wpbody-content,
1299
- body.ajax-load-more_page_ajax-load-more-cache #wpbody-content,
1300
- body.ajax-load-more_page_ajax-load-more-filters #wpbody-content,
1301
- body.ajax-load-more_page_ajax-load-more-pro #wpbody-content,
1302
- body.ajax-load-more_page_ajax-load-more-go-pro #wpbody-content,
1303
- body.ajax-load-more_page_ajax-load-more-woocommerce #wpbody-content {
1304
- padding-bottom: 0; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1305
 
1306
  body.toplevel_page_ajax-load-more #wpfooter,
1307
  body.ajax-load-more_page_ajax-load-more-repeaters #wpfooter,
@@ -1342,7 +1540,7 @@ body.ajax-load-more_page_ajax-load-more-woocommerce #wpfooter {
1342
  margin: 0 !important; }
1343
 
1344
  .ajax-load-more-inner-wrapper {
1345
- padding: 15px 15px 45px;
1346
  display: block;
1347
  clear: both;
1348
  max-width: 1440px;
@@ -1390,9 +1588,6 @@ body.ajax-load-more_page_ajax-load-more-woocommerce #wpfooter {
1390
  -webkit-box-sizing: border-box;
1391
  box-sizing: border-box; }
1392
 
1393
- .forceColors {
1394
- background: #fff !important; }
1395
-
1396
  .offscreen {
1397
  position: absolute;
1398
  left: -9999px; }
@@ -1424,23 +1619,6 @@ body.ajax-load-more_page_ajax-load-more-woocommerce #wpfooter {
1424
  display: inline-block;
1425
  vertical-align: top; }
1426
 
1427
- /* Saved Settings */
1428
- #alm-settings .row.alm-save-settings {
1429
- padding-bottom: 5px !important; }
1430
-
1431
- #alm-settings form h2 {
1432
- padding: 20px 20px 5px 5px;
1433
- margin: 0;
1434
- font-weight: 700;
1435
- border-radius: 2px 2px 0 0; }
1436
- #alm-settings form h2:first-of-type {
1437
- padding-top: 0; }
1438
- #alm-settings form h2 + p {
1439
- color: #999;
1440
- padding: 0 20px 15px 5px;
1441
- margin: 0;
1442
- font-size: 14px; }
1443
-
1444
  .ajax-load-more .file-location {
1445
  border: 1px solid #e1e1e1;
1446
  background: #fff;
@@ -1498,31 +1676,29 @@ body.ajax-load-more_page_ajax-load-more-woocommerce #wpfooter {
1498
  .ajax-load-more label.lg {
1499
  font-size: 16px; }
1500
 
1501
- textarea#_alm_layouts_css {
1502
  height: 240px; }
1503
 
1504
- a.layout-hover {
1505
  width: 20px !important;
1506
  height: 20px !important;
1507
  background: #ccc;
1508
  display: inline-block;
1509
  position: relative; }
1510
-
1511
- a.layout-hover img {
1512
- position: absolute;
1513
- left: 100%;
1514
- top: 0;
1515
- z-index: 999;
1516
- opacity: 0;
1517
- filter: alpha(opacity=0); }
1518
-
1519
- a.layout-hover:hover img {
1520
- position: absolute;
1521
- left: 100%;
1522
- top: 0;
1523
- z-index: 999;
1524
- opacity: 1;
1525
- filter: alpha(opacity=100); }
1526
 
1527
  .ajax-load-more p.highlight {
1528
  background-color: #fffbd4;
@@ -1583,31 +1759,25 @@ a.layout-hover:hover img {
1583
  font-size: 16px;
1584
  background: #f7f7f7;
1585
  border-bottom: 1px solid #e1e1e1; }
1586
-
1587
- .ajax-load-more h3.heading:hover:after,
1588
- .ajax-load-more h3.heading:focus:after {
1589
- color: #ccc; }
1590
-
1591
- .ajax-load-more h3.heading:hover,
1592
- .ajax-load-more h3.heading:focus {
1593
- color: #222;
1594
- outline: none; }
1595
-
1596
- .ajax-load-more h3.heading:after {
1597
- font-family: 'FontAwesome';
1598
- content: '\f056';
1599
- color: #e1e1e1;
1600
- position: absolute;
1601
- left: 13px;
1602
- top: 16px;
1603
- height: 20px;
1604
- width: 20px; }
1605
-
1606
- .ajax-load-more h3.heading.open:after {
1607
- content: '\f055'; }
1608
-
1609
- .ajax-load-more h3.heading.open {
1610
- border-bottom-color: transparent; }
1611
 
1612
  /* Expand/Collapse all rows */
1613
  .ajax-load-more .toggle-all {
@@ -1670,9 +1840,6 @@ a.layout-hover:hover img {
1670
  #alm-container.ajax-load-more .toggle-all {
1671
  display: none; }
1672
 
1673
- #alm-builder {
1674
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif; }
1675
-
1676
  a.button-small {
1677
  text-decoration: none;
1678
  font-size: 12px;
@@ -1694,8 +1861,7 @@ a.button-small {
1694
  margin: 0;
1695
  list-style: none; }
1696
 
1697
- #alm-builder li,
1698
- .forceColors li {
1699
  padding: 0 5% 0 0;
1700
  margin: 0 0 5px;
1701
  width: 48.666%;
@@ -1709,33 +1875,26 @@ a.button-small {
1709
  display: block;
1710
  clear: both;
1711
  width: 100%;
1712
- color: #444;
1713
- font-weight: 600;
1714
  padding: 0 0 10px;
1715
  cursor: default;
1716
- font-size: 12px;
1717
- text-transform: uppercase; }
1718
 
1719
  .ajax-load-more .border-top {
1720
  display: block;
1721
  border-top: 1px solid #efefef;
1722
  width: 100%;
1723
  clear: both;
1724
- margin: 0 0 20px;
1725
- padding: 20px 0 0 !important;
1726
  overflow: visible;
1727
  position: relative; }
1728
 
1729
- .ajax-load-more .border-top.controls {
1730
- padding: 0 !important; }
1731
-
1732
- .ajax-load-more .border-top.controls button {
1733
- margin-top: 20px !important; }
1734
-
1735
  .ajax-load-more .border-top.highlighted {
1736
  background-color: #feffe3;
1737
  padding: 15px !important;
1738
- border: 1px solid #eeefd4; }
 
1739
 
1740
  .ajax-load-more .alm-settings-nav {
1741
  margin: 0 0 5px;
@@ -1771,19 +1930,16 @@ a.button-small {
1771
  border: none;
1772
  border-radius: 3px 0 0 0; }
1773
 
1774
- #meta-query-relation {
1775
- margin: 10px 0 0; }
1776
-
1777
- #meta-query-relation .inner {
1778
- margin: 5px 0 0 !important; }
1779
-
1780
  #alm-meta-key .meta-query-wrap,
1781
  .taxonomy-wrap {
1782
  padding: 15px;
1783
- border: 1px solid #efefef;
1784
- margin: 20px 0 0;
1785
  position: relative;
1786
- border-radius: 2px; }
 
 
 
1787
 
1788
  .meta-query-wrap.removing,
1789
  .taxonomy-wrap.removing {
@@ -1795,8 +1951,8 @@ a.button-small {
1795
  padding: 0;
1796
  margin: 0; }
1797
 
1798
- #meta-key .border-top {
1799
- border: none !important; }
1800
 
1801
  .row .controls {
1802
  display: block;
@@ -1810,27 +1966,51 @@ a.button-small {
1810
  .row.taxonomy .highlighted {
1811
  margin-bottom: 0 !important; }
1812
 
 
 
 
1813
  .meta-query-wrap .remove-meta-query,
1814
  .taxonomy-wrap .remove-tax-query {
1815
  position: absolute;
1816
- right: 7px;
1817
- top: 7px;
1818
- width: 24px;
1819
- height: 24px;
1820
- line-height: 24px;
1821
  text-align: center;
1822
- font-weight: 400;
1823
- font-size: 17px;
1824
- background-color: transparent;
1825
- color: #666;
1826
  text-decoration: none;
1827
- border-radius: 2px; }
 
1828
  .meta-query-wrap .remove-meta-query:hover, .meta-query-wrap .remove-meta-query:hover,
1829
  .taxonomy-wrap .remove-tax-query:hover,
1830
  .taxonomy-wrap .remove-tax-query:hover {
1831
- background-color: #cb2222;
1832
  color: #fff; }
1833
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1834
  .ajax-load-more .meta-query-wrap .border-top:first-of-type {
1835
  padding: 0 0 0 !important;
1836
  border: none; }
@@ -1848,10 +2028,7 @@ a.button-small {
1848
  overflow: hidden; }
1849
 
1850
  .ajax-load-more .taxonomy-extended {
1851
- padding-top: 20px; }
1852
-
1853
- .ajax-load-more #tax-query-relation {
1854
- margin-top: 20px; }
1855
 
1856
  .ajax-load-more .taxonomy-wrap {
1857
  display: none;
@@ -2021,6 +2198,13 @@ a.button-small {
2021
  .ajax-load-more input[type='number'] {
2022
  height: auto; }
2023
 
 
 
 
 
 
 
 
2024
  .ajax-load-more input.disabled-input {
2025
  opacity: 0.5;
2026
  filter: alpha(opacity=50);
@@ -2059,13 +2243,13 @@ a.button-small {
2059
  clear: both;
2060
  display: table; }
2061
  .ajax-load-more .alm-row--margin-btm {
2062
- margin-bottom: 15px; }
2063
  .ajax-load-more .alm-row--margin-btm-lg {
2064
  margin-bottom: 25px; }
2065
  .ajax-load-more .alm-row .column {
2066
  width: 100%;
2067
  float: none;
2068
- padding: 0 15px; }
2069
  .ajax-load-more .alm-row .column--half {
2070
  width: 50%;
2071
  float: left; }
@@ -2088,7 +2272,7 @@ a.button-small {
2088
  /* --------------------------------------------------------------------------- */
2089
  .ajax-load-more .row {
2090
  padding: 0 !important;
2091
- margin: 10px 0 0;
2092
  height: auto;
2093
  width: 100%;
2094
  display: block;
@@ -2103,8 +2287,7 @@ a.button-small {
2103
  .ajax-load-more#alm-repeaters .row {
2104
  overflow: visible; }
2105
 
2106
- .admin.ajax-load-more .row,
2107
- .forceColors .ajax-load-more .row {
2108
  border-color: #e1e1e1; }
2109
 
2110
  .admin.ajax-load-more .repeaters .row:hover,
@@ -2218,15 +2401,15 @@ hr.indented {
2218
  text-decoration: none;
2219
  cursor: help;
2220
  position: relative;
2221
- top: 0;
2222
  background: #fff;
2223
  border-radius: 100%;
2224
- width: 20px;
2225
- height: 20px;
2226
  text-align: center;
2227
- line-height: 20px;
2228
- -webkit-box-shadow: 0 -1px 1px #ccc;
2229
- box-shadow: 0 -1px 1px #ccc; }
2230
 
2231
  .cta h3 .fa.tooltip {
2232
  top: 1px; }
@@ -2403,40 +2586,6 @@ hr.indented {
2403
  padding-top: 1px;
2404
  padding-bottom: 5px; }
2405
 
2406
- .form-table .template-tags {
2407
- overflow: hidden;
2408
- border-left: 6px solid #dfd8c2;
2409
- padding: 15px;
2410
- background: #fff9ea;
2411
- margin: 20px 0 0;
2412
- border-radius: 3px; }
2413
-
2414
- .form-table .template-tags h4,
2415
- .form-table .template-tags li {
2416
- margin: 0 0 8px;
2417
- padding: 0;
2418
- font-size: 13px; }
2419
-
2420
- .form-table .template-tags li {
2421
- margin: 2px 0; }
2422
-
2423
- .form-table .template-tags ul {
2424
- margin: 0;
2425
- padding: 0; }
2426
-
2427
- .form-table .template-tags pre {
2428
- display: inline-block;
2429
- min-width: 120px;
2430
- padding: 0;
2431
- margin: 0;
2432
- color: #888; }
2433
-
2434
- .admin.ajax-load-more .form-table textarea {
2435
- clear: both;
2436
- display: inline-block;
2437
- float: none;
2438
- width: 100%; }
2439
-
2440
  .admin.ajax-load-more textarea.disabled,
2441
  .admin.ajax-load-more input.disabled {
2442
  opacity: 0.9;
@@ -2458,59 +2607,63 @@ hr.indented {
2458
  .admin.ajax-load-more.settings .select2-container {
2459
  margin-top: 10px; }
2460
 
2461
- .admin.ajax-load-more .alm-btn-wrap {
2462
- text-align: left; }
2463
-
2464
  .admin.ajax-load-more .ajax-load-more-wrap {
2465
  position: relative;
2466
- top: 5px;
2467
- padding: 15px;
2468
- border: 1px dashed #e1e1e1;
2469
- display: inline-block;
 
 
2470
  margin-top: 10px;
2471
  margin-bottom: 10px; }
2472
  .admin.ajax-load-more .ajax-load-more-wrap.preview-pane.none {
2473
  display: none; }
 
 
 
 
2474
  .admin.ajax-load-more .ajax-load-more-wrap button {
2475
- margin: 0 !important; }
2476
- .admin.ajax-load-more .ajax-load-more-wrap > span {
 
 
2477
  display: block;
2478
  font-size: 10px;
2479
  line-height: 1;
2480
- opacity: 0.7;
2481
- padding: 0 0 15px;
 
2482
  text-transform: uppercase; }
 
 
2483
 
2484
- .admin.ajax-load-more.settings .ajax-load-more-wrap.pages li {
2485
- font-size: 14px; }
2486
-
2487
- .admin.ajax-load-more.settings .ajax-load-more-wrap.pages li a {
2488
- text-decoration: none; }
2489
-
2490
- /* Table Overrides */
2491
- .admin.ajax-load-more.settings .form-table td,
2492
- .admin.ajax-load-more.settings .form-table th {
2493
- padding: 20px;
2494
- line-height: 1.5; }
2495
-
2496
- .admin.ajax-load-more.settings .form-table td {
2497
- padding-right: 20px; }
2498
-
2499
- .admin.ajax-load-more.settings .form-table th {
2500
- padding-left: 20px;
2501
- font-weight: 700;
2502
- background-color: #f7f7f7;
2503
- border-right: 1px solid #e1e1e1; }
2504
-
2505
- .admin.ajax-load-more.settings .form-table p {
2506
- margin-top: 0; }
2507
-
2508
- .admin.ajax-load-more.settings .form-table p.notify {
2509
- font-size: 12px;
2510
- padding: 5px 0;
2511
- margin: 5px 0 20px;
2512
- overflow: hidden;
2513
- color: #999; }
2514
 
2515
  .ajax-load-more h2.addon-title {
2516
  font-size: 19px !important;
@@ -2537,7 +2690,7 @@ hr.indented {
2537
  .ajax-load-more .cnkt-sidebar h3 {
2538
  padding: 0 0 10px;
2539
  margin: 0 0 20px;
2540
- border-bottom: 1px solid #e1e1e1; }
2541
 
2542
  .ajax-load-more p.desc,
2543
  .ajax-load-more p.writeable-title {
@@ -2770,7 +2923,7 @@ table.highlight {
2770
  .flexbox-wrap p.intro {
2771
  border-bottom: 1px solid #e1e1e1;
2772
  width: 100%;
2773
- padding: 15px;
2774
  margin: 0;
2775
  font-style: italic; }
2776
 
@@ -2791,7 +2944,7 @@ table.highlight {
2791
  width: 100%; }
2792
  #alm-add-ons .group.highlighted a, #alm-add-ons .group.extend a {
2793
  background: #f7f7f7;
2794
- border: 10px solid rgba(0, 0, 0, 0.025); }
2795
  #alm-add-ons .group.highlighted img, #alm-add-ons .group.extend img {
2796
  padding: 10px; }
2797
  @media screen and (min-width: 768px) {
@@ -2911,9 +3064,7 @@ table.highlight {
2911
  .call-out.light p a:hover {
2912
  text-decoration: underline; }
2913
 
2914
- #alm-builder .call-out,
2915
- .forceColors .call-out {
2916
- /* Shortcode builder */
2917
  width: 90%;
2918
  width: calc(100% - 20px);
2919
  margin: 10px; }
@@ -3212,10 +3363,6 @@ span.cnkt-button.installed i,
3212
  .ajax-load-more .cnkt-sidebar .cta-inner.padding-bottom {
3213
  padding-bottom: 80px; }
3214
 
3215
- .ajax-load-more .cnkt-sidebar .cta.mailing-list .head-wrap {
3216
- display: block;
3217
- padding: 20px; }
3218
-
3219
  .ajax-load-more .cnkt-sidebar .cta.padding-bottom {
3220
  padding-bottom: 50px; }
3221
 
@@ -3224,7 +3371,7 @@ span.cnkt-button.installed i,
3224
  margin-top: 0; }
3225
 
3226
  .ajax-load-more .cnkt-sidebar h3 {
3227
- padding: 12px 15px;
3228
  margin: 0;
3229
  display: block;
3230
  font-size: 14px;
@@ -3304,7 +3451,7 @@ span.cnkt-button.installed i,
3304
  text-decoration: none;
3305
  padding: 10px 0;
3306
  display: block;
3307
- border-top: 1px solid #efefef; }
3308
 
3309
  .ajax-load-more .cnkt-sidebar .cta.resources li:first-of-type a {
3310
  border: none;
@@ -3312,7 +3459,7 @@ span.cnkt-button.installed i,
3312
 
3313
  .ajax-load-more .cnkt-sidebar .cta.resources li i {
3314
  display: inline-block;
3315
- width: 20px;
3316
  text-align: center;
3317
  color: #ccc;
3318
  text-decoration: none;
@@ -3370,35 +3517,34 @@ span.cnkt-button.installed i,
3370
 
3371
  .ajax-load-more .cnkt-sidebar .project-listing {
3372
  padding: 0; }
3373
-
3374
- .ajax-load-more .cnkt-sidebar .project-listing li {
3375
- margin: 20px 0 0;
3376
- padding: 0;
3377
- position: relative;
3378
- clear: both; }
3379
-
3380
- .ajax-load-more .cnkt-sidebar .project-listing li a {
3381
- display: block;
3382
- position: static;
3383
- padding-left: 60px;
3384
- min-height: 58px;
3385
- text-decoration: none; }
3386
-
3387
- .ajax-load-more .cnkt-sidebar .project-listing li:first-of-type {
3388
- margin-top: 0; }
3389
-
3390
- .ajax-load-more .cnkt-sidebar .project-listing img {
3391
- height: 48px;
3392
- left: 0;
3393
- position: absolute;
3394
- top: 2px;
3395
- width: 48px; }
3396
-
3397
- .ajax-load-more .cnkt-sidebar .project-listing li strong {
3398
- display: block; }
3399
-
3400
- .ajax-load-more .cnkt-sidebar .project-listing li span {
3401
- color: #777; }
3402
 
3403
  /*
3404
  * CodeMirror Syntax Highlighting
@@ -3596,10 +3742,11 @@ span.cnkt-button.installed i,
3596
  position: relative; }
3597
  .alm-cache .alm-cache-listing .toggle-all {
3598
  right: 0;
3599
- top: -42px; }
3600
  .alm-cache hr {
3601
- margin: 30px 0 25px;
3602
- border-top-color: #efefef; }
 
3603
  .alm-cache .alm-dir-listing {
3604
  border: 1px solid #e1e1e1;
3605
  border-radius: 3px;
@@ -3755,11 +3902,6 @@ span.cnkt-button.installed i,
3755
  margin: 10px 0 0;
3756
  border-top: 1px solid #efefef; }
3757
 
3758
- p.theme-title {
3759
- font-weight: 600;
3760
- margin: 0 0 15px !important;
3761
- padding: 0 5px; }
3762
-
3763
  .alm-dir-listing ul li {
3764
  margin: 0 -2px;
3765
  padding: 9px 0 5px 40px;
@@ -3772,31 +3914,30 @@ p.theme-title {
3772
  .alm-dir-listing ul li.full {
3773
  width: 100%;
3774
  display: block; }
 
 
 
 
 
 
 
 
 
 
 
 
3775
 
3776
  .alm-dir-listing.theme-repeaters ul li {
3777
  display: block;
3778
  width: 100%;
3779
  padding-top: 10px;
3780
- padding: 0 0 0 40px;
3781
  background-position: left 54%; }
3782
-
3783
- .alm-dir-listing.theme-repeaters ul li label {
3784
- display: block;
3785
- width: 100%; }
3786
-
3787
- .alm-dir-listing ul li:last-child,
3788
- .alm-dir-listing ul li:nth-last-child(2) {
3789
- background-image: url("../../img/directory-list-btm.gif"); }
3790
-
3791
- .alm-dir-listing.theme-repeaters ul li:nth-last-child(2) {
3792
- background: transparent url("../../img/directory-list.gif") no-repeat left center; }
3793
-
3794
- .alm-dir-listing ul li a {
3795
- text-decoration: none; }
3796
-
3797
- .alm-dir-listing li i {
3798
- color: #999;
3799
- padding: 0 5px 0 0; }
3800
 
3801
  /*
3802
  * Error Handling
@@ -3850,7 +3991,7 @@ p.theme-title {
3850
  .ajax-load-more .form-table input[type='checkbox'] + label,
3851
  .shortcode-builder input[type='radio'] + label,
3852
  .ajax-load-more .form-table input[type='radio'] + label {
3853
- background: transparent url("../../img/bkg-chkbox_off.png") no-repeat left 1px;
3854
  height: auto;
3855
  min-height: 23px;
3856
  width: 100%;
@@ -3913,60 +4054,6 @@ p.theme-title {
3913
  #alm-shortcode-builder-form {
3914
  position: relative; }
3915
 
3916
- #alm-shortcode-builder-form .shortcode-parameter-wrap {
3917
- padding: 0 20px 20px;
3918
- display: block;
3919
- background: #fff;
3920
- border: 1px solid #e1e1e1;
3921
- border-radius: 3px;
3922
- margin-bottom: 10px; }
3923
- #alm-shortcode-builder-form .shortcode-parameter-wrap.closed {
3924
- padding-bottom: 0;
3925
- border-bottom: none; }
3926
- #alm-shortcode-builder-form .shortcode-parameter-wrap h2 {
3927
- padding: 20px 22px 20px 43px;
3928
- margin: 0 -20px;
3929
- display: block;
3930
- font-size: 20px;
3931
- width: calc(100% + 40px);
3932
- border-bottom: 1px solid #e1e1e1;
3933
- background-color: #f7f7f7;
3934
- border-radius: 2px 2px 0 0;
3935
- color: #555;
3936
- font-weight: 700;
3937
- position: relative;
3938
- cursor: pointer; }
3939
- #alm-shortcode-builder-form .shortcode-parameter-wrap h2:focus, #alm-shortcode-builder-form .shortcode-parameter-wrap h2:hover {
3940
- color: #222;
3941
- outline: none; }
3942
- #alm-shortcode-builder-form .shortcode-parameter-wrap h2:hover:after, #alm-shortcode-builder-form .shortcode-parameter-wrap h2:focus:after {
3943
- color: #ccc; }
3944
- #alm-shortcode-builder-form .shortcode-parameter-wrap h2:after {
3945
- font-family: 'FontAwesome';
3946
- content: '\f056';
3947
- color: #e1e1e1;
3948
- position: absolute;
3949
- left: 15px;
3950
- top: 20px;
3951
- height: 20px;
3952
- width: 20px; }
3953
- #alm-shortcode-builder-form .shortcode-parameter-wrap h2.open:after {
3954
- content: '\f055'; }
3955
- #alm-shortcode-builder-form .shortcode-parameter-wrap h2 i {
3956
- position: absolute;
3957
- right: 15px;
3958
- top: 50%;
3959
- -webkit-transform: translateY(-50%);
3960
- -ms-transform: translateY(-50%);
3961
- transform: translateY(-50%);
3962
- font-size: 25px;
3963
- color: #ccc;
3964
- opacity: 0.45;
3965
- display: none; }
3966
-
3967
- #alm-shortcode-builder-form .shortcode-parameter-wrap:first-of-type {
3968
- margin-top: 0; }
3969
-
3970
  .progress_bar_color_indicator {
3971
  position: absolute;
3972
  left: 11px;
@@ -4740,10 +4827,10 @@ span.dismiss a {
4740
  .ajax-load-more input[type='text'],
4741
  .ajax-load-more input[type='number'],
4742
  .select2-container,
4743
- #alm-builder .select2-container-multi,
4744
  .ajax-load-more textarea {
4745
  width: 95%; }
4746
- #alm-builder .select2-container-multi {
4747
  width: 95% !important; } }
4748
 
4749
  @media screen and (max-width: 900px) {
@@ -4767,9 +4854,9 @@ span.dismiss a {
4767
 
4768
  @media screen and (max-width: 782px) {
4769
  .admin.ajax-load-more.settings .form-table th {
4770
- padding-bottom: 0;
4771
  border: none;
4772
- background-color: transparent; }
 
4773
  .share-alm .sharing {
4774
  padding-right: 0;
4775
  width: 100%;
@@ -4797,7 +4884,7 @@ span.dismiss a {
4797
  .ajax-load-more input[type='text'],
4798
  .ajax-load-more input[type='number'],
4799
  .select2-container,
4800
- #alm-builder .select2-container-multi {
4801
  width: 100% !important; }
4802
  .ajax-load-more .row .wrap .inner.half {
4803
  display: block;
520
  position: relative;
521
  z-index: 1; }
522
  .ajax-load-more .header-wrap h1 {
523
+ padding: 20px 20px 20px 75px;
524
  margin: 0;
525
  min-height: 48px;
526
+ background: #fff url("../../img/alm-logo-48x48.png") no-repeat 20px 20px;
527
+ background: #fff url("../../img/alm-logo-48x48.svg") no-repeat 20px 20px;
528
  font-size: 18px;
529
  font-weight: 800;
530
  border-bottom: 1px solid #e1e1e1; }
534
  .ajax-load-more .header-wrap h1 em {
535
  display: block;
536
  position: relative;
537
+ font-size: 13px;
538
  color: #999;
539
  font-style: normal;
540
  font-weight: 400;
549
  .ajax-load-more .header-wrap h1 span {
550
  color: #999;
551
  font-weight: 300;
 
552
  margin: 0 0 0 5px;
553
  vertical-align: top;
554
  font-size: 12px;
563
  .ajax-load-more .header-wrap h1 span {
564
  font-size: 13px; } }
565
  .ajax-load-more .header-wrap .notice {
566
+ margin: 20px; }
567
 
568
  /* Pro Add-on Listing */
569
  .alm-pro-listing {
870
  .ajax-load-more .cnkt-sidebar {
871
  width: 30%;
872
  float: right;
873
+ padding: 20px;
874
  position: absolute;
875
  right: 0;
876
  top: 0;
893
 
894
  .alm-settings-feedback {
895
  position: fixed;
896
+ top: 50px;
897
+ right: 10px;
898
  width: auto;
899
  height: auto;
900
  background: #fff;
906
  border-radius: 2px;
907
  opacity: 0;
908
  visibility: hidden;
909
+ -webkit-transition: all 0.25s ease-in-out;
910
+ transition: all 0.25s ease-in-out;
911
  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
912
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
913
  font-size: 13px; }
915
  border-color: #e0bd5e;
916
  opacity: 1;
917
  visibility: visible;
918
+ top: 50px;
919
+ right: 25px; }
920
  .alm-settings-feedback.--saved {
921
  opacity: 1;
922
  visibility: visible;
923
+ top: 50px;
924
+ right: 25px; }
925
+ .alm-settings-feedback.--saved i {
926
+ opacity: 1;
927
+ color: #5cc583; }
928
  .alm-settings-feedback.--error {
929
  border-color: #e03e3e;
930
  opacity: 1;
931
  visibility: visible;
932
+ top: 25px;
933
+ right: 25px; }
934
  .alm-settings-feedback i {
935
  opacity: 0.6;
936
  margin: 0 3px 0 0; }
1024
  background-size: 30px 10px;
1025
  background-position: 95% center; }
1026
 
1027
+ .shortcode-builder a.group {
1028
+ border-radius: 0 0 3px 3px; }
1029
+
1030
  .shortcode-builder p.warning-callout:before {
1031
  display: block;
1032
  width: calc(100% + 36px);
1057
  .shortcode-builder section.full .shortcode-builder--fields {
1058
  width: 100%; }
1059
  .shortcode-builder section.full .shortcode-builder--label {
1060
+ border: none;
1061
  border-bottom: 1px solid #f1f1f1; }
1062
+ .shortcode-builder section input[type='text'],
1063
+ .shortcode-builder section input[type='email'],
1064
+ .shortcode-builder section input[type='number'],
1065
  .shortcode-builder section textarea {
1066
  width: 100%; }
1067
  .shortcode-builder section .select2-container {
1069
  width: 100%; }
1070
 
1071
  .shortcode-builder--label, .shortcode-builder--fields {
1072
+ padding: 20px; }
1073
 
1074
  .shortcode-builder--label {
1075
  background-color: #fcfcfc;
1076
  border-right: 1px solid #f1f1f1;
1077
+ width: 35%;
1078
  padding-right: 30px; }
1079
  .shortcode-builder--label.full {
1080
  width: 100%; }
1095
  -webkit-box-flex: 1;
1096
  -ms-flex: 1;
1097
  flex: 1; }
1098
+ .shortcode-builder--fields input,
1099
+ .shortcode-builder--fields textarea,
1100
+ .shortcode-builder--fields select {
1101
  width: 100%; }
1102
  .shortcode-builder--fields section {
1103
  width: 104%;
1112
  display: flex;
1113
  width: 100%;
1114
  -ms-flex-wrap: nowrap;
1115
+ flex-wrap: nowrap;
1116
+ -webkit-box-pack: justify;
1117
+ -ms-flex-pack: justify;
1118
+ justify-content: space-between; }
1119
  .shortcode-builder--fields .flex-grid--two, .shortcode-builder--fields .flex-grid--three {
1120
+ width: 100%; }
 
1121
  .shortcode-builder--fields .flex-grid--two > div, .shortcode-builder--fields .flex-grid--three > div {
1122
+ width: 48%; }
 
1123
  .shortcode-builder--fields .flex-grid--three > div {
1124
+ width: 31.333%; }
1125
+ .shortcode-builder--fields ul {
1126
+ display: -webkit-box;
1127
+ display: -ms-flexbox;
1128
+ display: flex;
1129
+ width: 100%;
1130
+ -ms-flex-wrap: wrap;
1131
+ flex-wrap: wrap; }
1132
+ .shortcode-builder--fields ul li {
1133
+ width: 50%;
1134
+ padding-right: 10px; }
1135
+ .shortcode-builder--fields ul li label {
1136
+ margin-bottom: 0 !important; }
1137
 
1138
  @media screen and (max-width: 1000px) {
1139
  .shortcode-builder section {
1181
  top: 0;
1182
  left: 35px;
1183
  border: solid transparent;
1184
+ content: ' ';
1185
  height: 0;
1186
  width: 0;
1187
  position: absolute;
1205
  clear: both;
1206
  display: table;
1207
  content: ''; }
1208
+ .shortcode-builder .nested-component .nested-component .shortcode-builder--label {
1209
+ border-left: 6px solid #f1f1f1; }
1210
 
1211
  .shortcode-builder .section-intro {
1212
+ margin: 0 0 10px; }
1213
+
1214
+ .shortcode-builder .section-anchor-nav {
1215
+ display: -webkit-box;
1216
+ display: -ms-flexbox;
1217
+ display: flex;
1218
+ -ms-flex-wrap: wrap;
1219
+ flex-wrap: wrap;
1220
+ width: 100%;
1221
+ margin: 0;
1222
+ padding: 0 0 15px;
1223
+ border-bottom: 1px solid #e1e1e1; }
1224
+ .shortcode-builder .section-anchor-nav li {
1225
+ margin: 0 10px 5px 0;
1226
+ padding: 0;
1227
+ font-size: 12px; }
1228
+ .shortcode-builder .section-anchor-nav a {
1229
+ display: block; }
1230
+ .shortcode-builder .section-anchor-nav a:focus, .shortcode-builder .section-anchor-nav a:hover {
1231
+ text-decoration: none; }
1232
 
1233
  .woocommerce-help--item {
1234
  width: 100%;
1316
  color: #fff;
1317
  cursor: default; }
1318
 
1319
+ /* Template Tags */
1320
+ .ajax-load-more .template-tags {
1321
+ overflow: hidden;
1322
+ border-left: 5px solid #dfd8c2;
1323
+ padding: 15px;
1324
+ background: #fff9ea;
1325
+ margin: 20px 0 0;
1326
+ border-radius: 3px; }
1327
+ .ajax-load-more .template-tags h4,
1328
+ .ajax-load-more .template-tags li {
1329
+ margin: 0 0 8px;
1330
+ padding: 0;
1331
+ font-size: 13px;
1332
+ text-decoration: none !important; }
1333
+ .ajax-load-more .template-tags li {
1334
+ margin: 5px 0 !important;
1335
+ width: 100% !important;
1336
+ padding: 0 !important;
1337
+ border-radius: 3px;
1338
+ line-height: 1.25; }
1339
+ .ajax-load-more .template-tags ul {
1340
+ margin: 0;
1341
+ padding: 0; }
1342
+ .ajax-load-more .template-tags pre {
1343
+ display: inline-block;
1344
+ min-width: 120px;
1345
+ padding: 0;
1346
+ margin: 0;
1347
+ color: #888; }
1348
 
1349
+ .ajax-load-more .alm-tabbed-wrapper {
1350
+ width: 100%; }
1351
+ @media screen and (min-width: 620px) {
1352
+ .ajax-load-more .alm-tabbed-wrapper {
1353
+ display: -webkit-box;
1354
+ display: -ms-flexbox;
1355
+ display: flex;
1356
+ -ms-flex-wrap: nowrap;
1357
+ flex-wrap: nowrap; } }
1358
+ .ajax-load-more .alm-tabbed-wrapper h2 {
1359
+ padding: 20px 0 0;
1360
+ margin: 0 0 15px;
1361
+ display: block;
1362
+ font-size: 20px;
1363
+ color: #555;
1364
+ font-weight: 700; }
1365
+ .ajax-load-more .alm-tabbed-wrapper h2 + p {
1366
+ position: relative;
1367
+ top: -5px; }
1368
+ .ajax-load-more .alm-tabbed-wrapper--nav {
1369
+ border: 1px solid #e1e1e1;
1370
+ margin-bottom: 20px;
1371
+ padding: 10px;
1372
+ background: #fff; }
1373
+ @media screen and (min-width: 620px) {
1374
+ .ajax-load-more .alm-tabbed-wrapper--nav {
1375
+ width: 165px;
1376
+ background-color: #f7f7f7;
1377
+ padding: 0;
1378
+ border: 1px solid #e1e1e1;
1379
+ border-right: none;
1380
+ border-bottom: none;
1381
+ border-radius: 3px 3px 0 0;
1382
+ position: relative;
1383
+ z-index: 1;
1384
+ margin: 0; } }
1385
+ .ajax-load-more .alm-tabbed-wrapper--nav ul {
1386
+ margin: 0;
1387
+ padding: 0 0 35px; }
1388
+ @media screen and (max-width: 620px) {
1389
+ .ajax-load-more .alm-tabbed-wrapper--nav ul {
1390
+ padding: 0;
1391
+ border: 1px solid #e1e1e1; } }
1392
+ .ajax-load-more .alm-tabbed-wrapper--nav ul li {
1393
+ width: 100% !important;
1394
+ margin: 0;
1395
+ padding: 0;
1396
+ list-style: none; }
1397
+ @media screen and (min-width: 620px) {
1398
+ .ajax-load-more .alm-tabbed-wrapper--nav ul li:first-of-type {
1399
+ position: relative;
1400
+ top: -1px; }
1401
+ .ajax-load-more .alm-tabbed-wrapper--nav ul li:first-of-type button {
1402
+ border-top: 1px solid #e1e1e1;
1403
+ border-radius: 3px 0 0 0; } }
1404
+ @media screen and (max-width: 620px) {
1405
+ .ajax-load-more .alm-tabbed-wrapper--nav ul li:last-of-type button {
1406
+ border: none; } }
1407
+ @media screen and (min-width: 620px) {
1408
+ .ajax-load-more .alm-tabbed-wrapper--nav ul.attached {
1409
+ position: fixed;
1410
+ width: auto;
1411
+ top: 70px; }
1412
+ .ajax-load-more .alm-tabbed-wrapper--nav ul.attached li:first-of-type button {
1413
+ border-radius: 0; } }
1414
+ .ajax-load-more .alm-tabbed-wrapper--nav button {
1415
+ display: block;
1416
+ width: 100%;
1417
+ border: none;
1418
+ background: none;
1419
+ font-size: 13px;
1420
+ line-height: 1.4;
1421
+ padding: 12px 10px;
1422
+ text-align: left;
1423
+ font-weight: 400;
1424
+ white-space: nowrap;
1425
+ overflow: hidden;
1426
+ text-overflow: ellipsis;
1427
+ background: #f7f7f7;
1428
+ border-bottom: 1px solid #e1e1e1;
1429
+ cursor: pointer; }
1430
+ .ajax-load-more .alm-tabbed-wrapper--nav button:hover, .ajax-load-more .alm-tabbed-wrapper--nav button:focus {
1431
+ background-color: #efefef; }
1432
+ .ajax-load-more .alm-tabbed-wrapper--nav button i {
1433
+ opacity: 0.65;
1434
+ width: 18px; }
1435
+ .ajax-load-more .alm-tabbed-wrapper--nav button i.fa-handshake-o {
1436
+ position: relative;
1437
+ left: -2px; }
1438
+ .ajax-load-more .alm-tabbed-wrapper--nav button.active {
1439
+ font-weight: 600;
1440
+ background-color: #fff;
1441
+ color: #e06464;
1442
+ cursor: default; }
1443
+ @media screen and (min-width: 620px) {
1444
+ .ajax-load-more .alm-tabbed-wrapper--nav button.active {
1445
+ width: calc(100% + 1px); } }
1446
+ .ajax-load-more .alm-tabbed-wrapper--sections {
1447
+ -webkit-box-flex: 1;
1448
+ -ms-flex: 1;
1449
+ flex: 1;
1450
+ padding: 0 20px 20px;
1451
+ display: block;
1452
+ background: #fff;
1453
+ border: 1px solid #e1e1e1; }
1454
+ @media screen and (min-width: 620px) {
1455
+ .ajax-load-more .alm-tabbed-wrapper--sections {
1456
+ border-bottom: none;
1457
+ border-radius: 0 3px 0 0; } }
1458
+ .ajax-load-more .alm-tabbed-wrapper--section {
1459
+ display: none; }
1460
+ .ajax-load-more .alm-tabbed-wrapper--section.active {
1461
+ display: block; }
1462
+
1463
+ body.toplevel_page_ajax-load-more,
1464
+ body.ajax-load-more_page_ajax-load-more-repeaters,
1465
+ body.ajax-load-more_page_ajax-load-more-shortcode-builder,
1466
+ body.ajax-load-more_page_ajax-load-more-add-ons,
1467
+ body.ajax-load-more_page_ajax-load-more-extensions,
1468
+ body.ajax-load-more_page_ajax-load-more-help,
1469
+ body.ajax-load-more_page_ajax-load-more-licenses,
1470
+ body.ajax-load-more_page_ajax-load-more-cache,
1471
+ body.ajax-load-more_page_ajax-load-more-filters,
1472
+ body.ajax-load-more_page_ajax-load-more-pro,
1473
+ body.ajax-load-more_page_ajax-load-more-go-pro,
1474
+ body.ajax-load-more_page_ajax-load-more-woocommerce {
1475
+ height: auto !important; }
1476
+ body.toplevel_page_ajax-load-more #wpcontent,
1477
+ body.ajax-load-more_page_ajax-load-more-repeaters #wpcontent,
1478
+ body.ajax-load-more_page_ajax-load-more-shortcode-builder #wpcontent,
1479
+ body.ajax-load-more_page_ajax-load-more-add-ons #wpcontent,
1480
+ body.ajax-load-more_page_ajax-load-more-extensions #wpcontent,
1481
+ body.ajax-load-more_page_ajax-load-more-help #wpcontent,
1482
+ body.ajax-load-more_page_ajax-load-more-licenses #wpcontent,
1483
+ body.ajax-load-more_page_ajax-load-more-cache #wpcontent,
1484
+ body.ajax-load-more_page_ajax-load-more-filters #wpcontent,
1485
+ body.ajax-load-more_page_ajax-load-more-pro #wpcontent,
1486
+ body.ajax-load-more_page_ajax-load-more-go-pro #wpcontent,
1487
+ body.ajax-load-more_page_ajax-load-more-woocommerce #wpcontent {
1488
+ padding-left: 0;
1489
+ padding-bottom: 20px; }
1490
+ body.toplevel_page_ajax-load-more #wpbody-content,
1491
+ body.ajax-load-more_page_ajax-load-more-repeaters #wpbody-content,
1492
+ body.ajax-load-more_page_ajax-load-more-shortcode-builder #wpbody-content,
1493
+ body.ajax-load-more_page_ajax-load-more-add-ons #wpbody-content,
1494
+ body.ajax-load-more_page_ajax-load-more-extensions #wpbody-content,
1495
+ body.ajax-load-more_page_ajax-load-more-help #wpbody-content,
1496
+ body.ajax-load-more_page_ajax-load-more-licenses #wpbody-content,
1497
+ body.ajax-load-more_page_ajax-load-more-cache #wpbody-content,
1498
+ body.ajax-load-more_page_ajax-load-more-filters #wpbody-content,
1499
+ body.ajax-load-more_page_ajax-load-more-pro #wpbody-content,
1500
+ body.ajax-load-more_page_ajax-load-more-go-pro #wpbody-content,
1501
+ body.ajax-load-more_page_ajax-load-more-woocommerce #wpbody-content {
1502
+ padding-bottom: 0; }
1503
 
1504
  body.toplevel_page_ajax-load-more #wpfooter,
1505
  body.ajax-load-more_page_ajax-load-more-repeaters #wpfooter,
1540
  margin: 0 !important; }
1541
 
1542
  .ajax-load-more-inner-wrapper {
1543
+ padding: 20px 20px 60px;
1544
  display: block;
1545
  clear: both;
1546
  max-width: 1440px;
1588
  -webkit-box-sizing: border-box;
1589
  box-sizing: border-box; }
1590
 
 
 
 
1591
  .offscreen {
1592
  position: absolute;
1593
  left: -9999px; }
1619
  display: inline-block;
1620
  vertical-align: top; }
1621
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1622
  .ajax-load-more .file-location {
1623
  border: 1px solid #e1e1e1;
1624
  background: #fff;
1676
  .ajax-load-more label.lg {
1677
  font-size: 16px; }
1678
 
1679
+ .ajax-load-more textarea#_alm_layouts_css {
1680
  height: 240px; }
1681
 
1682
+ .ajax-load-more a.layout-hover {
1683
  width: 20px !important;
1684
  height: 20px !important;
1685
  background: #ccc;
1686
  display: inline-block;
1687
  position: relative; }
1688
+ .ajax-load-more a.layout-hover img {
1689
+ position: absolute;
1690
+ left: 100%;
1691
+ top: 0;
1692
+ z-index: 999;
1693
+ opacity: 0;
1694
+ filter: alpha(opacity=0); }
1695
+ .ajax-load-more a.layout-hover:hover img {
1696
+ position: absolute;
1697
+ left: 100%;
1698
+ top: 0;
1699
+ z-index: 999;
1700
+ opacity: 1;
1701
+ filter: alpha(opacity=100); }
 
 
1702
 
1703
  .ajax-load-more p.highlight {
1704
  background-color: #fffbd4;
1759
  font-size: 16px;
1760
  background: #f7f7f7;
1761
  border-bottom: 1px solid #e1e1e1; }
1762
+ .ajax-load-more h3.heading:hover:after, .ajax-load-more h3.heading:focus:after {
1763
+ color: #ccc; }
1764
+ .ajax-load-more h3.heading:hover, .ajax-load-more h3.heading:focus {
1765
+ color: #222;
1766
+ outline: none;
1767
+ text-decoration: underline; }
1768
+ .ajax-load-more h3.heading:after {
1769
+ font-family: 'FontAwesome';
1770
+ content: '\f056';
1771
+ color: #e1e1e1;
1772
+ position: absolute;
1773
+ left: 13px;
1774
+ top: 16px;
1775
+ height: 20px;
1776
+ width: 20px; }
1777
+ .ajax-load-more h3.heading.open:after {
1778
+ content: '\f055'; }
1779
+ .ajax-load-more h3.heading.open {
1780
+ border-bottom-color: transparent; }
 
 
 
 
 
 
1781
 
1782
  /* Expand/Collapse all rows */
1783
  .ajax-load-more .toggle-all {
1840
  #alm-container.ajax-load-more .toggle-all {
1841
  display: none; }
1842
 
 
 
 
1843
  a.button-small {
1844
  text-decoration: none;
1845
  font-size: 12px;
1861
  margin: 0;
1862
  list-style: none; }
1863
 
1864
+ .shortcode-builder--items li {
 
1865
  padding: 0 5% 0 0;
1866
  margin: 0 0 5px;
1867
  width: 48.666%;
1875
  display: block;
1876
  clear: both;
1877
  width: 100%;
1878
+ color: #555;
1879
+ font-weight: 500;
1880
  padding: 0 0 10px;
1881
  cursor: default;
1882
+ font-size: 13px; }
 
1883
 
1884
  .ajax-load-more .border-top {
1885
  display: block;
1886
  border-top: 1px solid #efefef;
1887
  width: 100%;
1888
  clear: both;
1889
+ padding: 15px 0 0 !important;
 
1890
  overflow: visible;
1891
  position: relative; }
1892
 
 
 
 
 
 
 
1893
  .ajax-load-more .border-top.highlighted {
1894
  background-color: #feffe3;
1895
  padding: 15px !important;
1896
+ border: 1px solid #eeefd4;
1897
+ border-radius: 3px; }
1898
 
1899
  .ajax-load-more .alm-settings-nav {
1900
  margin: 0 0 5px;
1930
  border: none;
1931
  border-radius: 3px 0 0 0; }
1932
 
 
 
 
 
 
 
1933
  #alm-meta-key .meta-query-wrap,
1934
  .taxonomy-wrap {
1935
  padding: 15px;
1936
+ border: 1px solid #f1f1f1;
1937
+ margin: 15px 0 0;
1938
  position: relative;
1939
+ border-radius: 3px; }
1940
+
1941
+ #alm-meta-key .meta-query-wrap {
1942
+ padding-bottom: 0; }
1943
 
1944
  .meta-query-wrap.removing,
1945
  .taxonomy-wrap.removing {
1951
  padding: 0;
1952
  margin: 0; }
1953
 
1954
+ .section-control {
1955
+ padding-top: 15px; }
1956
 
1957
  .row .controls {
1958
  display: block;
1966
  .row.taxonomy .highlighted {
1967
  margin-bottom: 0 !important; }
1968
 
1969
+ #tax-query-relation {
1970
+ padding-top: 15px; }
1971
+
1972
  .meta-query-wrap .remove-meta-query,
1973
  .taxonomy-wrap .remove-tax-query {
1974
  position: absolute;
1975
+ right: 2px;
1976
+ top: 2px;
1977
+ width: 26px;
1978
+ height: 26px;
1979
+ line-height: 25px;
1980
  text-align: center;
1981
+ font-weight: 500;
1982
+ font-size: 18px;
1983
+ background-color: #f7f7f7;
1984
+ color: #555;
1985
  text-decoration: none;
1986
+ border-radius: 2px;
1987
+ padding-left: 1px; }
1988
  .meta-query-wrap .remove-meta-query:hover, .meta-query-wrap .remove-meta-query:hover,
1989
  .taxonomy-wrap .remove-tax-query:hover,
1990
  .taxonomy-wrap .remove-tax-query:hover {
1991
+ background-color: #e06464;
1992
  color: #fff; }
1993
 
1994
+ .ajax-load-more .meta-query-wrap {
1995
+ display: -webkit-box;
1996
+ display: -ms-flexbox;
1997
+ display: flex;
1998
+ -ms-flex-wrap: wrap;
1999
+ flex-wrap: wrap;
2000
+ -webkit-box-pack: justify;
2001
+ -ms-flex-pack: justify;
2002
+ justify-content: space-between;
2003
+ width: 100%; }
2004
+ .ajax-load-more .meta-query-wrap > div {
2005
+ width: 48%;
2006
+ margin: 0 0 15px; }
2007
+
2008
+ .meta-query-extended .meta-query-wrap {
2009
+ margin-bottom: 15px; }
2010
+
2011
+ #meta-query-relation {
2012
+ margin: 0 0 15px; }
2013
+
2014
  .ajax-load-more .meta-query-wrap .border-top:first-of-type {
2015
  padding: 0 0 0 !important;
2016
  border: none; }
2028
  overflow: hidden; }
2029
 
2030
  .ajax-load-more .taxonomy-extended {
2031
+ padding-top: 15px; }
 
 
 
2032
 
2033
  .ajax-load-more .taxonomy-wrap {
2034
  display: none;
2198
  .ajax-load-more input[type='number'] {
2199
  height: auto; }
2200
 
2201
+ .admin.ajax-load-more .form-table textarea {
2202
+ clear: both;
2203
+ display: inline-block;
2204
+ float: none;
2205
+ width: 100%; }
2206
+
2207
+ .admin.ajax-load-more textarea.disabled,
2208
  .ajax-load-more input.disabled-input {
2209
  opacity: 0.5;
2210
  filter: alpha(opacity=50);
2243
  clear: both;
2244
  display: table; }
2245
  .ajax-load-more .alm-row--margin-btm {
2246
+ margin-bottom: 20px; }
2247
  .ajax-load-more .alm-row--margin-btm-lg {
2248
  margin-bottom: 25px; }
2249
  .ajax-load-more .alm-row .column {
2250
  width: 100%;
2251
  float: none;
2252
+ padding: 0 20px; }
2253
  .ajax-load-more .alm-row .column--half {
2254
  width: 50%;
2255
  float: left; }
2272
  /* --------------------------------------------------------------------------- */
2273
  .ajax-load-more .row {
2274
  padding: 0 !important;
2275
+ margin: 20px 0 0;
2276
  height: auto;
2277
  width: 100%;
2278
  display: block;
2287
  .ajax-load-more#alm-repeaters .row {
2288
  overflow: visible; }
2289
 
2290
+ .admin.ajax-load-more .row {
 
2291
  border-color: #e1e1e1; }
2292
 
2293
  .admin.ajax-load-more .repeaters .row:hover,
2401
  text-decoration: none;
2402
  cursor: help;
2403
  position: relative;
2404
+ top: -1px;
2405
  background: #fff;
2406
  border-radius: 100%;
2407
+ width: 16px;
2408
+ height: 16px;
2409
  text-align: center;
2410
+ line-height: 16px;
2411
+ -webkit-box-shadow: 0 1px 1px #ccc;
2412
+ box-shadow: 0 1px 1px #ccc; }
2413
 
2414
  .cta h3 .fa.tooltip {
2415
  top: 1px; }
2586
  padding-top: 1px;
2587
  padding-bottom: 5px; }
2588
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2589
  .admin.ajax-load-more textarea.disabled,
2590
  .admin.ajax-load-more input.disabled {
2591
  opacity: 0.9;
2607
  .admin.ajax-load-more.settings .select2-container {
2608
  margin-top: 10px; }
2609
 
 
 
 
2610
  .admin.ajax-load-more .ajax-load-more-wrap {
2611
  position: relative;
2612
+ top: 10px;
2613
+ padding: 20px;
2614
+ border: 1px solid #e1e1e1;
2615
+ -webkit-box-shadow: inset 0 0 0 5px rgba(0, 0, 0, 0.025), 0 0 5px rgba(0, 0, 0, 0.1);
2616
+ box-shadow: inset 0 0 0 5px rgba(0, 0, 0, 0.025), 0 0 5px rgba(0, 0, 0, 0.1);
2617
+ border-radius: 3px;
2618
  margin-top: 10px;
2619
  margin-bottom: 10px; }
2620
  .admin.ajax-load-more .ajax-load-more-wrap.preview-pane.none {
2621
  display: none; }
2622
+ .admin.ajax-load-more .ajax-load-more-wrap .alm-btn-wrap {
2623
+ text-align: left;
2624
+ padding: 0;
2625
+ margin: 0; }
2626
  .admin.ajax-load-more .ajax-load-more-wrap button {
2627
+ margin: 0 !important;
2628
+ opacity: 1 !important;
2629
+ visibility: visible !important; }
2630
+ .admin.ajax-load-more .ajax-load-more-wrap span {
2631
  display: block;
2632
  font-size: 10px;
2633
  line-height: 1;
2634
+ border-bottom: 1px solid #e1e1e1;
2635
+ padding: 0 0 10px;
2636
+ margin: 0 0 20px;
2637
  text-transform: uppercase; }
2638
+ .admin.ajax-load-more .ajax-load-more-wrap ul.alm-paging li span {
2639
+ padding: 0; }
2640
 
2641
+ .admin.ajax-load-more.settings {
2642
+ /* Table Overrides */ }
2643
+ .admin.ajax-load-more.settings .ajax-load-more-wrap.pages li {
2644
+ font-size: 14px; }
2645
+ .admin.ajax-load-more.settings .ajax-load-more-wrap.pages li a {
2646
+ text-decoration: none; }
2647
+ .admin.ajax-load-more.settings .form-table td,
2648
+ .admin.ajax-load-more.settings .form-table th {
2649
+ padding: 20px;
2650
+ line-height: 1.5; }
2651
+ .admin.ajax-load-more.settings .form-table td {
2652
+ padding-right: 20px; }
2653
+ .admin.ajax-load-more.settings .form-table th {
2654
+ padding-left: 20px;
2655
+ font-weight: 600;
2656
+ background-color: #f7f7f7;
2657
+ border-right: 1px solid #e1e1e1;
2658
+ width: 25%; }
2659
+ .admin.ajax-load-more.settings .form-table p {
2660
+ margin-top: 0; }
2661
+ .admin.ajax-load-more.settings .form-table p.notify {
2662
+ font-size: 12px;
2663
+ padding: 10px 0 0;
2664
+ margin: 5px 0 20px;
2665
+ overflow: hidden;
2666
+ color: #999; }
 
 
 
 
2667
 
2668
  .ajax-load-more h2.addon-title {
2669
  font-size: 19px !important;
2690
  .ajax-load-more .cnkt-sidebar h3 {
2691
  padding: 0 0 10px;
2692
  margin: 0 0 20px;
2693
+ border-bottom: 1px solid #f1f1f1; }
2694
 
2695
  .ajax-load-more p.desc,
2696
  .ajax-load-more p.writeable-title {
2923
  .flexbox-wrap p.intro {
2924
  border-bottom: 1px solid #e1e1e1;
2925
  width: 100%;
2926
+ padding: 20px;
2927
  margin: 0;
2928
  font-style: italic; }
2929
 
2944
  width: 100%; }
2945
  #alm-add-ons .group.highlighted a, #alm-add-ons .group.extend a {
2946
  background: #f7f7f7;
2947
+ border: 10px solid white; }
2948
  #alm-add-ons .group.highlighted img, #alm-add-ons .group.extend img {
2949
  padding: 10px; }
2950
  @media screen and (min-width: 768px) {
3064
  .call-out.light p a:hover {
3065
  text-decoration: underline; }
3066
 
3067
+ .shortcode-builder--items .call-out {
 
 
3068
  width: 90%;
3069
  width: calc(100% - 20px);
3070
  margin: 10px; }
3363
  .ajax-load-more .cnkt-sidebar .cta-inner.padding-bottom {
3364
  padding-bottom: 80px; }
3365
 
 
 
 
 
3366
  .ajax-load-more .cnkt-sidebar .cta.padding-bottom {
3367
  padding-bottom: 50px; }
3368
 
3371
  margin-top: 0; }
3372
 
3373
  .ajax-load-more .cnkt-sidebar h3 {
3374
+ padding: 13px 15px;
3375
  margin: 0;
3376
  display: block;
3377
  font-size: 14px;
3451
  text-decoration: none;
3452
  padding: 10px 0;
3453
  display: block;
3454
+ border-top: 1px dashed #e1e1e1; }
3455
 
3456
  .ajax-load-more .cnkt-sidebar .cta.resources li:first-of-type a {
3457
  border: none;
3459
 
3460
  .ajax-load-more .cnkt-sidebar .cta.resources li i {
3461
  display: inline-block;
3462
+ width: 24px;
3463
  text-align: center;
3464
  color: #ccc;
3465
  text-decoration: none;
3517
 
3518
  .ajax-load-more .cnkt-sidebar .project-listing {
3519
  padding: 0; }
3520
+ .ajax-load-more .cnkt-sidebar .project-listing li {
3521
+ margin: 15px 0 0;
3522
+ padding: 0;
3523
+ position: relative;
3524
+ clear: both; }
3525
+ .ajax-load-more .cnkt-sidebar .project-listing li:first-of-type {
3526
+ margin-top: 0; }
3527
+ .ajax-load-more .cnkt-sidebar .project-listing li strong {
3528
+ display: block;
3529
+ font-weight: 700; }
3530
+ .ajax-load-more .cnkt-sidebar .project-listing li span {
3531
+ color: #555;
3532
+ font-size: 0.95em;
3533
+ opacity: 0.75; }
3534
+ .ajax-load-more .cnkt-sidebar .project-listing li span strong {
3535
+ display: inline; }
3536
+ .ajax-load-more .cnkt-sidebar .project-listing li a {
3537
+ display: block;
3538
+ position: static;
3539
+ padding-left: 60px;
3540
+ min-height: 58px;
3541
+ text-decoration: none; }
3542
+ .ajax-load-more .cnkt-sidebar .project-listing img {
3543
+ height: 48px;
3544
+ left: 0;
3545
+ position: absolute;
3546
+ top: 2px;
3547
+ width: 48px; }
 
3548
 
3549
  /*
3550
  * CodeMirror Syntax Highlighting
3742
  position: relative; }
3743
  .alm-cache .alm-cache-listing .toggle-all {
3744
  right: 0;
3745
+ top: -45px; }
3746
  .alm-cache hr {
3747
+ margin: 32px 0 25px;
3748
+ border-top-color: #efefef;
3749
+ border-bottom: none; }
3750
  .alm-cache .alm-dir-listing {
3751
  border: 1px solid #e1e1e1;
3752
  border-radius: 3px;
3902
  margin: 10px 0 0;
3903
  border-top: 1px solid #efefef; }
3904
 
 
 
 
 
 
3905
  .alm-dir-listing ul li {
3906
  margin: 0 -2px;
3907
  padding: 9px 0 5px 40px;
3914
  .alm-dir-listing ul li.full {
3915
  width: 100%;
3916
  display: block; }
3917
+ .alm-dir-listing ul li:last-child, .alm-dir-listing ul li:nth-last-child(2) {
3918
+ background-image: url("../../img/directory-list-btm.gif"); }
3919
+ .alm-dir-listing ul li a {
3920
+ text-decoration: none; }
3921
+ .alm-dir-listing ul li i {
3922
+ color: #999;
3923
+ padding: 0 5px 0 0; }
3924
+
3925
+ .alm-dir-listing p.theme-title {
3926
+ font-weight: 600;
3927
+ margin: 0 0 20px !important;
3928
+ padding: 0; }
3929
 
3930
  .alm-dir-listing.theme-repeaters ul li {
3931
  display: block;
3932
  width: 100%;
3933
  padding-top: 10px;
3934
+ padding: 0 0 0 36px;
3935
  background-position: left 54%; }
3936
+ .alm-dir-listing.theme-repeaters ul li label {
3937
+ display: block;
3938
+ width: 100%; }
3939
+ .alm-dir-listing.theme-repeaters ul li:nth-last-child(2) {
3940
+ background: transparent url("../../img/directory-list.gif") no-repeat left center; }
 
 
 
 
 
 
 
 
 
 
 
 
 
3941
 
3942
  /*
3943
  * Error Handling
3991
  .ajax-load-more .form-table input[type='checkbox'] + label,
3992
  .shortcode-builder input[type='radio'] + label,
3993
  .ajax-load-more .form-table input[type='radio'] + label {
3994
+ background: transparent url("../../img/bkg-chkbox_off.png") no-repeat left 2px;
3995
  height: auto;
3996
  min-height: 23px;
3997
  width: 100%;
4054
  #alm-shortcode-builder-form {
4055
  position: relative; }
4056
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4057
  .progress_bar_color_indicator {
4058
  position: absolute;
4059
  left: 11px;
4827
  .ajax-load-more input[type='text'],
4828
  .ajax-load-more input[type='number'],
4829
  .select2-container,
4830
+ .shortcode-builder--items .select2-container-multi,
4831
  .ajax-load-more textarea {
4832
  width: 95%; }
4833
+ .shortcode-builder--items .select2-container-multi {
4834
  width: 95% !important; } }
4835
 
4836
  @media screen and (max-width: 900px) {
4854
 
4855
  @media screen and (max-width: 782px) {
4856
  .admin.ajax-load-more.settings .form-table th {
 
4857
  border: none;
4858
+ border-bottom: 1px solid #e1e1e1;
4859
+ width: 100%; }
4860
  .share-alm .sharing {
4861
  padding-right: 0;
4862
  width: 100%;
4884
  .ajax-load-more input[type='text'],
4885
  .ajax-load-more input[type='number'],
4886
  .select2-container,
4887
+ .shortcode-builder--items .select2-container-multi {
4888
  width: 100% !important; }
4889
  .ajax-load-more .row .wrap .inner.half {
4890
  display: block;
admin/dist/js/admin.js CHANGED
@@ -1208,7 +1208,7 @@ var alm = alm || {};
1208
 
1209
  /*
1210
  * alm.attachSticky
1211
- */
1212
  alm.attachSticky = function (el, anchor) {
1213
  var top = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
1214
 
@@ -1234,39 +1234,45 @@ alm.attachSticky = function (el, anchor) {
1234
 
1235
  /*
1236
  * alm.resizeSticky
1237
- */
1238
- alm.resizeSticky = function () {
1239
- var sticky = document.getElementById('cnkt-sticky');
1240
- var el = document.getElementById('cnkt-sticky-wrapper');
1241
- var atts = window.getComputedStyle(el);
1242
- sticky.style.width = atts.width;
1243
  };
1244
 
1245
  /*
1246
  * initSticky
1247
- */
1248
- var initSticky = function initSticky() {
1249
- if (document.getElementById("cnkt-sticky-wrapper")) {
1250
- var sticky_el = document.getElementById('cnkt-sticky');
1251
- var sticky_anchor = document.getElementById('cnkt-sticky-wrapper');
1252
- var sticky_top = 70; // The position the sticky should stick
1253
 
1254
- // Scroll
1255
  window.addEventListener('scroll', function (e) {
1256
- alm.attachSticky(sticky_el, sticky_anchor, sticky_top);
1257
  });
1258
  // Resize
1259
  window.addEventListener('resize', function (e) {
1260
- alm.resizeSticky();
1261
  });
1262
  // Init
1263
- alm.resizeSticky();
1264
- alm.attachSticky(sticky_el, sticky_anchor, sticky_top);
1265
  }
1266
  };
1267
 
1268
  window.onload = function () {
1269
- initSticky();
 
 
 
 
 
 
 
 
 
1270
  };
1271
  'use strict';
1272
 
@@ -1301,9 +1307,76 @@ jQuery(document).ready(function ($) {
1301
  });
1302
  }
1303
 
1304
- /*
1305
- * Save Repeater Templates with cmd + s and ctrl + s
1306
- * @since 5.1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1307
  */
1308
  document.addEventListener('keydown', function (e) {
1309
  if ((window.navigator.platform.match('Mac') ? e.metaKey : e.ctrlKey) && e.keyCode == 83) {
@@ -1333,13 +1406,11 @@ jQuery(document).ready(function ($) {
1333
  }
1334
  });
1335
 
1336
- /*
1337
- * _alm.saveSettings
1338
- * Setting panel save actions
1339
  *
1340
- * @since 3.2.0
1341
  */
1342
-
1343
  var almSettings = $('#alm_OptionsForm'),
1344
  savingSettings = false,
1345
  settingsForm = document.querySelector('#alm_OptionsForm'),
@@ -1405,25 +1476,24 @@ jQuery(document).ready(function ($) {
1405
  }, 500);
1406
  });
1407
 
1408
- /*
1409
- * Download Repeater Template
1410
- * Trigger the download of a repeater template from the admin
1411
  *
1412
- * @since 3.6
1413
  */
1414
-
1415
- $('.download-repeater').on('click', function (e) {
1416
  var el = this;
1417
  el.closest('form').submit();
1418
  });
1419
 
1420
- /*
1421
- * Tooltipster
1422
- * http://iamceege.github.io/tooltipster/
1423
  *
1424
- * @since 2.8.4
 
1425
  */
1426
- $('body').on('mouseenter', '.tooltip:not(.tooltipstered)', function () {
1427
  $(this).tooltipster({
1428
  delay: 100,
1429
  speed: 150,
@@ -1431,24 +1501,24 @@ jQuery(document).ready(function ($) {
1431
  }).tooltipster('show');
1432
  });
1433
 
1434
- /*
1435
- * Button preview pane
1436
- * Found on Settings and Shortcode Builder
1437
  *
1438
- * @since 2.8.4
1439
  */
1440
-
1441
- $('select#alm_settings_btn_color').change(function () {
1442
  var color = jQuery(this).val();
1443
  // Remove other colors
1444
-
1445
- $('.alm-btn-wrap .ajax-load-more-wrap').attr('class', 'ajax-load-more-wrap');
1446
- $('.alm-btn-wrap .ajax-load-more-wrap').addClass(color);
1447
- $('.alm-btn-wrap .ajax-load-more-wrap #test-alm-button').removeClass('loading');
 
1448
 
1449
  // Add loading class if Infinite loading style
1450
  if (color.indexOf('infinite') >= 0) {
1451
- $('.alm-btn-wrap .ajax-load-more-wrap #test-alm-button').addClass('loading');
1452
  }
1453
  });
1454
 
@@ -1519,22 +1589,6 @@ jQuery(document).ready(function ($) {
1519
  * @since 2.0.0
1520
  */
1521
 
1522
- $(document).on('click', 'h2.shortcode-title', function () {
1523
- var el = $(this);
1524
- var parent = el.closest('.shortcode-parameter-wrap');
1525
- if (el.hasClass('open')) {
1526
- el.next('.section-wrap').slideDown(_alm.options.speed, 'alm_easeInOutQuad', function () {
1527
- el.removeClass('open');
1528
- parent.removeClass('closed');
1529
- });
1530
- } else {
1531
- el.next('.section-wrap').slideUp(_alm.options.speed, 'alm_easeInOutQuad', function () {
1532
- el.addClass('open');
1533
- parent.addClass('closed');
1534
- });
1535
- }
1536
- });
1537
-
1538
  $(document).on('click', 'h3.heading', function () {
1539
  var el = $(this);
1540
  if ($(el).hasClass('open')) {
@@ -1548,20 +1602,18 @@ jQuery(document).ready(function ($) {
1548
  }
1549
  });
1550
 
 
1551
  $(document).on('click', '.toggle-all', function () {
1552
- var el = $(this),
1553
- type = el.data('id');
1554
  if (el.hasClass('closed')) {
1555
  el.removeClass('closed');
1556
 
1557
- $('h2.shortcode-title').closest('.shortcode-parameter-wrap').removeClass('closed');
1558
  $('h3.heading, h2.shortcode-title').removeClass('open');
1559
  $('.section-wrap').slideDown(_alm.options.speed, 'alm_easeInOutQuad');
1560
  $('.expand-wrap').slideDown(_alm.options.speed, 'alm_easeInOutQuad');
1561
  } else {
1562
  el.addClass('closed');
1563
 
1564
- $('h2.shortcode-title').closest('.shortcode-parameter-wrap').addClass('closed');
1565
  $('h3.heading, h2.shortcode-title').addClass('open');
1566
  $('.section-wrap').slideUp(_alm.options.speed, 'alm_easeInOutQuad');
1567
  $('.expand-wrap').slideUp(_alm.options.speed, 'alm_easeInOutQuad');
@@ -1569,7 +1621,7 @@ jQuery(document).ready(function ($) {
1569
  });
1570
 
1571
  // Trigger click events on enter/return
1572
- $('h3.heading, h2.shortcode-title').keypress(function (e) {
1573
  var key = e.which;
1574
  if (key == 13) {
1575
  // the enter key code
1208
 
1209
  /*
1210
  * alm.attachSticky
1211
+ */
1212
  alm.attachSticky = function (el, anchor) {
1213
  var top = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
1214
 
1234
 
1235
  /*
1236
  * alm.resizeSticky
1237
+ */
1238
+ alm.resizeSticky = function (target, element) {
1239
+ var atts = window.getComputedStyle(element);
1240
+ target.style.width = atts.width;
 
 
1241
  };
1242
 
1243
  /*
1244
  * initSticky
1245
+ */
1246
+ var initSticky = function initSticky(element) {
1247
+ if (element) {
1248
+ var target = element.firstElementChild;
1249
+ var sticky_top = 70; // The position the sticky should stick
 
1250
 
1251
+ // Scroll
1252
  window.addEventListener('scroll', function (e) {
1253
+ alm.attachSticky(target, element, sticky_top);
1254
  });
1255
  // Resize
1256
  window.addEventListener('resize', function (e) {
1257
+ alm.resizeSticky(target, element);
1258
  });
1259
  // Init
1260
+ alm.resizeSticky(target, element);
1261
+ alm.attachSticky(target, element, sticky_top);
1262
  }
1263
  };
1264
 
1265
  window.onload = function () {
1266
+ var stickyID = document.getElementById('cnkt-sticky-wrapper');
1267
+ if (stickyID) {
1268
+ initSticky(stickyID);
1269
+ }
1270
+ var stickies = document.querySelectorAll('.cnkt-sticky-wrapper');
1271
+ if (stickies) {
1272
+ stickies.forEach(function (sticky) {
1273
+ initSticky(sticky);
1274
+ });
1275
+ }
1276
  };
1277
  'use strict';
1278
 
1307
  });
1308
  }
1309
 
1310
+ /**
1311
+ * Tabbed Navigation Elements
1312
+ *
1313
+ * @since 5.4
1314
+ */
1315
+ var ACTIVE_TAB_CLASS = 'active';
1316
+ function openTabbedItem(button, index, almTabbedWrapper) {
1317
+ // Get Currently Active Button.
1318
+ var activeBtn = document.querySelector('.alm-tabbed-wrapper--nav button.active');
1319
+ if (activeBtn) {
1320
+ activeBtn.classList.remove(ACTIVE_TAB_CLASS);
1321
+ }
1322
+
1323
+ // Add Button Active Class.
1324
+ button.classList.add(ACTIVE_TAB_CLASS);
1325
+
1326
+ // Activate Current Section
1327
+ if (almTabbedWrapper) {
1328
+ var currentActive = almTabbedWrapper.querySelector('.alm-tabbed-wrapper--section.' + ACTIVE_TAB_CLASS);
1329
+ var sections = almTabbedWrapper.querySelectorAll('.alm-tabbed-wrapper--section');
1330
+ if (currentActive && sections) {
1331
+ currentActive.classList.remove(ACTIVE_TAB_CLASS);
1332
+ if (sections[index]) {
1333
+ sections[index].classList.add(ACTIVE_TAB_CLASS);
1334
+ sections[index].focus({ preventScroll: true });
1335
+ $('html, body').animate({
1336
+ scrollTop: $('.alm-tabbed-wrapper--sections').offset().top - 45
1337
+ }, 350, function () {
1338
+ var section = parseInt(index) + 1;
1339
+ window.location.hash = 'alm-section-' + section;
1340
+ });
1341
+ }
1342
+ }
1343
+ }
1344
+ }
1345
+
1346
+ var almTabbedWrapper = document.querySelector('.alm-tabbed-wrapper');
1347
+ if (almTabbedWrapper) {
1348
+ var current = almTabbedWrapper.querySelector('.alm-tabbed-wrapper--section');
1349
+ if (current) {
1350
+ current.classList.add(ACTIVE_TAB_CLASS);
1351
+ }
1352
+ var tabbedNav = almTabbedWrapper.querySelectorAll('.alm-tabbed-wrapper--nav button');
1353
+ if (tabbedNav) {
1354
+ tabbedNav.forEach(function (item, index) {
1355
+ item.addEventListener('click', function () {
1356
+ openTabbedItem(this, index, almTabbedWrapper);
1357
+ });
1358
+ });
1359
+ }
1360
+
1361
+ // Open hash
1362
+ var hash = window.location.hash;
1363
+ if (hash && hash.indexOf('alm-section') !== -1) {
1364
+ hash = hash.replace('#', '');
1365
+ var openSection = hash.replace('alm-section-', '');
1366
+ openSection = parseInt(openSection) - 1;
1367
+ // Get button from nodelist.
1368
+ var nodeItem = tabbedNav.item(openSection);
1369
+ if (nodeItem) {
1370
+ // trigger a click.
1371
+ nodeItem.click();
1372
+ }
1373
+ }
1374
+ }
1375
+
1376
+ /**
1377
+ * Save Repeater Templates with cmd + s and ctrl + s
1378
+ *
1379
+ * @since 5.1
1380
  */
1381
  document.addEventListener('keydown', function (e) {
1382
  if ((window.navigator.platform.match('Mac') ? e.metaKey : e.ctrlKey) && e.keyCode == 83) {
1406
  }
1407
  });
1408
 
1409
+ /**
1410
+ * Setting panel save actions
 
1411
  *
1412
+ * @since 3.2.0
1413
  */
 
1414
  var almSettings = $('#alm_OptionsForm'),
1415
  savingSettings = false,
1416
  settingsForm = document.querySelector('#alm_OptionsForm'),
1476
  }, 500);
1477
  });
1478
 
1479
+ /**
1480
+ * Download Repeater Template
1481
+ * Trigger the download of a repeater template from the admin
1482
  *
1483
+ * @since 3.6
1484
  */
1485
+ $('.download-repeater').on('click', function () {
 
1486
  var el = this;
1487
  el.closest('form').submit();
1488
  });
1489
 
1490
+ /**
1491
+ * Tooltipster
 
1492
  *
1493
+ * @see http://iamceege.github.io/tooltipster/
1494
+ * @since 2.8.4
1495
  */
1496
+ $('.ajax-load-more-inner-wrapper').on('mouseenter', '.tooltip:not(.tooltipstered)', function () {
1497
  $(this).tooltipster({
1498
  delay: 100,
1499
  speed: 150,
1501
  }).tooltipster('show');
1502
  });
1503
 
1504
+ /**
1505
+ * Button preview pane
1506
+ * Found on Settings and Shortcode Builder.
1507
  *
1508
+ * @since 2.8.4
1509
  */
1510
+ $('select#alm_settings_btn_color').on('change', function () {
 
1511
  var color = jQuery(this).val();
1512
  // Remove other colors
1513
+ var wrap = $('.ajax-load-more-wrap');
1514
+ wrap.attr('class', '');
1515
+ wrap.addClass('ajax-load-more-wrap');
1516
+ wrap.addClass(color);
1517
+ $('#test-alm-button', wrap).removeClass('loading');
1518
 
1519
  // Add loading class if Infinite loading style
1520
  if (color.indexOf('infinite') >= 0) {
1521
+ $('#test-alm-button', wrap).addClass('loading');
1522
  }
1523
  });
1524
 
1589
  * @since 2.0.0
1590
  */
1591
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1592
  $(document).on('click', 'h3.heading', function () {
1593
  var el = $(this);
1594
  if ($(el).hasClass('open')) {
1602
  }
1603
  });
1604
 
1605
+ // Toggle Links.
1606
  $(document).on('click', '.toggle-all', function () {
1607
+ var el = $(this);
 
1608
  if (el.hasClass('closed')) {
1609
  el.removeClass('closed');
1610
 
 
1611
  $('h3.heading, h2.shortcode-title').removeClass('open');
1612
  $('.section-wrap').slideDown(_alm.options.speed, 'alm_easeInOutQuad');
1613
  $('.expand-wrap').slideDown(_alm.options.speed, 'alm_easeInOutQuad');
1614
  } else {
1615
  el.addClass('closed');
1616
 
 
1617
  $('h3.heading, h2.shortcode-title').addClass('open');
1618
  $('.section-wrap').slideUp(_alm.options.speed, 'alm_easeInOutQuad');
1619
  $('.expand-wrap').slideUp(_alm.options.speed, 'alm_easeInOutQuad');
1621
  });
1622
 
1623
  // Trigger click events on enter/return
1624
+ $('h3.heading, h2.shortcode-title').on('keypress', function (e) {
1625
  var key = e.which;
1626
  if (key == 13) {
1627
  // the enter key code
admin/img/logos/block-manager.png ADDED
Binary file
admin/includes/components/custom-layouts.php CHANGED
File without changes
admin/includes/cta/about.php CHANGED
@@ -2,20 +2,27 @@
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="">
8
  <strong>Easy Query</strong>
9
  <span>Build and display WordPress queries without touching a single line of code.</span>
10
  </a>
11
- </li>
12
- <li>
13
  <a target="blank" href="https://connekthq.com/plugins/instant-images/">
14
  <img src="<?php echo ALM_ADMIN_URL; ?>img/logos/instant-images-48x48.png" alt="">
15
  <strong>Instant Images</strong>
16
  <span>One click uploads of Unsplash.com photos directly to your media library.</span>
17
  </a>
18
- </li>
19
  <li>
20
  <a target="blank" href="https://connekthq.com/plugins/velocity/">
21
  <img src="<?php echo ALM_ADMIN_URL; ?>img/logos/velocity-48x48.png" alt="">
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://wordpress.org/plugins/block-manager/">
7
+ <img src="<?php echo ALM_ADMIN_URL; ?>img/logos/block-manager.png" alt="">
8
+ <strong>Block Manager</strong>
9
+ <span>A plugin to remove <strong><u>unwanted</u></strong> Gutenberg blocks from the WordPress block inserter.</span>
10
+ </a>
11
+ </li>
12
  <li>
13
  <a target="blank" href="https://connekthq.com/plugins/easy-query/">
14
  <img src="<?php echo ALM_ADMIN_URL; ?>img/logos/eq-48x48.png" alt="">
15
  <strong>Easy Query</strong>
16
  <span>Build and display WordPress queries without touching a single line of code.</span>
17
  </a>
18
+ </li>
19
+ <li>
20
  <a target="blank" href="https://connekthq.com/plugins/instant-images/">
21
  <img src="<?php echo ALM_ADMIN_URL; ?>img/logos/instant-images-48x48.png" alt="">
22
  <strong>Instant Images</strong>
23
  <span>One click uploads of Unsplash.com photos directly to your media library.</span>
24
  </a>
25
+ </li>
26
  <li>
27
  <a target="blank" href="https://connekthq.com/plugins/velocity/">
28
  <img src="<?php echo ALM_ADMIN_URL; ?>img/logos/velocity-48x48.png" alt="">
admin/includes/cta/add-ons.php CHANGED
@@ -1,10 +1,10 @@
1
  <div class="cta">
2
- <h3><?php _e('About the Add-ons', 'ajax-load-more'); ?></h3>
3
  <div class="cta-inner">
4
- <p style="padding-bottom: 10px;">Ajax Load More offers a variety of unique <a href="https://connekthq.com/plugins/ajax-load-more/add-ons/" target="_blank">add-ons</a> that will extend and enhance the core functionality of the plugin.</p>
5
- <p>Add-ons can be purchased individually or in a <a href="https://connekthq.com/plugins/ajax-load-more/pro/?utm_source=WP%20Admin&utm_medium=Addons%20Dashboard&utm_campaign=Pro%20Bundle" target="_blank">Pro bundle</a> which gives you access to all current and future Ajax Load More add-ons at over 50% off the regular price!</p>
6
  </div>
7
  <div class="major-publishing-actions">
8
- <a href="https://connekthq.com/plugins/ajax-load-more/add-ons/" class="button" target="_blank"><?php _e('View Add-ons', 'ajax-load-more'); ?></a>
9
  </div>
10
- </div>
1
  <div class="cta">
2
+ <h3><?php _e( 'About the Add-ons', 'ajax-load-more' ); ?></h3>
3
  <div class="cta-inner">
4
+ <p style="padding-bottom: 10px;">Ajax Load More offers a variety of unique <a href="https://connekthq.com/plugins/ajax-load-more/add-ons/" target="_blank">add-ons</a> that will extend and enhance the core functionality of the plugin.</p>
5
+ <p>Add-ons can be purchased individually or in a <a href="https://connekthq.com/plugins/ajax-load-more/pro/?utm_source=WP%20Admin&utm_medium=Addons%20Dashboard&utm_campaign=Pro%20Bundle" target="_blank">Pro bundle</a> which gives you access to all current and future Ajax Load More add-ons at over 50% off the regular price!</p>
6
  </div>
7
  <div class="major-publishing-actions">
8
+ <a href="https://connekthq.com/plugins/ajax-load-more/add-ons/" class="button" target="_blank"><?php _e('View Add-ons', 'ajax-load-more' ); ?></a>
9
  </div>
10
+ </div>
admin/includes/cta/dyk.php CHANGED
@@ -1,93 +1,107 @@
1
- <?php if(!has_action('alm_pro_installed')){ ?>
2
  <div class="cta dyk">
3
- <h3><?php _e('Did You Know?', 'ajax-load-more'); ?></h3>
4
- <?php $random = rand(1, 6); ?>
5
  <?php if($random == 1){ ?>
6
  <div class="cta-inner">
7
- <div class="img">
8
- <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/shortcode-editor.jpg">
9
- </div>
10
- <div class="text">
11
- <p class="addon-intro">You can generate shortcodes while editing pages!</p>
12
- <p>Click the Ajax Load More icon in the content editor toolbar and the <a href="?page=ajax-load-more-shortcode-builder">shortcode builder</a> will open up in a lightbox window.</p>
13
- </div>
14
  </div>
15
  <?php } ?>
16
-
17
- <?php if($random == 2){ ?>
18
  <div class="cta-inner">
19
- <div class="img">
20
- <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/cache-add-on.jpg">
21
- </div>
22
- <div class="text">
23
- <p class="addon-intro">You can cache your server requests with Ajax Load More!</p>
24
- <p>The <a target="blank" style="font-weight: 600;" href="https://connekthq.com/plugins/ajax-load-more/add-ons/cache/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=Cache">Cache</a> add-on creates static HTML files of Ajax Load More requests then delivers those static files to your visitors.</p>
25
- </div>
26
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  <div class="major-publishing-actions">
28
- <a target="blank" class="button button-primary" href="https://connekthq.com/plugins/ajax-load-more/add-ons/cache/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=Cache">Learn More</a>
29
  </div>
30
  <?php } ?>
31
-
32
- <?php if($random == 3){ ?>
33
  <div class="cta-inner">
34
- <div class="img">
35
- <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/prev-post-add-on.jpg">
36
- </div>
37
- <div class="text">
38
- <p class="addon-intro">You can lazy load single posts with Ajax Load More!</p>
39
- <p>The <a target="blank" style="font-weight: 600;" href="https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=PreviousPost">Single Post</a> add-on will load single posts as you scroll and update the browser URL to the current post.</p>
40
- </div>
41
  </div>
42
  <div class="major-publishing-actions">
43
- <a target="blank" class="button button-primary" href="https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=PreviousPost">Learn More</a>
44
  </div>
45
  <?php } ?>
46
-
47
- <?php if($random == 4){ ?>
48
  <div class="cta-inner">
49
- <div class="img">
50
- <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/comments-add-on.jpg">
51
- </div>
52
- <div class="text">
53
- <p class="addon-intro">You can lazy load blog comments with Ajax Load More!</p>
54
- <p>The <a target="blank" style="font-weight: 600;" href="https://connekthq.com/plugins/ajax-load-more/add-ons/comments/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=Comments">Comments</a> add-on will load and display blog comments using the core Ajax Load More infinite scroll functionality.</p>
55
- </div>
56
  </div>
57
  <div class="major-publishing-actions">
58
- <a target="blank" class="button button-primary" href="https://connekthq.com/plugins/ajax-load-more/add-ons/comments/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=Comments">Learn More</a>
59
  </div>
60
  <?php } ?>
61
-
62
- <?php if($random == 5){ ?>
63
  <div class="cta-inner">
64
- <div class="img">
65
- <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/next-page-add-on.jpg">
66
- </div>
67
- <div class="text">
68
- <p class="addon-intro">You can infinite scroll just about anything with the Next Page add-on!</p>
69
- <p>The <a target="blank" style="font-weight: 600;" href="https://connekthq.com/plugins/ajax-load-more/add-ons/next-page/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=Next Page">Next Page</a> add-on will allow you to split post content into pages using the <span style="display: inline-block; font-style: italic; color: #999;">&lt;!--nextpage--&gt;</span> <a href="https://codex.wordpress.org/Write_Post_SubPanel#Quicktags" target="_blank">Quicktag</a> and load the generated pages on demand.</p>
70
- </div>
71
  </div>
72
  <div class="major-publishing-actions">
73
- <a target="blank" class="button button-primary" href="https://connekthq.com/plugins/ajax-load-more/add-ons/next-page/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=Next Page">Learn More</a>
74
  </div>
75
  <?php } ?>
76
-
77
- <?php if($random == 6){ ?>
78
  <div class="cta-inner">
79
- <div class="img">
80
- <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/pro-bundle-add-on.png">
81
- </div>
82
- <div class="text">
83
- <p class="addon-intro">Ajax Load More PRO</p>
84
- <p>The <a target="blank" style="font-weight: 600;" href="https://connekthq.com/plugins/ajax-load-more/pro/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=Pro">Pro</a> add-on bundle provides access to all current and future Ajax Load More add-ons in a single installation!</p>
85
- </div>
86
  </div>
87
  <div class="major-publishing-actions">
88
- <a target="blank" class="button button-primary" href="https://connekthq.com/plugins/ajax-load-more/pro/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=Pro">Learn More</a>
89
  </div>
90
  <?php } ?>
91
-
92
  </div>
93
- <?php } ?>
1
+ <?php if ( ! has_action( 'alm_pro_installed' ) ) { ?>
2
  <div class="cta dyk">
3
+ <h3><?php _e( 'Did You Know?', 'ajax-load-more' ); ?></h3>
4
+ <?php $random = rand( 1, 7 ); ?>
5
  <?php if($random == 1){ ?>
6
  <div class="cta-inner">
7
+ <div class="img">
8
+ <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/shortcode-editor.jpg">
9
+ </div>
10
+ <div class="text">
11
+ <p class="addon-intro">You can generate shortcodes while editing pages!</p>
12
+ <p>Click the Ajax Load More icon in the content editor toolbar and the <a href="?page=ajax-load-more-shortcode-builder">shortcode builder</a> will open up in a lightbox window.</p>
13
+ </div>
14
  </div>
15
  <?php } ?>
16
+ <?php if ( $random == 2 ) { ?>
 
17
  <div class="cta-inner">
18
+ <div class="img">
19
+ <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/cache-add-on.jpg">
20
+ </div>
21
+ <div class="text">
22
+ <p class="addon-intro">You can cache your server requests with Ajax Load More!</p>
23
+ <p>The <a target="blank" style="font-weight: 600;" href="https://connekthq.com/plugins/ajax-load-more/add-ons/cache/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=Cache">Cache</a> add-on creates static HTML files of Ajax Load More requests then delivers those static files to your visitors.</p>
24
+ </div>
25
+ </div>
26
+ <div class="major-publishing-actions">
27
+ <a target="blank" class="button button-primary" href="https://connekthq.com/plugins/ajax-load-more/add-ons/cache/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=Cache">Learn More</a>
28
+ </div>
29
+ <?php } ?>
30
+
31
+ <?php if ( $random == 3 ) { ?>
32
+ <div class="cta-inner">
33
+ <div class="img">
34
+ <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/prev-post-add-on.jpg">
35
+ </div>
36
+ <div class="text">
37
+ <p class="addon-intro">You can lazy load single posts with Ajax Load More!</p>
38
+ <p>The <a target="blank" style="font-weight: 600;" href="https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=PreviousPost">Single Post</a> add-on will load single posts as you scroll and update the browser URL to the current post.</p>
39
+ </div>
40
+ </div>
41
  <div class="major-publishing-actions">
42
+ <a target="blank" class="button button-primary" href="https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=PreviousPost">Learn More</a>
43
  </div>
44
  <?php } ?>
45
+
46
+ <?php if ( $random == 4 ) { ?>
47
  <div class="cta-inner">
48
+ <div class="img">
49
+ <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/comments-add-on.jpg">
50
+ </div>
51
+ <div class="text">
52
+ <p class="addon-intro">You can lazy load blog comments with Ajax Load More!</p>
53
+ <p>The <a target="blank" style="font-weight: 600;" href="https://connekthq.com/plugins/ajax-load-more/add-ons/comments/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=Comments">Comments</a> add-on will load and display blog comments using the core Ajax Load More infinite scroll functionality.</p>
54
+ </div>
55
  </div>
56
  <div class="major-publishing-actions">
57
+ <a target="blank" class="button button-primary" href="https://connekthq.com/plugins/ajax-load-more/add-ons/comments/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=Comments">Learn More</a>
58
  </div>
59
  <?php } ?>
60
+
61
+ <?php if ( $random == 5 ) { ?>
62
  <div class="cta-inner">
63
+ <div class="img">
64
+ <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/next-page-add-on.jpg">
65
+ </div>
66
+ <div class="text">
67
+ <p class="addon-intro">You can infinite scroll just about anything with the Next Page add-on!</p>
68
+ <p>The <a target="blank" style="font-weight: 600;" href="https://connekthq.com/plugins/ajax-load-more/add-ons/next-page/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=Next Page">Next Page</a> add-on will allow you to split post content into pages using the <span style="display: inline-block; font-style: italic; color: #999;">&lt;!--nextpage--&gt;</span> <a href="https://codex.wordpress.org/Write_Post_SubPanel#Quicktags" target="_blank">Quicktag</a> and load the generated pages on demand.</p>
69
+ </div>
70
  </div>
71
  <div class="major-publishing-actions">
72
+ <a target="blank" class="button button-primary" href="https://connekthq.com/plugins/ajax-load-more/add-ons/next-page/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=Next Page">Learn More</a>
73
  </div>
74
  <?php } ?>
75
+
76
+ <?php if ( $random == 6 ) { ?>
77
  <div class="cta-inner">
78
+ <div class="img">
79
+ <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/pro-bundle-add-on.png">
80
+ </div>
81
+ <div class="text">
82
+ <p class="addon-intro">Ajax Load More PRO</p>
83
+ <p>The <a target="blank" style="font-weight: 600;" href="https://connekthq.com/plugins/ajax-load-more/pro/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=Pro">Pro</a> add-on bundle provides access to all current and future Ajax Load More add-ons in a single installation!</p>
84
+ </div>
85
  </div>
86
  <div class="major-publishing-actions">
87
+ <a target="blank" class="button button-primary" href="https://connekthq.com/plugins/ajax-load-more/pro/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=Pro">Learn More</a>
88
  </div>
89
  <?php } ?>
90
+
91
+ <?php if ( $random == 7 ) { ?>
92
  <div class="cta-inner">
93
+ <div class="img">
94
+ <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/elementor-add-on.jpg">
95
+ </div>
96
+ <div class="text">
97
+ <p class="addon-intro">Ajax Load More integrates directly with Elementor!</p>
98
+ <p>The <a target="blank" style="font-weight: 600;" href="https://connekthq.com/plugins/ajax-load-more/add-ons/elementor/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=Elementor">Elementor</a> add-on provides integration for the Elementor Posts and WooCommerce Products widget.</p>
99
+ </div>
100
  </div>
101
  <div class="major-publishing-actions">
102
+ <a target="blank" class="button button-primary" href="https://connekthq.com/plugins/ajax-load-more/add-ons/elementor/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=elementor">Learn More</a>
103
  </div>
104
  <?php } ?>
105
+
106
  </div>
107
+ <?php } ?>
admin/includes/cta/extend.php CHANGED
File without changes
admin/includes/cta/pro-hero.php CHANGED
File without changes
admin/includes/cta/resources.php CHANGED
@@ -1,19 +1,38 @@
1
  <div class="cta resources">
2
- <h3><?php _e('Resources', 'ajax-load-more'); ?></h3>
3
  <div class="cta-inner">
4
- <ul>
5
- <li><a target="blank" href="https://connekthq.com/plugins/ajax-load-more/"><i class="fa fa-mouse-pointer"></i> <?php _e('Ajax Load More Demo Site', 'ajax-load-more'); ?></a></li>
6
- <li><a target="blank" href="https://connekthq.com/plugins/ajax-load-more/docs/"><i class="fa fa-pencil"></i> <?php _e('Documentation', 'ajax-load-more'); ?></a></li>
7
- <?php if(!has_action('alm_pro_installed')){ ?>
8
- <li><a target="blank" href="http://wordpress.org/support/plugin/ajax-load-more"><i class="fa fa-question-circle"></i> <?php _e('Support and Issues', 'ajax-load-more'); ?></a></li>
9
- <?php } else { ?>
10
- <li><a target="blank" href="https://connekthq.com/support/?product=Ajax%20Load%20More"><i class="fa fa-question-circle"></i> <?php _e('Support and Issues', 'ajax-load-more'); ?></a></li>
11
- <?php } ?>
12
- <li><a target="blank" href="https://wordpress.org/support/view/plugin-reviews/ajax-load-more"><i class="fa fa-star"></i> <?php _e('Reviews', 'ajax-load-more'); ?></a></li>
13
- <li><a target="blank" href="https://wordpress.org/plugins/ajax-load-more/"><i class="fa fa-wordpress"></i> <?php _e('WordPress', 'ajax-load-more'); ?></a></li>
14
- <li><a target="blank" href="https://github.com/dcooney/wordpress-ajax-load-more"><i class="fa fa-github"></i> <?php _e('Github', 'ajax-load-more'); ?></a></li>
15
- <li><a target="blank" href="http://twitter.com/ajaxloadmore"><i class="fa fa-twitter"></i> <?php _e('Twitter', 'ajax-load-more'); ?></a></li>
16
- <li><a target="blank" href="http://facebook.com/ajaxloadmore"><i class="fa fa-facebook"></i> <?php _e('Facebook', 'ajax-load-more'); ?></a></li>
17
- </ul>
18
- </div>
19
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <div class="cta resources">
2
+ <h3><?php _e( 'Resources', 'ajax-load-more' ); ?></h3>
3
  <div class="cta-inner">
4
+ <ul>
5
+ <li>
6
+ <a target="blank" href="https://connekthq.com/plugins/ajax-load-more/"><i class="fa fa-desktop"></i> <?php _e( 'Ajax Load More Demo Site', 'ajax-load-more' ); ?></a>
7
+ </li>
8
+
9
+ <li>
10
+ <a target="blank" href="https://connekthq.com/plugins/ajax-load-more/docs/implementation-guide/"><i class="fa fa-file-text" aria-hidden="true"></i> <?php _e( 'Implementation Guide', 'ajax-load-more' ); ?></a>
11
+ </li>
12
+ <li>
13
+ <a target="blank" href="https://connekthq.com/plugins/ajax-load-more/docs/"><i class="fa fa-pencil"></i> <?php _e( 'Documentation', 'ajax-load-more' ); ?></a>
14
+ </li>
15
+ <?php if ( ! alm_has_addon_shortcodes() ) { ?>
16
+ <li>
17
+ <a target="blank" href="http://wordpress.org/support/plugin/ajax-load-more"><i class="fa fa-question-circle"></i> <?php _e( 'Support and Issues', 'ajax-load-more' ); ?></a>
18
+ </li>
19
+ <?php } else { ?>
20
+ <li>
21
+ <a target="blank" href="https://connekthq.com/support/?product=Ajax%20Load%20More"><i class="fa fa-question-circle"></i> <?php _e( 'Get Support', 'ajax-load-more' ); ?></a>
22
+ </li>
23
+ <?php } ?>
24
+ <li>
25
+ <a target="blank" href="https://wordpress.org/support/view/plugin-reviews/ajax-load-more"><i class="fa fa-star"></i> <?php _e( 'Reviews', 'ajax-load-more' ); ?></a>
26
+ </li>
27
+ <li>
28
+ <a target="blank" href="https://wordpress.org/plugins/ajax-load-more/"><i class="fa fa-wordpress"></i> <?php _e( 'WordPress', 'ajax-load-more' ); ?></a>
29
+ </li>
30
+ <li>
31
+ <a target="blank" href="https://github.com/dcooney/wordpress-ajax-load-more"><i class="fa fa-github"></i> <?php _e( 'Github', 'ajax-load-more' ); ?></a>
32
+ </li>
33
+ <li>
34
+ <a target="blank" href="http://twitter.com/ajaxloadmore"><i class="fa fa-twitter"></i> <?php _e( 'Twitter', 'ajax-load-more' ); ?></a>
35
+ </li>
36
+ </ul>
37
+ </div>
38
+ </div>
admin/shortcode-builder/components/nextpage.php CHANGED
@@ -1,8 +1,10 @@
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
-
6
  <section class="first">
7
  <div class="shortcode-builder--label">
8
  <p><?php _e('Enable the infinite scrolling of multipage WordPress content using the', 'ajax-load-more'); ?> <span>< !--nextpage-- ></span> <?php _e('Quicktag or Page Break block.', 'ajax-load-more'); ?></p>
@@ -20,12 +22,12 @@
20
  </li>
21
  </ul>
22
  </div>
23
- </div>
24
  </section>
25
 
26
 
27
- <div class="next-page-content nested-component" style="display: none;">
28
- <div class="nested-component--inner">
29
  <section>
30
  <div class="shortcode-builder--label">
31
  <h4><?php _e('Post ID', 'ajax-load-more'); ?></h4>
@@ -37,7 +39,7 @@
37
  </div>
38
  </div>
39
  </section>
40
-
41
  <section>
42
  <div class="shortcode-builder--label">
43
  <h4><?php _e('URL Rewrite', 'ajax-load-more'); ?></h4>
@@ -51,11 +53,36 @@
51
  <label for="next-page-url"><?php _e('Yes, update the URL.', 'ajax-load-more'); ?></label>
52
  </li>
53
  </ul>
54
- <input type="checkbox" class="alm_element" name="next-page-url" id="next-page-url" checked="checked">
55
  </div>
56
  </div>
57
  </section>
58
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  <section>
60
  <div class="shortcode-builder--label">
61
  <h4>
@@ -72,11 +99,10 @@
72
  <label for="next-page-pageviews"><?php _e('Yes, send pageviews to Google Analytics.', 'ajax-load-more'); ?></label>
73
  </li>
74
  </ul>
75
- <input type="checkbox" class="alm_element" name="next-page-url" id="next-page-url" checked="checked">
76
  </div>
77
  </div>
78
  </section>
79
-
80
  <section>
81
  <div class="shortcode-builder--label">
82
  <h4><?php _e('Scroll to Page', 'ajax-load-more'); ?></h4>
@@ -87,7 +113,7 @@
87
  <div class="shortcode-builder--fields">
88
  <section class="first">
89
  <div class="half">
90
- <label for="next-page-scroll" class="full"><?php _e('Enable Scrolling', 'ajax-load-more'); ?></label>
91
  <select class="alm_element" name="next-page-scroll" id="next-page-scroll">
92
  <option value="true"><?php _e('True', 'ajax-load-more'); ?></option>
93
  <option value="false" selected="selected"><?php _e('False', 'ajax-load-more'); ?></option>
@@ -101,15 +127,15 @@
101
  <input id="next-page-scroll-top" name="next-page-scroll-top" class="alm_element sm" type="number" min="0" max="1000" step="1" value="30" placeholder="30">
102
  </div>
103
  </section>
104
- </div>
105
  </section>
106
-
107
  <p class="warning-callout">
108
  <?php _e('You must add the Next Page shortcode directly to your template file using the <a href="https://developer.wordpress.org/reference/functions/do_shortcode/" target="_blank">do_shortcode</a> method.', 'ajax-load-more'); ?> <a class="button-small" href="https://connekthq.com/plugins/ajax-load-more/add-ons/next-page/" target="_blank"><?php _e('View Docs', 'ajax-load-more'); ?></a>
109
- </p>
110
  </div>
111
-
112
  </div>
113
  </div>
114
  </div>
115
- <?php } ?>
1
+ <?php
2
+ // @codingStandardsIgnoreStart
3
+ if ( has_action( 'alm_nextpage_installed' ) ) { ?>
4
  <div class="row input next-page add-on" id="alm-next-page">
5
  <h3 class="heading" tabindex="0"><?php _e('Next Page', 'ajax-load-more'); ?></h3>
6
  <div class="expand-wrap">
7
+
8
  <section class="first">
9
  <div class="shortcode-builder--label">
10
  <p><?php _e('Enable the infinite scrolling of multipage WordPress content using the', 'ajax-load-more'); ?> <span>< !--nextpage-- ></span> <?php _e('Quicktag or Page Break block.', 'ajax-load-more'); ?></p>
22
  </li>
23
  </ul>
24
  </div>
25
+ </div>
26
  </section>
27
 
28
 
29
+ <div class="next-page-content nested-component" style="display: none;">
30
+ <div class="nested-component--inner">
31
  <section>
32
  <div class="shortcode-builder--label">
33
  <h4><?php _e('Post ID', 'ajax-load-more'); ?></h4>
39
  </div>
40
  </div>
41
  </section>
42
+
43
  <section>
44
  <div class="shortcode-builder--label">
45
  <h4><?php _e('URL Rewrite', 'ajax-load-more'); ?></h4>
53
  <label for="next-page-url"><?php _e('Yes, update the URL.', 'ajax-load-more'); ?></label>
54
  </li>
55
  </ul>
 
56
  </div>
57
  </div>
58
  </section>
59
+
60
+ <section>
61
+ <div class="shortcode-builder--label">
62
+ <h4><?php _e('Page Title Template', 'ajax-load-more'); ?></h4>
63
+ <p><?php _e('The page title template is used to update the browser title each time a new page is loaded.', 'ajax-load-more'); ?></p>
64
+ <p><small><?php _e('Page title will NOT be updated if this field remains empty.', 'ajax-load-more'); ?></small></p>
65
+ </div>
66
+ <div class="shortcode-builder--fields">
67
+ <div class="inner">
68
+ <input type="text" class="alm_element" name="next-page-title-template" id="next-page-title-template" value="<?php echo apply_filters('alm_nextpage_title_template', ''); ?>" placeholder="<?php echo apply_filters('alm_nextpage_title_template', 'Page {page} of {total} - {post-title}'); ?>">
69
+ <br/>
70
+ <div class="form-table" style="border: none;">
71
+ <div class="template-tags">
72
+ <h4><?php _e('Template Tags', 'ajax-load-more'); ?></h4>
73
+ <ul>
74
+ <li><pre>{page}</pre> <?php _e('Current Page Number', 'ajax-load-more'); ?></li>
75
+ <li><pre>{pages}</pre> <?php _e('Total Number of Pages', 'ajax-load-more'); ?></li>
76
+ <li><pre>{post-title}</pre> <?php _e('Title of Post', 'ajax-load-more'); ?></li>
77
+ <li><pre>{site-title}</pre> <?php _e('Site Title', 'ajax-load-more'); ?></li>
78
+ <li><pre>{tagline}</pre> <?php _e('Site Tagline', 'ajax-load-more'); ?></li>
79
+ </ul>
80
+ </div>
81
+ </div>
82
+ </div>
83
+ </div>
84
+ </section>
85
+
86
  <section>
87
  <div class="shortcode-builder--label">
88
  <h4>
99
  <label for="next-page-pageviews"><?php _e('Yes, send pageviews to Google Analytics.', 'ajax-load-more'); ?></label>
100
  </li>
101
  </ul>
 
102
  </div>
103
  </div>
104
  </section>
105
+
106
  <section>
107
  <div class="shortcode-builder--label">
108
  <h4><?php _e('Scroll to Page', 'ajax-load-more'); ?></h4>
113
  <div class="shortcode-builder--fields">
114
  <section class="first">
115
  <div class="half">
116
+ <label for="next-page-scroll" class="full"><?php _e('Enable Scrolling', 'ajax-load-more'); ?></label>
117
  <select class="alm_element" name="next-page-scroll" id="next-page-scroll">
118
  <option value="true"><?php _e('True', 'ajax-load-more'); ?></option>
119
  <option value="false" selected="selected"><?php _e('False', 'ajax-load-more'); ?></option>
127
  <input id="next-page-scroll-top" name="next-page-scroll-top" class="alm_element sm" type="number" min="0" max="1000" step="1" value="30" placeholder="30">
128
  </div>
129
  </section>
130
+ </div>
131
  </section>
132
+
133
  <p class="warning-callout">
134
  <?php _e('You must add the Next Page shortcode directly to your template file using the <a href="https://developer.wordpress.org/reference/functions/do_shortcode/" target="_blank">do_shortcode</a> method.', 'ajax-load-more'); ?> <a class="button-small" href="https://connekthq.com/plugins/ajax-load-more/add-ons/next-page/" target="_blank"><?php _e('View Docs', 'ajax-load-more'); ?></a>
135
+ </p>
136
  </div>
137
+
138
  </div>
139
  </div>
140
  </div>
141
+ <?php } ?>
admin/shortcode-builder/components/seo.php CHANGED
@@ -1,9 +1,9 @@
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
- <section>
7
  <div class="shortcode-builder--label">
8
  <p><?php _e('Enable address bar URL rewrites as users page through ajax loaded content.', 'ajax-load-more'); ?></p>
9
  </div>
@@ -24,4 +24,4 @@
24
  </section>
25
  </div>
26
  </div>
27
- <?php } ?>
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('Search Engine Optimization', 'ajax-load-more'); ?></h3>
5
  <div class="expand-wrap">
6
+ <section class="first">
7
  <div class="shortcode-builder--label">
8
  <p><?php _e('Enable address bar URL rewrites as users page through ajax loaded content.', 'ajax-load-more'); ?></p>
9
  </div>
24
  </section>
25
  </div>
26
  </div>
27
+ <?php } ?>
admin/shortcode-builder/components/single-post.php CHANGED
@@ -29,7 +29,8 @@ if(has_action('alm_single_post_installed')){ ?>
29
 
30
  <div class="prev_post_options nested-component" style="display: none;">
31
  <div class="nested-component--inner">
32
- <section>
 
33
  <div class="shortcode-builder--label">
34
  <h4><?php _e('Post ID', 'ajax-load-more'); ?></h4>
35
  <p><?php _e('The ID of the current single post.', 'ajax-load-more'); ?></p>
@@ -104,7 +105,7 @@ if(has_action('alm_single_post_installed')){ ?>
104
  </div>
105
 
106
  <div id="pp_extras">
107
- <section>
108
  <div class="shortcode-builder--label">
109
  <h4><?php _e('Taxonomy', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Selecting a taxonomy means only previous posts from the same taxonomy term will be returned. If a post has multiple terms attached, each term will be considered using an OR relationship query.','ajax-load-more'); ?>"></a></h4>
110
  <p><?php _e('Query previous posts from the same taxonomy term(s).', 'ajax-load-more'); ?></p>
@@ -145,55 +146,78 @@ if(has_action('alm_single_post_installed')){ ?>
145
  </div>
146
  </div>
147
  </section>
148
-
149
  </div>
150
 
151
- <?php if( is_plugin_active( 'elementor-pro/elementor-pro.php' ) ) { ?>
152
- <!-- Elementor -->
153
- <section>
154
- <div class="shortcode-builder--label">
155
- <h4><?php _e('Elementor', 'ajax-load-more'); ?></h4>
156
- <p><?php _e('Set Elementor <b>true</b> if you are using Elementor templates to build single posts.', 'ajax-load-more'); ?></p>
157
- <p><a class="button-small" href="https://connekthq.com/elementor-infinite-scrolling/" target="_blank"><?php _e('View Blog Post', 'ajax-load-more'); ?></a></p>
158
- </div>
159
- <div class="shortcode-builder--fields">
160
- <div class="inner">
161
- <ul>
162
- <li>
163
- <input class="alm_element" type="radio" name="elementor-single" value="t" id="elementor_t">
164
- <label for="elementor_t"><?php _e('True', 'ajax-load-more'); ?></label>
165
- </li>
166
- <li>
167
- <input class="alm_element" type="radio" name="elementor-single" value="f" id="elementor_f" checked="checked">
168
- <label for="elementor_f"><?php _e('False', 'ajax-load-more'); ?></label>
169
- </li>
170
- </ul>
171
- </div>
172
- </div>
173
- </section>
174
- <?php } ?>
175
-
176
  <section>
177
  <div class="shortcode-builder--label">
178
- <h4><?php _e('Reading Progress Bar ', 'ajax-load-more'); ?></h4>
179
- <p><?php _e('Display a reading progress bar indicator at the top or bottom of the browser window.', 'ajax-load-more'); ?></p>
 
180
  </div>
181
  <div class="shortcode-builder--fields">
182
  <div class="inner">
183
  <ul>
184
  <li>
185
- <input class="alm_element" type="radio" name="prev-post-progress" value="true" id="prev-post-progress-true">
186
- <label for="prev-post-progress-true"><?php _e('True', 'ajax-load-more'); ?></label>
187
  </li>
188
  <li>
189
- <input class="alm_element" type="radio" name="prev-post-progress" value="false" id="prev-post-progress-false" checked="checked">
190
- <label for="prev-post-progress-false"><?php _e('False', 'ajax-load-more'); ?></label>
191
  </li>
192
  </ul>
193
  </div>
194
  </div>
195
  </section>
196
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
197
 
198
  <!-- Reading Progress Bar Options -->
199
  <div class="clear"></div>
@@ -271,6 +295,31 @@ if(has_action('alm_single_post_installed')){ ?>
271
  </div>
272
  <!-- END Reading Progress Bar -->
273
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
274
  <div class="clear"></div>
275
 
276
  <p class="warning-callout">
29
 
30
  <div class="prev_post_options nested-component" style="display: none;">
31
  <div class="nested-component--inner">
32
+
33
+ <section>
34
  <div class="shortcode-builder--label">
35
  <h4><?php _e('Post ID', 'ajax-load-more'); ?></h4>
36
  <p><?php _e('The ID of the current single post.', 'ajax-load-more'); ?></p>
105
  </div>
106
 
107
  <div id="pp_extras">
108
+ <section>
109
  <div class="shortcode-builder--label">
110
  <h4><?php _e('Taxonomy', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Selecting a taxonomy means only previous posts from the same taxonomy term will be returned. If a post has multiple terms attached, each term will be considered using an OR relationship query.','ajax-load-more'); ?>"></a></h4>
111
  <p><?php _e('Query previous posts from the same taxonomy term(s).', 'ajax-load-more'); ?></p>
146
  </div>
147
  </div>
148
  </section>
 
149
  </div>
150
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
151
  <section>
152
  <div class="shortcode-builder--label">
153
+ <h4><?php _e('Post Preview', 'ajax-load-more'); ?></h4>
154
+ <p><?php _e('Show a preview of Ajax loaded posts and have the user click to load the remainder of the post.', 'ajax-load-more'); ?></p>
155
+ <p><a class="button-small" href="https://connekthq.com/accessibility-and-ajax-load-more/?showpreview=true" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
156
  </div>
157
  <div class="shortcode-builder--fields">
158
  <div class="inner">
159
  <ul>
160
  <li>
161
+ <input class="alm_element" type="radio" name="prev-post-preview" value="true" id="prev-post-preview-true">
162
+ <label for="prev-post-preview-true"><?php _e('True', 'ajax-load-more'); ?></label>
163
  </li>
164
  <li>
165
+ <input class="alm_element" type="radio" name="prev-post-preview" value="false" id="prev-post-preview-false" checked="checked">
166
+ <label for="prev-post-preview-false"><?php _e('False', 'ajax-load-more'); ?></label>
167
  </li>
168
  </ul>
169
  </div>
170
  </div>
171
  </section>
172
 
173
+ <!-- Preview Options -->
174
+ <div class="clear"></div>
175
+ <div id="pp_preview_options" class="nested-component" style="display: none;">
176
+ <section>
177
+ <div class="shortcode-builder--label">
178
+ <h4><?php _e('Button Label', 'ajax-load-more'); ?></h4>
179
+ <p><?php _e('Enter a label for the preview button.', 'ajax-load-more'); ?></p>
180
+ </div>
181
+ <div class="shortcode-builder--fields">
182
+ <div class="inner">
183
+ <input type="text" id="pp-preview-label" class="alm_element" value="<?php echo apply_filters( 'alm_single_post_preview_button_label', 'Continue Reading' ); ?>" placeholder="<?php echo apply_filters( 'alm_single_post_preview_button_label', 'Continue Reading' ); ?>">
184
+ </div>
185
+ </div>
186
+ </section>
187
+ <section>
188
+ <div class="shortcode-builder--label">
189
+ <h4><?php _e('Height', 'ajax-load-more'); ?></h4>
190
+ <p><?php _e('Set the initial height of the preview in pixels.', 'ajax-load-more'); ?></p>
191
+ </div>
192
+ <div class="shortcode-builder--fields">
193
+ <div class="inner">
194
+ <input type="number" class="alm_element numbers-only" name="pp-preview-height" id="pp-preview-height" step="1" min="1" value="<?php echo apply_filters( 'alm_single_post_preview_height', 700 ); ?>">
195
+ </div>
196
+ </div>
197
+ </section>
198
+ </div>
199
+
200
+ <section>
201
+ <div class="shortcode-builder--label">
202
+ <h4><?php _e('Reading Progress Bar', 'ajax-load-more'); ?></h4>
203
+ <p><?php _e('Display a reading progress bar indicator at the top or bottom of the browser window.', 'ajax-load-more'); ?></p>
204
+ <p><a class="button-small" href="https://connekthq.com/accessibility-and-ajax-load-more/?progressbar=true" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
205
+ </div>
206
+ <div class="shortcode-builder--fields">
207
+ <div class="inner">
208
+ <ul>
209
+ <li>
210
+ <input class="alm_element" type="radio" name="prev-post-progress" value="true" id="prev-post-progress-true">
211
+ <label for="prev-post-progress-true"><?php _e('True', 'ajax-load-more'); ?></label>
212
+ </li>
213
+ <li>
214
+ <input class="alm_element" type="radio" name="prev-post-progress" value="false" id="prev-post-progress-false" checked="checked">
215
+ <label for="prev-post-progress-false"><?php _e('False', 'ajax-load-more'); ?></label>
216
+ </li>
217
+ </ul>
218
+ </div>
219
+ </div>
220
+ </section>
221
 
222
  <!-- Reading Progress Bar Options -->
223
  <div class="clear"></div>
295
  </div>
296
  <!-- END Reading Progress Bar -->
297
 
298
+ <?php if( is_plugin_active( 'elementor-pro/elementor-pro.php' ) ) { ?>
299
+ <!-- Elementor -->
300
+ <section>
301
+ <div class="shortcode-builder--label">
302
+ <h4><?php _e('Elementor', 'ajax-load-more'); ?></h4>
303
+ <p><?php _e('Set Elementor <b>true</b> if you are using Elementor templates to build single posts.', 'ajax-load-more'); ?></p>
304
+ <p><a class="button-small" href="https://connekthq.com/elementor-infinite-scrolling/" target="_blank"><?php _e('View Blog Post', 'ajax-load-more'); ?></a></p>
305
+ </div>
306
+ <div class="shortcode-builder--fields">
307
+ <div class="inner">
308
+ <ul>
309
+ <li>
310
+ <input class="alm_element" type="radio" name="elementor-single" value="t" id="elementor_t">
311
+ <label for="elementor_t"><?php _e('True', 'ajax-load-more'); ?></label>
312
+ </li>
313
+ <li>
314
+ <input class="alm_element" type="radio" name="elementor-single" value="f" id="elementor_f" checked="checked">
315
+ <label for="elementor_f"><?php _e('False', 'ajax-load-more'); ?></label>
316
+ </li>
317
+ </ul>
318
+ </div>
319
+ </div>
320
+ </section>
321
+ <?php } ?>
322
+
323
  <div class="clear"></div>
324
 
325
  <p class="warning-callout">
admin/shortcode-builder/includes/meta-query-options.php CHANGED
@@ -1,17 +1,15 @@
1
 
2
- <div class="wrap-30 wrap-50">
3
  <?php // Meta Key ?>
4
  <label for="meta-key" class="full"><?php _e('Key (Name):', 'ajax-load-more'); ?></label>
5
- <input class="alm_element sm meta-key" name="meta-key" type="text" value="" placeholder="<?php _e('Enter custom field key(name)', 'ajax-load-more'); ?>">
6
- </div>
7
- <?php // Meta Value ?>
8
- <div class="wrap-30 wrap-50">
9
  <label for="meta-value" class="full"><?php _e('Value:', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Query multiple values by splitting each value with a comma - e.g. value, value2, value3 etc.','ajax-load-more'); ?>."></a></label>
10
  <input class="alm_element sm meta-value" name="meta-value" type="text" value="" placeholder="<?php _e('Enter custom field value(s)', 'ajax-load-more'); ?>">
11
- </div>
12
- <div class="clear"></div>
13
- <?php // Meta Compare ?>
14
- <div class="wrap-30 wrap-50 padding-top">
15
  <label for="meta-compare" class="full"><?php _e('Operator:', 'ajax-load-more'); ?></label>
16
  <select class="alm_element meta-compare" name="meta-compare">
17
  <option value="IN" selected="selected">IN</option>
@@ -29,9 +27,9 @@
29
  <option value="EXISTS">EXISTS</option>
30
  <option value="NOT EXISTS">NOT EXISTS</option>
31
  </select>
32
- </div>
33
- <?php // Meta Type ?>
34
- <div class="wrap-30 wrap-50 padding-top">
35
  <label for="meta-type" class="full"><?php _e('Type:', 'ajax-load-more'); ?></label>
36
  <select class="alm_element meta-type" name="meta-type">
37
  <option value="BINARY">BINARY</option>
@@ -44,5 +42,6 @@
44
  <option value="TIME">TIME</option>
45
  <option value="UNSIGNED">UNSIGNED</option>
46
  </select>
47
- </div>
 
48
  <a class="remove remove-meta-query" href="javascript:void(0);">&times;</a>
1
 
2
+ <div>
3
  <?php // Meta Key ?>
4
  <label for="meta-key" class="full"><?php _e('Key (Name):', 'ajax-load-more'); ?></label>
5
+ <input class="alm_element sm meta-key" name="meta-key" type="text" value="" placeholder="<?php _e('Enter custom field key(name)', 'ajax-load-more'); ?>">
6
+ </div>
7
+ <div>
 
8
  <label for="meta-value" class="full"><?php _e('Value:', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Query multiple values by splitting each value with a comma - e.g. value, value2, value3 etc.','ajax-load-more'); ?>."></a></label>
9
  <input class="alm_element sm meta-value" name="meta-value" type="text" value="" placeholder="<?php _e('Enter custom field value(s)', 'ajax-load-more'); ?>">
10
+ </div>
11
+ <?php // Meta Compare ?>
12
+ <div class="padding-top">
 
13
  <label for="meta-compare" class="full"><?php _e('Operator:', 'ajax-load-more'); ?></label>
14
  <select class="alm_element meta-compare" name="meta-compare">
15
  <option value="IN" selected="selected">IN</option>
27
  <option value="EXISTS">EXISTS</option>
28
  <option value="NOT EXISTS">NOT EXISTS</option>
29
  </select>
30
+ </div>
31
+ <?php // Meta Type ?>
32
+ <div class="padding-top">
33
  <label for="meta-type" class="full"><?php _e('Type:', 'ajax-load-more'); ?></label>
34
  <select class="alm_element meta-type" name="meta-type">
35
  <option value="BINARY">BINARY</option>
42
  <option value="TIME">TIME</option>
43
  <option value="UNSIGNED">UNSIGNED</option>
44
  </select>
45
+ </div>
46
+
47
  <a class="remove remove-meta-query" href="javascript:void(0);">&times;</a>
admin/shortcode-builder/js/shortcode-builder.js CHANGED
@@ -1,17 +1,17 @@
1
  jQuery(document).ready(function ($) {
2
- 'use strict';
3
 
4
  var _alm = {},
5
  output_div = $('.ajax-load-more.shortcode-builder #shortcode_output'),
6
  output = '[ajax_load_more]';
7
 
8
- output_div.text(output); //Init the shortcode output
 
9
 
10
- /*
11
- * _alm.select2
12
- * Init Select2 select replacement
13
  *
14
- * @since 2.5.0
15
  */
16
  _alm.select2 = function () {
17
  // Default Select2
@@ -354,7 +354,8 @@ jQuery(document).ready(function ($) {
354
  nextpage_url = $('input#next-page-url:checked').val(),
355
  nextpage_pageviews = $('input#next-page-pageviews:checked').val(),
356
  nextpage_scroll = $('select#next-page-scroll').val(),
357
- nextpage_scrolltop = $('input#next-page-scroll-top').val();
 
358
 
359
  $('.next-page-content').slideDown(250, 'alm_easeInOutQuad');
360
 
@@ -367,6 +368,9 @@ jQuery(document).ready(function ($) {
367
  if (nextpage_pageviews !== 'true') {
368
  output += ' nextpage_pageviews="false"';
369
  }
 
 
 
370
 
371
  output += ' nextpage_scroll="' + nextpage_scroll + ':' + nextpage_scrolltop + '"';
372
  } else {
@@ -505,7 +509,7 @@ jQuery(document).ready(function ($) {
505
  // ---------------------------
506
 
507
  var previous = $('.previous-post input[name=prev-post]:checked').val();
508
- if (previous !== 'false' && previous != undefined) {
509
  var pp_id = $('#pp_id').val(),
510
  pp_order = $('#pp-order').val(),
511
  pp_query_order = $('#pp-custom-query').val(),
@@ -514,6 +518,7 @@ jQuery(document).ready(function ($) {
514
  pp_excluded_terms = $('#pp-term-exclude').val(),
515
  pp_elementor = $('.previous-post input[name=elementor-single]:checked').val(),
516
  pp_progress_bar = $('.previous-post input[name=prev-post-progress]:checked').val(),
 
517
  pp_target = $('.previous-post input#pp-target').val();
518
 
519
  $('.prev_post_options').slideDown(250, 'alm_easeInOutQuad');
@@ -559,6 +564,18 @@ jQuery(document).ready(function ($) {
559
  output += pp_target !== '' ? ' single_post_target="' + pp_target + '"' : '';
560
  output += pp_elementor === 't' ? ' elementor="true"' : '';
561
 
 
 
 
 
 
 
 
 
 
 
 
 
562
  // Reading Progress Bar
563
  if (pp_progress_bar === 'true') {
564
  $('#pp_progressbar_options').slideDown(250, 'alm_easeInOutQuad');
@@ -1294,7 +1311,6 @@ jQuery(document).ready(function ($) {
1294
  var no_results = $('.alm-instance-options textarea#no_results_text').val();
1295
  if (no_results !== '') {
1296
  no_results = no_results.replace(/"/g, "'");
1297
-
1298
  output += ' no_results_text="' + no_results + '"';
1299
  }
1300
 
@@ -1393,13 +1409,12 @@ jQuery(document).ready(function ($) {
1393
  }
1394
  });
1395
 
1396
- /*
1397
- * Jump to section, Table of contents [Repeater Templates, Shortcode Builder]
1398
  *
1399
- * @since 2.0.0
1400
- * Updated v2.13.0
1401
  */
1402
-
1403
  var jumpMenuOptions = '';
1404
  function almBuildJumpMenu(type) {
1405
  if (type === 'repeaters') {
@@ -1444,8 +1459,7 @@ jQuery(document).ready(function ($) {
1444
  almBuildJumpMenu('repeaters'); // repeater templates
1445
  }
1446
 
1447
- /* Jump Menu */
1448
-
1449
  $('select.jump-menu').append(jumpMenuOptions);
1450
  $('select.jump-menu').change(function () {
1451
  var pos = $(this).val();
@@ -1483,11 +1497,10 @@ jQuery(document).ready(function ($) {
1483
  }
1484
  });
1485
 
1486
- /*
1487
- * get_tax_terms
1488
- * Get taxonomy terms via ajax
1489
  *
1490
- * @since 2.1.0
1491
  */
1492
  function get_tax_terms(tax, parent, index) {
1493
  var placement = $('.tax-terms-container', parent);
@@ -1512,90 +1525,33 @@ jQuery(document).ready(function ($) {
1512
  });
1513
  }
1514
 
1515
- /*
1516
- * _alm.alm_easeInOutQuad
1517
- * Ajax Load More easing
1518
- *
1519
- * @since 2.0.0
1520
- */
1521
-
1522
  $.easing.alm_easeInOutQuad = function (x, t, b, c, d) {
1523
  if ((t /= d / 2) < 1) return (c / 2) * t * t + b;
1524
  return (-c / 2) * (--t * (t - 2) - 1) + b;
1525
  };
1526
 
1527
- /*
1528
- * _alm.SelectText
1529
- * Click to select text
1530
- *
1531
- * @since 2.0.0
1532
- */
1533
-
1534
- _alm.SelectText = function (element) {
1535
- var doc = document,
1536
- text = doc.getElementById(element),
1537
- range,
1538
- selection;
1539
- if (doc.body.createTextRange) {
1540
- range = document.body.createTextRange();
1541
- range.moveToElementText(text);
1542
- range.select();
1543
- } else if (window.getSelection) {
1544
- selection = window.getSelection();
1545
- range = document.createRange();
1546
- range.selectNodeContents(text);
1547
- selection.removeAllRanges();
1548
- selection.addRange(range);
1549
- }
1550
- };
1551
- $('#shortcode_output').click(function () {
1552
- _alm.SelectText('shortcode_output');
1553
- });
1554
-
1555
- /*
1556
- * Reset shortcode builder
1557
- *
1558
- * @since 2.5.0
1559
- */
1560
-
1561
  $(document).on('click', '.reset-shortcode-builder a', function () {
1562
  $('#alm-shortcode-builder-form').trigger('reset');
1563
  _alm.reset_select2();
1564
- //total_tax_query = 0;
1565
- //$('.ajax-load-more .taxonomy-wrap').hide();
1566
  _alm.buildShortcode();
1567
  });
1568
 
1569
- /*
1570
- * _alm.generateUniqueID
1571
- * Generate Unique Cache ID
1572
- *
1573
- * @since 2.6.0
1574
- */
1575
-
1576
  _alm.generateUniqueID = function (length, el) {
1577
  var id = Math.floor(Math.pow(10, length - 1) + Math.random() * 9 * Math.pow(10, length - 1));
1578
  $(el).val(id);
1579
- //_alm.buildShortcode();
1580
  };
1581
 
1582
- /*
1583
- * Option toggle click events
1584
- 8
1585
- * @since 5.2.0
1586
- */
1587
  $('.builder-option-toggle--buttons button').on('click', function () {
1588
  var siblings = $(this).siblings('button').removeClass('active');
1589
  $(this).addClass('active');
1590
  _alm.buildShortcode();
1591
  });
1592
 
1593
- /*
1594
- * Generate Unique/Cache ID
1595
- *
1596
- * @since 2.6.0
1597
- */
1598
-
1599
  $(document).on('click', '.generate-id a', function () {
1600
  var id = $(this).data('id'),
1601
  el = $('#' + id);
@@ -1612,4 +1568,42 @@ jQuery(document).ready(function ($) {
1612
  $(this).toggleClass('loading');
1613
  }
1614
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1615
  });
1
  jQuery(document).ready(function ($) {
2
+ ('use strict');
3
 
4
  var _alm = {},
5
  output_div = $('.ajax-load-more.shortcode-builder #shortcode_output'),
6
  output = '[ajax_load_more]';
7
 
8
+ //Init the shortcode output.
9
+ output_div.text(output);
10
 
11
+ /**
12
+ * Init Select2 select replacement
 
13
  *
14
+ * @since 2.5.0
15
  */
16
  _alm.select2 = function () {
17
  // Default Select2
354
  nextpage_url = $('input#next-page-url:checked').val(),
355
  nextpage_pageviews = $('input#next-page-pageviews:checked').val(),
356
  nextpage_scroll = $('select#next-page-scroll').val(),
357
+ nextpage_scrolltop = $('input#next-page-scroll-top').val(),
358
+ nextpage_title_template = $('input#next-page-title-template').val();
359
 
360
  $('.next-page-content').slideDown(250, 'alm_easeInOutQuad');
361
 
368
  if (nextpage_pageviews !== 'true') {
369
  output += ' nextpage_pageviews="false"';
370
  }
371
+ if (nextpage_title_template) {
372
+ output += ' nextpage_title_template="' + nextpage_title_template + '"';
373
+ }
374
 
375
  output += ' nextpage_scroll="' + nextpage_scroll + ':' + nextpage_scrolltop + '"';
376
  } else {
509
  // ---------------------------
510
 
511
  var previous = $('.previous-post input[name=prev-post]:checked').val();
512
+ if (previous !== 'false' && previous !== undefined) {
513
  var pp_id = $('#pp_id').val(),
514
  pp_order = $('#pp-order').val(),
515
  pp_query_order = $('#pp-custom-query').val(),
518
  pp_excluded_terms = $('#pp-term-exclude').val(),
519
  pp_elementor = $('.previous-post input[name=elementor-single]:checked').val(),
520
  pp_progress_bar = $('.previous-post input[name=prev-post-progress]:checked').val(),
521
+ pp_preview = $('.previous-post input[name=prev-post-preview]:checked').val(),
522
  pp_target = $('.previous-post input#pp-target').val();
523
 
524
  $('.prev_post_options').slideDown(250, 'alm_easeInOutQuad');
564
  output += pp_target !== '' ? ' single_post_target="' + pp_target + '"' : '';
565
  output += pp_elementor === 't' ? ' elementor="true"' : '';
566
 
567
+ // Post Preview
568
+ if (pp_preview === 'true') {
569
+ $('#pp_preview_options').slideDown(250, 'alm_easeInOutQuad');
570
+ var pp_preview_label = $('#pp-preview-label').val();
571
+ var pp_preview_height = $('#pp-preview-height').val();
572
+ var pp_preview_element = $('#pp-preview-element').val();
573
+ pp_preview_element = !pp_preview_element || pp_preview_element === 'default' ? '' : ':' + pp_preview_element;
574
+ output += ' single_post_preview="' + pp_preview_label + ':' + pp_preview_height + pp_preview_element + '"';
575
+ } else {
576
+ $('#pp_preview_options').slideUp(250, 'alm_easeInOutQuad');
577
+ }
578
+
579
  // Reading Progress Bar
580
  if (pp_progress_bar === 'true') {
581
  $('#pp_progressbar_options').slideDown(250, 'alm_easeInOutQuad');
1311
  var no_results = $('.alm-instance-options textarea#no_results_text').val();
1312
  if (no_results !== '') {
1313
  no_results = no_results.replace(/"/g, "'");
 
1314
  output += ' no_results_text="' + no_results + '"';
1315
  }
1316
 
1409
  }
1410
  });
1411
 
1412
+ /**
1413
+ * Jump to section, Table of contents [Repeater Templates, Shortcode Builder]
1414
  *
1415
+ * @since 2.0.0
1416
+ * @updated v2.13.0
1417
  */
 
1418
  var jumpMenuOptions = '';
1419
  function almBuildJumpMenu(type) {
1420
  if (type === 'repeaters') {
1459
  almBuildJumpMenu('repeaters'); // repeater templates
1460
  }
1461
 
1462
+ // Jump Menu.
 
1463
  $('select.jump-menu').append(jumpMenuOptions);
1464
  $('select.jump-menu').change(function () {
1465
  var pos = $(this).val();
1497
  }
1498
  });
1499
 
1500
+ /**
1501
+ * Get taxonomy terms via ajax
 
1502
  *
1503
+ * @since 2.1.0
1504
  */
1505
  function get_tax_terms(tax, parent, index) {
1506
  var placement = $('.tax-terms-container', parent);
1525
  });
1526
  }
1527
 
1528
+ // Ajax Load More easing.
 
 
 
 
 
 
1529
  $.easing.alm_easeInOutQuad = function (x, t, b, c, d) {
1530
  if ((t /= d / 2) < 1) return (c / 2) * t * t + b;
1531
  return (-c / 2) * (--t * (t - 2) - 1) + b;
1532
  };
1533
 
1534
+ // Reset shortcode builder.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1535
  $(document).on('click', '.reset-shortcode-builder a', function () {
1536
  $('#alm-shortcode-builder-form').trigger('reset');
1537
  _alm.reset_select2();
 
 
1538
  _alm.buildShortcode();
1539
  });
1540
 
1541
+ // Generate Unique Cache ID.
 
 
 
 
 
 
1542
  _alm.generateUniqueID = function (length, el) {
1543
  var id = Math.floor(Math.pow(10, length - 1) + Math.random() * 9 * Math.pow(10, length - 1));
1544
  $(el).val(id);
 
1545
  };
1546
 
1547
+ // Option toggle click events.
 
 
 
 
1548
  $('.builder-option-toggle--buttons button').on('click', function () {
1549
  var siblings = $(this).siblings('button').removeClass('active');
1550
  $(this).addClass('active');
1551
  _alm.buildShortcode();
1552
  });
1553
 
1554
+ // Generate Unique/Cache ID.
 
 
 
 
 
1555
  $(document).on('click', '.generate-id a', function () {
1556
  var id = $(this).data('id'),
1557
  el = $('#' + id);
1568
  $(this).toggleClass('loading');
1569
  }
1570
  });
1571
+
1572
+ // Create anchor links for shortcode builder items.
1573
+ $('.shortcode-parameter-wrap.alm-tabbed-wrapper--section').each(function () {
1574
+ var section = this;
1575
+ var ul = section.querySelector('ul.section-anchor-nav');
1576
+ var headings = section.querySelectorAll('h3.heading');
1577
+ if (headings && headings.length > 2) {
1578
+ var list = '';
1579
+ $(headings).each(function () {
1580
+ var title = $(this).text();
1581
+ list += '<li><a role="button" href="javascript: void(0);">' + title + '</a></li>';
1582
+ });
1583
+ ul.innerHTML = list;
1584
+
1585
+ var anchors = ul.querySelectorAll('a');
1586
+ if (anchors) {
1587
+ $(anchors).each(function () {
1588
+ $(this).on('click', function () {
1589
+ var element = this;
1590
+ var text = element.innerHTML;
1591
+ var target = $('h3.heading:contains(' + text + ')', section);
1592
+ if (target) {
1593
+ $('html, body').animate(
1594
+ {
1595
+ scrollTop: target.offset().top - 45,
1596
+ },
1597
+ 350,
1598
+ function () {
1599
+ // Set focus on the element scrolled to.
1600
+ target.get(0).focus({ preventScroll: true });
1601
+ }
1602
+ );
1603
+ }
1604
+ });
1605
+ });
1606
+ }
1607
+ }
1608
+ });
1609
  });
admin/shortcode-builder/shortcode-builder.php CHANGED
@@ -1,1437 +1,1429 @@
1
  <?php
2
  // @codingStandardsIgnoreStart
3
- ?>
4
- <span class="toggle-all" role="button" tabindex="0" data-id="shortcode-builder-state">
5
- <span class="inner-wrap">
6
- <em class="collapse"><?php _e( 'Collapse All', 'ajax-load-more' ); ?></em>
7
- <em class="expand"><?php _e( 'Expand All', 'ajax-load-more' ); ?></em>
8
- </span>
9
- </span>
10
-
11
- <?php
12
  $alm_options = get_option( 'alm_settings' );
13
- if(!isset($alm_options['_alm_disable_dynamic'])){ // Check if '_alm_disable_dynamic is set within settings
 
14
  $alm_options['_alm_disable_dynamic'] = '0';
15
  }
16
  $disable_dynamic_content = $alm_options['_alm_disable_dynamic'];
17
- $show_max = 100; // Max number of items to show in tags, cats and taxonomies
18
  ?>
19
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
 
21
- <!-- Add-ons -->
22
- <?php
23
- // ../admin-functions.php
24
- if(alm_has_addon_shortcodes()) : ?>
25
-
26
- <div class="shortcode-parameter-wrap">
27
- <h2 tabindex="0" class="shortcode-title"><i class="fa fa-plus-circle"></i><?php _e('Add-ons & Extensions', 'ajax-load-more'); ?></h2>
28
- <div class="section-wrap">
29
- <?php
30
- require_once('components/acf.php');
31
- require_once('components/cache.php');
32
- require_once('components/cta.php');
33
- require_once('components/comments.php');
34
- require_once('components/filters.php');
35
- require_once('components/nextpage.php');
36
- require_once('components/paging.php');
37
- require_once('components/preloaded.php');
38
- require_once('components/rest-api.php');
39
- require_once('components/seo.php');
40
- require_once('components/single-post.php');
41
- require_once('components/term-query.php');
42
- require_once('components/users.php');
43
- ?>
44
- </div>
45
- </div>
46
- <?php endif; ?>
47
- <!-- End Add-ons -->
48
-
49
- <!-- Display Settings -->
50
- <div class="shortcode-parameter-wrap">
51
- <h2 tabindex="0" class="shortcode-title"><i class="fa fa-cog"></i><?php _e('Display Settings', 'ajax-load-more'); ?></h2>
52
- <div class="section-wrap">
53
-
54
- <p class="section-intro"><?php _e('Display Settings allow you create a custom Ajax Load More experience for your visitors.', 'ajax-load-more'); ?></p>
55
-
56
- <!-- Options -->
57
- <div class="row input alm-instance-options" id="alm-instance-options">
58
- <h3 class="heading" tabindex="0"><?php _e('Options', 'ajax-load-more'); ?></h3>
59
- <div class="expand-wrap">
60
-
61
- <!-- ID -->
62
- <section class="first">
63
- <div class="shortcode-builder--label">
64
- <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>
65
- <p><?php _e('Set a unique ID for this Ajax Load More instance.', 'ajax-load-more'); ?></p>
66
- <p><a class="button-small" href="https://connekthq.com/plugins/ajax-load-more/docs/filter-hooks/#alm_query_args" target="_blank"><?php _e('Learn More', 'ajax-load-more'); ?></a></p>
67
- </div>
68
- <div class="shortcode-builder--fields">
69
- <div class="inner">
70
- <input type="text" class="alm_element" name="unique-id" id="unique-id">
71
- <div class="clear"></div>
72
- <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>
73
- </div>
74
- </div>
75
- </section>
76
-
77
- <!-- Loading Style -->
78
- <?php
79
- $loading_style = (isset($alm_options['_alm_btn_color'])) ? $alm_options['_alm_btn_color'] : 'default';
80
- $selected = ' selected="selected"';
81
- ?>
82
- <section>
83
- <div class="shortcode-builder--label">
84
- <h4><?php _e('Button/Loading Style', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('You can define a global button/loading style on the Ajax Load More settings screen','ajax-load-more'); ?>."></a></h4>
85
- <p><?php _e('Select an Ajax loading style - you can choose between a Button or Infinite Scroll.', 'ajax-load-more'); ?></p>
86
- </div>
87
- <div class="shortcode-builder--fields">
88
- <div class="inner">
89
- <select id="loading-style" class="alm_element" data-default="<?php echo $loading_style; ?>">
90
- <optgroup label="<?php _e('Button Style (Dark)', 'ajax-load-more'); ?>">
91
- <option value="default" class="alm-color default"<?php echo ($loading_style === 'default') ? $selected : ''; ?>>Red (Default)</option>
92
- <option value="blue" class="alm-color blue"<?php echo ($loading_style === 'blue') ? $selected : ''; ?>>Blue</option>
93
- <option value="green" class="alm-color green"<?php echo ($loading_style === 'green') ? $selected : ''; ?>>Green</option>
94
- <option value="purple" class="alm-color purple"<?php echo ($loading_style === 'purple') ? $selected : ''; ?>>Purple</option>
95
- <option value="grey" class="alm-color grey"<?php echo ($loading_style === 'grey') ? $selected : ''; ?>>Grey</option>
96
- </optgroup>
97
- <optgroup label="<?php _e('Button Style (Light)', 'ajax-load-more'); ?>">
98
- <option value="white" class="alm-color white"<?php echo ($loading_style === 'white') ? $selected : ''; ?>>White</option>
99
- <option value="light-grey" class="alm-color light-grey"<?php echo ($loading_style === 'light-grey') ? $selected : ''; ?>>Light Grey</option>
100
- </optgroup>
101
- <optgroup label="<?php _e('Infinite Scroll (No Button)', 'ajax-load-more'); ?>">
102
- <option value="infinite classic" class="infinite classic"<?php echo ($loading_style === 'infinite classic') ? $selected : ''; ?>>Classic</option>
103
- <option value="infinite skype" class="infinite skype"<?php echo ($loading_style === 'infinite skype') ? $selected : ''; ?>>Skype</option>
104
- <option value="infinite ring" class="infinite ring"<?php echo ($loading_style === 'infinite ring') ? $selected : ''; ?>>Circle Fill</option>
105
- <option value="infinite fading-blocks" class="infinite fading-blocks"<?php echo ($loading_style === 'infinite fading-blocks') ? $selected : ''; ?>>Fading Blocks</option>
106
- <option value="infinite fading-circles" class="infinite fading-circles"<?php echo ($loading_style === 'infinite fading-circles') ? $selected : ''; ?>>Fading Circles</option>
107
- <option value="infinite chasing-arrows" class="infinite chasing-arrows"<?php echo ($loading_style === 'infinite chasing-arrows') ? $selected : ''; ?>>Chasing Arrows</option>
108
- </optgroup>
109
- </select>
110
- <div class="clear"></div>
111
- <div class="alm-btn-wrap">
112
- <div class="ajax-load-more-wrap core target <?php echo $loading_style; ?>" data-base="ajax-load-more-wrap core ">
113
- <span><?php _e('CLICK TO PREVIEW', 'ajax-load-more'); ?></span>
114
- <button class="alm-load-more-btn" type="button">
115
- <?php echo apply_filters( 'alm_button_label', __('Load More', 'ajax-load-more' )) ;?>
116
- </button>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
117
  </div>
118
  </div>
119
- </div>
120
- </div>
121
- </section>
122
-
123
- <!-- Container Type -->
124
- <section>
125
- <div class="shortcode-builder--label">
126
- <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>
127
- <p><?php _e('Override the global Container Type set in <a href="admin.php?page=ajax-load-more">ALM Settings</a>.', 'ajax-load-more'); ?></p>
128
- </div>
129
- <div class="shortcode-builder--fields">
130
- <div class="inner">
131
- <ul class="container_type">
132
- <li>
133
- <input type="radio" id="type-ul" value="ul" name="alm_container_type" class="alm_element">
134
- <label for="type-ul">&lt;ul /&gt;</label>
135
- </li>
136
- <li>
137
- <input type="radio" id="type-div" value="div" name="alm_container_type" class="alm_element">
138
- <label for="type-div">&lt;div /&gt;</label>
139
- </li>
140
- <li>
141
- <input type="radio" id="type-ol" value="ol" name="alm_container_type" class="alm_element">
142
- <label for="type-ol">&lt;ol /&gt;</label>
143
- </li>
144
- <li>
145
- <input type="radio" id="type-table" value="table" name="alm_container_type" class="alm_element">
146
- <label for="type-table">&lt;table /&gt;</label>
147
- </li>
148
- </ul>
149
- </div>
150
- </div>
151
- </section>
152
-
153
- <!-- Container Classes -->
154
- <section>
155
- <div class="shortcode-builder--label">
156
- <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>
157
- <p>
158
- <?php _e('Add custom CSS classes to the <span>.alm-listing</span> container.', 'ajax-load-more'); ?>
159
- <small>e.g. blog-listing large-12 etc...</small>
160
- </p>
161
- </div>
162
- <div class="shortcode-builder--fields">
163
- <div class="inner">
164
- <input class="alm_element" name="container-classes" type="text" id="container-classes" placeholder="listing large-12 columns">
165
- </div>
166
- </div>
167
- </section>
168
-
169
- <!-- Pause -->
170
- <section class="pause_load" id="alm-pause">
171
- <div class="shortcode-builder--label">
172
- <h4><?php _e('Pause', 'ajax-load-more'); ?></h4>
173
- <p><?php _e('Do not load Ajax content until the user clicks or interacts with the <em>Load More</em> button.', 'ajax-load-more'); ?></p>
174
- </div>
175
- <div class="shortcode-builder--fields">
176
- <div class="inner">
177
- <ul>
178
- <li>
179
- <input class="alm_element" type="radio" name="pause" value="t" id="pause_t">
180
- <label for="pause_t"><?php _e('True', 'ajax-load-more'); ?></label>
181
- </li>
182
- <li>
183
- <input class="alm_element" type="radio" name="pause" value="f" id="pause_f" checked="checked">
184
- <label for="pause_f"><?php _e('False', 'ajax-load-more'); ?></label>
185
- </li>
186
- </ul>
187
- </div>
188
- </div>
189
- </section>
190
-
191
- <!-- Destroy After -->
192
- <section>
193
- <div class="shortcode-builder--label">
194
- <h4><?php _e('Destroy After', 'ajax-load-more'); ?></h4>
195
- <p><?php _e('Remove Ajax Load More functionality after {<em>n</em>} number of pages have been loaded.', 'ajax-load-more'); ?></p>
196
- <p><a class="button-small" href="https://connekthq.com/plugins/ajax-load-more/examples/destroy-after/" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
197
- </div>
198
- <div class="shortcode-builder--fields alm-destroy-after">
199
- <div class="inner">
200
- <input type="number" class="alm_element numbers-only" placeholder="0" name="destroy-after" id="disable-after" step="1" min="0" value="">
201
- </div>
202
- </div>
203
- </section>
204
-
205
- <!-- Images Loaded -->
206
- <section>
207
- <div class="shortcode-builder--label">
208
- <h4><?php _e('Images Loaded', '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></h4>
209
- <p><?php _e('Wait for all images to load before displaying ajax loaded content.', 'ajax-load-more'); ?></p>
210
- <p><a class="button-small" href="https://connekthq.com/plugins/ajax-load-more/examples/images-loaded/" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
211
- </div>
212
- <div class="shortcode-builder--fields alm-images-loaded">
213
- <div class="inner">
214
- <ul>
215
- <li>
216
- <input class="alm_element" type="radio" name="images_loaded" value="t" id="images_loaded_t">
217
- <label for="images_loaded_t"><?php _e('True', 'ajax-load-more'); ?></label>
218
- </li>
219
- <li>
220
- <input class="alm_element" type="radio" name="images_loaded" value="f" id="images_loaded_f" checked="checked">
221
- <label for="images_loaded_f"><?php _e('False', 'ajax-load-more'); ?></label>
222
- </li>
223
- </ul>
224
- </div>
225
- </div>
226
- </section>
227
-
228
- <!-- Loading Placeholder -->
229
- <section>
230
- <div class="shortcode-builder--label">
231
- <h4><?php _e('Loading Placeholder', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('A loading placeholder can help the understand content is about to rendered.','ajax-load-more'); ?>"></a></h4>
232
- <p><?php _e('Display a placeholder image while Ajax content is being loaded.', 'ajax-load-more'); ?></p>
233
- <p><a class="button-small" href="https://connekthq.com/plugins/ajax-load-more/examples/placeholder/" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
234
- </div>
235
- <div class="shortcode-builder--fields alm-placeholder-wrap">
236
- <div class="inner">
237
- <ul>
238
- <li>
239
- <input class="alm_element" type="radio" name="has_placeholder" value="t" id="has_placeholder_t">
240
- <label for="has_placeholder_t"><?php _e('True', 'ajax-load-more'); ?></label>
241
- </li>
242
- <li>
243
- <input class="alm_element" type="radio" name="has_placeholder" value="f" id="has_placeholder_f" checked="checked">
244
- <label for="has_placeholder_f"><?php _e('False', 'ajax-load-more'); ?></label>
245
- </li>
246
- </ul>
247
- </div>
248
- <div class="inner alm-placeholder-target" style="display: none;">
249
- <div class="alm-styled-input">
250
- <label for="placeholder" aria-label="Enter Placeholder URL"><?php _e('URL:', 'ajax-load-more'); ?></label>
251
- <input class="alm_element" name="placeholder" type="text" id="placeholder" data-empty="<?php echo ALM_URL; ?>/core/img/placeholder.png" value="<?php echo ALM_URL; ?>/core/img/placeholder.png" style="width: 100%;" />
252
- </div>
253
- <div class="spacer"></div>
254
- <img id="placeholder-img" style="padding: 10px; border: 2px dashed #efefef;" src="<?php echo ALM_URL; ?>/core/img/placeholder.png" value="<?php echo ALM_URL; ?>/core/img/placeholder.png" alt="" />
255
- </div>
256
- </div>
257
- </section>
258
-
259
- <!-- No Results -->
260
- <section>
261
- <div class="shortcode-builder--label">
262
- <h4><?php _e('No Results Text', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('HTML is allowed, however when adding quote marks in classnames or IDs you must single quotes as shown in the example.','ajax-load-more'); ?>"></a></h4>
263
- <p><?php _e('Add text/html to be displayed when no results are returned in the Ajax query.', 'ajax-load-more'); ?><br/><small><?php _e('e.g. &lt;div class=\'no-results\'>Sorry, nothing found in this query&lt;/div>', 'ajax-load-more'); ?></small></p>
264
- </div>
265
- <div class="shortcode-builder--fields">
266
- <div class="inner ">
267
- <textarea class="alm_element" id="no_results_text" rows="6"></textarea>
268
- </div>
269
- </div>
270
- </section>
271
-
272
- <!-- Nested ALM -->
273
- <section>
274
- <div class="shortcode-builder--label">
275
- <h4><?php _e('Nested Instance', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('When nesting ALM instances it\'s important to set this to true as it removes any problematic JavaScript functionality.','ajax-load-more'); ?>"></a></h4>
276
- <p><?php _e('Is this instance of Ajax Load More nested inside another instance of Ajax Load More?', 'ajax-load-more'); ?></p>
277
- </div>
278
- <div class="shortcode-builder--fields">
279
- <div class="inner">
280
- <ul>
281
- <li>
282
- <input class="alm_element" type="radio" name="nested" value="t" id="nested_t">
283
- <label for="nested_t"><?php _e('True', 'ajax-load-more'); ?></label>
284
- </li>
285
- <li>
286
- <input class="alm_element" type="radio" name="nested" value="f" id="nested_f" checked="checked">
287
- <label for="nested_f"><?php _e('False', 'ajax-load-more'); ?></label>
288
- </li>
289
- </ul>
290
- </div>
291
- </div>
292
- </section>
293
-
294
- </div>
295
- </div>
296
- <!-- End Options -->
297
-
298
-
299
- <!-- Template Selection -->
300
- <?php
301
- echo '<div class="row repeater" id="alm-repeaters">';
302
- echo '<h3 class="heading" tabindex="0">'.__('Template Selection', 'ajax-load-more'). '</h3>';
303
- echo '<div class="expand-wrap">';
304
- echo '<section class="first">';
305
- echo '<div class="shortcode-builder--label">';
306
  if (has_action('alm_theme_repeaters_selection')){
307
- echo '<h4>'.__('Repeater Template', 'ajax-load-more').'</h4>';
308
- }
309
- 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>';
310
- echo '</div>';
311
- echo '<div class="shortcode-builder--fields"><div class="inner">';
312
- echo '<select name="repeater-select" class="alm_element">';
313
- echo '<option name="default" value="default" selected="selected">Default</option>';
314
- if (has_action('alm_get_custom_repeaters')) {
315
- do_action('alm_get_custom_repeaters');
316
  }
317
- if (has_action('alm_get_unlimited_repeaters')) {
318
- do_action('alm_get_unlimited_repeaters');
 
 
 
319
  }
320
- echo '</select>';
 
321
  echo '</div>';
322
- echo '</section>';
323
-
324
- // Get Theme Repeaters
325
- if (has_action('alm_theme_repeaters_selection')){
326
- do_action('alm_theme_repeaters_selection');
327
- }
328
- ?>
329
-
330
- <?php // Custom Repeaters v2 - /cta/extend.php
331
- if (!has_action('alm_get_unlimited_repeaters') && !has_action('alm_get_custom_repeaters') && !has_action('alm_theme_repeaters_installed')) {
332
- include( ALM_PATH . 'admin/includes/cta/extend.php');
333
- }
334
-
335
- echo '</div>';
336
- echo '</div>';
337
- ?>
338
- <!-- End Template Selection -->
339
-
340
-
341
- <!-- Button Labels -->
342
- <div class="row input btn-label" id="alm-btn-label">
343
- <h3 class="heading" tabindex="0"><?php _e('Button Labels', 'ajax-load-more'); ?></h3>
344
-
345
- <div class="expand-wrap">
346
- <section class="first">
347
- <div class="shortcode-builder--label">
348
- <h4><?php _e('Label', 'ajax-load-more'); ?></h4>
349
- <p><?php _e('Customize the text of the <em>Load More</em> button.', 'ajax-load-more'); ?></p>
350
- </div>
351
- <div class="shortcode-builder--fields">
352
- <div class="inner">
353
- <input class="alm_element" name="button-label" type="text" id="button-label" value="<?php _e('Load More', 'ajax-load-more'); ?>">
354
- </div>
355
- </div>
356
- </section>
357
-
358
- <section>
359
- <div class="shortcode-builder--label">
360
- <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 button text while loading content','ajax-load-more'); ?>."></a></h4>
361
- <p><?php _e('Update the text of the <em>Load More</em> button while content is loading.', 'ajax-load-more'); ?></p>
362
- </div>
363
- <div class="shortcode-builder--fields">
364
- <div class="inner">
365
- <input class="alm_element" name="button-loading-label" type="text" id="button-loading-label" value="" placeholder="<?php _e('Loading Posts...', 'ajax-load-more'); ?>">
366
- </div>
367
- </div>
368
- </section>
369
-
370
- <section>
371
- <div class="shortcode-builder--label">
372
- <h4><?php _e('Done Label', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Leave field empty to not update button text','ajax-load-more'); ?>."></a></h4>
373
- <p><?php _e('Update the text of the <em>Load More</em> button when no content remains to be loaded.', 'ajax-load-more'); ?></p>
374
- </div>
375
- <div class="shortcode-builder--fields">
376
- <div class="inner">
377
- <input class="alm_element" name="button-done-label" type="text" id="button-done-label" value="" placeholder="<?php _e('No Posts Remain...', 'ajax-load-more'); ?>">
378
- </div>
379
- </div>
380
- </section>
381
-
382
- </div>
383
- </div>
384
- <!-- Button Labels -->
385
-
386
- <!-- Scrolling -->
387
- <div class="row checkbox scroll_load" id="alm-scroll">
388
- <h3 class="heading" tabindex="0"><?php _e('Scrolling', 'ajax-load-more'); ?></h3>
389
- <div class="expand-wrap">
390
- <section class="first">
391
- <div class="shortcode-builder--label">
392
- <h4><?php _e('Enable Scrolling', 'ajax-load-more'); ?></h4>
393
- <p><?php _e('Load more posts as the user scrolls the page.', 'ajax-load-more'); ?></p>
394
- </div>
395
- <div class="shortcode-builder--fields">
396
- <div class="inner">
397
- <ul>
398
- <li>
399
- <input class="alm_element" type="radio" name="scroll" value="t" id="scroll_t" checked="checked">
400
- <label for="scroll_t"><?php _e('True', 'ajax-load-more'); ?></label>
401
- </li>
402
- <li>
403
- <input class="alm_element" type="radio" name="scroll" value="f" id="scroll_f">
404
- <label for="scroll_f"><?php _e('False', 'ajax-load-more'); ?></label>
405
- </li>
406
- </ul>
407
- </div>
408
- </div>
409
- </section>
410
-
411
- <div class="clear"></div>
412
-
413
- <div class="scrolling-options nested-component">
414
- <div class="nested-component--inner">
415
-
416
- <!-- Scroll Distance -->
417
- <section class="border-btm scroll_distance">
418
- <div class="shortcode-builder--label">
419
- <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>
420
- <p><?php _e('The distance from the bottom of the screen to trigger loading of posts. (Default = 100)', 'ajax-load-more'); ?>
421
- <small><strong><?php _e('Pro-tip', 'ajax-load-more'); ?>:</strong> <?php _e('Use a negative number (-200) to trigger a post load before the button is in view', 'ajax-load-more'); ?></small></p></p>
422
- </div>
423
- <div class="shortcode-builder--fields">
424
- <div class="inner">
425
- <div class="builder-option-toggle">
426
- <input type="number" class="alm_element numbers-only" name="scroll-distance" id="scroll-distance" step="50" min="-100000" value="100">
427
- <div class="builder-option-toggle--buttons">
428
- <button type="button" value="px" class="pixels active">px</button>
429
- <button type="button" value="%" class="perc">%</button>
430
- </div>
431
- </div>
432
- </div>
433
- </div>
434
- </section>
435
-
436
- <!-- Max Pages -->
437
- <section class="border-btm max_pages">
438
- <div class="shortcode-builder--label">
439
- <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>
440
- <p><?php _e('Maximum number of pages to load while scrolling. (0 = unlimited)', 'ajax-load-more'); ?></p>
441
- </div>
442
- <div class="shortcode-builder--fields">
443
- <div class="inner">
444
- <input type="number" class="alm_element numbers-only" name="max-select" id="max-select" step="1" min="0" value="0">
445
- </div>
446
- </div>
447
- </section>
448
-
449
- <!-- Pause Override -->
450
- <section class="border-btm pause_override">
451
- <div class="shortcode-builder--label">
452
- <h4><?php _e('Pause Override', 'ajax-load-more'); ?></h4>
453
- <p><?php _e('Override the <em>Pause</em> parameter and trigger the initial loading of posts on scroll.', 'ajax-load-more'); ?></p>
454
- </div>
455
- <div class="shortcode-builder--fields">
456
- <ul>
457
- <li>
458
- <input class="alm_element" type="radio" name="pause_override" value="t" id="pause_override_t">
459
- <label for="pause_override_t"><?php _e('True', 'ajax-load-more'); ?></label>
460
- </li>
461
- <li>
462
- <input class="alm_element" type="radio" name="pause_override" value="f" id="pause_override_f" checked="checked">
463
- <label for="pause_override_f"><?php _e('False', 'ajax-load-more'); ?></label>
464
- </li>
465
- </ul>
466
- </div>
467
- </section>
468
- </div>
469
 
470
- </div>
471
 
472
- <!-- Scroll Container -->
473
- <section class="border-btm scroll_container_section">
474
- <div class="shortcode-builder--label">
475
- <h4><?php _e('Scroll Container', 'ajax-load-more'); ?></h4>
476
- <p><?php _e('Confine Ajax Load More scrolling to a parent container element.', 'ajax-load-more'); ?></p>
477
- </div>
478
- <div class="shortcode-builder--fields">
479
- <ul>
480
- <li>
481
- <input class="alm_element" type="radio" name="scroll_container_toggle" value="t" id="scroll_container_t">
482
- <label for="scroll_container_t"><?php _e('True', 'ajax-load-more'); ?></label>
483
- </li>
484
- <li>
485
- <input class="alm_element" type="radio" name="scroll_container_toggle" value="f" id="scroll_container_f" checked="checked">
486
- <label for="scroll_container_f"><?php _e('False', 'ajax-load-more'); ?></label>
487
- </li>
488
- </ul>
489
- </div>
490
- </section>
491
 
492
- <div class="clear"></div>
 
 
 
 
 
 
 
 
 
 
 
493
 
494
- <div class="scroll-container-options nested-component" style="display: none;">
495
- <div class="nested-component--inner">
 
 
 
 
 
 
 
 
 
496
 
497
- <!-- Scroll Container -->
498
- <section class="border-btm scroll_container">
499
  <div class="shortcode-builder--label">
500
- <h4><?php _e('Container Element', 'ajax-load-more'); ?></h4>
501
- <p><?php _e('Enter the ID or classname of the parent container element to be used as the scrolling container.', 'ajax-load-more'); ?></p>
 
 
 
 
502
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
503
  <div class="shortcode-builder--fields">
504
  <div class="inner">
505
- <input type="text" class="alm_element" name="scroll-container" id="scroll-container" placeholder="#my-div">
 
 
 
 
 
 
 
 
 
506
  </div>
507
  </div>
508
  </section>
509
 
510
- <!-- Scroll Direction -->
511
- <section class="border-btm scroll_direction">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
512
  <div class="shortcode-builder--label">
513
- <h4><?php _e('Scroll Direction', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Scroll Direction only works when using a Scroll Container.','ajax-load-more'); ?>"></a></h4>
514
- <p><?php _e('Select the direction Ajax Load More should scroll to load posts.', 'ajax-load-more'); ?></p>
515
  </div>
516
  <div class="shortcode-builder--fields">
517
  <ul>
518
  <li>
519
- <input class="alm_element" type="radio" name="scroll_direction" value="vertical" id="scroll_direction_v" checked="checked">
520
- <label for="scroll_direction_v"><?php _e('Vertical', 'ajax-load-more'); ?></label>
521
  </li>
522
  <li>
523
- <input class="alm_element" type="radio" name="scroll_direction" value="horizontal" id="scroll_direction_h">
524
- <label for="scroll_direction_h"><?php _e('Horizontal', 'ajax-load-more'); ?></label>
525
  </li>
526
  </ul>
527
  </div>
528
  </section>
529
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
530
  </div>
531
  </div>
 
532
 
533
- </div>
534
- </div>
535
- <!-- End Scrolling -->
536
-
537
- <!-- Transition -->
538
- <div class="row input transition" id="alm-transition">
539
- <h3 class="heading" tabindex="0"><?php _e('Transition', 'ajax-load-more'); ?></h3>
540
-
541
- <div class="expand-wrap">
542
- <section class="first">
543
- <div class="shortcode-builder--label">
544
- <h4><?php _e('Type', 'ajax-load-more'); ?></h4>
545
- <p><?php _e('Select a loading transition style.', 'ajax-load-more'); ?></p>
546
- </div>
547
- <div class="shortcode-builder--fields">
548
- <div class="inner">
549
- <select class="alm_element transition" name="transition">
550
- <option value="fade" selected="selected"><?php _e('Fade In', 'ajax-load-more'); ?></option>
551
- <option value="masonry"><?php _e('Masonry', 'ajax-load-more'); ?></option>
552
- <option value="none"><?php _e('None', 'ajax-load-more'); ?></option>
553
- </select>
554
- </div>
555
- </div>
556
- </section>
557
-
558
- <div class="clear"></div>
559
-
560
- <div class="masonry-options nested-component" style="display: none;">
561
- <div class="nested-component--inner">
562
 
563
- <section>
564
- <div class="shortcode-builder--label full">
565
- <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>
566
- <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>
567
- </div>
 
 
 
 
 
 
 
 
 
 
568
  </section>
569
 
570
- <section>
571
- <div class="shortcode-builder--label">
572
- <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>
573
- <p><?php _e('Enter the target classname of each masonry item.', 'ajax-load-more'); ?><br/>
574
- e.g <span>.grid-item</span>
575
- </p>
576
- </div>
577
- <div class="shortcode-builder--fields">
578
- <div class="inner">
579
- <input type="text" class="alm_element" name="masonry-item" id="masonry-item" placeholder=".grid-item">
580
- </div>
581
- </div>
582
- </section>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
583
 
 
584
 
585
- <section>
586
- <div class="shortcode-builder--label">
587
- <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>
588
- <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/>
589
- e.g <span>80</span>
590
- </p>
591
- </div>
592
- <div class="shortcode-builder--fields">
593
- <div class="inner">
594
- <input type="number" class="alm_element numbers-only" name="masonry-columnwidth" id="masonry-columnwidth" placeholder="80" min="0" step="1">
595
- </div>
596
- </div>
597
- </section>
598
 
599
- <section>
600
- <div class="shortcode-builder--label">
601
- <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>
602
- <p><?php _e('Select a loading transition for Masonry items.', 'ajax-load-more'); ?></p>
603
- </div>
604
- <div class="shortcode-builder--fields">
605
- <div class="inner">
606
- <ul>
607
- <li style="width:100%;">
608
- <input class="alm_element" type="radio" name="masonry-animation" value="default" id="masonry-animation-default" checked="checked">
609
- <label for="masonry-animation-default">
610
- <?php _e('Default (Zoom)', 'ajax-load-more'); ?>
611
- <span class="description"><?php _e('Items scale up from 50% to 100% size on load.','ajax-load-more'); ?></span>
612
- </label>
613
- </li>
614
- <li style="width:100%;">
615
- <input class="alm_element" type="radio" name="masonry-animation" value="zoom-out" id="masonry-animation-zoom-out">
616
- <label for="masonry-animation-zoom-out">
617
- <?php _e('Zoom Out', 'ajax-load-more'); ?>
618
- <span class="description"><?php _e('Items scale down from 125% to 100% size on load.','ajax-load-more'); ?></span>
619
- </label>
620
- </li>
621
- <li style="width:100%;">
622
- <input class="alm_element" type="radio" name="masonry-animation" value="slide-up" id="masonry-animation-up">
623
- <label for="masonry-animation-up">
624
- <?php _e('Slide Up', 'ajax-load-more'); ?>
625
- <span class="description"><?php _e('Items animate up as they are loaded into view.','ajax-load-more'); ?></span>
626
- </label>
627
- </li>
628
- <li style="width:100%;">
629
- <input class="alm_element" type="radio" name="masonry-animation" value="slide-down" id="masonry-animation-down">
630
- <label for="masonry-animation-down">
631
- <?php _e('Slide Down', 'ajax-load-more'); ?>
632
- <span class="description"><?php _e('Items animate down when loaded into view.','ajax-load-more'); ?></span>
633
- </label>
634
- </li>
635
- <li style="width:100%;">
636
- <input class="alm_element" type="radio" name="masonry-animation" value="none" id="masonry-animation-none">
637
- <label for="masonry-animation-none">
638
- <?php _e('None', 'ajax-load-more'); ?>
639
- </label>
640
- </li>
641
- </ul>
642
- </div>
643
- </div>
644
- </section>
645
 
646
- <section>
647
- <div class="shortcode-builder--label">
648
- <h4><?php _e('Horizontal Order', 'ajax-load-more'); ?></h4>
649
- <p><?php _e('Lays out items to maintain left-to-right order.', 'ajax-load-more'); ?>
650
- </p>
651
- </div>
652
- <div class="shortcode-builder--fields">
653
- <div class="inner">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
654
  <ul>
655
  <li>
656
- <input class="alm_element" type="radio" name="masonry-horizontalorder" value="t" id="horizontalOrder_t" checked="checked">
657
- <label for="horizontalOrder_t"><?php _e('True', 'ajax-load-more'); ?></label>
658
  </li>
659
  <li>
660
- <input class="alm_element" type="radio" name="masonry-horizontalorder" value="f" id="horizontalOrder_f">
661
- <label for="horizontalOrder_f"><?php _e('False', 'ajax-load-more'); ?></label>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
662
  </li>
663
  </ul>
664
- </div>
665
- </div>
666
  </section>
667
 
668
- <p class="warning-callout">
669
- <?php _e('Don\'t see your favorite Masonry option listed? You can always add your own!', 'ajax-load-more'); ?>
670
- <a class="button-small" href="https://connekthq.com/plugins/ajax-load-more/docs/masonry/" target="_blank"><?php _e('View Docs', 'ajax-load-more'); ?></a>
671
- </p>
672
-
673
- </div>
674
-
675
- </div>
676
-
677
- <!-- Hide transition_container if Masonry is selected -->
678
- <div class="masonry-options-hide">
679
-
680
- <div class="transition-container-classes-wrap">
681
-
682
- <section>
683
- <div class="shortcode-builder--label">
684
- <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 Single Post or Next Page add-ons','ajax-load-more'); ?>."></a></h4>
685
- <p><?php _e('Add custom classes to the <span>.alm-reveal</span> loading container', 'ajax-load-more'); ?>.</p>
686
- </div>
687
- <div class="shortcode-builder--fields">
688
- <div class="inner">
689
- <input type="text" class="alm_element" name="transition-container-classes" id="transition-container-classes" placeholder="row large-12 etc">
690
- </div>
691
- </div>
692
- </div>
693
- </section>
694
-
695
- <section>
696
- <div class="shortcode-builder--label">
697
- <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>
698
- <p><?php _e('Remove the <span>.alm-reveal</span> loading container from Ajax Load More', 'ajax-load-more'); ?>.</p>
699
- </div>
700
- <div class="shortcode-builder--fields">
701
- <div class="inner">
702
- <ul>
703
- <li style="width:100%;">
704
- <input class="alm_element" type="checkbox" name="remove_container" id="remove_container" value="f">
705
- <label for="remove_container"><?php _e('Remove Container', 'ajax-load-more'); ?></label>
706
- </li>
707
- </ul>
708
- </div>
709
- </div>
710
- </section>
711
-
712
- </div>
713
- <!-- End Hide transition_container if Masonry is selected -->
714
-
715
- </div>
716
- </div>
717
- <!-- End Transition -->
718
-
719
- <!-- Progress Bar -->
720
- <div class="row input alm-progress-bar" id="alm-progress-bar">
721
- <h3 class="heading" tabindex="0"><?php _e('Progress Bar', 'ajax-load-more'); ?></h3>
722
- <div class="expand-wrap">
723
- <section class="first">
724
- <div class="shortcode-builder--label">
725
- <p><?php _e('Display progress bar indicator at the top of the window while loading Ajax content.', 'ajax-load-more'); ?></p>
726
- <p><a class="button-small" href="https://connekthq.com/plugins/ajax-load-more/examples/progress-bar/" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
727
- </div>
728
- <div class="shortcode-builder--fields">
729
- <div class="inner">
730
- <ul>
731
- <li>
732
- <input class="alm_element" type="radio" name="progress_bar" value="t" id="progress_bar_t">
733
- <label for="progress_bar_t"><?php _e('True', 'ajax-load-more'); ?></label>
734
- </li>
735
- <li>
736
- <input class="alm_element" type="radio" name="progress_bar" value="f" id="progress_bar_f" checked="checked">
737
- <label for="progress_bar_f"><?php _e('False', 'ajax-load-more'); ?></label>
738
- </li>
739
- </ul>
740
- </div>
741
- </div>
742
- </section>
743
-
744
- <div class="clear"></div>
745
-
746
- <div class="progress-bar-options nested-component" style="display: none;">
747
- <div class="nested-component--inner">
748
  <section>
749
  <div class="shortcode-builder--label">
750
- <h4><?php _e('Color', 'ajax-load-more'); ?> </h4>
751
- <p><?php _e('Enter the hex color of the progress bar', 'ajax-load-more'); ?>.<br/>
752
- <?php _e('Default:', 'ajax-load-more'); ?> #<span>ed7070</span>
 
753
  </p>
754
  </div>
755
  <div class="shortcode-builder--fields">
756
- <div class="inner" style="position: relative;">
757
- <input type="text" class="alm_element" name="progress_bar_color" id="progress_bar_color" placeholder="ed7070" value="ed7070" maxlength="6" style="padding-left: 40px;">
758
- <span class="progress_bar_color_indicator"></span>
 
 
 
 
 
 
 
 
 
759
  </div>
 
760
  </div>
761
  </section>
762
  </div>
763
  </div>
 
764
 
765
- </div>
766
 
767
- </div>
768
- <!-- End Progress Bar -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
769
 
770
- </div>
771
- </div>
772
- <!-- End Display Settings -->
773
-
774
- <!-- ****************************** -->
775
-
776
- <!-- Query Parameters -->
777
- <div class="shortcode-parameter-wrap">
778
- <h2 tabindex="0" class="shortcode-title"><i class="fa fa-database"></i><?php _e('Query Parameters', 'ajax-load-more'); ?></h2>
779
- <div class="section-wrap">
780
-
781
- <p class="section-intro"><?php _e('Query Parameters allow you build a custom <b>WP_Query</b> based on Ajax Load More shortcode values.', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('When using Ajax Load More add-ons or extensions not all Query Parameters will be available in the query.', 'ajax-load-more'); ?>"></a></p>
782
-
783
- <!-- Posts Per Page -->
784
- <div class="row input posts_per_page" id="alm-post-page">
785
- <h3 class="heading" tabindex="0"><?php _e('Posts Per Page', 'ajax-load-more'); ?></h3>
786
- <div class="expand-wrap">
787
- <section>
788
- <div class="shortcode-builder--label">
789
- <p><?php _e('Select the number of posts to load with each Ajax request.', 'ajax-load-more'); ?></p>
790
- </div>
791
- <div class="shortcode-builder--fields">
792
- <div class="inner">
793
- <input type="number" class="alm_element numbers-only" name="display_posts-select" id="display_posts-select" step="1" min="1" value="5">
794
- </div>
795
- </div>
796
- </section>
797
- </div>
798
- </div>
799
- <!-- End Posts Per Page -->
800
-
801
- <!-- Post Types -->
802
- <?php
803
- $pt_args = array(
804
- 'public' => true
805
- );
806
- $types = get_post_types($pt_args);
807
- if($types){ ?>
808
- <div class="row checkboxes post_types" id="alm-post-types">
809
- <h3 class="heading" tabindex="0"><?php _e('Post Type', 'ajax-load-more'); ?></h3>
810
-
811
- <div class="expand-wrap">
812
- <section>
813
- <div class="shortcode-builder--label">
814
- <p><?php _e('Select the Post Types to include in this Ajax Load More query.', 'ajax-load-more'); ?></p>
815
- </div>
816
- <div class="shortcode-builder--fields">
817
- <div class="inner">
818
- <ul class="alm-post-type-list">
819
- <?php
820
- foreach( $types as $type ){
821
- $typeobj = get_post_type_object( $type );
822
- $name = $typeobj->name;
823
- if( $name != 'revision' && $name != 'nav_menu_item' && $name != 'acf'){
824
- 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>';
825
- }
826
- }
827
- ?>
828
- <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>
829
- </ul>
830
- </div>
831
- </div>
832
- </section>
833
-
834
- <!-- Sticky Posts -->
835
- <div class="sticky-wrap nested-component">
836
- <div class="nested-component--inner">
837
- <section>
838
- <div class="shortcode-builder--label">
839
- <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>
840
- <p><?php _e('Preserve the ordering of sticky posts by having them appear first in the Ajax listing.', 'ajax-load-more'); ?></p>
841
- </div>
842
- <div class="shortcode-builder--fields">
843
- <div class="inner">
844
- <ul>
845
- <li style="width:100%;">
846
- <input class="alm_element" type="checkbox" name="alm_sticky_posts" id="alm_sticky_posts" value="true">
847
- <label for="alm_sticky_posts"><?php _e('Enable Sticky Posts', 'ajax-load-more'); ?></label>
848
- </li>
849
- </ul>
850
- </div>
851
- </div>
852
- </section>
853
- </div>
854
- </div>
855
-
856
- </div>
857
-
858
- </div>
859
- <?php }
860
- ?>
861
- <!-- End Post Types -->
862
-
863
-
864
- <!-- Post Formats -->
865
- <?php
866
- if ( current_theme_supports( 'post-formats' ) ) {
867
- $post_formats = get_theme_support( 'post-formats' );
868
- if($post_formats){
869
- echo '<div class="row checkboxes post_format" id="alm-post-format">';
870
- echo '<h3 class="heading" tabindex="0">'.__('Post Format', 'ajax-load-more'). '</h3>';
871
- echo '<div class="expand-wrap">';
872
- echo '<section class="first">';
873
- echo '<div class="shortcode-builder--label">';
874
- echo '<p>'.__('Select a Post Format to query.', 'ajax-load-more'). '</p>';
875
- echo '</div>';
876
- echo '<div class="shortcode-builder--fields"><div class="inner"><select class="alm_element" name="post-format-select" id="post-format-select">';
877
- echo '<option value="" selected="selected">-- ' . __('Select Post Format', 'ajax-load-more') . ' --</option>';
878
- echo '<option name="chk-standard" id="chk-standard" value="standard">' . __('Standard', 'ajax-load-more') . '</option>';
879
- foreach( $post_formats[0] as $post_format ){
880
- echo '<option name="chk-'.$post_format.'" id="chk-'.$post_format.'" value="'.$post_format.'">'.ucwords($post_format).'</option>';
881
- }
882
- echo '</select></div></div>';
883
- echo '</section>';
884
- echo '</div>';
885
- echo '</div>';
886
- }
887
- }
888
- ?>
889
- <!-- End Post Formats -->
890
-
891
-
892
- <!-- Categories -->
893
- <?php
894
- if($disable_dynamic_content){
895
- $cats = 'null';
896
- }else{
897
- $cats = get_categories();
898
- if($cats && count($cats) > $show_max){
899
- $disable_dynamic_content = true;
900
- }
901
- }
902
- if($cats){
903
- $cat_link = 'https://developer.wordpress.org/reference/classes/wp_query/#category-parameters';
904
- ?>
905
- <div class="row checkboxes categories" id="alm-categories">
906
- <h3 class="heading" tabindex="0"><?php _e('Category', 'ajax-load-more'); ?></h3>
907
- <div class="expand-wrap">
908
- <section class="first">
909
- <div class="shortcode-builder--label">
910
- <h4><?php _e('Include', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Get posts by category using a category_name or category__and query','ajax-load-more'); ?>."></a></h4>
911
- <p><?php _e('Comma separated list of categories to include by', 'ajax-load-more'); ?> <strong class="alm-populate"><?php _e('slug', 'ajax-load-more'); ?></strong>.
912
- <small class="alm-populate-eg">e.g. design, research etc...</small></p>
913
- <p><a class="button-small" href="admin.php?page=ajax-load-more-help&section=examples#example-category" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
914
- </div>
915
- <div class="shortcode-builder--fields">
916
- <div class="inner">
917
- <div class="category-toggle category_name">
918
- <?php
919
- if(!$disable_dynamic_content){
920
- echo '<select class="alm_element multiple" name="category-select" id="category-select" multiple="multiple">';
921
- foreach( $cats as $cat ){
922
- echo '<option name="chk-'.$cat->slug.'" id="chk-'.$cat->slug.'" value="'.$cat->slug.'">'.$cat->name.'</option>';
923
- }
924
- echo '</select>';
925
- }else{
926
- echo '<input type="text" class="alm_element" name="category-select" id="category-select" placeholder="design, development, science etc..." style="margin-bottom: 15px;">';
927
- }
928
- ?>
929
- </div>
930
- <div class="category-toggle category__and" style="display: none;">
931
- <?php
932
- if(!$disable_dynamic_content){
933
- echo '<select class="alm_element multiple" name="category--and-select" id="category--and-select" multiple="multiple">';
934
- foreach( $cats as $cat ){
935
- echo '<option name="chk-'.$cat->term_id.'" id="chk-'.$cat->term_id.'" value="'.$cat->term_id.'">'.$cat->name.'</option>';
936
- }
937
- echo '</select>';
938
- }else{
939
- echo '<input type="text" class="alm_element" name="category--and-select" id="category--and-select" placeholder="10,29,31 etc...">';
940
- }
941
- ?>
942
- </div>
943
- <ul style="padding: 20px 0 0;">
944
- <li style="width: 100%;">
945
- <input class="alm_element" type="checkbox" name="category-select-type" value="category__and" id="category__and">
946
- <label for="category__and">
947
- category__and <span>(<a href="<?php echo $cat_link; ?>" target="_blank"><?php _e('What\'s this', 'ajax-load-more'); ?>?</a>)</span>
948
- </label>
949
- </li>
950
- </ul>
951
- </div>
952
- </div>
953
- </section>
954
-
955
- <section>
956
- <div class="shortcode-builder--label">
957
- <h4><?php _e('Exclude', 'ajax-load-more'); ?></h4>
958
- <p>
959
- <?php _e('Comma separated list of categories to exclude by ID.', 'ajax-load-more'); ?>
960
- <small>e.g. 3, 12, 35 etc..</small>
961
- </p>
962
- </div>
963
- <div class="shortcode-builder--fields">
964
- <div class="inner">
965
- <?php
966
- if(!$disable_dynamic_content){
967
- echo '<select class="alm_element multiple" name="category-exclude-select" id="category-exclude-select" multiple="multiple">';
968
- foreach( $cats as $cat ){
969
- echo '<option name="chk-'.$cat->term_id.'" id="chk-'.$cat->term_id.'" value="'.$cat->term_id.'">'.$cat->name.'</option>';
970
- }
971
- echo '</select>';
972
- }else{
973
- echo '<input type="text" class="alm_element numbers-only" name="category-exclude-select" id="category-exclude-select" placeholder="10, 12, 19 etc...">';
974
- }
975
- ?>
976
- </div>
977
- <div class="clear"></div>
978
- </div>
979
- </section>
980
- </div>
981
- </div>
982
- <!-- End Category -->
983
-
984
- <?php }
985
-
986
- // Tags
987
- if($disable_dynamic_content){
988
- $tags = 'null';
989
- }else{
990
- $tags = get_tags();
991
- if($tags && count($tags) > $show_max){
992
- $disable_dynamic_content = true;
993
- }
994
- }
995
- if($tags){
996
- $tag_link = 'https://developer.wordpress.org/reference/classes/wp_query/#tag-parameters';
997
- ?>
998
- <div class="row checkboxes tags" id="alm-tags">
999
- <h3 class="heading" tabindex="0"><?php _e('Tag', 'ajax-load-more'); ?></h3>
1000
- <div class="expand-wrap">
1001
- <section class="first">
1002
- <div class="shortcode-builder--label">
1003
- <h4><?php _e('Include', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Get posts by tags using a tag or tag__and query','ajax-load-more'); ?>."></a></h4>
1004
- <p><?php _e('Comma separated list of tags to include by', 'ajax-load-more'); ?> <strong class="alm-populate"><?php _e('slug', 'ajax-load-more'); ?></strong>.
1005
- <small class="alm-populate-eg">e.g. toronto, canada etc...</small></p>
1006
- <p><a class="button-small" href="admin.php?page=ajax-load-more-help&section=examples#example-tag" target="_blank">
1007
- <?php _e('View Example', 'ajax-load-more'); ?>
1008
- </a></p>
1009
- </div>
1010
- <div class="shortcode-builder--fields">
1011
- <div class="inner">
1012
- <div class="tag-toggle tag_normal">
1013
- <?php
1014
- if(!$disable_dynamic_content){
1015
- echo '<select class="alm_element multiple" name="tag-select" id="tag-select" multiple="multiple">';
1016
- foreach( $tags as $tag ){
1017
- echo '<option name="chk-'.$tag->slug.'" id="chk-'.$tag->slug.'" value="'.$tag->slug.'">'.$tag->name.'</option>';
1018
- }
1019
- echo '</select>';
1020
- }else{
1021
- echo '<input type="text" class="alm_element" name="tag-select" id="tag-select" placeholder="hockey, toronto, canada etc..." style="margin-bottom: 20px;">';
1022
- }
1023
- ?>
1024
- </div>
1025
- <div class="tag-toggle tag__and" style="display: none;">
1026
- <?php
1027
- if(!$disable_dynamic_content){
1028
- echo '<select class="alm_element multiple" name="tag--and-select" id="tag--and-select" multiple="multiple">';
1029
- foreach( $tags as $tag ){
1030
- echo '<option name="chk-'.$tag->term_id.'" id="chk-'.$tag->term_id.'" value="'.$tag->term_id.'">'.$tag->name.'</option>';
1031
  }
1032
- echo '</select>';
1033
- }else{
1034
- echo '<input type="text" class="alm_element" name="tag--and-select" id="tag--and-select" placeholder="12, 23, 29 etc...">';
1035
- }
1036
- ?>
1037
- </div>
1038
- <ul style="padding: 20px 0 0;">
1039
- <li style="width: 100%;">
1040
- <input class="alm_element" type="checkbox" name="tag-select-type" value="tag__and" id="tag__and">
1041
- <label for="tag__and">
1042
- tag__and <span>(<a href="<?php echo $tag_link; ?>" target="_blank"><?php _e('What\'s this', 'ajax-load-more'); ?>?</a>)</span>
1043
- </label>
1044
- </li>
1045
- </ul>
1046
- </div>
1047
- </div>
1048
- </section>
1049
-
1050
- <section>
1051
- <div class="shortcode-builder--label">
1052
- <h4><?php _e('Exclude', 'ajax-load-more'); ?></h4>
1053
- <p>
1054
- <?php _e('Comma separated list of tags to exclude by ID', 'ajax-load-more'); ?>.
1055
- <small>e.g. 30, 12, 99 etc..</small>
1056
- </p>
1057
- </div>
1058
- <div class="shortcode-builder--fields">
1059
- <div class="inner">
1060
- <?php
1061
- if(!$disable_dynamic_content){
1062
- echo '<select class="alm_element multiple" name="tag-exclude-select" id="tag-exclude-select" multiple="multiple">';
1063
- foreach( $tags as $tag ){
1064
- echo '<option name="chk-'.$tag->term_id.'" id="chk-'.$tag->term_id.'" value="'.$tag->term_id.'">'.$tag->name.'</option>';
1065
- }
1066
- echo '</select>';
1067
- }else{
1068
- echo '<input type="text" class="alm_element numbers-only" name="tag-exclude-select" id="tag-exclude-select" placeholder="10, 12, 19 etc...">';
1069
- }
1070
- ?>
1071
- </div>
1072
- <div class="clear"></div>
1073
- </div>
1074
- </section>
1075
- </div>
1076
- </div>
1077
- <?php } ?>
1078
- <!-- End Tags -->
1079
-
1080
- <?php
1081
- // Taxonomies
1082
- $tax_args = array(
1083
- 'public' => true,
1084
- '_builtin' => false
1085
- );
1086
- $tax_output = 'objects';
1087
- $taxonomies = get_taxonomies( $tax_args, $tax_output );
1088
- if ( $taxonomies ) { ?>
1089
- <div class="row taxonomy" id="alm-taxonomy">
1090
- <h3 class="heading" tabindex="0"><?php _e('Taxonomy', 'ajax-load-more'); ?></h3>
1091
- <div class="expand-wrap">
1092
- <section class="first">
1093
- <div class="shortcode-builder--label">
1094
- <p><?php _e('Select a taxonomy then select the terms and an operator.', 'ajax-load-more'); ?></p>
1095
- </div>
1096
- <div class="shortcode-builder--fields">
1097
- <?php include( ALM_PATH . 'admin/shortcode-builder/includes/tax-query-options.php'); ?>
1098
- <div class="controls">
1099
- <button id="add-tax-query" class="button button-primary"><?php _e('Add Another', 'ajax-load-more'); ?></button>
1100
- </div>
1101
- </div>
1102
- </section>
1103
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1104
  </div>
1105
- <?php } ?>
1106
- <!-- End Taxonomies -->
1107
-
1108
- <!-- Meta_Query -->
1109
- <div class="row input meta-key" id="alm-meta-key">
1110
- <h3 class="heading" tabindex="0"><?php _e('Custom Fields (Meta_Query)', 'ajax-load-more'); ?></h3>
1111
- <div class="expand-wrap">
1112
- <section class="first full">
1113
- <div class="shortcode-builder--label">
1114
- <p><?php _e('Query for <a href="https://developer.wordpress.org/reference/classes/wp_query/#custom-field-post-meta-parameters" target="_blank">custom field</a> by entering a custom field key, value and operator.', 'ajax-load-more'); ?></p>
1115
- </div>
1116
- <div class="shortcode-builder--fields">
1117
- <div class="meta-query-wrap-first">
1118
- <div class="meta-query-wrap">
1119
- <?php include( ALM_PATH . 'admin/shortcode-builder/includes/meta-query-options.php'); ?>
1120
- </div>
1121
- </div>
1122
- <div id="meta-query-relation">
1123
- <div class="inner border-top highlighted">
1124
- <div class="shortcode-builder--fields-30 wrap-50">
1125
- <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>
1126
- <select class="alm_element meta-relation" name="meta-relation">
1127
- <option value="AND" selected="selected">AND</option>
1128
- <option value="OR">OR</option>
1129
- </select>
1130
- </div>
1131
- </div>
1132
- </div>
1133
- <div id="meta-query-extended"></div>
1134
- <div class="controls">
1135
- <button class="button button-primary" id="add-meta-query"><?php _e('Add Another', 'ajax-load-more'); ?></button>
1136
- </div>
1137
- </div>
1138
- </section>
1139
- </div>
1140
- </div>
1141
- <!-- End Meta Query -->
1142
-
1143
- <!-- Date -->
1144
- <div class="row input date" id="alm-date">
1145
- <h3 class="heading" tabindex="0"><?php _e('Date', 'ajax-load-more'); ?></h3>
1146
- <div class="expand-wrap">
1147
- <section class="first">
1148
- <div class="shortcode-builder--label">
1149
- <p><?php _e('Enter a year, month(number) and day to query by date archive.', 'ajax-load-more'); ?></p>
1150
- <p><a class="button-small" href="admin.php?page=ajax-load-more-help&section=examples#example-date" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
1151
- </div>
1152
- <div class="shortcode-builder--fields">
1153
- <div class="inner flex-grid flex-grid--three">
1154
- <div>
1155
- <?php $today = getdate(); ?>
1156
- <label for="input-year" class="full"><?php _e('Year:', 'ajax-load-more'); ?></label>
1157
- <input name="input-year" class="alm_element sm numbers-only" type="text" id="input-year" maxlength="4" placeholder="<?php echo $today['year']; ?>">
1158
- </div>
1159
- <div>
1160
- <label for="input-month" class="full"><?php _e('Month:', 'ajax-load-more'); ?></label>
1161
- <input name="input-month" class="alm_element sm numbers-only" type="text" id="input-month" maxlength="2" placeholder="<?php echo $today['mon']; ?>">
1162
- </div>
1163
- <div>
1164
- <label for="input-day" class="full"><?php _e('Day:', 'ajax-load-more'); ?></label>
1165
- <input name="input-day" class="alm_element sm numbers-only" type="text" id="input-day" maxlength="2" placeholder="<?php echo $today['mday']; ?>">
1166
- </div>
1167
- </div>
1168
- </div>
1169
- </section>
1170
- </div>
1171
- </div>
1172
- <!-- End Date -->
1173
-
1174
- <?php // List Authors
1175
- if($disable_dynamic_content){
1176
- $authors = 'null';
1177
- }else{
1178
- $authors = get_users();
1179
- if($authors && count($authors) > $show_max){
1180
- $disable_dynamic_content = true;
1181
- }
1182
- }
1183
- if($authors){
1184
- echo '<div class="row select authors" id="alm-authors">';
1185
- echo '<h3 class="heading" tabindex="0">' . __('Author', 'ajax-load-more') . '</h3>';
1186
- echo '<div class="expand-wrap">';
1187
- echo '<section class="first">';
1188
- echo '<div class="shortcode-builder--label">';
1189
- echo '<p>' . __('Select an Author to query(by ID).', 'ajax-load-more') . '</p>';
1190
- ?>
1191
- <p><a class="button-small" href="admin.php?page=ajax-load-more-help&section=examples#example-author" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
1192
- <?php
1193
- echo '</div>';
1194
- echo '<div class="shortcode-builder--fields"><div class="inner">';
1195
- if(!$disable_dynamic_content){
1196
- echo '<select class="alm_element multiple" name="author-select" id="author-select" multiple="multiple">';
1197
- foreach( $authors as $author ){
1198
- echo '<option name="chk-'.$author->user_login.'" id="chk-'.$author->user_login.'" value="'.$author->ID.'">'.$author->display_name.'</option>';
1199
- }
1200
- echo '</select>';
1201
- }else{
1202
- echo '<input type="text" class="alm_element numbers-only" name="author-select" id="author-select" placeholder="1">';
1203
- }
1204
- echo '</div></div>';
1205
- echo '</section>';
1206
- echo '</div>';
1207
- echo '</div>';
1208
- }
1209
- ?>
1210
- <!-- End Authors -->
1211
-
1212
- <!-- Search -->
1213
- <div class="row input search-term" id="alm-search">
1214
- <h3 class="heading" tabindex="0"><?php _e('Search', 'ajax-load-more'); ?></h3>
1215
- <div class="expand-wrap">
1216
- <section>
1217
- <div class="shortcode-builder--label">
1218
- <p><?php _e('Enter a search term to query.', 'ajax-load-more'); ?></p>
1219
- <p><?php _e('Search uses the default WordPress search, however Ajax Load More does offer integrations with SearchWP and Relevanssi.', 'ajax-load-more'); ?></p>
1220
- <p><a class="button-small" href="https://connekthq.com/plugins/ajax-load-more/examples/search-results/" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
1221
- </div>
1222
- <div class="shortcode-builder--fields">
1223
- <div class="inner">
1224
- <input name="search-term" class="alm_element" type="text" id="search-term" value="" placeholder="<?php _e('Enter search term', 'ajax-load-more'); ?>">
1225
- </div>
1226
- </div>
1227
- </section>
1228
- </div>
1229
- </div>
1230
- <!-- End Search -->
1231
-
1232
- <!-- Post Parameters -->
1233
- <div class="row input post-in" id="alm-post-in">
1234
- <h3 class="heading" tabindex="0"><?php _e('Post Parameters', 'ajax-load-more'); ?></h3>
1235
- <div class="expand-wrap">
1236
- <section class="first">
1237
- <div class="shortcode-builder--label">
1238
- <h4><?php _e('Include', 'ajax-load-more'); ?></h4>
1239
- <p><?php _e('A comma separated list of post ID\'s to query.', 'ajax-load-more'); ?></p>
1240
- </div>
1241
- <div class="shortcode-builder--fields">
1242
- <div class="inner">
1243
- <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'); ?>">
1244
- </div>
1245
- </div>
1246
- </section>
1247
- <section>
1248
- <div class="shortcode-builder--label">
1249
- <h4><?php _e('Exclude', 'ajax-load-more'); ?></h4>
1250
- <p><?php _e('A comma separated list of post ID\'s to exclude from query.', 'ajax-load-more'); ?></p>
1251
- <p><a class="button-small" href="admin.php?page=ajax-load-more-help&section=examples#example-exclude" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
1252
- </div>
1253
- <div class="shortcode-builder--fields">
1254
- <div class="inner">
1255
- <input class="alm_element numbers-only" name="exclude-posts" type="text" id="exclude-posts" value="" placeholder="199, 216, 345, etc...">
1256
- </div>
1257
- </div>
1258
- </section>
1259
- <section>
1260
- <div class="shortcode-builder--label">
1261
- <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>
1262
- <p><?php _e('Select status of the post.', 'ajax-load-more'); ?></p>
1263
- </div>
1264
- <div class="shortcode-builder--fields">
1265
- <div class="inner">
1266
- <select class="alm_element" name="post-status" id="post-status">
1267
- <option value="publish" selected="selected"><?php _e('Published', 'ajax-load-more'); ?></option>
1268
- <option value="any">Any</option>
1269
- <option value="draft">Draft</option>
1270
- <option value="future">Future</option>
1271
- <option value="pending">Pending</option>
1272
- <option value="private">Private</option>
1273
- <option value="trash">Trash</option>
1274
- <option value="inherit">Inherit</option>
1275
- </select>
1276
- </div>
1277
- </div>
1278
- </section>
1279
- </div>
1280
- </div>
1281
- <!-- End Post Parameters -->
1282
-
1283
- <!-- Ordering -->
1284
- <div class="row ordering" id="alm-order">
1285
- <h3 class="heading" tabindex="0"><?php _e('Ordering', 'ajax-load-more'); ?></h3>
1286
- <div class="expand-wrap">
1287
- <section class="first">
1288
- <div class="shortcode-builder--label">
1289
- <p><?php _e('Sort posts by Order and Orderby parameters.', 'ajax-load-more'); ?></p>
1290
- </div>
1291
- <div class="shortcode-builder--fields">
1292
- <div class="inner flex-grid flex-grid--two">
1293
- <div>
1294
- <label class="full"><?php _e('Order', 'ajax-load-more'); ?>:</label>
1295
- <select class="alm_element" name="post-order" id="post-order">
1296
- <option value="DESC" selected="selected">DESC (default)</option>
1297
- <option value="ASC">ASC</option>
1298
- </select>
1299
- </div>
1300
- <div>
1301
- <label class="full"><?php _e('Order By', 'ajax-load-more'); ?>:</label>
1302
- <select class="alm_element" name="post-orderby" id="post-orderby">
1303
- <option value="date" selected="selected">Date (default)</option>
1304
- <option value="title">Title</option>
1305
- <option value="name">Name (slug)</option>
1306
- <option value="menu_order">Menu Order</option>
1307
- <option value="author">Author</option>
1308
- <option value="ID">ID</option>
1309
- <option value="comment_count">Comment Count</option>
1310
- <option value="modified">Modified</option>
1311
- <option value="post__in">Post In</option>
1312
- <option value="meta_value_num">meta_value_num</option>
1313
- </select>
1314
- </div>
1315
- </div>
1316
- </div>
1317
- </section>
1318
- </div>
1319
- </div>
1320
- <!-- End Ordering -->
1321
-
1322
- <!-- Offset -->
1323
- <div class="row input offset" id="alm-offset">
1324
- <h3 class="heading" tabindex="0"><?php _e('Offset', 'ajax-load-more'); ?></h3>
1325
- <div class="expand-wrap">
1326
- <section class="first">
1327
- <div class="shortcode-builder--label">
1328
- <p><?php _e('Offset the initial query by <em>\'x\'</em> number of posts', 'ajax-load-more'); ?>.</p>
1329
- </div>
1330
- <div class="shortcode-builder--fields">
1331
- <div class="inner">
1332
- <input type="number" class="alm_element numbers-only" name="offset-select" id="offset-select" value="0" step="1" min="0">
1333
- </div>
1334
- </div>
1335
- </section>
1336
- </div>
1337
- </div>
1338
- <!-- End Offset -->
1339
-
1340
- <!-- Custom Arguments -->
1341
- <div class="row input custom-arguments" id="alm-custom-args">
1342
- <h3 class="heading" tabindex="0"><?php _e('Custom Arguments', 'ajax-load-more'); ?></h3>
1343
- <div class="expand-wrap">
1344
- <section class="first">
1345
- <div class="shortcode-builder--label">
1346
- <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/><small>e.g. event_display:upcoming</small></p>
1347
- </div>
1348
- <div class="shortcode-builder--fields">
1349
- <div class="inner">
1350
- <input name="custom-args" class="alm_element" type="text" id="custom-args" value="" placeholder="<?php _e('event_display:upcoming', 'ajax-load-more'); ?>">
1351
- </div>
1352
- </div>
1353
- </section>
1354
- </div>
1355
- </div>
1356
- <!-- End Custom Arguments -->
1357
 
1358
- </div>
1359
 
1360
- </div>
1361
- <!-- End Query Parameters -->
1362
-
1363
- <!-- ****************************** -->
1364
-
1365
- <!-- Integrations -->
1366
- <div class="shortcode-parameter-wrap">
1367
- <h2 tabindex="0" class="shortcode-title"><i class="fa fa-handshake-o" aria-hidden="true"></i> <?php _e('Integrations', 'ajax-load-more'); ?></h2>
1368
-
1369
- <div class="section-wrap">
1370
-
1371
- <p class="section-intro"><?php _e('Ajax Load More provides integration solutions for popular plugins and core WP functionality - when selecting an integration, Ajax Load More will automatically set various parameters on the server side to provide the best experience for users based on the selected integration.', 'ajax-load-more'); ?></a></p>
1372
-
1373
- <!-- Archives -->
1374
- <div class="row input alm-archive" id="alm-archive">
1375
- <h3 class="heading" tabindex="0"><?php _e('Archives', 'ajax-load-more'); ?></h3>
1376
- <div class="expand-wrap">
1377
- <section class="first">
1378
- <div class="shortcode-builder--label">
1379
- <p><?php _e('Ajax Load More will automatically create an archive query while viewing site archives.', 'ajax-load-more'); ?></p>
1380
- <p><?php _e('Taxonomy, category, tag, date (year, month, day), post type and author archives are currently supported.', 'ajax-load-more'); ?></p>
1381
- <p><a class="button-small" href="https://connekthq.com/plugins/ajax-load-more/docs/archives/" target="_blank"><?php _e('View Docs', 'ajax-load-more'); ?></a></p>
1382
- </div>
1383
- <div class="shortcode-builder--fields">
1384
- <div class="inner">
1385
- <ul>
1386
- <li>
1387
- <input class="alm_element" type="radio" name="archive" value="t" id="archive_t">
1388
- <label for="archive_t"><?php _e('True', 'ajax-load-more'); ?></label>
1389
- </li>
1390
- <li>
1391
- <input class="alm_element" type="radio" name="archive" value="f" id="archive_f" checked="checked">
1392
- <label for="archive_f"><?php _e('False', 'ajax-load-more'); ?></label>
1393
- </li>
1394
- </ul>
1395
- </div>
1396
- </div>
1397
- </section>
1398
- <p class="warning-callout"><?php _e('<b>Note</b>: Do not select Query Parameters other than <b>Posts Per Page</b> and/or <b>Post Type</b> when using the Archives integration. Ajax Load More will automatically create the perfect shortcode for you based on the current archive page.', 'ajax-load-more'); ?></p>
1399
- </div>
1400
- </div>
1401
-
1402
- <!-- WooCommerce -->
1403
- <!--
1404
- <div class="row input alm-woocommerce" id="alm-woocommerce">
1405
- <h3 class="heading" tabindex="0"><?php _e('WooCommerce', 'ajax-load-more'); ?></h3>
1406
- <div class="expand-wrap">
1407
- <section class="first">
1408
- <div class="shortcode-builder--label">
1409
- <p><?php _e('Ajax Load More will automatically set WooCommerce configuration options.', 'ajax-load-more'); ?></p>
1410
- <p><?php _e('Post type, products per page, container classes, sort order and taxonomy/tag archive queries will be set on the server side based on your sites WooCommerce configuration.', 'ajax-load-more'); ?></p>
1411
- <p><a class="button-small" href="https://connekthq.com/plugins/ajax-load-more/docs/woocommerce/" target="_blank"><?php _e('View Docs', 'ajax-load-more'); ?></a></p>
1412
- </div>
1413
- <div class="shortcode-builder--fields">
1414
- <div class="inner">
1415
- <?php if( is_plugin_active('woocommerce/woocommerce.php') ) { ?>
1416
- <ul>
1417
- <li>
1418
- <input class="alm_element" type="radio" name="woocommerce" value="t" id="woocommerce_t">
1419
- <label for="woocommerce_t"><?php _e('True', 'ajax-load-more'); ?></label>
1420
- </li>
1421
- <li>
1422
- <input class="alm_element" type="radio" name="woocommerce" value="f" id="woocommerce_f" checked="checked">
1423
- <label for="woocommerce_f"><?php _e('False', 'ajax-load-more'); ?></label>
1424
- </li>
1425
- </ul>
1426
- <?php } else { ?>
1427
- <p class="highlight" style="font-size: 13px; border-radius: 3px; line-height: 1; padding: 6px;">WooCommerce is not installed.</p>
1428
- <?php }?>
1429
- </div>
1430
- </div>
1431
- </section>
1432
- </div>
1433
- </div>
1434
- -->
1435
 
1436
  </div>
1437
  </div>
1
  <?php
2
  // @codingStandardsIgnoreStart
 
 
 
 
 
 
 
 
 
3
  $alm_options = get_option( 'alm_settings' );
4
+ // Check if '_alm_disable_dynamic is set within settings.
5
+ if ( ! isset( $alm_options['_alm_disable_dynamic'] ) ) {
6
  $alm_options['_alm_disable_dynamic'] = '0';
7
  }
8
  $disable_dynamic_content = $alm_options['_alm_disable_dynamic'];
9
+ $show_max = 100; // Max number of items to show.
10
  ?>
11
 
12
+ <div class="alm-tabbed-wrapper">
13
+
14
+ <div class="alm-tabbed-wrapper--nav">
15
+ <div class="cnkt-sticky-wrapper">
16
+ <ul class="cnkt-sticky">
17
+ <?php if ( alm_has_addon_shortcodes() ) { ?>
18
+ <li><button type="button" class="active"><i class="fa fa-plus-circle"></i> <?php _e( 'Add-ons', 'ajax-load-more' ); ?></button></li>
19
+ <?php } ?>
20
+ <?php if ( alm_has_extension_shortcodes() ) { ?>
21
+ <li><button type="button"><i class="fa fa-plug"></i> <?php _e( 'Extensions', 'ajax-load-more' ); ?></button></li>
22
+ <?php } ?>
23
+ <li><button type="button"><i class="fa fa-cog"></i> <?php _e( 'Display Settings', 'ajax-load-more' ); ?></button></li>
24
+ <li><button type="button"><i class="fa fa-database"></i> <?php _e( 'Query Parameters', 'ajax-load-more' ); ?></button></li>
25
+ <li><button type="button"><i class="fa fa-handshake-o" aria-hidden="true"></i> <?php _e( 'Integrations', 'ajax-load-more' ); ?></button></li>
26
+ </ul>
27
+ </div>
28
+ </div>
29
 
30
+ <div class="alm-tabbed-wrapper--sections">
31
+
32
+ <!-- Add-ons -->
33
+ <?php
34
+ // ../admin-functions.php
35
+ if(alm_has_addon_shortcodes()) : ?>
36
+ <div class="shortcode-parameter-wrap alm-tabbed-wrapper--section" tabindex="0">
37
+
38
+ <h2><?php _e('Add-ons', 'ajax-load-more'); ?></h2>
39
+ <p class="section-intro">
40
+ <?php _e( 'Configure your Ajax Load More add-ons.', 'ajax-load-more' ); ?>
41
+ </p>
42
+ <ul class="section-anchor-nav"></ul>
43
+
44
+ <div class="section-wrap">
45
+ <?php
46
+ require_once('components/cache.php');
47
+ require_once('components/cta.php');
48
+ require_once('components/comments.php');
49
+ require_once('components/filters.php');
50
+ require_once('components/nextpage.php');
51
+ require_once('components/paging.php');
52
+ require_once('components/preloaded.php');
53
+ require_once('components/seo.php');
54
+ require_once('components/single-post.php');
55
+ require_once('components/users.php');
56
+ ?>
57
+ </div>
58
+ </div>
59
+ <?php endif; ?>
60
+ <!-- End Add-ons -->
61
+
62
+ <!-- Extensions -->
63
+ <?php
64
+ // ../admin-functions.php
65
+ if(alm_has_addon_shortcodes()) : ?>
66
+ <div class="shortcode-parameter-wrap alm-tabbed-wrapper--section" tabindex="0">
67
+
68
+ <h2><?php _e('Extensions', 'ajax-load-more'); ?></h2>
69
+ <p class="section-intro">
70
+ <?php _e( 'Configure your Ajax Load More extensions.', 'ajax-load-more' ); ?>
71
+ </p>
72
+ <ul class="section-anchor-nav"></ul>
73
+
74
+ <div class="section-wrap">
75
+ <?php
76
+ require_once('components/acf.php');
77
+ require_once('components/rest-api.php');
78
+ require_once('components/term-query.php');
79
+ ?>
80
+ </div>
81
+ </div>
82
+ <?php endif; ?>
83
+ <!-- End Extensions -->
84
+
85
+ <!-- Display Settings -->
86
+ <div class="shortcode-parameter-wrap alm-tabbed-wrapper--section" tabindex="0">
87
+
88
+ <h2><?php _e('Display Settings', 'ajax-load-more'); ?></h2>
89
+ <p class="section-intro">
90
+ <?php _e('Display Settings allow you create a custom Ajax Load More experience for your visitors.', 'ajax-load-more'); ?>
91
+ </p>
92
+ <ul class="section-anchor-nav"></ul>
93
+
94
+ <div class="section-wrap">
95
+
96
+ <!-- Options -->
97
+ <div class="row input alm-instance-options" id="alm-instance-options">
98
+ <h3 class="heading" tabindex="0"><?php _e('Options', 'ajax-load-more'); ?></h3>
99
+ <div class="expand-wrap">
100
+
101
+ <!-- ID -->
102
+ <section class="first">
103
+ <div class="shortcode-builder--label">
104
+ <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>
105
+ <p><?php _e('Set a unique ID for this Ajax Load More instance.', 'ajax-load-more'); ?></p>
106
+ <p><a class="button-small" href="https://connekthq.com/plugins/ajax-load-more/docs/filter-hooks/#alm_query_args" target="_blank"><?php _e('Learn More', 'ajax-load-more'); ?></a></p>
107
+ </div>
108
+ <div class="shortcode-builder--fields">
109
+ <div class="inner">
110
+ <input type="text" class="alm_element" name="unique-id" id="unique-id">
111
+ <div class="clear"></div>
112
+ <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>
113
+ </div>
114
+ </div>
115
+ </section>
116
+
117
+ <!-- Loading Style -->
118
+ <?php
119
+ $loading_style = (isset($alm_options['_alm_btn_color'])) ? $alm_options['_alm_btn_color'] : 'default';
120
+ $selected = ' selected="selected"';
121
+ ?>
122
+ <section>
123
+ <div class="shortcode-builder--label">
124
+ <h4><?php _e('Button/Loading Style', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('You can define a global button/loading style on the Ajax Load More settings screen','ajax-load-more'); ?>."></a></h4>
125
+ <p><?php _e('Select an Ajax loading style - you can choose between a Button or Infinite Scroll.', 'ajax-load-more'); ?></p>
126
+ </div>
127
+ <div class="shortcode-builder--fields">
128
+ <div class="inner">
129
+ <select id="loading-style" class="alm_element" data-default="<?php echo $loading_style; ?>">
130
+ <optgroup label="<?php _e('Button Style (Dark)', 'ajax-load-more'); ?>">
131
+ <option value="default" class="alm-color default"<?php echo ($loading_style === 'default') ? $selected : ''; ?>>Red (Default)</option>
132
+ <option value="blue" class="alm-color blue"<?php echo ($loading_style === 'blue') ? $selected : ''; ?>>Blue</option>
133
+ <option value="green" class="alm-color green"<?php echo ($loading_style === 'green') ? $selected : ''; ?>>Green</option>
134
+ <option value="purple" class="alm-color purple"<?php echo ($loading_style === 'purple') ? $selected : ''; ?>>Purple</option>
135
+ <option value="grey" class="alm-color grey"<?php echo ($loading_style === 'grey') ? $selected : ''; ?>>Grey</option>
136
+ </optgroup>
137
+ <optgroup label="<?php _e('Button Style (Light)', 'ajax-load-more'); ?>">
138
+ <option value="white" class="alm-color white"<?php echo ($loading_style === 'white') ? $selected : ''; ?>>White</option>
139
+ <option value="light-grey" class="alm-color light-grey"<?php echo ($loading_style === 'light-grey') ? $selected : ''; ?>>Light Grey</option>
140
+ </optgroup>
141
+ <optgroup label="<?php _e('Infinite Scroll (No Button)', 'ajax-load-more'); ?>">
142
+ <option value="infinite classic" class="infinite classic"<?php echo ($loading_style === 'infinite classic') ? $selected : ''; ?>>Classic</option>
143
+ <option value="infinite skype" class="infinite skype"<?php echo ($loading_style === 'infinite skype') ? $selected : ''; ?>>Skype</option>
144
+ <option value="infinite ring" class="infinite ring"<?php echo ($loading_style === 'infinite ring') ? $selected : ''; ?>>Circle Fill</option>
145
+ <option value="infinite fading-blocks" class="infinite fading-blocks"<?php echo ($loading_style === 'infinite fading-blocks') ? $selected : ''; ?>>Fading Blocks</option>
146
+ <option value="infinite fading-circles" class="infinite fading-circles"<?php echo ($loading_style === 'infinite fading-circles') ? $selected : ''; ?>>Fading Circles</option>
147
+ <option value="infinite chasing-arrows" class="infinite chasing-arrows"<?php echo ($loading_style === 'infinite chasing-arrows') ? $selected : ''; ?>>Chasing Arrows</option>
148
+ </optgroup>
149
+ </select>
150
+ <div class="clear"></div>
151
+ <div class="ajax-load-more-wrap core target <?php echo $loading_style; ?>" data-base="ajax-load-more-wrap core ">
152
+ <div class="alm-btn-wrap">
153
+ <span><?php _e('CLICK TO PREVIEW', 'ajax-load-more'); ?></span>
154
+ <button class="alm-load-more-btn" type="button">
155
+ <?php echo apply_filters( 'alm_button_label', __('Load More', 'ajax-load-more' )) ;?>
156
+ </button>
157
+ </div>
158
+ </div>
159
+ </div>
160
+ </div>
161
+ </section>
162
+
163
+ <!-- Container Type -->
164
+ <section>
165
+ <div class="shortcode-builder--label">
166
+ <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>
167
+ <p><?php _e('Override the global Container Type set in <a href="admin.php?page=ajax-load-more">ALM Settings</a>.', 'ajax-load-more'); ?></p>
168
+ </div>
169
+ <div class="shortcode-builder--fields">
170
+ <div class="inner">
171
+ <ul class="container_type">
172
+ <li>
173
+ <input type="radio" id="type-ul" value="ul" name="alm_container_type" class="alm_element">
174
+ <label for="type-ul">&lt;ul /&gt;</label>
175
+ </li>
176
+ <li>
177
+ <input type="radio" id="type-div" value="div" name="alm_container_type" class="alm_element">
178
+ <label for="type-div">&lt;div /&gt;</label>
179
+ </li>
180
+ <li>
181
+ <input type="radio" id="type-ol" value="ol" name="alm_container_type" class="alm_element">
182
+ <label for="type-ol">&lt;ol /&gt;</label>
183
+ </li>
184
+ <li>
185
+ <input type="radio" id="type-table" value="table" name="alm_container_type" class="alm_element">
186
+ <label for="type-table">&lt;table /&gt;</label>
187
+ </li>
188
+ </ul>
189
+ </div>
190
+ </div>
191
+ </section>
192
+
193
+ <!-- Container Classes -->
194
+ <section>
195
+ <div class="shortcode-builder--label">
196
+ <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>
197
+ <p>
198
+ <?php _e('Add custom CSS classes to the <span>.alm-listing</span> container.', 'ajax-load-more'); ?>
199
+ <small>e.g. blog-listing large-12 etc...</small>
200
+ </p>
201
+ </div>
202
+ <div class="shortcode-builder--fields">
203
+ <div class="inner">
204
+ <input class="alm_element" name="container-classes" type="text" id="container-classes" placeholder="listing large-12 columns">
205
+ </div>
206
+ </div>
207
+ </section>
208
+
209
+ <!-- Pause -->
210
+ <section class="pause_load" id="alm-pause">
211
+ <div class="shortcode-builder--label">
212
+ <h4><?php _e('Pause', 'ajax-load-more'); ?></h4>
213
+ <p><?php _e('Do not load Ajax content until the user clicks or interacts with the <em>Load More</em> button.', 'ajax-load-more'); ?></p>
214
+ </div>
215
+ <div class="shortcode-builder--fields">
216
+ <div class="inner">
217
+ <ul>
218
+ <li>
219
+ <input class="alm_element" type="radio" name="pause" value="t" id="pause_t">
220
+ <label for="pause_t"><?php _e('True', 'ajax-load-more'); ?></label>
221
+ </li>
222
+ <li>
223
+ <input class="alm_element" type="radio" name="pause" value="f" id="pause_f" checked="checked">
224
+ <label for="pause_f"><?php _e('False', 'ajax-load-more'); ?></label>
225
+ </li>
226
+ </ul>
227
+ </div>
228
+ </div>
229
+ </section>
230
+
231
+ <!-- Destroy After -->
232
+ <section>
233
+ <div class="shortcode-builder--label">
234
+ <h4><?php _e('Destroy After', 'ajax-load-more'); ?></h4>
235
+ <p><?php _e('Remove Ajax Load More functionality after {<em>n</em>} number of pages have been loaded.', 'ajax-load-more'); ?></p>
236
+ <p><a class="button-small" href="https://connekthq.com/plugins/ajax-load-more/examples/destroy-after/" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
237
+ </div>
238
+ <div class="shortcode-builder--fields alm-destroy-after">
239
+ <div class="inner">
240
+ <input type="number" class="alm_element numbers-only" placeholder="0" name="destroy-after" id="disable-after" step="1" min="0" value="">
241
+ </div>
242
+ </div>
243
+ </section>
244
+
245
+ <!-- Images Loaded -->
246
+ <section>
247
+ <div class="shortcode-builder--label">
248
+ <h4><?php _e('Images Loaded', '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></h4>
249
+ <p><?php _e('Wait for all images to load before displaying ajax loaded content.', 'ajax-load-more'); ?></p>
250
+ <p><a class="button-small" href="https://connekthq.com/plugins/ajax-load-more/examples/images-loaded/" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
251
+ </div>
252
+ <div class="shortcode-builder--fields alm-images-loaded">
253
+ <div class="inner">
254
+ <ul>
255
+ <li>
256
+ <input class="alm_element" type="radio" name="images_loaded" value="t" id="images_loaded_t">
257
+ <label for="images_loaded_t"><?php _e('True', 'ajax-load-more'); ?></label>
258
+ </li>
259
+ <li>
260
+ <input class="alm_element" type="radio" name="images_loaded" value="f" id="images_loaded_f" checked="checked">
261
+ <label for="images_loaded_f"><?php _e('False', 'ajax-load-more'); ?></label>
262
+ </li>
263
+ </ul>
264
+ </div>
265
+ </div>
266
+ </section>
267
+
268
+ <!-- Loading Placeholder -->
269
+ <section>
270
+ <div class="shortcode-builder--label">
271
+ <h4><?php _e('Loading Placeholder', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('A loading placeholder can help the understand content is about to rendered.','ajax-load-more'); ?>"></a></h4>
272
+ <p><?php _e('Display a placeholder image while Ajax content is being loaded.', 'ajax-load-more'); ?></p>
273
+ <p><a class="button-small" href="https://connekthq.com/plugins/ajax-load-more/examples/placeholder/" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
274
+ </div>
275
+ <div class="shortcode-builder--fields alm-placeholder-wrap">
276
+ <div class="inner">
277
+ <ul>
278
+ <li>
279
+ <input class="alm_element" type="radio" name="has_placeholder" value="t" id="has_placeholder_t">
280
+ <label for="has_placeholder_t"><?php _e('True', 'ajax-load-more'); ?></label>
281
+ </li>
282
+ <li>
283
+ <input class="alm_element" type="radio" name="has_placeholder" value="f" id="has_placeholder_f" checked="checked">
284
+ <label for="has_placeholder_f"><?php _e('False', 'ajax-load-more'); ?></label>
285
+ </li>
286
+ </ul>
287
+ </div>
288
+ <div class="inner alm-placeholder-target" style="display: none;">
289
+ <div class="alm-styled-input">
290
+ <label for="placeholder" aria-label="Enter Placeholder URL"><?php _e('URL:', 'ajax-load-more'); ?></label>
291
+ <input class="alm_element" name="placeholder" type="text" id="placeholder" data-empty="<?php echo ALM_URL; ?>/core/img/placeholder.png" value="<?php echo ALM_URL; ?>/core/img/placeholder.png" style="width: 100%;" />
292
+ </div>
293
+ <div class="spacer"></div>
294
+ <img id="placeholder-img" style="padding: 10px; border: 2px dashed #efefef;" src="<?php echo ALM_URL; ?>/core/img/placeholder.png" value="<?php echo ALM_URL; ?>/core/img/placeholder.png" alt="" />
295
+ </div>
296
+ </div>
297
+ </section>
298
+
299
+ <!-- No Results -->
300
+ <section>
301
+ <div class="shortcode-builder--label">
302
+ <h4><?php _e('No Results Text', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('HTML is allowed, however when adding quote marks in classnames or IDs you must single quotes as shown in the example.','ajax-load-more'); ?>"></a></h4>
303
+ <p><?php _e('Add text/html to be displayed when no results are returned in the Ajax query.', 'ajax-load-more'); ?><br/><small><?php _e('e.g. &lt;div class=\'no-results\'>Sorry, nothing found in this query&lt;/div>', 'ajax-load-more'); ?></small></p>
304
+ </div>
305
+ <div class="shortcode-builder--fields">
306
+ <div class="inner ">
307
+ <textarea class="alm_element" id="no_results_text" rows="6"></textarea>
308
  </div>
309
  </div>
310
+ </section>
311
+
312
+ </div>
313
+ </div>
314
+ <!-- End Options -->
315
+
316
+
317
+ <!-- Template Selection -->
318
+ <?php
319
+ echo '<div class="row repeater" id="alm-repeaters">';
320
+ echo '<h3 class="heading" tabindex="0">'.__('Template Selection', 'ajax-load-more'). '</h3>';
321
+ echo '<div class="expand-wrap">';
322
+ echo '<section class="first">';
323
+ echo '<div class="shortcode-builder--label">';
324
+ if (has_action('alm_theme_repeaters_selection')){
325
+ echo '<h4>'.__('Repeater Template', 'ajax-load-more').'</h4>';
326
+ }
327
+ 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>';
328
+ echo '</div>';
329
+ echo '<div class="shortcode-builder--fields"><div class="inner">';
330
+ echo '<select name="repeater-select" class="alm_element">';
331
+ echo '<option name="default" value="default" selected="selected">Default</option>';
332
+ if (has_action('alm_get_custom_repeaters')) {
333
+ do_action('alm_get_custom_repeaters');
334
+ }
335
+ if (has_action('alm_get_unlimited_repeaters')) {
336
+ do_action('alm_get_unlimited_repeaters');
337
+ }
338
+ echo '</select>';
339
+ echo '</div>';
340
+ echo '</section>';
341
+
342
+ // Get Theme Repeaters
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
343
  if (has_action('alm_theme_repeaters_selection')){
344
+ do_action('alm_theme_repeaters_selection');
 
 
 
 
 
 
 
 
345
  }
346
+ ?>
347
+
348
+ <?php // Custom Repeaters v2 - /cta/extend.php
349
+ if (!has_action('alm_get_unlimited_repeaters') && !has_action('alm_get_custom_repeaters') && !has_action('alm_theme_repeaters_installed')) {
350
+ include( ALM_PATH . 'admin/includes/cta/extend.php');
351
  }
352
+
353
+ echo '</div>';
354
  echo '</div>';
355
+ ?>
356
+ <!-- End Template Selection -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
357
 
 
358
 
359
+ <!-- Button Labels -->
360
+ <div class="row input btn-label" id="alm-btn-label">
361
+ <h3 class="heading" tabindex="0"><?php _e('Button Labels', 'ajax-load-more'); ?></h3>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
362
 
363
+ <div class="expand-wrap">
364
+ <section class="first">
365
+ <div class="shortcode-builder--label">
366
+ <h4><?php _e('Label', 'ajax-load-more'); ?></h4>
367
+ <p><?php _e('Customize the text of the <em>Load More</em> button.', 'ajax-load-more'); ?></p>
368
+ </div>
369
+ <div class="shortcode-builder--fields">
370
+ <div class="inner">
371
+ <input class="alm_element" name="button-label" type="text" id="button-label" value="<?php _e('Load More', 'ajax-load-more'); ?>">
372
+ </div>
373
+ </div>
374
+ </section>
375
 
376
+ <section>
377
+ <div class="shortcode-builder--label">
378
+ <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 button text while loading content','ajax-load-more'); ?>."></a></h4>
379
+ <p><?php _e('Update the text of the <em>Load More</em> button while content is loading.', 'ajax-load-more'); ?></p>
380
+ </div>
381
+ <div class="shortcode-builder--fields">
382
+ <div class="inner">
383
+ <input class="alm_element" name="button-loading-label" type="text" id="button-loading-label" value="" placeholder="<?php _e('Loading Posts...', 'ajax-load-more'); ?>">
384
+ </div>
385
+ </div>
386
+ </section>
387
 
388
+ <section>
 
389
  <div class="shortcode-builder--label">
390
+ <h4><?php _e('Done Label', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Leave field empty to not update button text','ajax-load-more'); ?>."></a></h4>
391
+ <p><?php _e('Update the text of the <em>Load More</em> button when no content remains to be loaded.', 'ajax-load-more'); ?></p>
392
+ </div>
393
+ <div class="shortcode-builder--fields">
394
+ <div class="inner">
395
+ <input class="alm_element" name="button-done-label" type="text" id="button-done-label" value="" placeholder="<?php _e('No Posts Remain...', 'ajax-load-more'); ?>">
396
  </div>
397
+ </div>
398
+ </section>
399
+
400
+ </div>
401
+ </div>
402
+ <!-- Button Labels -->
403
+
404
+ <!-- Scrolling -->
405
+ <div class="row checkbox scroll_load" id="alm-scroll">
406
+ <h3 class="heading" tabindex="0"><?php _e('Scrolling', 'ajax-load-more'); ?></h3>
407
+ <div class="expand-wrap">
408
+ <section class="first">
409
+ <div class="shortcode-builder--label">
410
+ <h4><?php _e('Enable Scrolling', 'ajax-load-more'); ?></h4>
411
+ <p><?php _e('Load more posts as the user scrolls the page.', 'ajax-load-more'); ?></p>
412
+ </div>
413
  <div class="shortcode-builder--fields">
414
  <div class="inner">
415
+ <ul>
416
+ <li>
417
+ <input class="alm_element" type="radio" name="scroll" value="t" id="scroll_t" checked="checked">
418
+ <label for="scroll_t"><?php _e('True', 'ajax-load-more'); ?></label>
419
+ </li>
420
+ <li>
421
+ <input class="alm_element" type="radio" name="scroll" value="f" id="scroll_f">
422
+ <label for="scroll_f"><?php _e('False', 'ajax-load-more'); ?></label>
423
+ </li>
424
+ </ul>
425
  </div>
426
  </div>
427
  </section>
428
 
429
+ <div class="clear"></div>
430
+
431
+ <div class="scrolling-options nested-component">
432
+ <div class="nested-component--inner">
433
+
434
+ <!-- Scroll Distance -->
435
+ <section class="border-btm scroll_distance">
436
+ <div class="shortcode-builder--label">
437
+ <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>
438
+ <p><?php _e('The distance from the bottom of the screen to trigger loading of posts. (Default = 100)', 'ajax-load-more'); ?>
439
+ <small><strong><?php _e('Pro-tip', 'ajax-load-more'); ?>:</strong> <?php _e('Use a negative number (-200) to trigger a post load before the button is in view', 'ajax-load-more'); ?></small></p></p>
440
+ </div>
441
+ <div class="shortcode-builder--fields">
442
+ <div class="inner">
443
+ <div class="builder-option-toggle">
444
+ <input type="number" class="alm_element numbers-only" name="scroll-distance" id="scroll-distance" step="50" min="-100000" value="100">
445
+ <div class="builder-option-toggle--buttons">
446
+ <button type="button" value="px" class="pixels active">px</button>
447
+ <button type="button" value="%" class="perc">%</button>
448
+ </div>
449
+ </div>
450
+ </div>
451
+ </div>
452
+ </section>
453
+
454
+ <!-- Max Pages -->
455
+ <section class="border-btm max_pages">
456
+ <div class="shortcode-builder--label">
457
+ <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>
458
+ <p><?php _e('Maximum number of pages to load while scrolling. (0 = unlimited)', 'ajax-load-more'); ?></p>
459
+ </div>
460
+ <div class="shortcode-builder--fields">
461
+ <div class="inner">
462
+ <input type="number" class="alm_element numbers-only" name="max-select" id="max-select" step="1" min="0" value="0">
463
+ </div>
464
+ </div>
465
+ </section>
466
+
467
+ <!-- Pause Override -->
468
+ <section class="border-btm pause_override">
469
+ <div class="shortcode-builder--label">
470
+ <h4><?php _e('Pause Override', 'ajax-load-more'); ?></h4>
471
+ <p><?php _e('Override the <em>Pause</em> parameter and trigger the initial loading of posts on scroll.', 'ajax-load-more'); ?></p>
472
+ </div>
473
+ <div class="shortcode-builder--fields">
474
+ <ul>
475
+ <li>
476
+ <input class="alm_element" type="radio" name="pause_override" value="t" id="pause_override_t">
477
+ <label for="pause_override_t"><?php _e('True', 'ajax-load-more'); ?></label>
478
+ </li>
479
+ <li>
480
+ <input class="alm_element" type="radio" name="pause_override" value="f" id="pause_override_f" checked="checked">
481
+ <label for="pause_override_f"><?php _e('False', 'ajax-load-more'); ?></label>
482
+ </li>
483
+ </ul>
484
+ </div>
485
+ </section>
486
+ </div>
487
+
488
+ </div>
489
+
490
+ <!-- Scroll Container -->
491
+ <section class="border-btm scroll_container_section">
492
  <div class="shortcode-builder--label">
493
+ <h4><?php _e('Scroll Container', 'ajax-load-more'); ?></h4>
494
+ <p><?php _e('Confine Ajax Load More scrolling to a parent container element.', 'ajax-load-more'); ?></p>
495
  </div>
496
  <div class="shortcode-builder--fields">
497
  <ul>
498
  <li>
499
+ <input class="alm_element" type="radio" name="scroll_container_toggle" value="t" id="scroll_container_t">
500
+ <label for="scroll_container_t"><?php _e('True', 'ajax-load-more'); ?></label>
501
  </li>
502
  <li>
503
+ <input class="alm_element" type="radio" name="scroll_container_toggle" value="f" id="scroll_container_f" checked="checked">
504
+ <label for="scroll_container_f"><?php _e('False', 'ajax-load-more'); ?></label>
505
  </li>
506
  </ul>
507
  </div>
508
  </section>
509
 
510
+ <div class="clear"></div>
511
+
512
+ <div class="scroll-container-options nested-component" style="display: none;">
513
+ <div class="nested-component--inner">
514
+
515
+ <!-- Scroll Container -->
516
+ <section class="border-btm scroll_container">
517
+ <div class="shortcode-builder--label">
518
+ <h4><?php _e('Container Element', 'ajax-load-more'); ?></h4>
519
+ <p><?php _e('Enter the ID or classname of the parent container element to be used as the scrolling container.', 'ajax-load-more'); ?></p>
520
+ </div>
521
+ <div class="shortcode-builder--fields">
522
+ <div class="inner">
523
+ <input type="text" class="alm_element" name="scroll-container" id="scroll-container" placeholder="#my-div">
524
+ </div>
525
+ </div>
526
+ </section>
527
+
528
+ <!-- Scroll Direction -->
529
+ <section class="border-btm scroll_direction">
530
+ <div class="shortcode-builder--label">
531
+ <h4><?php _e('Scroll Direction', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Scroll Direction only works when using a Scroll Container.','ajax-load-more'); ?>"></a></h4>
532
+ <p><?php _e('Select the direction Ajax Load More should scroll to load posts.', 'ajax-load-more'); ?></p>
533
+ </div>
534
+ <div class="shortcode-builder--fields">
535
+ <ul>
536
+ <li>
537
+ <input class="alm_element" type="radio" name="scroll_direction" value="vertical" id="scroll_direction_v" checked="checked">
538
+ <label for="scroll_direction_v"><?php _e('Vertical', 'ajax-load-more'); ?></label>
539
+ </li>
540
+ <li>
541
+ <input class="alm_element" type="radio" name="scroll_direction" value="horizontal" id="scroll_direction_h">
542
+ <label for="scroll_direction_h"><?php _e('Horizontal', 'ajax-load-more'); ?></label>
543
+ </li>
544
+ </ul>
545
+ </div>
546
+ </section>
547
+
548
+ </div>
549
+ </div>
550
+
551
  </div>
552
  </div>
553
+ <!-- End Scrolling -->
554
 
555
+ <!-- Transition -->
556
+ <div class="row input transition" id="alm-transition">
557
+ <h3 class="heading" tabindex="0"><?php _e('Transition', 'ajax-load-more'); ?></h3>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
558
 
559
+ <div class="expand-wrap">
560
+ <section class="first">
561
+ <div class="shortcode-builder--label">
562
+ <h4><?php _e('Type', 'ajax-load-more'); ?></h4>
563
+ <p><?php _e('Select a loading transition style.', 'ajax-load-more'); ?></p>
564
+ </div>
565
+ <div class="shortcode-builder--fields">
566
+ <div class="inner">
567
+ <select class="alm_element transition" name="transition">
568
+ <option value="fade" selected="selected"><?php _e('Fade In', 'ajax-load-more'); ?></option>
569
+ <option value="masonry"><?php _e('Masonry', 'ajax-load-more'); ?></option>
570
+ <option value="none"><?php _e('None', 'ajax-load-more'); ?></option>
571
+ </select>
572
+ </div>
573
+ </div>
574
  </section>
575
 
576
+ <div class="clear"></div>
577
+
578
+ <div class="masonry-options nested-component" style="display: none;">
579
+ <div class="nested-component--inner">
580
+
581
+ <section>
582
+ <div class="shortcode-builder--label full">
583
+ <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>
584
+ <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>
585
+ </div>
586
+ </section>
587
+
588
+ <section>
589
+ <div class="shortcode-builder--label">
590
+ <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>
591
+ <p><?php _e('Enter the target classname of each masonry item.', 'ajax-load-more'); ?><br/>
592
+ e.g <span>.grid-item</span>
593
+ </p>
594
+ </div>
595
+ <div class="shortcode-builder--fields">
596
+ <div class="inner">
597
+ <input type="text" class="alm_element" name="masonry-item" id="masonry-item" placeholder=".grid-item">
598
+ </div>
599
+ </div>
600
+ </section>
601
+
602
+
603
+ <section>
604
+ <div class="shortcode-builder--label">
605
+ <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>
606
+ <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/>
607
+ e.g <span>80</span>
608
+ </p>
609
+ </div>
610
+ <div class="shortcode-builder--fields">
611
+ <div class="inner">
612
+ <input type="number" class="alm_element numbers-only" name="masonry-columnwidth" id="masonry-columnwidth" placeholder="80" min="0" step="1">
613
+ </div>
614
+ </div>
615
+ </section>
616
+
617
+ <section>
618
+ <div class="shortcode-builder--label">
619
+ <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>
620
+ <p><?php _e('Select a loading transition for Masonry items.', 'ajax-load-more'); ?></p>
621
+ </div>
622
+ <div class="shortcode-builder--fields">
623
+ <div class="inner">
624
+ <ul>
625
+ <li style="width:100%;">
626
+ <input class="alm_element" type="radio" name="masonry-animation" value="default" id="masonry-animation-default" checked="checked">
627
+ <label for="masonry-animation-default">
628
+ <?php _e('Default (Zoom)', 'ajax-load-more'); ?>
629
+ <span class="description"><?php _e('Items scale up from 50% to 100% size on load.','ajax-load-more'); ?></span>
630
+ </label>
631
+ </li>
632
+ <li style="width:100%;">
633
+ <input class="alm_element" type="radio" name="masonry-animation" value="zoom-out" id="masonry-animation-zoom-out">
634
+ <label for="masonry-animation-zoom-out">
635
+ <?php _e('Zoom Out', 'ajax-load-more'); ?>
636
+ <span class="description"><?php _e('Items scale down from 125% to 100% size on load.','ajax-load-more'); ?></span>
637
+ </label>
638
+ </li>
639
+ <li style="width:100%;">
640
+ <input class="alm_element" type="radio" name="masonry-animation" value="slide-up" id="masonry-animation-up">
641
+ <label for="masonry-animation-up">
642
+ <?php _e('Slide Up', 'ajax-load-more'); ?>
643
+ <span class="description"><?php _e('Items animate up as they are loaded into view.','ajax-load-more'); ?></span>
644
+ </label>
645
+ </li>
646
+ <li style="width:100%;">
647
+ <input class="alm_element" type="radio" name="masonry-animation" value="slide-down" id="masonry-animation-down">
648
+ <label for="masonry-animation-down">
649
+ <?php _e('Slide Down', 'ajax-load-more'); ?>
650
+ <span class="description"><?php _e('Items animate down when loaded into view.','ajax-load-more'); ?></span>
651
+ </label>
652
+ </li>
653
+ <li style="width:100%;">
654
+ <input class="alm_element" type="radio" name="masonry-animation" value="none" id="masonry-animation-none">
655
+ <label for="masonry-animation-none">
656
+ <?php _e('None', 'ajax-load-more'); ?>
657
+ </label>
658
+ </li>
659
+ </ul>
660
+ </div>
661
+ </div>
662
+ </section>
663
+
664
+ <section>
665
+ <div class="shortcode-builder--label">
666
+ <h4><?php _e('Horizontal Order', 'ajax-load-more'); ?></h4>
667
+ <p><?php _e('Lays out items to maintain left-to-right order.', 'ajax-load-more'); ?>
668
+ </p>
669
+ </div>
670
+ <div class="shortcode-builder--fields">
671
+ <div class="inner">
672
+ <ul>
673
+ <li>
674
+ <input class="alm_element" type="radio" name="masonry-horizontalorder" value="t" id="horizontalOrder_t" checked="checked">
675
+ <label for="horizontalOrder_t"><?php _e('True', 'ajax-load-more'); ?></label>
676
+ </li>
677
+ <li>
678
+ <input class="alm_element" type="radio" name="masonry-horizontalorder" value="f" id="horizontalOrder_f">
679
+ <label for="horizontalOrder_f"><?php _e('False', 'ajax-load-more'); ?></label>
680
+ </li>
681
+ </ul>
682
+ </div>
683
+ </div>
684
+ </section>
685
+
686
+ <p class="warning-callout">
687
+ <?php _e('Don\'t see your favorite Masonry option listed? You can always add your own!', 'ajax-load-more'); ?>
688
+ <a class="button-small" href="https://connekthq.com/plugins/ajax-load-more/docs/masonry/" target="_blank"><?php _e('View Docs', 'ajax-load-more'); ?></a>
689
+ </p>
690
 
691
+ </div>
692
 
693
+ </div>
 
 
 
 
 
 
 
 
 
 
 
 
694
 
695
+ <!-- Hide transition_container if Masonry is selected -->
696
+ <div class="masonry-options-hide">
697
+
698
+ <div class="transition-container-classes-wrap">
699
+
700
+ <section>
701
+ <div class="shortcode-builder--label">
702
+ <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 Single Post or Next Page add-ons','ajax-load-more'); ?>."></a></h4>
703
+ <p><?php _e('Add custom classes to the <span>.alm-reveal</span> loading container', 'ajax-load-more'); ?>.</p>
704
+ </div>
705
+ <div class="shortcode-builder--fields">
706
+ <div class="inner">
707
+ <input type="text" class="alm_element" name="transition-container-classes" id="transition-container-classes" placeholder="row large-12 etc">
708
+ </div>
709
+ </div>
710
+ </div>
711
+ </section>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
712
 
713
+ <section>
714
+ <div class="shortcode-builder--label">
715
+ <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>
716
+ <p><?php _e('Remove the <span>.alm-reveal</span> loading container from Ajax Load More', 'ajax-load-more'); ?>.</p>
717
+ </div>
718
+ <div class="shortcode-builder--fields">
719
+ <div class="inner">
720
+ <ul>
721
+ <li style="width:100%;">
722
+ <input class="alm_element" type="checkbox" name="remove_container" id="remove_container" value="f">
723
+ <label for="remove_container"><?php _e('Remove Container', 'ajax-load-more'); ?></label>
724
+ </li>
725
+ </ul>
726
+ </div>
727
+ </div>
728
+ </section>
729
+
730
+ </div>
731
+ <!-- End Hide transition_container if Masonry is selected -->
732
+
733
+ </div>
734
+ </div>
735
+ <!-- End Transition -->
736
+
737
+ <!-- Progress Bar -->
738
+ <div class="row input alm-progress-bar" id="alm-progress-bar">
739
+ <h3 class="heading" tabindex="0"><?php _e('Progress Bar', 'ajax-load-more'); ?></h3>
740
+ <div class="expand-wrap">
741
+ <section class="first">
742
+ <div class="shortcode-builder--label">
743
+ <p><?php _e('Display progress bar indicator at the top of the window while loading Ajax content.', 'ajax-load-more'); ?></p>
744
+ <p><a class="button-small" href="https://connekthq.com/plugins/ajax-load-more/examples/progress-bar/" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
745
+ </div>
746
+ <div class="shortcode-builder--fields">
747
+ <div class="inner">
748
  <ul>
749
  <li>
750
+ <input class="alm_element" type="radio" name="progress_bar" value="t" id="progress_bar_t">
751
+ <label for="progress_bar_t"><?php _e('True', 'ajax-load-more'); ?></label>
752
  </li>
753
  <li>
754
+ <input class="alm_element" type="radio" name="progress_bar" value="f" id="progress_bar_f" checked="checked">
755
+ <label for="progress_bar_f"><?php _e('False', 'ajax-load-more'); ?></label>
756
+ </li>
757
+ </ul>
758
+ </div>
759
+ </div>
760
+ </section>
761
+
762
+ <div class="clear"></div>
763
+
764
+ <div class="progress-bar-options nested-component" style="display: none;">
765
+ <div class="nested-component--inner">
766
+ <section>
767
+ <div class="shortcode-builder--label">
768
+ <h4><?php _e('Color', 'ajax-load-more'); ?> </h4>
769
+ <p><?php _e('Enter the hex color of the progress bar', 'ajax-load-more'); ?>.<br/>
770
+ <?php _e('Default:', 'ajax-load-more'); ?> #<span>ed7070</span>
771
+ </p>
772
+ </div>
773
+ <div class="shortcode-builder--fields">
774
+ <div class="inner" style="position: relative;">
775
+ <input type="text" class="alm_element" name="progress_bar_color" id="progress_bar_color" placeholder="ed7070" value="ed7070" maxlength="6" style="padding-left: 40px;">
776
+ <span class="progress_bar_color_indicator"></span>
777
+ </div>
778
+ </div>
779
+ </section>
780
+ </div>
781
+ </div>
782
+
783
+ </div>
784
+
785
+ </div>
786
+ <!-- End Progress Bar -->
787
+
788
+ </div>
789
+ </div>
790
+ <!-- End Display Settings -->
791
+
792
+ <!-- ****************************** -->
793
+
794
+ <!-- Query Parameters -->
795
+ <div class="shortcode-parameter-wrap alm-tabbed-wrapper--section" tabindex="0">
796
+
797
+ <h2>
798
+ <?php _e('Query Parameters', 'ajax-load-more'); ?>
799
+ <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('When using Ajax Load More add-ons or extensions not all Query Parameters will be available in the query.', 'ajax-load-more'); ?>"></a>
800
+ </h2>
801
+ <p class="section-intro">
802
+ <?php _e('Query Parameters allow you build a custom <b>WP_Query</b> based on Ajax Load More shortcode values.', 'ajax-load-more'); ?>
803
+ </p>
804
+ <ul class="section-anchor-nav"></ul>
805
+
806
+ <div class="section-wrap">
807
+ <!-- Posts Per Page -->
808
+ <div class="row input posts_per_page" id="alm-post-page">
809
+ <h3 class="heading" tabindex="0"><?php _e('Posts Per Page', 'ajax-load-more'); ?></h3>
810
+ <div class="expand-wrap">
811
+ <section class="first">
812
+ <div class="shortcode-builder--label">
813
+ <p><?php _e('Select the number of posts to load with each Ajax request.', 'ajax-load-more'); ?></p>
814
+ </div>
815
+ <div class="shortcode-builder--fields">
816
+ <div class="inner">
817
+ <input type="number" class="alm_element numbers-only" name="display_posts-select" id="display_posts-select" step="1" min="1" value="5">
818
+ </div>
819
+ </div>
820
+ </section>
821
+ </div>
822
+ </div>
823
+ <!-- End Posts Per Page -->
824
+
825
+ <!-- Post Types -->
826
+ <?php
827
+ $pt_args = array(
828
+ 'public' => true
829
+ );
830
+ $types = get_post_types($pt_args);
831
+ if($types){ ?>
832
+ <div class="row checkboxes post_types" id="alm-post-types">
833
+ <h3 class="heading" tabindex="0"><?php _e('Post Type', 'ajax-load-more'); ?></h3>
834
+
835
+ <div class="expand-wrap">
836
+ <section class="first">
837
+ <div class="shortcode-builder--label">
838
+ <p><?php _e('Select the Post Types to include in this Ajax Load More query.', 'ajax-load-more'); ?></p>
839
+ </div>
840
+ <div class="shortcode-builder--fields">
841
+ <div class="inner">
842
+ <ul class="alm-post-type-list">
843
+ <?php
844
+ foreach( $types as $type ){
845
+ $typeobj = get_post_type_object( $type );
846
+ $name = $typeobj->name;
847
+ if( $name != 'revision' && $name != 'nav_menu_item' && $name != 'acf'){
848
+ 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>';
849
+ }
850
+ }
851
+ ?>
852
+ <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>
853
+ </ul>
854
+ </div>
855
+ </div>
856
+ </section>
857
+
858
+ <!-- Sticky Posts -->
859
+ <div class="sticky-wrap nested-component">
860
+ <div class="nested-component--inner">
861
+ <section>
862
+ <div class="shortcode-builder--label">
863
+ <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>
864
+ <p><?php _e('Preserve the ordering of sticky posts by having them appear first in the Ajax listing.', 'ajax-load-more'); ?></p>
865
+ </div>
866
+ <div class="shortcode-builder--fields">
867
+ <div class="inner">
868
+ <ul>
869
+ <li style="width:100%;">
870
+ <input class="alm_element" type="checkbox" name="alm_sticky_posts" id="alm_sticky_posts" value="true">
871
+ <label for="alm_sticky_posts"><?php _e('Enable Sticky Posts', 'ajax-load-more'); ?></label>
872
+ </li>
873
+ </ul>
874
+ </div>
875
+ </div>
876
+ </section>
877
+ </div>
878
+ </div>
879
+
880
+ </div>
881
+
882
+ </div>
883
+ <?php }
884
+ ?>
885
+ <!-- End Post Types -->
886
+
887
+
888
+ <!-- Post Formats -->
889
+ <?php
890
+ if ( current_theme_supports( 'post-formats' ) ) {
891
+ $post_formats = get_theme_support( 'post-formats' );
892
+ if($post_formats){
893
+ echo '<div class="row checkboxes post_format" id="alm-post-format">';
894
+ echo '<h3 class="heading" tabindex="0">'.__('Post Format', 'ajax-load-more'). '</h3>';
895
+ echo '<div class="expand-wrap">';
896
+ echo '<section class="first">';
897
+ echo '<div class="shortcode-builder--label">';
898
+ echo '<p>'.__('Select a Post Format to query.', 'ajax-load-more'). '</p>';
899
+ echo '</div>';
900
+ echo '<div class="shortcode-builder--fields"><div class="inner"><select class="alm_element" name="post-format-select" id="post-format-select">';
901
+ echo '<option value="" selected="selected">-- ' . __('Select Post Format', 'ajax-load-more') . ' --</option>';
902
+ echo '<option name="chk-standard" id="chk-standard" value="standard">' . __('Standard', 'ajax-load-more') . '</option>';
903
+ foreach( $post_formats[0] as $post_format ){
904
+ echo '<option name="chk-'.$post_format.'" id="chk-'.$post_format.'" value="'.$post_format.'">'.ucwords($post_format).'</option>';
905
+ }
906
+ echo '</select></div></div>';
907
+ echo '</section>';
908
+ echo '</div>';
909
+ echo '</div>';
910
+ }
911
+ }
912
+ ?>
913
+ <!-- End Post Formats -->
914
+
915
+
916
+ <!-- Categories -->
917
+ <?php
918
+ if($disable_dynamic_content){
919
+ $cats = 'null';
920
+ }else{
921
+ $cats = get_categories();
922
+ if($cats && count($cats) > $show_max){
923
+ $disable_dynamic_content = true;
924
+ }
925
+ }
926
+ if($cats){
927
+ $cat_link = 'https://developer.wordpress.org/reference/classes/wp_query/#category-parameters';
928
+ ?>
929
+ <div class="row checkboxes categories" id="alm-categories">
930
+ <h3 class="heading" tabindex="0"><?php _e('Category', 'ajax-load-more'); ?></h3>
931
+ <div class="expand-wrap">
932
+ <section class="first">
933
+ <div class="shortcode-builder--label">
934
+ <h4><?php _e('Include', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Get posts by category using a category_name or category__and query','ajax-load-more'); ?>."></a></h4>
935
+ <p><?php _e('Comma separated list of categories to include by', 'ajax-load-more'); ?> <strong class="alm-populate"><?php _e('slug', 'ajax-load-more'); ?></strong>.
936
+ <small class="alm-populate-eg">e.g. design, research etc...</small></p>
937
+ <p><a class="button-small" href="admin.php?page=ajax-load-more-help&section=examples#example-category" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
938
+ </div>
939
+ <div class="shortcode-builder--fields">
940
+ <div class="inner">
941
+ <div class="category-toggle category_name">
942
+ <?php
943
+ if(!$disable_dynamic_content){
944
+ echo '<select class="alm_element multiple" name="category-select" id="category-select" multiple="multiple">';
945
+ foreach( $cats as $cat ){
946
+ echo '<option name="chk-'.$cat->slug.'" id="chk-'.$cat->slug.'" value="'.$cat->slug.'">'.$cat->name.'</option>';
947
+ }
948
+ echo '</select>';
949
+ }else{
950
+ echo '<input type="text" class="alm_element" name="category-select" id="category-select" placeholder="design, development, science etc..." style="margin-bottom: 15px;">';
951
+ }
952
+ ?>
953
+ </div>
954
+ <div class="category-toggle category__and" style="display: none;">
955
+ <?php
956
+ if(!$disable_dynamic_content){
957
+ echo '<select class="alm_element multiple" name="category--and-select" id="category--and-select" multiple="multiple">';
958
+ foreach( $cats as $cat ){
959
+ echo '<option name="chk-'.$cat->term_id.'" id="chk-'.$cat->term_id.'" value="'.$cat->term_id.'">'.$cat->name.'</option>';
960
+ }
961
+ echo '</select>';
962
+ }else{
963
+ echo '<input type="text" class="alm_element" name="category--and-select" id="category--and-select" placeholder="10,29,31 etc...">';
964
+ }
965
+ ?>
966
+ </div>
967
+ <ul style="padding: 20px 0 0;">
968
+ <li style="width: 100%;">
969
+ <input class="alm_element" type="checkbox" name="category-select-type" value="category__and" id="category__and">
970
+ <label for="category__and">
971
+ category__and <span>(<a href="<?php echo $cat_link; ?>" target="_blank"><?php _e('What\'s this', 'ajax-load-more'); ?>?</a>)</span>
972
+ </label>
973
  </li>
974
  </ul>
975
+ </div>
976
+ </div>
977
  </section>
978
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
979
  <section>
980
  <div class="shortcode-builder--label">
981
+ <h4><?php _e('Exclude', 'ajax-load-more'); ?></h4>
982
+ <p>
983
+ <?php _e('Comma separated list of categories to exclude by ID.', 'ajax-load-more'); ?>
984
+ <small>e.g. 3, 12, 35 etc..</small>
985
  </p>
986
  </div>
987
  <div class="shortcode-builder--fields">
988
+ <div class="inner">
989
+ <?php
990
+ if(!$disable_dynamic_content){
991
+ echo '<select class="alm_element multiple" name="category-exclude-select" id="category-exclude-select" multiple="multiple">';
992
+ foreach( $cats as $cat ){
993
+ echo '<option name="chk-'.$cat->term_id.'" id="chk-'.$cat->term_id.'" value="'.$cat->term_id.'">'.$cat->name.'</option>';
994
+ }
995
+ echo '</select>';
996
+ }else{
997
+ echo '<input type="text" class="alm_element numbers-only" name="category-exclude-select" id="category-exclude-select" placeholder="10, 12, 19 etc...">';
998
+ }
999
+ ?>
1000
  </div>
1001
+ <div class="clear"></div>
1002
  </div>
1003
  </section>
1004
  </div>
1005
  </div>
1006
+ <!-- End Category -->
1007
 
1008
+ <?php }
1009
 
1010
+ // Tags
1011
+ if($disable_dynamic_content){
1012
+ $tags = 'null';
1013
+ }else{
1014
+ $tags = get_tags();
1015
+ if($tags && count($tags) > $show_max){
1016
+ $disable_dynamic_content = true;
1017
+ }
1018
+ }
1019
+ if($tags){
1020
+ $tag_link = 'https://developer.wordpress.org/reference/classes/wp_query/#tag-parameters';
1021
+ ?>
1022
+ <div class="row checkboxes tags" id="alm-tags">
1023
+ <h3 class="heading" tabindex="0"><?php _e('Tag', 'ajax-load-more'); ?></h3>
1024
+ <div class="expand-wrap">
1025
+ <section class="first">
1026
+ <div class="shortcode-builder--label">
1027
+ <h4><?php _e('Include', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Get posts by tags using a tag or tag__and query','ajax-load-more'); ?>."></a></h4>
1028
+ <p><?php _e('Comma separated list of tags to include by', 'ajax-load-more'); ?> <strong class="alm-populate"><?php _e('slug', 'ajax-load-more'); ?></strong>.
1029
+ <small class="alm-populate-eg">e.g. toronto, canada etc...</small></p>
1030
+ <p><a class="button-small" href="admin.php?page=ajax-load-more-help&section=examples#example-tag" target="_blank">
1031
+ <?php _e('View Example', 'ajax-load-more'); ?>
1032
+ </a></p>
1033
+ </div>
1034
+ <div class="shortcode-builder--fields">
1035
+ <div class="inner">
1036
+ <div class="tag-toggle tag_normal">
1037
+ <?php
1038
+ if(!$disable_dynamic_content){
1039
+ echo '<select class="alm_element multiple" name="tag-select" id="tag-select" multiple="multiple">';
1040
+ foreach( $tags as $tag ){
1041
+ echo '<option name="chk-'.$tag->slug.'" id="chk-'.$tag->slug.'" value="'.$tag->slug.'">'.$tag->name.'</option>';
1042
+ }
1043
+ echo '</select>';
1044
+ }else{
1045
+ echo '<input type="text" class="alm_element" name="tag-select" id="tag-select" placeholder="hockey, toronto, canada etc..." style="margin-bottom: 20px;">';
1046
+ }
1047
+ ?>
1048
+ </div>
1049
+ <div class="tag-toggle tag__and" style="display: none;">
1050
+ <?php
1051
+ if(!$disable_dynamic_content){
1052
+ echo '<select class="alm_element multiple" name="tag--and-select" id="tag--and-select" multiple="multiple">';
1053
+ foreach( $tags as $tag ){
1054
+ echo '<option name="chk-'.$tag->term_id.'" id="chk-'.$tag->term_id.'" value="'.$tag->term_id.'">'.$tag->name.'</option>';
1055
+ }
1056
+ echo '</select>';
1057
+ }else{
1058
+ echo '<input type="text" class="alm_element" name="tag--and-select" id="tag--and-select" placeholder="12, 23, 29 etc...">';
1059
+ }
1060
+ ?>
1061
+ </div>
1062
+ <ul style="padding: 20px 0 0;">
1063
+ <li style="width: 100%;">
1064
+ <input class="alm_element" type="checkbox" name="tag-select-type" value="tag__and" id="tag__and">
1065
+ <label for="tag__and">
1066
+ tag__and <span>(<a href="<?php echo $tag_link; ?>" target="_blank"><?php _e('What\'s this', 'ajax-load-more'); ?>?</a>)</span>
1067
+ </label>
1068
+ </li>
1069
+ </ul>
1070
+ </div>
1071
+ </div>
1072
+ </section>
1073
 
1074
+ <section>
1075
+ <div class="shortcode-builder--label">
1076
+ <h4><?php _e('Exclude', 'ajax-load-more'); ?></h4>
1077
+ <p>
1078
+ <?php _e('Comma separated list of tags to exclude by ID', 'ajax-load-more'); ?>.
1079
+ <small>e.g. 30, 12, 99 etc..</small>
1080
+ </p>
1081
+ </div>
1082
+ <div class="shortcode-builder--fields">
1083
+ <div class="inner">
1084
+ <?php
1085
+ if(!$disable_dynamic_content){
1086
+ echo '<select class="alm_element multiple" name="tag-exclude-select" id="tag-exclude-select" multiple="multiple">';
1087
+ foreach( $tags as $tag ){
1088
+ echo '<option name="chk-'.$tag->term_id.'" id="chk-'.$tag->term_id.'" value="'.$tag->term_id.'">'.$tag->name.'</option>';
1089
+ }
1090
+ echo '</select>';
1091
+ }else{
1092
+ echo '<input type="text" class="alm_element numbers-only" name="tag-exclude-select" id="tag-exclude-select" placeholder="10, 12, 19 etc...">';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1093
  }
1094
+ ?>
1095
+ </div>
1096
+ <div class="clear"></div>
1097
+ </div>
1098
+ </section>
1099
+ </div>
1100
+ </div>
1101
+ <?php } ?>
1102
+ <!-- End Tags -->
1103
+
1104
+ <?php
1105
+ // Taxonomies
1106
+ $tax_args = array(
1107
+ 'public' => true,
1108
+ '_builtin' => false
1109
+ );
1110
+ $tax_output = 'objects';
1111
+ $taxonomies = get_taxonomies( $tax_args, $tax_output );
1112
+ if ( $taxonomies ) { ?>
1113
+ <div class="row taxonomy" id="alm-taxonomy">
1114
+ <h3 class="heading" tabindex="0"><?php _e('Taxonomy', 'ajax-load-more'); ?></h3>
1115
+ <div class="expand-wrap">
1116
+ <section class="first">
1117
+ <div class="shortcode-builder--label">
1118
+ <p><?php _e('Select a taxonomy to query and then select the terms and operator.', 'ajax-load-more'); ?></p>
1119
+ </div>
1120
+ <div class="shortcode-builder--fields">
1121
+ <?php include( ALM_PATH . 'admin/shortcode-builder/includes/tax-query-options.php'); ?>
1122
+ <div class="section-control">
1123
+ <button id="add-tax-query" class="button button-primary"><?php _e('Add Another', 'ajax-load-more'); ?></button>
1124
+ </div>
1125
+ </div>
1126
+ </section>
1127
+ </div>
1128
+ </div>
1129
+ <?php } ?>
1130
+ <!-- End Taxonomies -->
1131
+
1132
+ <!-- Meta_Query -->
1133
+ <div class="row input meta-key" id="alm-meta-key">
1134
+ <h3 class="heading" tabindex="0"><?php _e('Custom Fields (Meta_Query)', 'ajax-load-more'); ?></h3>
1135
+ <div class="expand-wrap">
1136
+ <section class="first full">
1137
+ <div class="shortcode-builder--label">
1138
+ <p><?php _e('Query for <a href="https://developer.wordpress.org/reference/classes/wp_query/#custom-field-post-meta-parameters" target="_blank">custom fields</a> by entering a key, value and operator.', 'ajax-load-more'); ?></p>
1139
+ </div>
1140
+ <div class="shortcode-builder--fields">
1141
+ <div class="meta-query-wrap-first">
1142
+ <div class="meta-query-wrap">
1143
+ <?php include( ALM_PATH . 'admin/shortcode-builder/includes/meta-query-options.php'); ?>
1144
+ </div>
1145
+ </div>
1146
+ <div id="meta-query-relation">
1147
+ <div class="inner border-top highlighted">
1148
+ <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>
1149
+ <select class="alm_element meta-relation" name="meta-relation">
1150
+ <option value="AND" selected="selected">AND</option>
1151
+ <option value="OR">OR</option>
1152
+ </select>
1153
+ </div>
1154
+ </div>
1155
+ <div id="meta-query-extended"></div>
1156
+ <div class="section-control">
1157
+ <button type="button" class="button button-primary" id="add-meta-query"><?php _e('Add Another', 'ajax-load-more'); ?></button>
1158
+ </div>
1159
+ </div>
1160
+ </section>
1161
+ </div>
1162
+ </div>
1163
+ <!-- End Meta Query -->
1164
+
1165
+ <!-- Date -->
1166
+ <div class="row input date" id="alm-date">
1167
+ <h3 class="heading" tabindex="0"><?php _e('Date', 'ajax-load-more'); ?></h3>
1168
+ <div class="expand-wrap">
1169
+ <section class="first">
1170
+ <div class="shortcode-builder--label">
1171
+ <p><?php _e('Enter a year, month(number) and day to query by date archive.', 'ajax-load-more'); ?></p>
1172
+ <p><a class="button-small" href="admin.php?page=ajax-load-more-help&section=examples#example-date" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
1173
+ </div>
1174
+ <div class="shortcode-builder--fields">
1175
+ <div class="inner flex-grid flex-grid--three">
1176
+ <div>
1177
+ <?php $today = getdate(); ?>
1178
+ <label for="input-year" class="full"><?php _e('Year:', 'ajax-load-more'); ?></label>
1179
+ <input name="input-year" class="alm_element sm numbers-only" type="text" id="input-year" maxlength="4" placeholder="<?php echo $today['year']; ?>">
1180
+ </div>
1181
+ <div>
1182
+ <label for="input-month" class="full"><?php _e('Month:', 'ajax-load-more'); ?></label>
1183
+ <input name="input-month" class="alm_element sm numbers-only" type="text" id="input-month" maxlength="2" placeholder="<?php echo $today['mon']; ?>">
1184
+ </div>
1185
+ <div>
1186
+ <label for="input-day" class="full"><?php _e('Day:', 'ajax-load-more'); ?></label>
1187
+ <input name="input-day" class="alm_element sm numbers-only" type="text" id="input-day" maxlength="2" placeholder="<?php echo $today['mday']; ?>">
1188
+ </div>
1189
+ </div>
1190
+ </div>
1191
+ </section>
1192
+ </div>
1193
+ </div>
1194
+ <!-- End Date -->
1195
+
1196
+ <?php // List Authors
1197
+ if($disable_dynamic_content){
1198
+ $authors = 'null';
1199
+ }else{
1200
+ $authors = get_users();
1201
+ if($authors && count($authors) > $show_max){
1202
+ $disable_dynamic_content = true;
1203
+ }
1204
+ }
1205
+ if($authors){
1206
+ echo '<div class="row select authors" id="alm-authors">';
1207
+ echo '<h3 class="heading" tabindex="0">' . __('Author', 'ajax-load-more') . '</h3>';
1208
+ echo '<div class="expand-wrap">';
1209
+ echo '<section class="first">';
1210
+ echo '<div class="shortcode-builder--label">';
1211
+ echo '<p>' . __('Select an Author to query(by ID).', 'ajax-load-more') . '</p>';
1212
+ ?>
1213
+ <p><a class="button-small" href="admin.php?page=ajax-load-more-help&section=examples#example-author" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
1214
+ <?php
1215
+ echo '</div>';
1216
+ echo '<div class="shortcode-builder--fields"><div class="inner">';
1217
+ if(!$disable_dynamic_content){
1218
+ echo '<select class="alm_element multiple" name="author-select" id="author-select" multiple="multiple">';
1219
+ foreach( $authors as $author ){
1220
+ echo '<option name="chk-'.$author->user_login.'" id="chk-'.$author->user_login.'" value="'.$author->ID.'">'.$author->display_name.'</option>';
1221
+ }
1222
+ echo '</select>';
1223
+ }else{
1224
+ echo '<input type="text" class="alm_element numbers-only" name="author-select" id="author-select" placeholder="1">';
1225
+ }
1226
+ echo '</div></div>';
1227
+ echo '</section>';
1228
+ echo '</div>';
1229
+ echo '</div>';
1230
+ }
1231
+ ?>
1232
+ <!-- End Authors -->
1233
+
1234
+ <!-- Search -->
1235
+ <div class="row input search-term" id="alm-search">
1236
+ <h3 class="heading" tabindex="0"><?php _e('Search', 'ajax-load-more'); ?></h3>
1237
+ <div class="expand-wrap">
1238
+ <section class="first">
1239
+ <div class="shortcode-builder--label">
1240
+ <p><?php _e('Enter a search term to query.', 'ajax-load-more'); ?></p>
1241
+ <p><?php _e('Search uses the default WordPress search, however Ajax Load More does offer integrations with SearchWP and Relevanssi.', 'ajax-load-more'); ?></p>
1242
+ <p><a class="button-small" href="https://connekthq.com/plugins/ajax-load-more/examples/search-results/" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
1243
+ </div>
1244
+ <div class="shortcode-builder--fields">
1245
+ <div class="inner">
1246
+ <input name="search-term" class="alm_element" type="text" id="search-term" value="" placeholder="<?php _e('Enter search term', 'ajax-load-more'); ?>">
1247
+ </div>
1248
+ </div>
1249
+ </section>
1250
+ </div>
1251
+ </div>
1252
+ <!-- End Search -->
1253
+
1254
+ <!-- Post Parameters -->
1255
+ <div class="row input post-in" id="alm-post-in">
1256
+ <h3 class="heading" tabindex="0"><?php _e('Post Parameters', 'ajax-load-more'); ?></h3>
1257
+ <div class="expand-wrap">
1258
+ <section class="first">
1259
+ <div class="shortcode-builder--label">
1260
+ <h4><?php _e('Include', 'ajax-load-more'); ?></h4>
1261
+ <p><?php _e('A comma separated list of post ID\'s to query.', 'ajax-load-more'); ?></p>
1262
+ </div>
1263
+ <div class="shortcode-builder--fields">
1264
+ <div class="inner">
1265
+ <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'); ?>">
1266
+ </div>
1267
+ </div>
1268
+ </section>
1269
+ <section>
1270
+ <div class="shortcode-builder--label">
1271
+ <h4><?php _e('Exclude', 'ajax-load-more'); ?></h4>
1272
+ <p><?php _e('A comma separated list of post ID\'s to exclude from query.', 'ajax-load-more'); ?></p>
1273
+ <p><a class="button-small" href="admin.php?page=ajax-load-more-help&section=examples#example-exclude" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
1274
+ </div>
1275
+ <div class="shortcode-builder--fields">
1276
+ <div class="inner">
1277
+ <input class="alm_element numbers-only" name="exclude-posts" type="text" id="exclude-posts" value="" placeholder="199, 216, 345, etc...">
1278
+ </div>
1279
+ </div>
1280
+ </section>
1281
+ <section>
1282
+ <div class="shortcode-builder--label">
1283
+ <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>
1284
+ <p><?php _e('Select status of the post.', 'ajax-load-more'); ?></p>
1285
+ </div>
1286
+ <div class="shortcode-builder--fields">
1287
+ <div class="inner">
1288
+ <select class="alm_element" name="post-status" id="post-status">
1289
+ <option value="publish" selected="selected"><?php _e('Published', 'ajax-load-more'); ?></option>
1290
+ <option value="any">Any</option>
1291
+ <option value="draft">Draft</option>
1292
+ <option value="future">Future</option>
1293
+ <option value="pending">Pending</option>
1294
+ <option value="private">Private</option>
1295
+ <option value="trash">Trash</option>
1296
+ <option value="inherit">Inherit</option>
1297
+ </select>
1298
+ </div>
1299
+ </div>
1300
+ </section>
1301
+ </div>
1302
+ </div>
1303
+ <!-- End Post Parameters -->
1304
+
1305
+ <!-- Ordering -->
1306
+ <div class="row ordering" id="alm-order">
1307
+ <h3 class="heading" tabindex="0"><?php _e('Ordering', 'ajax-load-more'); ?></h3>
1308
+ <div class="expand-wrap">
1309
+ <section class="first">
1310
+ <div class="shortcode-builder--label">
1311
+ <p><?php _e('Sort posts by Order and Orderby parameters.', 'ajax-load-more'); ?></p>
1312
+ </div>
1313
+ <div class="shortcode-builder--fields">
1314
+ <div class="inner flex-grid flex-grid--two">
1315
+ <div>
1316
+ <label class="full"><?php _e('Order', 'ajax-load-more'); ?>:</label>
1317
+ <select class="alm_element" name="post-order" id="post-order">
1318
+ <option value="DESC" selected="selected">DESC (default)</option>
1319
+ <option value="ASC">ASC</option>
1320
+ </select>
1321
+ </div>
1322
+ <div>
1323
+ <label class="full"><?php _e('Order By', 'ajax-load-more'); ?>:</label>
1324
+ <select class="alm_element" name="post-orderby" id="post-orderby">
1325
+ <option value="date" selected="selected">Date (default)</option>
1326
+ <option value="title">Title</option>
1327
+ <option value="name">Name (slug)</option>
1328
+ <option value="menu_order">Menu Order</option>
1329
+ <option value="author">Author</option>
1330
+ <option value="ID">ID</option>
1331
+ <option value="comment_count">Comment Count</option>
1332
+ <option value="modified">Modified</option>
1333
+ <option value="post__in">Post In</option>
1334
+ <option value="meta_value_num">meta_value_num</option>
1335
+ </select>
1336
+ </div>
1337
+ </div>
1338
+ </div>
1339
+ </section>
1340
+ </div>
1341
+ </div>
1342
+ <!-- End Ordering -->
1343
+
1344
+ <!-- Offset -->
1345
+ <div class="row input offset" id="alm-offset">
1346
+ <h3 class="heading" tabindex="0"><?php _e('Offset', 'ajax-load-more'); ?></h3>
1347
+ <div class="expand-wrap">
1348
+ <section class="first">
1349
+ <div class="shortcode-builder--label">
1350
+ <p><?php _e('Offset the initial query by <em>\'x\'</em> number of posts', 'ajax-load-more'); ?>.</p>
1351
+ </div>
1352
+ <div class="shortcode-builder--fields">
1353
+ <div class="inner">
1354
+ <input type="number" class="alm_element numbers-only" name="offset-select" id="offset-select" value="0" step="1" min="0">
1355
+ </div>
1356
+ </div>
1357
+ </section>
1358
+ </div>
1359
+ </div>
1360
+ <!-- End Offset -->
1361
+
1362
+ <!-- Custom Arguments -->
1363
+ <div class="row input custom-arguments" id="alm-custom-args">
1364
+ <h3 class="heading" tabindex="0"><?php _e('Custom Arguments', 'ajax-load-more'); ?></h3>
1365
+ <div class="expand-wrap">
1366
+ <section class="first">
1367
+ <div class="shortcode-builder--label">
1368
+ <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/><small>e.g. event_display:upcoming</small></p>
1369
+ </div>
1370
+ <div class="shortcode-builder--fields">
1371
+ <div class="inner">
1372
+ <input name="custom-args" class="alm_element" type="text" id="custom-args" value="" placeholder="<?php _e('event_display:upcoming', 'ajax-load-more'); ?>">
1373
+ </div>
1374
+ </div>
1375
+ </section>
1376
+ </div>
1377
+ </div>
1378
+ <!-- End Custom Arguments -->
1379
+
1380
+ </div>
1381
+
1382
  </div>
1383
+ <!-- End Query Parameters -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1384
 
1385
+ <!-- ****************************** -->
1386
 
1387
+ <!-- Integrations -->
1388
+ <div class="shortcode-parameter-wrap alm-tabbed-wrapper--section" tabindex="0">
1389
+
1390
+ <h2><?php _e('Integrations', 'ajax-load-more'); ?></h2>
1391
+ <p class="section-intro">
1392
+ <?php _e('Ajax Load More provides integrations for popular plugins and core WP functionality - when selecting an integration, Ajax Load More will automatically set various parameters on the server side to provide the best experience for users based on the selected integration.', 'ajax-load-more'); ?>
1393
+ </p>
1394
+ <ul class="section-anchor-nav"></ul>
1395
+
1396
+ <div class="section-wrap">
1397
+ <!-- Archives -->
1398
+ <div class="row input alm-archive" id="alm-archive">
1399
+ <h3 class="heading" tabindex="0"><?php _e('Archives', 'ajax-load-more'); ?></h3>
1400
+ <div class="expand-wrap">
1401
+ <section class="first">
1402
+ <div class="shortcode-builder--label">
1403
+ <p><?php _e('Ajax Load More will automatically create an archive query while viewing site archives.', 'ajax-load-more'); ?></p>
1404
+ <p><?php _e('Taxonomy, category, tag, date (year, month, day), post type and author archives are currently supported.', 'ajax-load-more'); ?></p>
1405
+ <p><a class="button-small" href="https://connekthq.com/plugins/ajax-load-more/docs/archives/" target="_blank"><?php _e('View Docs', 'ajax-load-more'); ?></a></p>
1406
+ </div>
1407
+ <div class="shortcode-builder--fields">
1408
+ <div class="inner">
1409
+ <ul>
1410
+ <li>
1411
+ <input class="alm_element" type="radio" name="archive" value="t" id="archive_t">
1412
+ <label for="archive_t"><?php _e('True', 'ajax-load-more'); ?></label>
1413
+ </li>
1414
+ <li>
1415
+ <input class="alm_element" type="radio" name="archive" value="f" id="archive_f" checked="checked">
1416
+ <label for="archive_f"><?php _e('False', 'ajax-load-more'); ?></label>
1417
+ </li>
1418
+ </ul>
1419
+ </div>
1420
+ </div>
1421
+ </section>
1422
+ <p class="warning-callout"><?php _e('<b>Note</b>: Do not select Query Parameters other than <b>Posts Per Page</b> and/or <b>Post Type</b> when using the Archives integration. Ajax Load More will automatically create the perfect shortcode for you based on the current archive page.', 'ajax-load-more'); ?></p>
1423
+ </div>
1424
+ </div>
1425
+ </div>
1426
+ </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1427
 
1428
  </div>
1429
  </div>
admin/src/js/admin.js CHANGED
@@ -29,9 +29,80 @@ jQuery(document).ready(function ($) {
29
  });
30
  }
31
 
32
- /*
33
- * Save Repeater Templates with cmd + s and ctrl + s
34
- * @since 5.1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  */
36
  document.addEventListener(
37
  'keydown',
@@ -65,13 +136,11 @@ jQuery(document).ready(function ($) {
65
  }
66
  });
67
 
68
- /*
69
- * _alm.saveSettings
70
- * Setting panel save actions
71
  *
72
- * @since 3.2.0
73
  */
74
-
75
  let almSettings = $('#alm_OptionsForm'),
76
  savingSettings = false,
77
  settingsForm = document.querySelector('#alm_OptionsForm'),
@@ -137,25 +206,24 @@ jQuery(document).ready(function ($) {
137
  }, 500);
138
  });
139
 
140
- /*
141
- * Download Repeater Template
142
- * Trigger the download of a repeater template from the admin
143
  *
144
- * @since 3.6
145
  */
146
-
147
- $('.download-repeater').on('click', function (e) {
148
  let el = this;
149
  el.closest('form').submit();
150
  });
151
 
152
- /*
153
- * Tooltipster
154
- * http://iamceege.github.io/tooltipster/
155
  *
156
- * @since 2.8.4
 
157
  */
158
- $('body').on('mouseenter', '.tooltip:not(.tooltipstered)', function () {
159
  $(this)
160
  .tooltipster({
161
  delay: 100,
@@ -165,24 +233,24 @@ jQuery(document).ready(function ($) {
165
  .tooltipster('show');
166
  });
167
 
168
- /*
169
- * Button preview pane
170
- * Found on Settings and Shortcode Builder
171
  *
172
- * @since 2.8.4
173
  */
174
-
175
- $('select#alm_settings_btn_color').change(function () {
176
  var color = jQuery(this).val();
177
  // Remove other colors
178
-
179
- $('.alm-btn-wrap .ajax-load-more-wrap').attr('class', 'ajax-load-more-wrap');
180
- $('.alm-btn-wrap .ajax-load-more-wrap').addClass(color);
181
- $('.alm-btn-wrap .ajax-load-more-wrap #test-alm-button').removeClass('loading');
 
182
 
183
  // Add loading class if Infinite loading style
184
  if (color.indexOf('infinite') >= 0) {
185
- $('.alm-btn-wrap .ajax-load-more-wrap #test-alm-button').addClass('loading');
186
  }
187
  });
188
 
@@ -252,22 +320,6 @@ jQuery(document).ready(function ($) {
252
  * @since 2.0.0
253
  */
254
 
255
- $(document).on('click', 'h2.shortcode-title', function () {
256
- var el = $(this);
257
- var parent = el.closest('.shortcode-parameter-wrap');
258
- if (el.hasClass('open')) {
259
- el.next('.section-wrap').slideDown(_alm.options.speed, 'alm_easeInOutQuad', function () {
260
- el.removeClass('open');
261
- parent.removeClass('closed');
262
- });
263
- } else {
264
- el.next('.section-wrap').slideUp(_alm.options.speed, 'alm_easeInOutQuad', function () {
265
- el.addClass('open');
266
- parent.addClass('closed');
267
- });
268
- }
269
- });
270
-
271
  $(document).on('click', 'h3.heading', function () {
272
  var el = $(this);
273
  if ($(el).hasClass('open')) {
@@ -285,20 +337,18 @@ jQuery(document).ready(function ($) {
285
  }
286
  });
287
 
 
288
  $(document).on('click', '.toggle-all', function () {
289
- var el = $(this),
290
- type = el.data('id');
291
  if (el.hasClass('closed')) {
292
  el.removeClass('closed');
293
 
294
- $('h2.shortcode-title').closest('.shortcode-parameter-wrap').removeClass('closed');
295
  $('h3.heading, h2.shortcode-title').removeClass('open');
296
  $('.section-wrap').slideDown(_alm.options.speed, 'alm_easeInOutQuad');
297
  $('.expand-wrap').slideDown(_alm.options.speed, 'alm_easeInOutQuad');
298
  } else {
299
  el.addClass('closed');
300
 
301
- $('h2.shortcode-title').closest('.shortcode-parameter-wrap').addClass('closed');
302
  $('h3.heading, h2.shortcode-title').addClass('open');
303
  $('.section-wrap').slideUp(_alm.options.speed, 'alm_easeInOutQuad');
304
  $('.expand-wrap').slideUp(_alm.options.speed, 'alm_easeInOutQuad');
@@ -306,7 +356,7 @@ jQuery(document).ready(function ($) {
306
  });
307
 
308
  // Trigger click events on enter/return
309
- $('h3.heading, h2.shortcode-title').keypress(function (e) {
310
  var key = e.which;
311
  if (key == 13) {
312
  // the enter key code
29
  });
30
  }
31
 
32
+ /**
33
+ * Tabbed Navigation Elements
34
+ *
35
+ * @since 5.4
36
+ */
37
+ const ACTIVE_TAB_CLASS = 'active';
38
+ function openTabbedItem(button, index, almTabbedWrapper) {
39
+ // Get Currently Active Button.
40
+ let activeBtn = document.querySelector('.alm-tabbed-wrapper--nav button.active');
41
+ if (activeBtn) {
42
+ activeBtn.classList.remove(ACTIVE_TAB_CLASS);
43
+ }
44
+
45
+ // Add Button Active Class.
46
+ button.classList.add(ACTIVE_TAB_CLASS);
47
+
48
+ // Activate Current Section
49
+ if (almTabbedWrapper) {
50
+ let currentActive = almTabbedWrapper.querySelector('.alm-tabbed-wrapper--section.' + ACTIVE_TAB_CLASS);
51
+ let sections = almTabbedWrapper.querySelectorAll('.alm-tabbed-wrapper--section');
52
+ if (currentActive && sections) {
53
+ currentActive.classList.remove(ACTIVE_TAB_CLASS);
54
+ if (sections[index]) {
55
+ sections[index].classList.add(ACTIVE_TAB_CLASS);
56
+ sections[index].focus({ preventScroll: true });
57
+ $('html, body').animate(
58
+ {
59
+ scrollTop: $('.alm-tabbed-wrapper--sections').offset().top - 45,
60
+ },
61
+ 350,
62
+ function () {
63
+ var section = parseInt(index) + 1;
64
+ window.location.hash = 'alm-section-' + section;
65
+ }
66
+ );
67
+ }
68
+ }
69
+ }
70
+ }
71
+
72
+ let almTabbedWrapper = document.querySelector('.alm-tabbed-wrapper');
73
+ if (almTabbedWrapper) {
74
+ let current = almTabbedWrapper.querySelector('.alm-tabbed-wrapper--section');
75
+ if (current) {
76
+ current.classList.add(ACTIVE_TAB_CLASS);
77
+ }
78
+ let tabbedNav = almTabbedWrapper.querySelectorAll('.alm-tabbed-wrapper--nav button');
79
+ if (tabbedNav) {
80
+ tabbedNav.forEach(function (item, index) {
81
+ item.addEventListener('click', function () {
82
+ openTabbedItem(this, index, almTabbedWrapper);
83
+ });
84
+ });
85
+ }
86
+
87
+ // Open hash
88
+ let hash = window.location.hash;
89
+ if (hash && hash.indexOf('alm-section') !== -1) {
90
+ hash = hash.replace('#', '');
91
+ let openSection = hash.replace('alm-section-', '');
92
+ openSection = parseInt(openSection) - 1;
93
+ // Get button from nodelist.
94
+ let nodeItem = tabbedNav.item(openSection);
95
+ if (nodeItem) {
96
+ // trigger a click.
97
+ nodeItem.click();
98
+ }
99
+ }
100
+ }
101
+
102
+ /**
103
+ * Save Repeater Templates with cmd + s and ctrl + s
104
+ *
105
+ * @since 5.1
106
  */
107
  document.addEventListener(
108
  'keydown',
136
  }
137
  });
138
 
139
+ /**
140
+ * Setting panel save actions
 
141
  *
142
+ * @since 3.2.0
143
  */
 
144
  let almSettings = $('#alm_OptionsForm'),
145
  savingSettings = false,
146
  settingsForm = document.querySelector('#alm_OptionsForm'),
206
  }, 500);
207
  });
208
 
209
+ /**
210
+ * Download Repeater Template
211
+ * Trigger the download of a repeater template from the admin
212
  *
213
+ * @since 3.6
214
  */
215
+ $('.download-repeater').on('click', function () {
 
216
  let el = this;
217
  el.closest('form').submit();
218
  });
219
 
220
+ /**
221
+ * Tooltipster
 
222
  *
223
+ * @see http://iamceege.github.io/tooltipster/
224
+ * @since 2.8.4
225
  */
226
+ $('.ajax-load-more-inner-wrapper').on('mouseenter', '.tooltip:not(.tooltipstered)', function () {
227
  $(this)
228
  .tooltipster({
229
  delay: 100,
233
  .tooltipster('show');
234
  });
235
 
236
+ /**
237
+ * Button preview pane
238
+ * Found on Settings and Shortcode Builder.
239
  *
240
+ * @since 2.8.4
241
  */
242
+ $('select#alm_settings_btn_color').on('change', function () {
 
243
  var color = jQuery(this).val();
244
  // Remove other colors
245
+ var wrap = $('.ajax-load-more-wrap');
246
+ wrap.attr('class', '');
247
+ wrap.addClass('ajax-load-more-wrap');
248
+ wrap.addClass(color);
249
+ $('#test-alm-button', wrap).removeClass('loading');
250
 
251
  // Add loading class if Infinite loading style
252
  if (color.indexOf('infinite') >= 0) {
253
+ $('#test-alm-button', wrap).addClass('loading');
254
  }
255
  });
256
 
320
  * @since 2.0.0
321
  */
322
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
323
  $(document).on('click', 'h3.heading', function () {
324
  var el = $(this);
325
  if ($(el).hasClass('open')) {
337
  }
338
  });
339
 
340
+ // Toggle Links.
341
  $(document).on('click', '.toggle-all', function () {
342
+ var el = $(this);
 
343
  if (el.hasClass('closed')) {
344
  el.removeClass('closed');
345
 
 
346
  $('h3.heading, h2.shortcode-title').removeClass('open');
347
  $('.section-wrap').slideDown(_alm.options.speed, 'alm_easeInOutQuad');
348
  $('.expand-wrap').slideDown(_alm.options.speed, 'alm_easeInOutQuad');
349
  } else {
350
  el.addClass('closed');
351
 
 
352
  $('h3.heading, h2.shortcode-title').addClass('open');
353
  $('.section-wrap').slideUp(_alm.options.speed, 'alm_easeInOutQuad');
354
  $('.expand-wrap').slideUp(_alm.options.speed, 'alm_easeInOutQuad');
356
  });
357
 
358
  // Trigger click events on enter/return
359
+ $('h3.heading, h2.shortcode-title').on('keypress', function (e) {
360
  var key = e.which;
361
  if (key == 13) {
362
  // the enter key code
admin/src/js/modules/sticky.js CHANGED
@@ -2,64 +2,65 @@ var alm = alm || {};
2
 
3
  /*
4
  * alm.attachSticky
5
- */
6
- alm.attachSticky = (el, anchor, top = 0) => {
7
  let h = el.offsetHeight + top, // height of sticky el
8
- anchorOffset = anchor.getBoundingClientRect(),
9
- anchor_top = anchorOffset.top,
10
- w_height = window.innerHeight, // Window height
11
- el_height = el.offsetHeight; // element height
12
-
13
- if(w_height > (el_height + top)){
14
  // If container height > than sticky height
15
- if(anchor_top <= top) {
16
- el.classList.add('attached');
17
  } else {
18
- if(anchor_top > top) {
19
  el.classList.remove('attached');
20
  }
21
  }
22
- }
23
  };
24
-
25
-
26
 
27
  /*
28
  * alm.resizeSticky
29
- */
30
- alm.resizeSticky = () => {
31
- let sticky = document.getElementById('cnkt-sticky');
32
- let el = document.getElementById('cnkt-sticky-wrapper');
33
- let atts = window.getComputedStyle(el);
34
- sticky.style.width = atts.width;
35
- }
36
-
37
-
38
 
39
  /*
40
  * initSticky
41
- */
42
- const initSticky = () => {
43
- if(document.getElementById("cnkt-sticky-wrapper")){
44
- const sticky_el = document.getElementById('cnkt-sticky');
45
- const sticky_anchor = document.getElementById('cnkt-sticky-wrapper');
46
- const sticky_top = 70; // The position the sticky should stick
47
-
48
- // Scroll
49
- window.addEventListener('scroll', function(e) {
50
- alm.attachSticky(sticky_el, sticky_anchor, sticky_top);
51
- });
52
- // Resize
53
- window.addEventListener('resize', function(e) {
54
- alm.resizeSticky();
55
- });
56
- // Init
57
- alm.resizeSticky();
58
- alm.attachSticky(sticky_el, sticky_anchor, sticky_top);
59
-
60
- }
61
- }
62
 
63
- window.onload = function(){
64
- initSticky();
65
- }
 
 
 
 
 
 
 
 
 
2
 
3
  /*
4
  * alm.attachSticky
5
+ */
6
+ alm.attachSticky = (el, anchor, top = 0) => {
7
  let h = el.offsetHeight + top, // height of sticky el
8
+ anchorOffset = anchor.getBoundingClientRect(),
9
+ anchor_top = anchorOffset.top,
10
+ w_height = window.innerHeight, // Window height
11
+ el_height = el.offsetHeight; // element height
12
+
13
+ if (w_height > el_height + top) {
14
  // If container height > than sticky height
15
+ if (anchor_top <= top) {
16
+ el.classList.add('attached');
17
  } else {
18
+ if (anchor_top > top) {
19
  el.classList.remove('attached');
20
  }
21
  }
22
+ }
23
  };
 
 
24
 
25
  /*
26
  * alm.resizeSticky
27
+ */
28
+ alm.resizeSticky = (target, element) => {
29
+ let atts = window.getComputedStyle(element);
30
+ target.style.width = atts.width;
31
+ };
 
 
 
 
32
 
33
  /*
34
  * initSticky
35
+ */
36
+ const initSticky = (element) => {
37
+ if (element) {
38
+ const target = element.firstElementChild;
39
+ const sticky_top = 70; // The position the sticky should stick
40
+
41
+ // Scroll
42
+ window.addEventListener('scroll', function (e) {
43
+ alm.attachSticky(target, element, sticky_top);
44
+ });
45
+ // Resize
46
+ window.addEventListener('resize', function (e) {
47
+ alm.resizeSticky(target, element);
48
+ });
49
+ // Init
50
+ alm.resizeSticky(target, element);
51
+ alm.attachSticky(target, element, sticky_top);
52
+ }
53
+ };
 
 
54
 
55
+ window.onload = function () {
56
+ const stickyID = document.getElementById('cnkt-sticky-wrapper');
57
+ if (stickyID) {
58
+ initSticky(stickyID);
59
+ }
60
+ const stickies = document.querySelectorAll('.cnkt-sticky-wrapper');
61
+ if (stickies) {
62
+ stickies.forEach(function (sticky) {
63
+ initSticky(sticky);
64
+ });
65
+ }
66
+ };
admin/src/scss/_variables.scss CHANGED
@@ -1,5 +1,6 @@
1
  $gutter: 25px;
2
- $padding: 15px;
 
3
  $grey: #555;
4
  $green: #8ed074;
5
  $green_hover: #57bda4;
@@ -7,10 +8,17 @@ $yellow: #ffffe8;
7
  $yellow_dark: #e4e4c8;
8
  $red: #e06464;
9
  $light_grey: #f7f7f7;
 
10
  $light_border: #f1f1f1;
11
  $grey_blue: #f8f9fb;
12
  $border: #e1e1e1;
13
  $border_hover: #ccc;
14
  $radius: 3px;
15
-
16
  $small: 480px;
 
 
 
 
 
 
 
1
  $gutter: 25px;
2
+ $padding: 20px;
3
+ $padding_sm: 15px;
4
  $grey: #555;
5
  $green: #8ed074;
6
  $green_hover: #57bda4;
8
  $yellow_dark: #e4e4c8;
9
  $red: #e06464;
10
  $light_grey: #f7f7f7;
11
+ $lighter_grey: #fcfcfc;
12
  $light_border: #f1f1f1;
13
  $grey_blue: #f8f9fb;
14
  $border: #e1e1e1;
15
  $border_hover: #ccc;
16
  $radius: 3px;
 
17
  $small: 480px;
18
+ $desktop: 620px;
19
+
20
+ @mixin ellipsis {
21
+ white-space: nowrap;
22
+ overflow: hidden;
23
+ text-overflow: ellipsis;
24
+ }
admin/src/scss/admin.scss CHANGED
@@ -11,6 +11,8 @@
11
  @import 'partials/shortcode-builder';
12
  @import 'partials/woocommerce';
13
  @import 'partials/builder-option-toggle';
 
 
14
 
15
  body.toplevel_page_ajax-load-more,
16
  body.ajax-load-more_page_ajax-load-more-repeaters,
@@ -24,7 +26,7 @@ body.ajax-load-more_page_ajax-load-more-filters,
24
  body.ajax-load-more_page_ajax-load-more-pro,
25
  body.ajax-load-more_page_ajax-load-more-go-pro,
26
  body.ajax-load-more_page_ajax-load-more-woocommerce {
27
- //background-color: $light_grey;
28
  #wpcontent {
29
  padding-left: 0;
30
  padding-bottom: 20px;
@@ -121,9 +123,6 @@ body.ajax-load-more_page_ajax-load-more-woocommerce {
121
  .ajax-load-more * {
122
  box-sizing: border-box;
123
  }
124
- .forceColors {
125
- background: #fff !important;
126
- }
127
  .offscreen {
128
  position: absolute;
129
  left: -9999px;
@@ -159,30 +158,6 @@ body.ajax-load-more_page_ajax-load-more-woocommerce {
159
  }
160
  }
161
 
162
- /* Saved Settings */
163
-
164
- #alm-settings .row.alm-save-settings {
165
- padding-bottom: 5px !important;
166
- }
167
-
168
- #alm-settings form {
169
- h2 {
170
- padding: 20px 20px 5px 5px;
171
- margin: 0;
172
- font-weight: 700;
173
- border-radius: 2px 2px 0 0;
174
- &:first-of-type {
175
- padding-top: 0;
176
- }
177
- + p {
178
- color: #999;
179
- padding: 0 20px 15px 5px;
180
- margin: 0;
181
- font-size: 14px;
182
- }
183
- }
184
- }
185
-
186
  // File location on Theme Repeaters
187
  .ajax-load-more .file-location {
188
  border: 1px solid $border;
@@ -240,31 +215,33 @@ body.ajax-load-more_page_ajax-load-more-woocommerce {
240
  font-size: 16px;
241
  }
242
  }
243
- textarea#_alm_layouts_css {
244
  height: 240px;
245
  }
246
- a.layout-hover {
247
- width: 20px !important;
248
- height: 20px !important;
249
- background: #ccc;
250
- display: inline-block;
251
- position: relative;
252
- }
253
- a.layout-hover img {
254
- position: absolute;
255
- left: 100%;
256
- top: 0;
257
- z-index: 999;
258
- opacity: 0;
259
- filter: alpha(opacity=0);
260
- }
261
- a.layout-hover:hover img {
262
- position: absolute;
263
- left: 100%;
264
- top: 0;
265
- z-index: 999;
266
- opacity: 1;
267
- filter: alpha(opacity=100);
 
 
268
  }
269
 
270
  .ajax-load-more p.highlight {
@@ -326,31 +303,32 @@ a.layout-hover:hover img {
326
  font-size: 16px;
327
  background: $light_grey;
328
  border-bottom: 1px solid $border;
329
- }
330
- .ajax-load-more h3.heading:hover:after,
331
- .ajax-load-more h3.heading:focus:after {
332
- color: #ccc;
333
- }
334
- .ajax-load-more h3.heading:hover,
335
- .ajax-load-more h3.heading:focus {
336
- color: #222;
337
- outline: none;
338
- }
339
- .ajax-load-more h3.heading:after {
340
- font-family: 'FontAwesome';
341
- content: '\f056';
342
- color: $border;
343
- position: absolute;
344
- left: 13px;
345
- top: 16px;
346
- height: 20px;
347
- width: 20px;
348
- }
349
- .ajax-load-more h3.heading.open:after {
350
- content: '\f055';
351
- }
352
- .ajax-load-more h3.heading.open {
353
- border-bottom-color: transparent;
 
354
  }
355
 
356
  /* Expand/Collapse all rows */
@@ -417,10 +395,6 @@ a.layout-hover:hover img {
417
  display: none;
418
  }
419
 
420
- #alm-builder {
421
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
422
- }
423
-
424
  a.button-small {
425
  text-decoration: none;
426
  font-size: 12px;
@@ -445,8 +419,7 @@ a.button-small {
445
  margin: 0;
446
  list-style: none;
447
  }
448
- #alm-builder li,
449
- .forceColors li {
450
  padding: 0 5% 0 0;
451
  margin: 0 0 5px;
452
  width: 48.666%;
@@ -461,34 +434,28 @@ a.button-small {
461
  display: block;
462
  clear: both;
463
  width: 100%;
464
- color: #444;
465
- font-weight: 600;
466
  padding: 0 0 10px;
467
  cursor: default;
468
- font-size: 12px;
469
- text-transform: uppercase;
470
  }
471
  .ajax-load-more .border-top {
472
  display: block;
473
  border-top: 1px solid #efefef;
474
  width: 100%;
475
  clear: both;
476
- margin: 0 0 20px;
477
- padding: 20px 0 0 !important;
478
  overflow: visible;
479
  position: relative;
480
  }
481
- .ajax-load-more .border-top.controls {
482
- padding: 0 !important;
483
- }
484
- .ajax-load-more .border-top.controls button {
485
- margin-top: 20px !important;
486
- }
487
 
488
  .ajax-load-more .border-top.highlighted {
489
  background-color: #feffe3;
490
  padding: 15px !important;
491
  border: 1px solid #eeefd4;
 
492
  }
493
 
494
  .ajax-load-more .alm-settings-nav {
@@ -527,19 +494,17 @@ a.button-small {
527
  border-radius: 3px 0 0 0;
528
  }
529
 
530
- #meta-query-relation {
531
- margin: 10px 0 0;
532
- }
533
- #meta-query-relation .inner {
534
- margin: 5px 0 0 !important;
535
- }
536
  #alm-meta-key .meta-query-wrap,
537
  .taxonomy-wrap {
538
  padding: 15px;
539
- border: 1px solid #efefef;
540
- margin: 20px 0 0;
541
  position: relative;
542
- border-radius: 2px;
 
 
 
 
543
  }
544
  .meta-query-wrap.removing,
545
  .taxonomy-wrap.removing {
@@ -551,9 +516,10 @@ a.button-small {
551
  padding: 0;
552
  margin: 0;
553
  }
554
- #meta-key .border-top {
555
- border: none !important;
556
  }
 
557
  .row .controls {
558
  display: block;
559
  clear: both;
@@ -567,27 +533,51 @@ a.button-small {
567
  margin-bottom: 0 !important;
568
  }
569
 
 
 
 
 
570
  .meta-query-wrap .remove-meta-query,
571
  .taxonomy-wrap .remove-tax-query {
572
  position: absolute;
573
- right: 7px;
574
- top: 7px;
575
- width: 24px;
576
- height: 24px;
577
- line-height: 24px;
578
  text-align: center;
579
- font-weight: 400;
580
- font-size: 17px;
581
- background-color: transparent;
582
- color: #666;
583
  text-decoration: none;
584
  border-radius: 2px;
 
585
  &:hover,
586
  &:hover {
587
- background-color: #cb2222;
588
  color: #fff;
589
  }
590
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
591
 
592
  .ajax-load-more .meta-query-wrap .border-top:first-of-type {
593
  padding: 0 0 0 !important;
@@ -607,10 +597,7 @@ a.button-small {
607
  overflow: hidden;
608
  }
609
  .ajax-load-more .taxonomy-extended {
610
- padding-top: 20px;
611
- }
612
- .ajax-load-more #tax-query-relation {
613
- margin-top: 20px;
614
  }
615
  .ajax-load-more .taxonomy-wrap {
616
  display: none;
@@ -801,6 +788,13 @@ a.button-small {
801
  height: auto;
802
  }
803
 
 
 
 
 
 
 
 
804
  .ajax-load-more input.disabled-input {
805
  opacity: 0.5;
806
  filter: alpha(opacity=50);
@@ -883,7 +877,7 @@ a.button-small {
883
 
884
  .ajax-load-more .row {
885
  padding: 0 !important;
886
- margin: 10px 0 0;
887
  height: auto;
888
  width: 100%;
889
  display: block;
@@ -899,8 +893,7 @@ a.button-small {
899
  .ajax-load-more#alm-repeaters .row {
900
  overflow: visible;
901
  }
902
- .admin.ajax-load-more .row,
903
- .forceColors .ajax-load-more .row {
904
  border-color: $border;
905
  }
906
  .admin.ajax-load-more .repeaters .row:hover,
@@ -948,11 +941,11 @@ a.button-small {
948
 
949
  /* Table of Contents */
950
  #cnkt-sticky {
951
- }
952
- #cnkt-sticky.attached {
953
- position: fixed;
954
- width: auto;
955
- top: 70px;
956
  }
957
  .table-of-contents .select2-container {
958
  width: 100%;
@@ -1028,14 +1021,14 @@ hr.indented {
1028
  text-decoration: none;
1029
  cursor: help;
1030
  position: relative;
1031
- top: 0;
1032
  background: #fff;
1033
  border-radius: 100%;
1034
- width: 20px;
1035
- height: 20px;
1036
  text-align: center;
1037
- line-height: 20px;
1038
- box-shadow: 0 -1px 1px #ccc;
1039
  }
1040
  .cta h3 .fa.tooltip {
1041
  top: 1px;
@@ -1223,41 +1216,6 @@ hr.indented {
1223
  padding-bottom: 5px;
1224
  }
1225
 
1226
- .form-table .template-tags {
1227
- overflow: hidden;
1228
- border-left: 6px solid #dfd8c2;
1229
- padding: 15px;
1230
- background: #fff9ea;
1231
- margin: 20px 0 0;
1232
- border-radius: 3px;
1233
- }
1234
- .form-table .template-tags h4,
1235
- .form-table .template-tags li {
1236
- margin: 0 0 8px;
1237
- padding: 0;
1238
- font-size: 13px;
1239
- }
1240
- .form-table .template-tags li {
1241
- margin: 2px 0;
1242
- }
1243
- .form-table .template-tags ul {
1244
- margin: 0;
1245
- padding: 0;
1246
- }
1247
- .form-table .template-tags pre {
1248
- display: inline-block;
1249
- min-width: 120px;
1250
- padding: 0;
1251
- margin: 0;
1252
- color: #888;
1253
- }
1254
-
1255
- .admin.ajax-load-more .form-table textarea {
1256
- clear: both;
1257
- display: inline-block;
1258
- float: none;
1259
- width: 100%;
1260
- }
1261
  .admin.ajax-load-more textarea.disabled,
1262
  .admin.ajax-load-more input.disabled {
1263
  opacity: 0.9;
@@ -1281,66 +1239,78 @@ hr.indented {
1281
  .admin.ajax-load-more.settings .select2-container {
1282
  margin-top: 10px;
1283
  }
1284
- .admin.ajax-load-more .alm-btn-wrap {
1285
- text-align: left;
1286
- }
1287
  .admin.ajax-load-more .ajax-load-more-wrap {
1288
  position: relative;
1289
- top: 5px;
1290
- padding: 15px;
1291
- border: 1px dashed $border;
1292
- display: inline-block;
 
 
1293
  margin-top: 10px;
1294
  margin-bottom: 10px;
1295
  &.preview-pane.none {
1296
  display: none;
1297
  }
 
 
 
 
 
1298
  button {
1299
  margin: 0 !important;
 
 
1300
  }
1301
- > span {
1302
  display: block;
1303
  font-size: 10px;
1304
  line-height: 1;
1305
- opacity: 0.7;
1306
- padding: 0 0 15px;
 
1307
  text-transform: uppercase;
1308
  }
 
 
 
1309
  }
1310
 
1311
- .admin.ajax-load-more.settings .ajax-load-more-wrap.pages {
1312
- }
1313
- .admin.ajax-load-more.settings .ajax-load-more-wrap.pages li {
1314
- font-size: 14px;
1315
- }
1316
- .admin.ajax-load-more.settings .ajax-load-more-wrap.pages li a {
1317
- text-decoration: none;
1318
- }
1319
 
1320
- /* Table Overrides */
1321
- .admin.ajax-load-more.settings .form-table td,
1322
- .admin.ajax-load-more.settings .form-table th {
1323
- padding: 20px;
1324
- line-height: 1.5;
1325
- }
1326
- .admin.ajax-load-more.settings .form-table td {
1327
- padding-right: 20px;
1328
- }
1329
- .admin.ajax-load-more.settings .form-table th {
1330
- padding-left: 20px;
1331
- font-weight: 700;
1332
- background-color: $light_grey;
1333
- border-right: 1px solid $border;
1334
- }
1335
- .admin.ajax-load-more.settings .form-table p {
1336
- margin-top: 0;
1337
- }
1338
- .admin.ajax-load-more.settings .form-table p.notify {
1339
- font-size: 12px;
1340
- padding: 5px 0;
1341
- margin: 5px 0 20px;
1342
- overflow: hidden;
1343
- color: #999;
 
 
1344
  }
1345
 
1346
  .ajax-load-more h2.addon-title {
@@ -1369,7 +1339,7 @@ hr.indented {
1369
  .ajax-load-more .cnkt-sidebar h3 {
1370
  padding: 0 0 10px;
1371
  margin: 0 0 20px;
1372
- border-bottom: 1px solid $border;
1373
  }
1374
  .ajax-load-more p.desc,
1375
  .ajax-load-more p.writeable-title {
@@ -1643,7 +1613,8 @@ table.highlight {
1643
  width: 100%;
1644
  a {
1645
  background: $light_grey;
1646
- border: 10px solid rgba(0, 0, 0, 0.025);
 
1647
  }
1648
  img {
1649
  padding: 10px;
@@ -1775,9 +1746,7 @@ table.highlight {
1775
  .call-out.light p a:hover {
1776
  text-decoration: underline;
1777
  }
1778
- #alm-builder .call-out,
1779
- .forceColors .call-out {
1780
- /* Shortcode builder */
1781
  width: 90%;
1782
  width: calc(100% - 20px);
1783
  margin: 10px;
@@ -2067,7 +2036,7 @@ span.cnkt-button.installed i,
2067
  }
2068
  }
2069
  .ajax-load-more .cnkt-sidebar .cta-inner {
2070
- padding: 15px;
2071
  display: block;
2072
  .cta-inner {
2073
  background-color: $light_grey;
@@ -2078,10 +2047,6 @@ span.cnkt-button.installed i,
2078
  .ajax-load-more .cnkt-sidebar .cta-inner.padding-bottom {
2079
  padding-bottom: 80px;
2080
  }
2081
- .ajax-load-more .cnkt-sidebar .cta.mailing-list .head-wrap {
2082
- display: block;
2083
- padding: 20px;
2084
- }
2085
  .ajax-load-more .cnkt-sidebar .cta.padding-bottom {
2086
  padding-bottom: 50px;
2087
  }
@@ -2090,7 +2055,7 @@ span.cnkt-button.installed i,
2090
  margin-top: 0;
2091
  }
2092
  .ajax-load-more .cnkt-sidebar h3 {
2093
- padding: 12px $padding;
2094
  margin: 0;
2095
  display: block;
2096
  font-size: 14px;
@@ -2115,6 +2080,8 @@ span.cnkt-button.installed i,
2115
  margin: 0 0 5px;
2116
  font-size: 14px;
2117
  }
 
 
2118
  .ajax-load-more .cnkt-sidebar .cta.dyk {
2119
  .cta-inner {
2120
  overflow: hidden;
@@ -2178,7 +2145,7 @@ span.cnkt-button.installed i,
2178
  text-decoration: none;
2179
  padding: 10px 0;
2180
  display: block;
2181
- border-top: 1px solid #efefef;
2182
  }
2183
  .ajax-load-more .cnkt-sidebar .cta.resources li:first-of-type a {
2184
  border: none;
@@ -2186,7 +2153,7 @@ span.cnkt-button.installed i,
2186
  }
2187
  .ajax-load-more .cnkt-sidebar .cta.resources li i {
2188
  display: inline-block;
2189
- width: 20px;
2190
  text-align: center;
2191
  color: #ccc;
2192
  text-decoration: none;
@@ -2247,42 +2214,47 @@ span.cnkt-button.installed i,
2247
 
2248
  .ajax-load-more .cnkt-sidebar .project-listing {
2249
  padding: 0;
2250
- }
2251
- .ajax-load-more .cnkt-sidebar .project-listing li {
2252
- margin: 20px 0 0;
2253
- padding: 0;
2254
- position: relative;
2255
- clear: both;
2256
- }
2257
- .ajax-load-more .cnkt-sidebar .project-listing li a {
2258
- display: block;
2259
- position: static;
2260
- padding-left: 60px;
2261
- min-height: 58px;
2262
- text-decoration: none;
2263
- }
2264
- .ajax-load-more .cnkt-sidebar .project-listing li:first-of-type {
2265
- margin-top: 0;
2266
- }
2267
- .ajax-load-more .cnkt-sidebar .project-listing img {
2268
- height: 48px;
2269
- left: 0;
2270
- position: absolute;
2271
- top: 2px;
2272
- width: 48px;
2273
- }
2274
- .ajax-load-more .cnkt-sidebar .project-listing li strong {
2275
- display: block;
2276
- }
2277
- .ajax-load-more .cnkt-sidebar .project-listing li span {
2278
- color: #777;
 
 
 
 
 
 
2279
  }
2280
 
2281
  /*
2282
  * CodeMirror Syntax Highlighting
2283
  * @since 2.2.0
2284
  */
2285
-
2286
  .shortcode-builder {
2287
  hr {
2288
  margin: 0;
@@ -2294,7 +2266,6 @@ span.cnkt-button.installed i,
2294
  *
2295
  * @since 2.2.7
2296
  */
2297
-
2298
  #unlmited-container {
2299
  margin: 0;
2300
  display: block;
@@ -2494,13 +2465,14 @@ span.cnkt-button.installed i,
2494
  position: relative;
2495
  .toggle-all {
2496
  right: 0;
2497
- top: -42px;
2498
  }
2499
  }
2500
 
2501
  hr {
2502
- margin: 30px 0 25px;
2503
  border-top-color: #efefef;
 
2504
  }
2505
 
2506
  /* Directory Listing */
@@ -2516,9 +2488,6 @@ span.cnkt-button.installed i,
2516
  margin: 0;
2517
  }
2518
  }
2519
- &:hover {
2520
- //box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
2521
- }
2522
  &.theme-repeaters {
2523
  padding: 15px;
2524
  margin: 0;
@@ -2695,56 +2664,57 @@ span.cnkt-button.installed i,
2695
  }
2696
 
2697
  // Directory Listing
2698
- .alm-dir-listing ul {
2699
- padding: 20px 0 0;
2700
- margin: 10px 0 0;
2701
- border-top: 1px solid #efefef;
2702
- }
2703
- p.theme-title {
2704
- font-weight: 600;
2705
- margin: 0 0 15px !important;
2706
- padding: 0 5px;
2707
- }
2708
- .alm-dir-listing ul li {
2709
- margin: 0 -2px;
2710
- padding: 9px 0 5px 40px;
2711
- display: inline-block;
2712
- vertical-align: top;
2713
- overflow: hidden;
2714
- width: 47%;
2715
- font-size: 14px;
2716
- background: transparent url('../../img/directory-list.gif') no-repeat left 46%;
2717
- &.full {
2718
- width: 100%;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2719
  display: block;
 
 
 
 
 
 
 
 
 
 
 
2720
  }
2721
  }
2722
- .alm-dir-listing.theme-repeaters ul li {
2723
- display: block;
2724
- width: 100%;
2725
- padding-top: 10px;
2726
- padding: 0 0 0 40px;
2727
- background-position: left 54%;
2728
- }
2729
- .alm-dir-listing.theme-repeaters ul li label {
2730
- display: block;
2731
- width: 100%;
2732
- }
2733
-
2734
- .alm-dir-listing ul li:last-child,
2735
- .alm-dir-listing ul li:nth-last-child(2) {
2736
- background-image: url('../../img/directory-list-btm.gif');
2737
- }
2738
- .alm-dir-listing.theme-repeaters ul li:nth-last-child(2) {
2739
- background: transparent url('../../img/directory-list.gif') no-repeat left center;
2740
- }
2741
- .alm-dir-listing ul li a {
2742
- text-decoration: none;
2743
- }
2744
- .alm-dir-listing li i {
2745
- color: #999;
2746
- padding: 0 5px 0 0;
2747
- }
2748
 
2749
  /*
2750
  * Error Handling
@@ -2800,7 +2770,7 @@ p.theme-title {
2800
  .ajax-load-more .form-table input[type='checkbox'] + label,
2801
  .shortcode-builder input[type='radio'] + label,
2802
  .ajax-load-more .form-table input[type='radio'] + label {
2803
- background: transparent url('../../img/bkg-chkbox_off.png') no-repeat left 1px;
2804
  height: auto;
2805
  min-height: 23px;
2806
  width: 100%;
@@ -2867,68 +2837,6 @@ p.theme-title {
2867
  #alm-shortcode-builder-form {
2868
  position: relative;
2869
  }
2870
- #alm-shortcode-builder-form .shortcode-parameter-wrap {
2871
- padding: 0 20px 20px;
2872
- display: block;
2873
- background: #fff;
2874
- border: 1px solid $border;
2875
- border-radius: 3px;
2876
- margin-bottom: 10px;
2877
- &.closed {
2878
- padding-bottom: 0;
2879
- border-bottom: none;
2880
- }
2881
- h2 {
2882
- padding: 20px 22px 20px 43px;
2883
- margin: 0 -20px;
2884
- display: block;
2885
- font-size: 20px;
2886
- width: calc(100% + 40px);
2887
- border-bottom: 1px solid $border;
2888
- background-color: $light_grey;
2889
- border-radius: 2px 2px 0 0;
2890
- color: $grey;
2891
- font-weight: 700;
2892
- position: relative;
2893
- cursor: pointer;
2894
- &:focus,
2895
- &:hover {
2896
- color: #222;
2897
- outline: none;
2898
- }
2899
- &:hover:after,
2900
- &:focus:after {
2901
- color: #ccc;
2902
- }
2903
- &:after {
2904
- font-family: 'FontAwesome';
2905
- content: '\f056';
2906
- color: $border;
2907
- position: absolute;
2908
- left: 15px;
2909
- top: 20px;
2910
- height: 20px;
2911
- width: 20px;
2912
- }
2913
- &.open:after {
2914
- content: '\f055';
2915
- }
2916
- i {
2917
- position: absolute;
2918
- right: 15px;
2919
- top: 50%;
2920
- transform: translateY(-50%);
2921
- font-size: 25px;
2922
- color: #ccc;
2923
- opacity: 0.45;
2924
- display: none;
2925
- }
2926
- }
2927
- }
2928
-
2929
- #alm-shortcode-builder-form .shortcode-parameter-wrap:first-of-type {
2930
- margin-top: 0;
2931
- }
2932
  .progress_bar_color_indicator {
2933
  position: absolute;
2934
  left: 11px;
@@ -3758,7 +3666,7 @@ span.dismiss a {
3758
  }
3759
  li a {
3760
  display: block;
3761
- padding: $padding 20px;
3762
  line-height: 1;
3763
  text-decoration: none;
3764
  border: 1px solid $border;
@@ -3788,12 +3696,12 @@ span.dismiss a {
3788
  .ajax-load-more input[type='text'],
3789
  .ajax-load-more input[type='number'],
3790
  .select2-container,
3791
- #alm-builder .select2-container-multi,
3792
  .ajax-load-more textarea {
3793
  width: 95%;
3794
  }
3795
 
3796
- #alm-builder .select2-container-multi {
3797
  width: 95% !important;
3798
  }
3799
  }
@@ -3825,9 +3733,9 @@ span.dismiss a {
3825
 
3826
  @media screen and (max-width: 782px) {
3827
  .admin.ajax-load-more.settings .form-table th {
3828
- padding-bottom: 0;
3829
  border: none;
3830
- background-color: transparent;
 
3831
  }
3832
  .share-alm .sharing {
3833
  padding-right: 0;
@@ -3862,7 +3770,7 @@ span.dismiss a {
3862
  .ajax-load-more input[type='text'],
3863
  .ajax-load-more input[type='number'],
3864
  .select2-container,
3865
- #alm-builder .select2-container-multi {
3866
  width: 100% !important;
3867
  }
3868
  .ajax-load-more .row .wrap .inner.half {
11
  @import 'partials/shortcode-builder';
12
  @import 'partials/woocommerce';
13
  @import 'partials/builder-option-toggle';
14
+ @import 'partials/template-tags';
15
+ @import 'partials/alm-tabbed-wrapper';
16
 
17
  body.toplevel_page_ajax-load-more,
18
  body.ajax-load-more_page_ajax-load-more-repeaters,
26
  body.ajax-load-more_page_ajax-load-more-pro,
27
  body.ajax-load-more_page_ajax-load-more-go-pro,
28
  body.ajax-load-more_page_ajax-load-more-woocommerce {
29
+ height: auto !important;
30
  #wpcontent {
31
  padding-left: 0;
32
  padding-bottom: 20px;
123
  .ajax-load-more * {
124
  box-sizing: border-box;
125
  }
 
 
 
126
  .offscreen {
127
  position: absolute;
128
  left: -9999px;
158
  }
159
  }
160
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
161
  // File location on Theme Repeaters
162
  .ajax-load-more .file-location {
163
  border: 1px solid $border;
215
  font-size: 16px;
216
  }
217
  }
218
+ .ajax-load-more textarea#_alm_layouts_css {
219
  height: 240px;
220
  }
221
+ .ajax-load-more {
222
+ a.layout-hover {
223
+ width: 20px !important;
224
+ height: 20px !important;
225
+ background: #ccc;
226
+ display: inline-block;
227
+ position: relative;
228
+ img {
229
+ position: absolute;
230
+ left: 100%;
231
+ top: 0;
232
+ z-index: 999;
233
+ opacity: 0;
234
+ filter: alpha(opacity=0);
235
+ }
236
+ &:hover img {
237
+ position: absolute;
238
+ left: 100%;
239
+ top: 0;
240
+ z-index: 999;
241
+ opacity: 1;
242
+ filter: alpha(opacity=100);
243
+ }
244
+ }
245
  }
246
 
247
  .ajax-load-more p.highlight {
303
  font-size: 16px;
304
  background: $light_grey;
305
  border-bottom: 1px solid $border;
306
+ &:hover:after,
307
+ &:focus:after {
308
+ color: #ccc;
309
+ }
310
+ &:hover,
311
+ &:focus {
312
+ color: #222;
313
+ outline: none;
314
+ text-decoration: underline;
315
+ }
316
+ &:after {
317
+ font-family: 'FontAwesome';
318
+ content: '\f056';
319
+ color: $border;
320
+ position: absolute;
321
+ left: 13px;
322
+ top: 16px;
323
+ height: 20px;
324
+ width: 20px;
325
+ }
326
+ &.open:after {
327
+ content: '\f055';
328
+ }
329
+ &.open {
330
+ border-bottom-color: transparent;
331
+ }
332
  }
333
 
334
  /* Expand/Collapse all rows */
395
  display: none;
396
  }
397
 
 
 
 
 
398
  a.button-small {
399
  text-decoration: none;
400
  font-size: 12px;
419
  margin: 0;
420
  list-style: none;
421
  }
422
+ .shortcode-builder--items li {
 
423
  padding: 0 5% 0 0;
424
  margin: 0 0 5px;
425
  width: 48.666%;
434
  display: block;
435
  clear: both;
436
  width: 100%;
437
+ color: $grey;
438
+ font-weight: 500;
439
  padding: 0 0 10px;
440
  cursor: default;
441
+ font-size: 13px;
442
+ //text-transform: uppercase;
443
  }
444
  .ajax-load-more .border-top {
445
  display: block;
446
  border-top: 1px solid #efefef;
447
  width: 100%;
448
  clear: both;
449
+ padding: 15px 0 0 !important;
 
450
  overflow: visible;
451
  position: relative;
452
  }
 
 
 
 
 
 
453
 
454
  .ajax-load-more .border-top.highlighted {
455
  background-color: #feffe3;
456
  padding: 15px !important;
457
  border: 1px solid #eeefd4;
458
+ border-radius: $radius;
459
  }
460
 
461
  .ajax-load-more .alm-settings-nav {
494
  border-radius: 3px 0 0 0;
495
  }
496
 
 
 
 
 
 
 
497
  #alm-meta-key .meta-query-wrap,
498
  .taxonomy-wrap {
499
  padding: 15px;
500
+ border: 1px solid $light_border;
501
+ margin: 15px 0 0;
502
  position: relative;
503
+ border-radius: $radius;
504
+ }
505
+
506
+ #alm-meta-key .meta-query-wrap {
507
+ padding-bottom: 0;
508
  }
509
  .meta-query-wrap.removing,
510
  .taxonomy-wrap.removing {
516
  padding: 0;
517
  margin: 0;
518
  }
519
+ .section-control {
520
+ padding-top: 15px;
521
  }
522
+
523
  .row .controls {
524
  display: block;
525
  clear: both;
533
  margin-bottom: 0 !important;
534
  }
535
 
536
+ #tax-query-relation {
537
+ padding-top: 15px;
538
+ }
539
+
540
  .meta-query-wrap .remove-meta-query,
541
  .taxonomy-wrap .remove-tax-query {
542
  position: absolute;
543
+ right: 2px;
544
+ top: 2px;
545
+ width: 26px;
546
+ height: 26px;
547
+ line-height: 25px;
548
  text-align: center;
549
+ font-weight: 500;
550
+ font-size: 18px;
551
+ background-color: $light_grey;
552
+ color: $grey;
553
  text-decoration: none;
554
  border-radius: 2px;
555
+ padding-left: 1px;
556
  &:hover,
557
  &:hover {
558
+ background-color: $red;
559
  color: #fff;
560
  }
561
  }
562
+ // Meta Query
563
+ .ajax-load-more .meta-query-wrap {
564
+ display: flex;
565
+ flex-wrap: wrap;
566
+ justify-content: space-between;
567
+ width: 100%;
568
+ > div {
569
+ width: 48%;
570
+ margin: 0 0 15px;
571
+ }
572
+ }
573
+ .meta-query-extended {
574
+ .meta-query-wrap {
575
+ margin-bottom: 15px;
576
+ }
577
+ }
578
+ #meta-query-relation {
579
+ margin: 0 0 15px;
580
+ }
581
 
582
  .ajax-load-more .meta-query-wrap .border-top:first-of-type {
583
  padding: 0 0 0 !important;
597
  overflow: hidden;
598
  }
599
  .ajax-load-more .taxonomy-extended {
600
+ padding-top: 15px;
 
 
 
601
  }
602
  .ajax-load-more .taxonomy-wrap {
603
  display: none;
788
  height: auto;
789
  }
790
 
791
+ .admin.ajax-load-more .form-table textarea {
792
+ clear: both;
793
+ display: inline-block;
794
+ float: none;
795
+ width: 100%;
796
+ }
797
+ .admin.ajax-load-more textarea.disabled,
798
  .ajax-load-more input.disabled-input {
799
  opacity: 0.5;
800
  filter: alpha(opacity=50);
877
 
878
  .ajax-load-more .row {
879
  padding: 0 !important;
880
+ margin: $padding 0 0;
881
  height: auto;
882
  width: 100%;
883
  display: block;
893
  .ajax-load-more#alm-repeaters .row {
894
  overflow: visible;
895
  }
896
+ .admin.ajax-load-more .row {
 
897
  border-color: $border;
898
  }
899
  .admin.ajax-load-more .repeaters .row:hover,
941
 
942
  /* Table of Contents */
943
  #cnkt-sticky {
944
+ &.attached {
945
+ position: fixed;
946
+ width: auto;
947
+ top: 70px;
948
+ }
949
  }
950
  .table-of-contents .select2-container {
951
  width: 100%;
1021
  text-decoration: none;
1022
  cursor: help;
1023
  position: relative;
1024
+ top: -1px;
1025
  background: #fff;
1026
  border-radius: 100%;
1027
+ width: 16px;
1028
+ height: 16px;
1029
  text-align: center;
1030
+ line-height: 16px;
1031
+ box-shadow: 0 1px 1px #ccc;
1032
  }
1033
  .cta h3 .fa.tooltip {
1034
  top: 1px;
1216
  padding-bottom: 5px;
1217
  }
1218
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1219
  .admin.ajax-load-more textarea.disabled,
1220
  .admin.ajax-load-more input.disabled {
1221
  opacity: 0.9;
1239
  .admin.ajax-load-more.settings .select2-container {
1240
  margin-top: 10px;
1241
  }
1242
+ // Button Preview.
 
 
1243
  .admin.ajax-load-more .ajax-load-more-wrap {
1244
  position: relative;
1245
+ top: 10px;
1246
+ padding: 20px;
1247
+ border: 1px solid $border;
1248
+ box-shadow: inset 0 0 0 5px rgba(0, 0, 0, 0.025), 0 0 5px rgba(0, 0, 0, 0.1);
1249
+ border-radius: $radius;
1250
+ //display: inline-block;
1251
  margin-top: 10px;
1252
  margin-bottom: 10px;
1253
  &.preview-pane.none {
1254
  display: none;
1255
  }
1256
+ .alm-btn-wrap {
1257
+ text-align: left;
1258
+ padding: 0;
1259
+ margin: 0;
1260
+ }
1261
  button {
1262
  margin: 0 !important;
1263
+ opacity: 1 !important;
1264
+ visibility: visible !important;
1265
  }
1266
+ span {
1267
  display: block;
1268
  font-size: 10px;
1269
  line-height: 1;
1270
+ border-bottom: 1px solid $border;
1271
+ padding: 0 0 10px;
1272
+ margin: 0 0 20px;
1273
  text-transform: uppercase;
1274
  }
1275
+ ul.alm-paging li span {
1276
+ padding: 0;
1277
+ }
1278
  }
1279
 
1280
+ .admin.ajax-load-more.settings {
1281
+ .ajax-load-more-wrap.pages li {
1282
+ font-size: 14px;
1283
+ a {
1284
+ text-decoration: none;
1285
+ }
1286
+ }
 
1287
 
1288
+ /* Table Overrides */
1289
+ .form-table td,
1290
+ .form-table th {
1291
+ padding: 20px;
1292
+ line-height: 1.5;
1293
+ }
1294
+ .form-table td {
1295
+ padding-right: 20px;
1296
+ }
1297
+ .form-table th {
1298
+ padding-left: 20px;
1299
+ font-weight: 600;
1300
+ background-color: $light_grey;
1301
+ border-right: 1px solid $border;
1302
+ width: 25%;
1303
+ }
1304
+ .form-table p {
1305
+ margin-top: 0;
1306
+ }
1307
+ .form-table p.notify {
1308
+ font-size: 12px;
1309
+ padding: 10px 0 0;
1310
+ margin: 5px 0 20px;
1311
+ overflow: hidden;
1312
+ color: #999;
1313
+ }
1314
  }
1315
 
1316
  .ajax-load-more h2.addon-title {
1339
  .ajax-load-more .cnkt-sidebar h3 {
1340
  padding: 0 0 10px;
1341
  margin: 0 0 20px;
1342
+ border-bottom: 1px solid $light_border;
1343
  }
1344
  .ajax-load-more p.desc,
1345
  .ajax-load-more p.writeable-title {
1613
  width: 100%;
1614
  a {
1615
  background: $light_grey;
1616
+ //border: 10px solid rgba(0, 0, 0, 0.025);
1617
+ border: 10px solid rgba(255, 255, 255, 1);
1618
  }
1619
  img {
1620
  padding: 10px;
1746
  .call-out.light p a:hover {
1747
  text-decoration: underline;
1748
  }
1749
+ .shortcode-builder--items .call-out {
 
 
1750
  width: 90%;
1751
  width: calc(100% - 20px);
1752
  margin: 10px;
2036
  }
2037
  }
2038
  .ajax-load-more .cnkt-sidebar .cta-inner {
2039
+ padding: $padding_sm;
2040
  display: block;
2041
  .cta-inner {
2042
  background-color: $light_grey;
2047
  .ajax-load-more .cnkt-sidebar .cta-inner.padding-bottom {
2048
  padding-bottom: 80px;
2049
  }
 
 
 
 
2050
  .ajax-load-more .cnkt-sidebar .cta.padding-bottom {
2051
  padding-bottom: 50px;
2052
  }
2055
  margin-top: 0;
2056
  }
2057
  .ajax-load-more .cnkt-sidebar h3 {
2058
+ padding: 13px $padding_sm;
2059
  margin: 0;
2060
  display: block;
2061
  font-size: 14px;
2080
  margin: 0 0 5px;
2081
  font-size: 14px;
2082
  }
2083
+
2084
+ // Did You Know
2085
  .ajax-load-more .cnkt-sidebar .cta.dyk {
2086
  .cta-inner {
2087
  overflow: hidden;
2145
  text-decoration: none;
2146
  padding: 10px 0;
2147
  display: block;
2148
+ border-top: 1px dashed $border;
2149
  }
2150
  .ajax-load-more .cnkt-sidebar .cta.resources li:first-of-type a {
2151
  border: none;
2153
  }
2154
  .ajax-load-more .cnkt-sidebar .cta.resources li i {
2155
  display: inline-block;
2156
+ width: 24px;
2157
  text-align: center;
2158
  color: #ccc;
2159
  text-decoration: none;
2214
 
2215
  .ajax-load-more .cnkt-sidebar .project-listing {
2216
  padding: 0;
2217
+ li {
2218
+ margin: 15px 0 0;
2219
+ padding: 0;
2220
+ position: relative;
2221
+ clear: both;
2222
+ &:first-of-type {
2223
+ margin-top: 0;
2224
+ }
2225
+ strong {
2226
+ display: block;
2227
+ font-weight: 700;
2228
+ }
2229
+ span {
2230
+ color: $grey;
2231
+ font-size: 0.95em;
2232
+ opacity: 0.75;
2233
+ strong {
2234
+ display: inline;
2235
+ }
2236
+ }
2237
+ }
2238
+ li a {
2239
+ display: block;
2240
+ position: static;
2241
+ padding-left: 60px;
2242
+ min-height: 58px;
2243
+ text-decoration: none;
2244
+ }
2245
+ img {
2246
+ height: 48px;
2247
+ left: 0;
2248
+ position: absolute;
2249
+ top: 2px;
2250
+ width: 48px;
2251
+ }
2252
  }
2253
 
2254
  /*
2255
  * CodeMirror Syntax Highlighting
2256
  * @since 2.2.0
2257
  */
 
2258
  .shortcode-builder {
2259
  hr {
2260
  margin: 0;
2266
  *
2267
  * @since 2.2.7
2268
  */
 
2269
  #unlmited-container {
2270
  margin: 0;
2271
  display: block;
2465
  position: relative;
2466
  .toggle-all {
2467
  right: 0;
2468
+ top: -45px;
2469
  }
2470
  }
2471
 
2472
  hr {
2473
+ margin: 32px 0 25px;
2474
  border-top-color: #efefef;
2475
+ border-bottom: none;
2476
  }
2477
 
2478
  /* Directory Listing */
2488
  margin: 0;
2489
  }
2490
  }
 
 
 
2491
  &.theme-repeaters {
2492
  padding: 15px;
2493
  margin: 0;
2664
  }
2665
 
2666
  // Directory Listing
2667
+ .alm-dir-listing {
2668
+ ul {
2669
+ padding: 20px 0 0;
2670
+ margin: 10px 0 0;
2671
+ border-top: 1px solid #efefef;
2672
+ }
2673
+ ul li {
2674
+ margin: 0 -2px;
2675
+ padding: 9px 0 5px 40px;
2676
+ display: inline-block;
2677
+ vertical-align: top;
2678
+ overflow: hidden;
2679
+ width: 47%;
2680
+ font-size: 14px;
2681
+ background: transparent url('../../img/directory-list.gif') no-repeat left 46%;
2682
+ &.full {
2683
+ width: 100%;
2684
+ display: block;
2685
+ }
2686
+ &:last-child,
2687
+ &:nth-last-child(2) {
2688
+ background-image: url('../../img/directory-list-btm.gif');
2689
+ }
2690
+ a {
2691
+ text-decoration: none;
2692
+ }
2693
+ i {
2694
+ color: #999;
2695
+ padding: 0 5px 0 0;
2696
+ }
2697
+ }
2698
+ p.theme-title {
2699
+ font-weight: 600;
2700
+ margin: 0 0 20px !important;
2701
+ padding: 0;
2702
+ }
2703
+ &.theme-repeaters ul li {
2704
  display: block;
2705
+ width: 100%;
2706
+ padding-top: 10px;
2707
+ padding: 0 0 0 36px;
2708
+ background-position: left 54%;
2709
+ label {
2710
+ display: block;
2711
+ width: 100%;
2712
+ }
2713
+ &:nth-last-child(2) {
2714
+ background: transparent url('../../img/directory-list.gif') no-repeat left center;
2715
+ }
2716
  }
2717
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2718
 
2719
  /*
2720
  * Error Handling
2770
  .ajax-load-more .form-table input[type='checkbox'] + label,
2771
  .shortcode-builder input[type='radio'] + label,
2772
  .ajax-load-more .form-table input[type='radio'] + label {
2773
+ background: transparent url('../../img/bkg-chkbox_off.png') no-repeat left 2px;
2774
  height: auto;
2775
  min-height: 23px;
2776
  width: 100%;
2837
  #alm-shortcode-builder-form {
2838
  position: relative;
2839
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2840
  .progress_bar_color_indicator {
2841
  position: absolute;
2842
  left: 11px;
3666
  }
3667
  li a {
3668
  display: block;
3669
+ padding: $padding_sm 20px;
3670
  line-height: 1;
3671
  text-decoration: none;
3672
  border: 1px solid $border;
3696
  .ajax-load-more input[type='text'],
3697
  .ajax-load-more input[type='number'],
3698
  .select2-container,
3699
+ .shortcode-builder--items .select2-container-multi,
3700
  .ajax-load-more textarea {
3701
  width: 95%;
3702
  }
3703
 
3704
+ .shortcode-builder--items .select2-container-multi {
3705
  width: 95% !important;
3706
  }
3707
  }
3733
 
3734
  @media screen and (max-width: 782px) {
3735
  .admin.ajax-load-more.settings .form-table th {
 
3736
  border: none;
3737
+ border-bottom: 1px solid $border;
3738
+ width: 100%;
3739
  }
3740
  .share-alm .sharing {
3741
  padding-right: 0;
3770
  .ajax-load-more input[type='text'],
3771
  .ajax-load-more input[type='number'],
3772
  .select2-container,
3773
+ .shortcode-builder--items .select2-container-multi {
3774
  width: 100% !important;
3775
  }
3776
  .ajax-load-more .row .wrap .inner.half {
admin/src/scss/partials/_alm-settings-feedback.scss CHANGED
@@ -1,63 +1,70 @@
1
- .alm-settings-feedback{
2
- position: fixed;
3
- bottom: 20px;
4
- right: 25px;
5
- width: auto;
6
- height: auto;
7
- background: #fff;
8
- border-left: 5px solid #5cc583;
9
- color: #444;
10
- padding: 25px 30px 25px 25px;
11
- line-height: 1;
12
- z-index: 9999;
13
- border-radius: 2px;
14
- opacity: 0;
15
- visibility: hidden;
16
- transition: all 0.2s ease-in-out;
17
- box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
18
- font-size: 13px;
19
- &.--saving{
20
- border-color: #e0bd5e;
21
- opacity: 1;
22
- visibility: visible;
23
- bottom: 25px;
24
- }
25
- &.--saved{
26
- opacity: 1;
27
- visibility: visible;
28
- bottom: 25px;
29
- }
30
- &.--error{
31
- border-color: #e03e3e;
32
- opacity: 1;
33
- visibility: visible;
34
- bottom: 25px;
35
- }
36
- i{
37
- opacity: 0.6;
38
- margin: 0 3px 0 0;
39
- }
 
 
 
 
 
 
 
40
  }
41
 
42
- #alm_OptionsForm{
43
- position: relative;
44
- .save-in-progress{
45
- width: 100%;
46
- height: 100%;
47
- position: absolute;
48
- left: 0;
49
- top: 0;
50
- z-index: 10;
51
- background: rgba(255, 255, 255, 0.5);
52
- transition: all 0.2s ease;
53
- opacity: 0;
54
- visibility: hidden;
55
- }
56
- &.--saving{
57
- .save-in-progress{
58
- opacity: 1;
59
- visibility: visible;
60
- cursor: not-allowed !important;
61
- }
62
- }
63
- }
1
+ .alm-settings-feedback {
2
+ position: fixed;
3
+ top: 50px;
4
+ right: 10px;
5
+ width: auto;
6
+ height: auto;
7
+ background: #fff;
8
+ border-left: 5px solid #5cc583;
9
+ color: #444;
10
+ padding: 25px 30px 25px 25px;
11
+ line-height: 1;
12
+ z-index: 9999;
13
+ border-radius: 2px;
14
+ opacity: 0;
15
+ visibility: hidden;
16
+ transition: all 0.25s ease-in-out;
17
+ box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
18
+ font-size: 13px;
19
+ &.--saving {
20
+ border-color: #e0bd5e;
21
+ opacity: 1;
22
+ visibility: visible;
23
+ top: 50px;
24
+ right: 25px;
25
+ }
26
+ &.--saved {
27
+ opacity: 1;
28
+ visibility: visible;
29
+ top: 50px;
30
+ right: 25px;
31
+ i {
32
+ opacity: 1;
33
+ color: #5cc583;
34
+ }
35
+ }
36
+ &.--error {
37
+ border-color: #e03e3e;
38
+ opacity: 1;
39
+ visibility: visible;
40
+ top: 25px;
41
+ right: 25px;
42
+ }
43
+ i {
44
+ opacity: 0.6;
45
+ margin: 0 3px 0 0;
46
+ }
47
  }
48
 
49
+ #alm_OptionsForm {
50
+ position: relative;
51
+ .save-in-progress {
52
+ width: 100%;
53
+ height: 100%;
54
+ position: absolute;
55
+ left: 0;
56
+ top: 0;
57
+ z-index: 10;
58
+ background: rgba(255, 255, 255, 0.5);
59
+ transition: all 0.2s ease;
60
+ opacity: 0;
61
+ visibility: hidden;
62
+ }
63
+ &.--saving {
64
+ .save-in-progress {
65
+ opacity: 1;
66
+ visibility: visible;
67
+ cursor: not-allowed !important;
68
+ }
69
+ }
70
+ }
admin/src/scss/partials/_alm-tabbed-wrapper.scss ADDED
@@ -0,0 +1,139 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .ajax-load-more .alm-tabbed-wrapper {
2
+ width: 100%;
3
+ @media screen and (min-width: $desktop) {
4
+ display: flex;
5
+ flex-wrap: nowrap;
6
+ }
7
+
8
+ // Section Titles
9
+ h2 {
10
+ padding: $padding 0 0;
11
+ margin: 0 0 15px;
12
+ display: block;
13
+ font-size: 20px;
14
+ color: $grey;
15
+ font-weight: 700;
16
+ + p {
17
+ position: relative;
18
+ top: -5px;
19
+ }
20
+ }
21
+
22
+ // Navigation.
23
+ &--nav {
24
+ border: 1px solid $border;
25
+ margin-bottom: $padding;
26
+ padding: 10px;
27
+ background: #fff;
28
+ @media screen and (min-width: $desktop) {
29
+ width: 165px;
30
+ background-color: $light_grey;
31
+ padding: 0;
32
+ border: 1px solid $border;
33
+ border-right: none;
34
+ border-bottom: none;
35
+ border-radius: $radius $radius 0 0;
36
+ position: relative;
37
+ z-index: 1;
38
+ margin: 0;
39
+ }
40
+ ul {
41
+ margin: 0;
42
+ padding: 0 0 35px;
43
+ @media screen and (max-width: $desktop) {
44
+ padding: 0;
45
+ border: 1px solid $border;
46
+ }
47
+ li {
48
+ width: 100% !important;
49
+ margin: 0;
50
+ padding: 0;
51
+ list-style: none;
52
+ &:first-of-type {
53
+ @media screen and (min-width: $desktop) {
54
+ position: relative;
55
+ top: -1px;
56
+ button {
57
+ border-top: 1px solid $border;
58
+ border-radius: $radius 0 0 0;
59
+ }
60
+ }
61
+ }
62
+ &:last-of-type {
63
+ button {
64
+ @media screen and (max-width: $desktop) {
65
+ border: none;
66
+ }
67
+ }
68
+ }
69
+ }
70
+ &.attached {
71
+ @media screen and (min-width: $desktop) {
72
+ position: fixed;
73
+ width: auto;
74
+ top: 70px;
75
+ li:first-of-type button {
76
+ border-radius: 0;
77
+ }
78
+ }
79
+ }
80
+ }
81
+ button {
82
+ display: block;
83
+ width: 100%;
84
+ border: none;
85
+ background: none;
86
+ font-size: 13px;
87
+ line-height: 1.4;
88
+ padding: 12px 10px;
89
+ text-align: left;
90
+ font-weight: 400;
91
+ @include ellipsis;
92
+ background: $light_grey;
93
+ border-bottom: 1px solid $border;
94
+ cursor: pointer;
95
+ &:hover,
96
+ &:focus {
97
+ background-color: #efefef;
98
+ }
99
+ i {
100
+ opacity: 0.65;
101
+ width: 18px;
102
+ &.fa-handshake-o {
103
+ position: relative;
104
+ left: -2px;
105
+ }
106
+ }
107
+ &.active {
108
+ font-weight: 600;
109
+ background-color: #fff;
110
+ color: $red;
111
+ cursor: default;
112
+ @media screen and (min-width: $desktop) {
113
+ width: calc(100% + 1px);
114
+ }
115
+ }
116
+ }
117
+ }
118
+
119
+ // Sections Column
120
+ &--sections {
121
+ flex: 1;
122
+
123
+ padding: 0 20px 20px;
124
+ display: block;
125
+ background: #fff;
126
+ border: 1px solid $border;
127
+ @media screen and (min-width: $desktop) {
128
+ border-bottom: none;
129
+ border-radius: 0 $radius 0 0;
130
+ }
131
+ }
132
+
133
+ &--section {
134
+ display: none;
135
+ &.active {
136
+ display: block;
137
+ }
138
+ }
139
+ }
admin/src/scss/partials/_header.scss CHANGED
@@ -2,7 +2,7 @@
2
  position: relative;
3
  z-index: 1;
4
  h1 {
5
- padding: $padding $padding $padding 80px;
6
  margin: 0;
7
  min-height: 48px;
8
  background: #fff url('../../img/alm-logo-48x48.png') no-repeat $padding $padding;
@@ -16,7 +16,7 @@
16
  em {
17
  display: block;
18
  position: relative;
19
- font-size: 12px;
20
  @media screen and (min-width: 768px) {
21
  font-size: 14px;
22
  }
@@ -33,7 +33,6 @@
33
  span {
34
  color: #999;
35
  font-weight: 300;
36
- font-style: italic;
37
  margin: 0 0 0 5px;
38
  vertical-align: top;
39
  font-size: 12px;
2
  position: relative;
3
  z-index: 1;
4
  h1 {
5
+ padding: $padding $padding $padding 75px;
6
  margin: 0;
7
  min-height: 48px;
8
  background: #fff url('../../img/alm-logo-48x48.png') no-repeat $padding $padding;
16
  em {
17
  display: block;
18
  position: relative;
19
+ font-size: 13px;
20
  @media screen and (min-width: 768px) {
21
  font-size: 14px;
22
  }
33
  span {
34
  color: #999;
35
  font-weight: 300;
 
36
  margin: 0 0 0 5px;
37
  vertical-align: top;
38
  font-size: 12px;
admin/src/scss/partials/_shortcode-builder.scss CHANGED
@@ -1,7 +1,10 @@
1
- .shortcode-builder{
2
-
3
- p.warning-callout{
4
- &:before{
 
 
 
5
  display: block;
6
  width: calc(100% + 36px);
7
  height: 1px;
@@ -13,188 +16,223 @@
13
  z-index: 1;
14
  }
15
  }
16
- section{
17
  display: flex;
18
  flex-wrap: nowrap;
19
- width: 100%;
20
  border-top: 1px solid $light_border;
21
  &:hover,
22
- &:focus-within{
23
- h4{
24
- text-decoration: underline;
25
- }
26
  }
27
- &.first{
28
  border-top: none;
29
  }
30
- &.full{
31
  flex-wrap: wrap;
32
  .shortcode-builder--label,
33
- .shortcode-builder--fields{
34
  width: 100%;
35
  }
36
- .shortcode-builder--label{
 
37
  border-bottom: 1px solid $light_border;
38
  }
39
  }
40
- input[type=text],
41
- input[type=email],
42
- input[type=number],
43
- textarea{
44
- width: 100%;
45
  }
46
- .select2-container{
47
- min-width: 100%;
48
- width: 100%;
49
  }
50
  }
51
  &--label,
52
- &--fields{
53
- padding: 23px 20px;
54
  }
55
- &--label{
56
  background-color: #fcfcfc;
57
  border-right: 1px solid $light_border;
58
- width: 40%;
59
  padding-right: 30px;
60
- &.full{
61
  width: 100%;
62
  }
63
- h4{
64
  margin: 0 0 10px;
65
  }
66
- p{
67
  font-size: 13px !important;
68
  line-height: 18px !important;
69
- small{
70
  padding-top: 10px;
71
  display: block;
72
  font-size: 12px !important;
73
  }
74
- &:last-of-type{
75
- margin-bottom: 0;
76
  }
77
  }
78
  }
79
- &--fields{
80
  padding-top: 22px;
81
  flex: 1;
82
- input, textarea, select{
83
- width: 100%;
 
 
84
  }
85
- section{
86
- width: 104%;
87
- margin-left: -2%;
88
- border: none;
89
  }
90
- .half{
91
- width: 50%;
92
- padding: 0 2%;
93
  }
94
- .flex-grid{
95
  display: flex;
96
  width: 100%;
97
  flex-wrap: nowrap;
 
98
  &--two,
99
- &--three{
100
- width: 102%;
101
- margin-left: -1%;
102
  > div {
103
- width: 50%;
104
- padding: 0 1%;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
105
  }
106
  }
107
-
108
- &--three{
109
- > div{
110
- width: 33.333%;
111
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
  }
113
  }
114
  }
115
-
116
- @media screen and (max-width: 1000px){
117
- section{
118
- flex-wrap: wrap;
119
- }
120
- &--label,
121
- &--fields{
122
- width: 100%;
123
- }
124
- &--label{
125
- border-right: none;
126
- border-bottom: 1px solid $light_border;
127
- }
128
-
129
- }
130
-
131
- .flex-input{
132
- display: flex;
133
- width: 100%;
134
- flex-wrap: nowrap;
135
- input{
136
- margin: 0;
137
- flex: 1;
138
- border-radius: 3px 0 0 3px;
139
- }
140
- span{
141
- border: 1px solid #e1e1e1;
142
- border-left: none;
143
- margin: 0;
144
- font-weight: 600;
145
- font-size: 11px;
146
- text-transform: uppercase;
147
- padding: 0 15px;
148
- display: flex;
149
- align-items: center;
150
- border-radius: 0 3px 3px 0;
151
- }
152
- }
153
-
154
-
155
- .nested-component{
156
- padding: 0;
157
- position: relative;
158
- &:after, &:before {
159
- top: 0;
160
- left: 35px;
161
- border: solid transparent;
162
- content: " ";
163
- height: 0;
164
- width: 0;
165
- position: absolute;
166
- pointer-events: none;
167
- z-index: 2;
168
- }
169
- &:after {
170
- border-color: rgba(255, 255, 255, 0);
171
- border-top-color: #fcfcfc;
172
- border-width: 10px;
173
- margin-left: -10px;
174
- }
175
- &:before {
176
- border-color: rgba(239, 239, 239, 0);
177
- border-top-color: $border;
178
- border-width: 11px;
179
- margin-left: -11px;
180
- z-index: 1;
181
- }
182
-
183
- &--inner{
184
- padding: 0;
185
- position: relative;
186
- //border-top: 1px solid $light_border;
187
- &:after {
188
- clear: both;
189
- display: table;
190
- content: '';
191
- }
192
- }
193
- }
194
- .section-intro{
195
- font-size: 13px;
196
- padding: 20px 5px 20px;
197
- margin: 0 0 20px;
198
- border-bottom: 1px solid $light_border;
199
- }
200
- }
1
+ .shortcode-builder {
2
+ a.group {
3
+ border-radius: 0 0 $radius $radius;
4
+ }
5
+
6
+ p.warning-callout {
7
+ &:before {
8
  display: block;
9
  width: calc(100% + 36px);
10
  height: 1px;
16
  z-index: 1;
17
  }
18
  }
19
+ section {
20
  display: flex;
21
  flex-wrap: nowrap;
22
+ width: 100%;
23
  border-top: 1px solid $light_border;
24
  &:hover,
25
+ &:focus-within {
26
+ h4 {
27
+ text-decoration: underline;
28
+ }
29
  }
30
+ &.first {
31
  border-top: none;
32
  }
33
+ &.full {
34
  flex-wrap: wrap;
35
  .shortcode-builder--label,
36
+ .shortcode-builder--fields {
37
  width: 100%;
38
  }
39
+ .shortcode-builder--label {
40
+ border: none;
41
  border-bottom: 1px solid $light_border;
42
  }
43
  }
44
+ input[type='text'],
45
+ input[type='email'],
46
+ input[type='number'],
47
+ textarea {
48
+ width: 100%;
49
  }
50
+ .select2-container {
51
+ min-width: 100%;
52
+ width: 100%;
53
  }
54
  }
55
  &--label,
56
+ &--fields {
57
+ padding: 20px;
58
  }
59
+ &--label {
60
  background-color: #fcfcfc;
61
  border-right: 1px solid $light_border;
62
+ width: 35%;
63
  padding-right: 30px;
64
+ &.full {
65
  width: 100%;
66
  }
67
+ h4 {
68
  margin: 0 0 10px;
69
  }
70
+ p {
71
  font-size: 13px !important;
72
  line-height: 18px !important;
73
+ small {
74
  padding-top: 10px;
75
  display: block;
76
  font-size: 12px !important;
77
  }
78
+ &:last-of-type {
79
+ margin-bottom: 0;
80
  }
81
  }
82
  }
83
+ &--fields {
84
  padding-top: 22px;
85
  flex: 1;
86
+ input,
87
+ textarea,
88
+ select {
89
+ width: 100%;
90
  }
91
+ section {
92
+ width: 104%;
93
+ margin-left: -2%;
94
+ border: none;
95
  }
96
+ .half {
97
+ width: 50%;
98
+ padding: 0 2%;
99
  }
100
+ .flex-grid {
101
  display: flex;
102
  width: 100%;
103
  flex-wrap: nowrap;
104
+ justify-content: space-between;
105
  &--two,
106
+ &--three {
107
+ width: 100%;
 
108
  > div {
109
+ width: 48%;
110
+ }
111
+ }
112
+
113
+ &--three {
114
+ > div {
115
+ width: 31.333%;
116
+ }
117
+ }
118
+ }
119
+
120
+ ul {
121
+ display: flex;
122
+ width: 100%;
123
+ flex-wrap: wrap;
124
+ li {
125
+ width: 50%;
126
+ padding-right: 10px;
127
+ label {
128
+ margin-bottom: 0 !important;
129
  }
130
  }
131
+ }
132
+ }
133
+
134
+ @media screen and (max-width: 1000px) {
135
+ section {
136
+ flex-wrap: wrap;
137
+ }
138
+ &--label,
139
+ &--fields {
140
+ width: 100%;
141
+ }
142
+ &--label {
143
+ border-right: none;
144
+ border-bottom: 1px solid $light_border;
145
+ }
146
+ }
147
+
148
+ .flex-input {
149
+ display: flex;
150
+ width: 100%;
151
+ flex-wrap: nowrap;
152
+ input {
153
+ margin: 0;
154
+ flex: 1;
155
+ border-radius: 3px 0 0 3px;
156
+ }
157
+ span {
158
+ border: 1px solid #e1e1e1;
159
+ border-left: none;
160
+ margin: 0;
161
+ font-weight: 600;
162
+ font-size: 11px;
163
+ text-transform: uppercase;
164
+ padding: 0 15px;
165
+ display: flex;
166
+ align-items: center;
167
+ border-radius: 0 3px 3px 0;
168
+ }
169
+ }
170
+
171
+ .nested-component {
172
+ padding: 0;
173
+ position: relative;
174
+ &:after,
175
+ &:before {
176
+ top: 0;
177
+ left: 35px;
178
+ border: solid transparent;
179
+ content: ' ';
180
+ height: 0;
181
+ width: 0;
182
+ position: absolute;
183
+ pointer-events: none;
184
+ z-index: 2;
185
+ }
186
+ &:after {
187
+ border-color: rgba(255, 255, 255, 0);
188
+ border-top-color: #fcfcfc;
189
+ border-width: 10px;
190
+ margin-left: -10px;
191
+ }
192
+ &:before {
193
+ border-color: rgba(239, 239, 239, 0);
194
+ border-top-color: $border;
195
+ border-width: 11px;
196
+ margin-left: -11px;
197
+ z-index: 1;
198
+ }
199
+
200
+ &--inner {
201
+ padding: 0;
202
+ position: relative;
203
+ &:after {
204
+ clear: both;
205
+ display: table;
206
+ content: '';
207
+ }
208
+ }
209
+ .nested-component {
210
+ .shortcode-builder--label {
211
+ border-left: 6px solid $light_border;
212
+ }
213
+ }
214
+ }
215
+ .section-intro {
216
+ margin: 0 0 10px;
217
+ }
218
+ .section-anchor-nav {
219
+ display: flex;
220
+ flex-wrap: wrap;
221
+ width: 100%;
222
+ margin: 0;
223
+ padding: 0 0 15px;
224
+ border-bottom: 1px solid $border;
225
+ li {
226
+ margin: 0 10px 5px 0;
227
+ padding: 0;
228
+ font-size: 12px;
229
+ }
230
+ a {
231
+ display: block;
232
+ &:focus,
233
+ &:hover {
234
+ text-decoration: none;
235
  }
236
  }
237
  }
238
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/src/scss/partials/_sidebar.scss CHANGED
@@ -11,7 +11,7 @@
11
  padding-right: 0;
12
  }
13
  .major-publishing-actions {
14
- padding: $padding;
15
  clear: both;
16
  border-top: 1px solid $border;
17
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.025);
11
  padding-right: 0;
12
  }
13
  .major-publishing-actions {
14
+ padding: $padding_sm;
15
  clear: both;
16
  border-top: 1px solid $border;
17
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.025);
admin/src/scss/partials/_template-tags.scss ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Template Tags */
2
+ .ajax-load-more {
3
+ .template-tags {
4
+ overflow: hidden;
5
+ border-left: 5px solid #dfd8c2;
6
+ padding: 15px;
7
+ background: #fff9ea;
8
+ margin: 20px 0 0;
9
+ border-radius: 3px;
10
+ h4,
11
+ li {
12
+ margin: 0 0 8px;
13
+ padding: 0;
14
+ font-size: 13px;
15
+ text-decoration: none !important;
16
+ }
17
+ li {
18
+ margin: 5px 0 !important;
19
+ width: 100% !important;
20
+ padding: 0 !important;
21
+ border-radius: $radius;
22
+ line-height: 1.25;
23
+ }
24
+ ul {
25
+ margin: 0;
26
+ padding: 0;
27
+ }
28
+ pre {
29
+ display: inline-block;
30
+ min-width: 120px;
31
+ padding: 0;
32
+ margin: 0;
33
+ color: #888;
34
+ }
35
+ }
36
+ }
admin/views/add-ons.php CHANGED
File without changes
admin/views/go-pro.php CHANGED
File without changes
admin/views/help.php CHANGED
@@ -49,7 +49,7 @@
49
 
50
  <?php } else {
51
  // Examples
52
- include_once( ALM_PATH . 'admin/includes/components/example-list.php');
53
 
54
  } ?>
55
 
@@ -57,10 +57,10 @@
57
 
58
  <aside class="cnkt-sidebar">
59
  <?php
60
- if(!$examples){
61
  // Implementation Guide
62
- include_once( ALM_PATH . 'admin/includes/cta/resources.php');
63
- include_once( ALM_PATH . 'admin/includes/cta/dyk.php');
64
 
65
  } else {
66
  // Examples
@@ -68,15 +68,15 @@
68
  <div class="cta">
69
  <h3><?php _e('Example Library', 'ajax-load-more'); ?></h3>
70
  <div class="cta-inner">
71
- <p style="padding-bottom: 10px;"><?php _e('We have a collection of over 20 real world Ajax Load More <a href="https://connekthq.com/plugins/ajax-load-more/examples/" target="_blank">examples</a> available on the plugin website', 'ajax-load-more'); ?>.</p>
72
  </div>
73
  <div class="major-publishing-actions">
74
  <a href="https://connekthq.com/plugins/ajax-load-more/examples/" class="button button-primary" target="_blank"><?php _e('View All Examples', 'ajax-load-more'); ?></a>
75
  </div>
76
  </div>
77
  <?php
78
- include_once( ALM_PATH . 'admin/includes/cta/dyk.php');
79
- include_once( ALM_PATH . 'admin/includes/cta/resources.php');
80
  }
81
  ?>
82
  </aside>
49
 
50
  <?php } else {
51
  // Examples
52
+ include_once ALM_PATH . 'admin/includes/components/example-list.php';
53
 
54
  } ?>
55
 
57
 
58
  <aside class="cnkt-sidebar">
59
  <?php
60
+ if ( ! $examples ) {
61
  // Implementation Guide
62
+ include_once ALM_PATH . 'admin/includes/cta/resources.php';
63
+ include_once ALM_PATH . 'admin/includes/cta/dyk.php';
64
 
65
  } else {
66
  // Examples
68
  <div class="cta">
69
  <h3><?php _e('Example Library', 'ajax-load-more'); ?></h3>
70
  <div class="cta-inner">
71
+ <p style="padding-bottom: 10px;"><?php _e('View the collection of over 30 real world Ajax Load More <a href="https://connekthq.com/plugins/ajax-load-more/examples/" target="_blank">examples</a> available on the plugin website', 'ajax-load-more'); ?>.</p>
72
  </div>
73
  <div class="major-publishing-actions">
74
  <a href="https://connekthq.com/plugins/ajax-load-more/examples/" class="button button-primary" target="_blank"><?php _e('View All Examples', 'ajax-load-more'); ?></a>
75
  </div>
76
  </div>
77
  <?php
78
+ include_once ALM_PATH . 'admin/includes/cta/dyk.php';
79
+ include_once ALM_PATH . 'admin/includes/cta/resources.php';
80
  }
81
  ?>
82
  </aside>
admin/views/licenses.php CHANGED
File without changes
admin/views/repeater-templates.php CHANGED
File without changes
admin/views/settings.php CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  <div class="alm-settings-feedback"></div>
2
 
3
  <div class="admin ajax-load-more settings" id="alm-settings">
@@ -7,72 +10,92 @@
7
  <header class="header-wrap">
8
  <h1>
9
  <?php echo ALM_TITLE; ?> <span><?php echo ALM_VERSION; ?></span>
10
- <em><?php _e('A powerful plugin to add infinite scroll functionality to your website.', 'ajax-load-more'); ?></em>
11
  </h1>
12
  <?php alm_render_transient_notification(); ?>
13
-
14
  </header>
15
 
16
  <div class="ajax-load-more-inner-wrapper">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
 
18
- <div class="cnkt-main">
19
-
20
- <?php //include_once( ALM_PATH . 'admin/includes/cta/sharing.php'); ?>
21
-
22
- <?php
23
- if(has_action('alm_cache_settings') || has_action('alm_layouts_installed') || has_action('alm_prev_post_settings') || has_action('alm_paging_settings') || has_action('alm_seo_settings') || has_action('alm_tabs_settings') || has_action('alm_theme_repeaters_settings')) {
24
- ?>
25
- <div class="admin-select">
26
- <label for="alm-settings-nav" class="offscreen">
27
- <?php _e('Jump to Setting', 'ajax-load-more'); ?>
28
- </label>
29
- <select id="alm-settings-nav">
30
- <option value="#">-- <?php _e('Jump to Setting', 'ajax-load-more'); ?> --</option>
31
- <option value="0"><?php _e('Global Settings', 'ajax-load-more'); ?></option>
32
- <option value="1"><?php _e('Admin', 'ajax-load-more'); ?></option>
33
- <?php
34
- if(has_action('alm_cache_settings'))
35
- echo '<option value="2">'.__('Cache', 'ajax-load-more').'</option>';
36
- if(has_action('alm_filters_installed'))
37
- echo '<option value="3">'.__('Filters', 'ajax-load-more').'</options>';
38
- if(has_action('alm_layouts_installed'))
39
- echo '<option value="4">'.__('Layouts', 'ajax-load-more').'</options>';
40
- if(has_action('alm_paging_settings'))
41
- echo '<option value="5">'.__('Paging', 'ajax-load-more').'</option>';
42
- if(has_action('alm_rest_api_settings'))
43
- echo '<option value="6">'.__('REST API', 'ajax-load-more').'</option>';
44
- if(has_action('alm_seo_settings'))
45
- echo '<option value="7">'.__('SEO', 'ajax-load-more').'</option>';
46
- if(has_action('alm_prev_post_settings'))
47
- echo '<option value="8">'.__('Single Posts', 'ajax-load-more').'</option>';
48
- if(has_action('alm_tabs_settings'))
49
- echo '<option value="9">'.__('Tabs', 'ajax-load-more').'</option>';
50
- if(has_action('alm_theme_repeaters_settings'))
51
- echo '<option value="10">'.__('Theme Repeaters', 'ajax-load-more').'</option>';
52
- ?>
53
- </select>
54
- </div>
55
- <?php
56
- }
57
- ?>
58
- <?php settings_errors(); ?>
59
- <form action="options.php" method="post" id="alm_OptionsForm">
60
- <?php
61
- settings_fields( 'alm-setting-group' );
62
- do_settings_sections( 'ajax-load-more' );
63
- //get the older values, wont work the first time
64
- $options = get_option( '_alm_settings' );
65
- ?>
66
- <div class="save-in-progress"></div>
67
- </form>
68
 
 
 
 
 
 
 
 
 
69
  </div>
70
  <aside class="cnkt-sidebar">
71
- <?php //include_once( ALM_PATH . 'admin/includes/cta/sharing.php'); ?>
72
- <?php //include_once( ALM_PATH . 'admin/includes/cta/test.php'); ?>
73
- <?php include_once( ALM_PATH . 'admin/includes/cta/resources.php'); ?>
74
- <?php include_once( ALM_PATH . 'admin/includes/cta/dyk.php'); ?>
75
- <?php include_once( ALM_PATH . 'admin/includes/cta/about.php'); ?>
76
  </aside>
77
 
78
  <div class="clear"></div>
1
+ <?php
2
+ // @codingStandardsIgnoreStart
3
+ ?>
4
  <div class="alm-settings-feedback"></div>
5
 
6
  <div class="admin ajax-load-more settings" id="alm-settings">
10
  <header class="header-wrap">
11
  <h1>
12
  <?php echo ALM_TITLE; ?> <span><?php echo ALM_VERSION; ?></span>
13
+ <em><?php _e( 'A powerful plugin to add infinite scroll functionality to your website.', 'ajax-load-more' ); ?></em>
14
  </h1>
15
  <?php alm_render_transient_notification(); ?>
 
16
  </header>
17
 
18
  <div class="ajax-load-more-inner-wrapper">
19
+ <div class="cnkt-main stylefree">
20
+
21
+ <div class="alm-tabbed-wrapper">
22
+ <?php
23
+ global $wp_settings_sections, $wp_settings_fields;
24
+ $page = 'ajax-load-more';
25
+ ?>
26
+
27
+ <div class="alm-tabbed-wrapper--nav">
28
+ <ul>
29
+ <?php
30
+ foreach ( (array) $wp_settings_sections[ $page ] as $section ) {
31
+ echo '<li><button type="button">';
32
+ if ( $section['title'] ) {
33
+ if ( $section['id'] === 'alm_general_settings' || $section['id'] === 'alm_admin_settings' ) {
34
+ echo '<i class="fa fa-cog"></i>' . $section['title'];
35
+ } else {
36
+ echo '<i class="fa fa-plus-circle"></i>' . str_replace( ' Settings', '', $section['title'] );
37
+ }
38
+ }
39
+ echo '</button></li>';
40
+ }
41
+ ?>
42
+ </ul>
43
+ </div>
44
+ <div class="alm-tabbed-wrapper--sections">
45
+ <?php settings_errors(); ?>
46
+ <form action="options.php" method="post" id="alm_OptionsForm">
47
+ <?php
48
+ settings_fields( 'alm-setting-group' );
49
+ // do_settings_sections( 'ajax-load-more' );
50
+
51
+ // Custom Settings Page.
52
+ // @see https://developer.wordpress.org/reference/functions/do_settings_sections/
53
+
54
+ if ( ! isset( $wp_settings_sections[ $page ] ) ) {
55
+ return;
56
+ }
57
+
58
+ // Loop each section.
59
+ foreach ( (array) $wp_settings_sections[ $page ] as $section ) {
60
+
61
+ echo '<div class="shortcode-parameter-wrap alm-tabbed-wrapper--section" tabindex="0">';
62
+
63
+ if ( $section['title'] ) {
64
+ echo "<h2>{$section['title']}</h2>\n";
65
+ }
66
+
67
+ if ( $section['callback'] ) {
68
+ call_user_func( $section['callback'], $section );
69
+ }
70
+
71
+ if ( ! isset( $wp_settings_fields ) || ! isset( $wp_settings_fields[ $page ] ) || ! isset( $wp_settings_fields[ $page ][ $section['id'] ] ) ) {
72
+ continue;
73
+ }
74
+
75
+ // Display settings in table.
76
+ echo '<table class="form-table" role="presentation">';
77
+ do_settings_fields( $page, $section['id'] );
78
+ echo '</table>';
79
+
80
+ echo '</div>';
81
 
82
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
 
84
+ //get the older values, wont work the first time.
85
+ $options = get_option( '_alm_settings' );
86
+ ?>
87
+ <div class="save-in-progress"></div>
88
+ </form>
89
+ </div>
90
+ </div>
91
+ <p class="back2top"><a href="#wpcontent" class="group no-shadow"><i class="fa fa-angle-up"></i> <?php _e('Back to Top', 'ajax-load-more'); ?></a></p>
92
  </div>
93
  <aside class="cnkt-sidebar">
94
+ <?php //include_once( ALM_PATH . 'admin/includes/cta/sharing.php' ); ?>
95
+ <?php //include_once( ALM_PATH . 'admin/includes/cta/test.php' ); ?>
96
+ <?php include_once( ALM_PATH . 'admin/includes/cta/resources.php' ); ?>
97
+ <?php include_once( ALM_PATH . 'admin/includes/cta/dyk.php' ); ?>
98
+ <?php include_once( ALM_PATH . 'admin/includes/cta/about.php' ); ?>
99
  </aside>
100
 
101
  <div class="clear"></div>
admin/views/shortcode-builder.php CHANGED
@@ -22,13 +22,8 @@
22
  </div>
23
 
24
  <aside class="cnkt-sidebar">
25
- <div id="cnkt-sticky-wrapper" class="table-of-contents">
26
  <div id="cnkt-sticky">
27
- <div class="cta">
28
- <div class="cta-inner">
29
- <select class="toc"></select>
30
- </div>
31
- </div>
32
  <div class="cta">
33
  <h3><?php _e('Shortcode Output', 'ajax-load-more'); ?></h3>
34
  <div class="cta-inner">
22
  </div>
23
 
24
  <aside class="cnkt-sidebar">
25
+ <div id="cnkt-sticky-wrapper">
26
  <div id="cnkt-sticky">
 
 
 
 
 
27
  <div class="cta">
28
  <h3><?php _e('Shortcode Output', 'ajax-load-more'); ?></h3>
29
  <div class="cta-inner">
ajax-load-more.php CHANGED
@@ -7,15 +7,15 @@ Text Domain: ajax-load-more
7
  Author: Darren Cooney
8
  Twitter: @KaptonKaos
9
  Author URI: https://connekthq.com
10
- Version: 5.4.2.1
11
  License: GPL
12
  Copyright: Darren Cooney & Connekt Media
13
  */
14
 
15
  // @codingStandardsIgnoreStart
16
 
17
- define( 'ALM_VERSION', '5.4.2.1' );
18
- define( 'ALM_RELEASE', 'January 5, 2021' );
19
  define( 'ALM_STORE_URL', 'https://connekthq.com' );
20
 
21
  /**
@@ -42,7 +42,6 @@ register_activation_hook( __FILE__, 'alm_install' );
42
  add_action( 'wpmu_new_blog', 'alm_install' );
43
 
44
 
45
-
46
  /**
47
  * Create new table and repeater template.
48
  *
@@ -88,8 +87,6 @@ function alm_create_table() {
88
  }
89
  }
90
 
91
-
92
-
93
  /**
94
  * Render Ajax Load More public function
95
  *
@@ -131,13 +128,11 @@ if ( !class_exists('AjaxLoadMore') ) :
131
  add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( &$this, 'alm_action_links' ) );
132
  add_filter( 'plugin_row_meta', array( &$this, 'alm_plugin_meta_links' ), 10, 2 );
133
  add_shortcode( 'ajax_load_more', array( &$this, 'alm_shortcode' ) );
134
- add_filter( 'widget_text', 'do_shortcode' ); // Allow shortcodes in widget areas.
135
- load_plugin_textdomain( 'ajax-load-more', false, dirname( plugin_basename( __FILE__ ) ) . '/lang' ); //load text domain.
136
 
137
  }
138
 
139
-
140
-
141
  /**
142
  * Define plugin constants.
143
  *
@@ -352,7 +347,9 @@ if ( !class_exists('AjaxLoadMore') ) :
352
  'results_text' => apply_filters( 'alm_display_results', __( 'Viewing {post_count} of {total_posts} results.', 'ajax-load-more' ) ),
353
  'no_results_text' => apply_filters( 'alm_no_results_text', __( 'No results found.', 'ajax-load-more' ) ),
354
  'alm_debug' => apply_filters( 'alm_debug', false ),
355
- 'a11y_focus' => apply_filters( 'alm_a11y_focus', true )
 
 
356
  )
357
  );
358
  }
@@ -589,7 +586,7 @@ if ( !class_exists('AjaxLoadMore') ) :
589
 
590
  // Call to Action [Before].
591
  if($cta && has_action('alm_cta_inc') && $cta_pos === 'before' && in_array($alm_current, $cta_array)){
592
- do_action('alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, false);
593
  $alm_has_cta = true;
594
  }
595
 
@@ -598,7 +595,7 @@ if ( !class_exists('AjaxLoadMore') ) :
598
 
599
  // Call to Action [After].
600
  if($cta && has_action('alm_cta_inc') && $cta_pos === 'after' && in_array($alm_current, $cta_array)){
601
- do_action('alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, false);
602
  $alm_has_cta = true;
603
  }
604
 
7
  Author: Darren Cooney
8
  Twitter: @KaptonKaos
9
  Author URI: https://connekthq.com
10
+ Version: 5.4.4
11
  License: GPL
12
  Copyright: Darren Cooney & Connekt Media
13
  */
14
 
15
  // @codingStandardsIgnoreStart
16
 
17
+ define( 'ALM_VERSION', '5.4.4' );
18
+ define( 'ALM_RELEASE', 'March 31, 2021' );
19
  define( 'ALM_STORE_URL', 'https://connekthq.com' );
20
 
21
  /**
42
  add_action( 'wpmu_new_blog', 'alm_install' );
43
 
44
 
 
45
  /**
46
  * Create new table and repeater template.
47
  *
87
  }
88
  }
89
 
 
 
90
  /**
91
  * Render Ajax Load More public function
92
  *
128
  add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( &$this, 'alm_action_links' ) );
129
  add_filter( 'plugin_row_meta', array( &$this, 'alm_plugin_meta_links' ), 10, 2 );
130
  add_shortcode( 'ajax_load_more', array( &$this, 'alm_shortcode' ) );
131
+ add_filter( 'widget_text', 'do_shortcode' );
132
+ load_plugin_textdomain( 'ajax-load-more', false, dirname( plugin_basename( __FILE__ ) ) . '/lang' );
133
 
134
  }
135
 
 
 
136
  /**
137
  * Define plugin constants.
138
  *
347
  'results_text' => apply_filters( 'alm_display_results', __( 'Viewing {post_count} of {total_posts} results.', 'ajax-load-more' ) ),
348
  'no_results_text' => apply_filters( 'alm_no_results_text', __( 'No results found.', 'ajax-load-more' ) ),
349
  'alm_debug' => apply_filters( 'alm_debug', false ),
350
+ 'a11y_focus' => apply_filters( 'alm_a11y_focus', true ),
351
+ 'site_title' => get_bloginfo( 'name' ),
352
+ 'site_tagline' => get_bloginfo( 'description' ),
353
  )
354
  );
355
  }
586
 
587
  // Call to Action [Before].
588
  if($cta && has_action('alm_cta_inc') && $cta_pos === 'before' && in_array($alm_current, $cta_array)){
589
+ do_action('alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, false, $args);
590
  $alm_has_cta = true;
591
  }
592
 
595
 
596
  // Call to Action [After].
597
  if($cta && has_action('alm_cta_inc') && $cta_pos === 'after' && in_array($alm_current, $cta_array)){
598
+ do_action('alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, false, $args);
599
  $alm_has_cta = true;
600
  }
601
 
core/classes/class-alm-enqueue.php CHANGED
@@ -17,9 +17,7 @@ if( !class_exists('ALM_ENQUEUE') ):
17
  class ALM_ENQUEUE {
18
 
19
  /**
20
- * alm_enqueue_css
21
- *
22
- * Load ALM CSS
23
  *
24
  * @since 2.10.1
25
  * @return wp_enqueue_style
17
  class ALM_ENQUEUE {
18
 
19
  /**
20
+ * Load ALM CSS.
 
 
21
  *
22
  * @since 2.10.1
23
  * @return wp_enqueue_style
core/classes/class-alm-noscript.php CHANGED
@@ -20,13 +20,12 @@ if(!class_exists('ALM_NOSCRIPT')):
20
 
21
 
22
  /**
23
- * alm_get_noscript
24
  * This function will return a generated query for the noscript.
25
  *
26
- * @since 1.8
27
- * @param $q array
28
- * @param $container string
29
- * @return <noscript>
30
  */
31
  public static function alm_get_noscript($q, $container = 'ul', $css_classes = '', $transition_container_classes = ''){
32
 
@@ -39,7 +38,6 @@ if(!class_exists('ALM_NOSCRIPT')):
39
  }
40
  }
41
 
42
-
43
  // Users
44
  elseif($q['users']){
45
 
@@ -61,7 +59,6 @@ if(!class_exists('ALM_NOSCRIPT')):
61
 
62
  }
63
 
64
-
65
  // Advanced Custom Fields (Repeater, Gallery, Flex Content
66
  elseif($q['acf'] && ($q['acf_field_type'] !== 'relationship')){
67
  if(has_action('alm_acf_installed') && $q['acf']){
@@ -76,15 +73,12 @@ if(!class_exists('ALM_NOSCRIPT')):
76
  }
77
  }
78
 
79
-
80
  // Standard ALM
81
  else {
82
 
83
-
84
  // Build the $args array to use with this WP_Query
85
  $query_args = ALM_QUERY_ARGS::alm_build_queryargs($q, false);
86
 
87
-
88
  /*
89
  * alm_query_args_[id]
90
  *
@@ -136,15 +130,12 @@ if(!class_exists('ALM_NOSCRIPT')):
136
 
137
  }
138
 
139
-
140
-
141
  /**
142
- * alm_paging_no_script
143
- * Create paging navigation
144
  *
145
- * @return html;
146
- * @updated 3.7
147
  * @since 2.8.3
 
 
148
  */
149
  public static function build_noscript_paging($query){
150
 
@@ -194,37 +185,31 @@ if(!class_exists('ALM_NOSCRIPT')):
194
 
195
  }
196
 
197
-
198
-
199
  /**
200
- * render
201
- * This function will return the HTML output of the <noscript/>
202
  *
203
- * @since 1.8
204
- * @param $output string
205
- * @param $container string
206
- * @param $paging string
207
- * @return <noscript>
208
  */
209
- public static function render($output, $container, $paging = '', $css_classes, $transition_container_classes){
210
- return (!empty($output)) ? '<'. self::$element .'><'. $container .' class="alm-listing alm-noscript'. $css_classes .'"><div class="alm-reveal'. $transition_container_classes .'">'. $output .'</div></'. $container .'>'. $paging .'</'. self::$element .'>' : '';
211
  }
212
 
213
-
214
-
215
  /**
216
- * set_offset
217
  * This function will set the offset of the noscript query
218
  *
219
- * @since 1.8
220
- * @param $paged string
221
- * @param $per_page string
222
- * @param $offset string
223
- * @return int
224
  */
225
  public static function set_offset($paged, $per_page, $offset){
226
  return ($paged * $per_page) - $per_page + $offset;
227
- }
228
 
229
  }
230
 
20
 
21
 
22
  /**
 
23
  * This function will return a generated query for the noscript.
24
  *
25
+ * @since 1.8
26
+ * @param array $q
27
+ * @param string $container
28
+ * @return HTMLElement
29
  */
30
  public static function alm_get_noscript($q, $container = 'ul', $css_classes = '', $transition_container_classes = ''){
31
 
38
  }
39
  }
40
 
 
41
  // Users
42
  elseif($q['users']){
43
 
59
 
60
  }
61
 
 
62
  // Advanced Custom Fields (Repeater, Gallery, Flex Content
63
  elseif($q['acf'] && ($q['acf_field_type'] !== 'relationship')){
64
  if(has_action('alm_acf_installed') && $q['acf']){
73
  }
74
  }
75
 
 
76
  // Standard ALM
77
  else {
78
 
 
79
  // Build the $args array to use with this WP_Query
80
  $query_args = ALM_QUERY_ARGS::alm_build_queryargs($q, false);
81
 
 
82
  /*
83
  * alm_query_args_[id]
84
  *
130
 
131
  }
132
 
 
 
133
  /**
134
+ * Create paging navigation.
 
135
  *
 
 
136
  * @since 2.8.3
137
+ * @param array $query The current query array.
138
+ * @return HTMLElement
139
  */
140
  public static function build_noscript_paging($query){
141
 
185
 
186
  }
187
 
 
 
188
  /**
189
+ * This function will return the HTML output of the <noscript/>.
 
190
  *
191
+ * @since 1.8
192
+ * @param string $output
193
+ * @param string $container
194
+ * @param string $paging
195
+ * @return HTMLElement
196
  */
197
+ public static function render( $output, $container, $paging, $css_classes, $transition_container_classes){
198
+ return ( ! empty( $output ) ) ? '<' . self::$element . '><' . $container . ' class="alm-listing alm-noscript' . $css_classes . '"><div class="alm-reveal' . $transition_container_classes . '">' . $output . '</div></' . $container . '>' . $paging . '</' . self::$element . '>' : '';
199
  }
200
 
 
 
201
  /**
 
202
  * This function will set the offset of the noscript query
203
  *
204
+ * @since 1.8
205
+ * @param string $paged
206
+ * @param string $per_page
207
+ * @param string $offset
208
+ * @return int
209
  */
210
  public static function set_offset($paged, $per_page, $offset){
211
  return ($paged * $per_page) - $per_page + $offset;
212
+ }
213
 
214
  }
215
 
core/classes/class-alm-queryargs.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Generate args that pass into the ALM WP_Query
4
  *
5
  * @package ajaxloadmore
6
  * @since 3.7
@@ -14,10 +14,12 @@ if ( ! defined( 'ABSPATH' ) ) {
14
 
15
  if(!class_exists('ALM_QUERY_ARGS')):
16
 
 
 
 
17
  class ALM_QUERY_ARGS {
18
 
19
  /**
20
- * alm_build_queryargs
21
  * This function will return a generated $args array.
22
  *
23
  * @since 3.7
@@ -150,7 +152,6 @@ if(!class_exists('ALM_QUERY_ARGS')):
150
  }
151
  }
152
 
153
-
154
  // Create $args array
155
  $args = array(
156
  'post_type' => $post_type,
@@ -385,10 +386,9 @@ if(!class_exists('ALM_QUERY_ARGS')):
385
  }
386
  }
387
 
388
- /*
389
  * Custom `alm_id` query parameter in the WP_Query
390
  * This allows pre_get_posts to parse based on ALM ID
391
- * print_r($query->query);
392
  */
393
  $args['alm_id'] = $id;
394
 
1
  <?php
2
  /**
3
+ * Generate args that pass into the ALM WP_Query.
4
  *
5
  * @package ajaxloadmore
6
  * @since 3.7
14
 
15
  if(!class_exists('ALM_QUERY_ARGS')):
16
 
17
+ /**
18
+ * Ajax Load More Query Args class.
19
+ */
20
  class ALM_QUERY_ARGS {
21
 
22
  /**
 
23
  * This function will return a generated $args array.
24
  *
25
  * @since 3.7
152
  }
153
  }
154
 
 
155
  // Create $args array
156
  $args = array(
157
  'post_type' => $post_type,
386
  }
387
  }
388
 
389
+ /**
390
  * Custom `alm_id` query parameter in the WP_Query
391
  * This allows pre_get_posts to parse based on ALM ID
 
392
  */
393
  $args['alm_id'] = $id;
394
 
core/classes/class-alm-shortcode.php CHANGED
@@ -70,160 +70,162 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
70
 
71
  // Extact shortcode arrtibutes.
72
  extract( shortcode_atts( array(
73
- 'nested' => false,
74
- 'woo' => false,
75
- 'woo_template' => '',
76
- 'tabs' => false,
77
- 'tab_template' => '',
78
- 'filters' => false,
79
- 'target' => '',
80
- 'filters_url' => 'true',
81
- 'filters_paging' => 'true',
82
- 'filters_scroll' => 'false',
83
- 'filters_scrolltop' => '30',
84
- 'filters_analytics' => 'true',
85
- 'filters_debug' => false,
86
- 'term_query' => false,
87
- 'term_query_taxonomy' => '',
88
- 'term_query_hide_empty' => 'true',
89
- 'term_query_number' => '5',
90
- 'acf' => false,
91
- 'acf_post_id' => '',
92
- 'acf_field_type' => 'repeater',
93
- 'acf_field_name' => '',
94
- 'acf_parent_field_name' => '',
95
- 'restapi' => false,
96
- 'restapi_base' => '/wp-json',
97
- 'restapi_namespace' => 'ajaxloadmore',
98
- 'restapi_endpoint' => 'posts',
99
- 'restapi_template_id' => '',
100
- 'restapi_debug' => false,
101
- 'users' => false,
102
- 'users_role' => '',
103
- 'users_include' => '',
104
- 'users_exclude' => '',
105
- 'users_per_page' => '5',
106
- 'users_order' => 'ASC',
107
- 'users_orderby' => 'login',
108
- 'comments' => false,
109
- 'comments_per_page' => '5',
110
- 'comments_type' => 'comment',
111
- 'comments_style' => 'ol',
112
- 'comments_template' => 'none',
113
- 'comments_callback' => '',
114
- 'comments_post_id' => '',
115
- 'nextpage' => false,
116
- 'nextpage_post_id' => '',
117
- 'nextpage_urls' => 'true',
118
- 'nextpage_scroll' => 'false:30',
119
- 'nextpage_pageviews' => 'true',
120
- 'nextpage_start' => 1,
121
- 'previous_post' => false,
122
- 'previous_post_id' => '',
123
- 'previous_post_order' => 'previous',
124
- 'previous_post_taxonomy' => '',
 
125
  'previous_post_excluded_terms' => '',
126
- 'single_post' => false,
127
- 'single_post_id' => '',
128
- 'single_post_order' => 'previous',
129
- 'single_post_query_order' => 'previous',
130
- 'single_post_taxonomy' => '',
131
- 'single_post_excluded_terms' => '',
132
- 'single_post_progress_bar' => '',
133
- 'single_post_target' => '',
134
- 'cache' => 'false',
135
- 'cache_id' => '',
136
- 'paging' => 'false',
137
- 'paging_controls' => 'false',
138
- 'paging_show_at_most' => '7',
139
- 'paging_classes' => '',
140
- 'paging_scroll' => false,
141
- 'paging_first_label' => apply_filters( 'alm_paging_first_label', '' ),
142
- 'paging_last_label' => apply_filters( 'alm_paging_last_label', '' ),
143
- 'paging_previous_label' => apply_filters( 'alm_paging_previous_label', '&laquo;' ),
144
- 'paging_next_label' => apply_filters( 'alm_paging_next_label', '&raquo;' ),
145
- 'preloaded' => 'false',
146
- 'preloaded_amount' => '5',
147
- 'seo' => 'false',
148
- 'repeater' => 'default',
149
- 'theme_repeater' => 'null',
150
- 'cta' => false,
151
- 'cta_position' => 'before:1',
152
- 'cta_repeater' => 'null',
153
- 'cta_theme_repeater' => 'null',
154
- 'masonry' => '',
155
- 'post_type' => 'post',
156
- 'sticky_posts' => false,
157
- 'post_format' => '',
158
- 'category' => '',
159
- 'category__and' => '',
160
- 'category__not_in' => '',
161
- 'tag' => '',
162
- 'tag__and' => '',
163
- 'tag__not_in' => '',
164
- 'taxonomy' => '',
165
- 'taxonomy_terms' => '',
166
- 'taxonomy_operator' => '',
167
- 'taxonomy_relation' => '',
168
- 'meta_key' => '',
169
- 'meta_value' => '',
170
- 'meta_compare' => '',
171
- 'meta_relation' => '',
172
- 'meta_type' => '',
173
- 'year' => '',
174
- 'month' => '',
175
- 'day' => '',
176
- 'author' => '',
177
- 'search' => '',
178
- 'custom_args' => '',
179
- 'post_status' => '',
180
- 'order' => 'DESC',
181
- 'orderby' => 'date',
182
- 'post__in' => '',
183
- 'post__not_in' => '',
184
- 'exclude' => '',
185
- 'offset' => '0',
186
- 'posts_per_page' => '5',
187
- 'scroll' => 'true',
188
- 'scroll_distance' => '100',
189
- 'scroll_container' => '',
190
- 'scroll_direction' => '',
191
- 'max_pages' => '0',
192
- 'pause_override' => 'false',
193
- 'pause' => 'false',
194
- 'destroy_after' => '',
195
- 'transition' => 'fade',
196
- 'transition_speed' => '250',
197
- 'transition_container' => 'true',
 
198
  'transition_container_classes' => '',
199
- 'masonry_selector' => '',
200
- 'masonry_columnwidth' => '',
201
- 'masonry_animation' => '',
202
- 'masonry_horizontalorder' => '',
203
- 'progress_bar' => 'false',
204
- 'progress_bar_color' => 'ed7070',
205
- 'images_loaded' => 'false',
206
- 'button_label' => apply_filters( 'alm_button_label', __( 'Load More', 'ajax-load-more' ) ),
207
- 'button_loading_label' => '',
208
- 'button_done_label' => '',
209
- 'container_type' => '',
210
- 'css_classes' => '',
211
- 'loading_style' => '',
212
- 'id' => '',
213
- 'vars' => '',
214
- 'primary' => false,
215
- 'no_results_text' => '',
216
- 'placeholder' => '',
217
- 'archive' => false,
218
- 'woocommerce' => false,
219
- 'elementor' => false,
220
- 'elementor_target' => '',
221
- 'elementor_url' => '',
222
- 'elementor_link_label' => '',
223
- 'elementor_controls' => '',
224
- 'elementor_scrolltop' => '',
225
- 'elementor_paged' => ( ! get_query_var( 'page' ) || get_query_var( 'page' ) == 0 ) ? 1 : (int) get_query_var( 'page' ),
226
- 'elementor_woo_paged' => ( !isset( $_GET['product-page'] ) || $_GET['product-page'] == 1 ) ? 1 : (int) $_GET['product-page']
227
  ), $atts) );
228
 
229
  // Elementor.
@@ -316,9 +318,18 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
316
  wp_enqueue_script( 'ajax-load-more-progress' );
317
  }
318
 
319
- // Previous Post.
 
320
  if ( has_action( 'alm_single_post_installed' ) && $single_post === 'true' ) {
321
- wp_enqueue_script( 'ajax-load-more-single-posts' );
 
 
 
 
 
 
 
 
322
  }
323
 
324
  // SEO.
@@ -513,7 +524,7 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
513
  $alm_direction = (!empty($scroll_direction)) ? ' alm-'.$scroll_direction : '';
514
 
515
  // Add Inline CSS.
516
- $ajaxloadmore .= $inline_css . $inline_layouts_css . $inline_paging_css . $inline_tabs_css;
517
 
518
  // Horizontal Scroll CSS.
519
  if ( $scroll_direction === 'horizontal' && ! empty( $scroll_container ) ){
@@ -724,8 +735,6 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
724
  $preloaded_amount = $posts_per_page;
725
  }
726
 
727
-
728
-
729
  // $query_args array to store global ALM variables.
730
  $query_args = array(
731
  'post_id' => $post_id,
@@ -896,7 +905,7 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
896
  $nextpage_pageviews,
897
  $nextpage_post_id,
898
  $nextpage_scroll,
899
- $options
900
  );
901
  $ajaxloadmore .= $nextpage_return;
902
  }
@@ -1016,7 +1025,8 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
1016
  $options,
1017
  $single_post_target,
1018
  $single_post_query_order,
1019
- $query_args
 
1020
  );
1021
  $ajaxloadmore .= $single_post_return;
1022
  }
@@ -1069,7 +1079,6 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
1069
  );
1070
 
1071
  $elementor_page_link = apply_filters( 'alm_elementor_page_link', $elementor_params['paged'], $elementor_link_label);
1072
-
1073
  $elementor_return = apply_filters( 'alm_elementor_params', $elementor_params );
1074
  $ajaxloadmore .= ' data-elementor="posts"';
1075
  $ajaxloadmore .= $elementor_return;
@@ -1085,8 +1094,8 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
1085
 
1086
  // Repeaters
1087
  if(!$woo && $elementor !== 'posts'){
1088
- $ajaxloadmore .= ($theme_repeater === 'null') ? ' data-repeater="'.$repeater.'"' : '';
1089
- $ajaxloadmore .= ($theme_repeater !== 'null') ? ' data-theme-repeater="'.$theme_repeater.'"' : '';
1090
  }
1091
 
1092
  // Post Type
@@ -1203,18 +1212,16 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
1203
  // End .alm-listing data
1204
 
1205
 
1206
- // Preloaded
1207
- // Add Preloaded Posts
1208
  $noscript_pagingnav = '';
1209
- if(has_action('alm_preload_installed') && $preloaded === 'true'){
1210
  include ALM_PATH .'core/classes/includes/preloaded.php';
1211
  }
1212
 
1213
 
1214
  // Single Post
1215
  // Get first post and append to alm object
1216
- if(has_action('alm_single_post_installed') && $single_post){
1217
-
1218
 
1219
  $repeater_type = preg_split('/(?=\d)/', $repeater, 2); // split $repeater at number to retrieve type
1220
  $repeater_type = $repeater_type[0]; // (default | repeater | template_)
@@ -1228,26 +1235,22 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
1228
  // Get previous post include, build output from the next post filter
1229
  $single_post_output = '<div class="alm-reveal alm-single-post post-'. $single_post_id .'" data-url="'. $single_post_permanlink .'" data-title="'. strip_tags(get_the_title($single_post_id)) .'" data-id="'. $single_post_id .'" data-page="0">'; // Set the post id .alm-reveal div
1230
 
1231
- /*
1232
- * alm_single_post_inc
1233
- * Previous Post Add-on hook
1234
- *
1235
- * @return $args;
1236
- */
1237
-
1238
  if($offset < 1){
1239
  // Only render include if offset is zero
1240
  $single_post_output .= apply_filters('alm_single_post_inc', $repeater, $repeater_type, $theme_repeater, $single_post_id, $post_type);
1241
  }
1242
 
1243
-
1244
  $single_post_output .= '</div>';
1245
  $ajaxloadmore .= $single_post_output; // Add $single_post_output data to $ajaxloadmore
1246
 
1247
  }
1248
  // End Previous Post
1249
 
1250
-
1251
  // Next Page Add-on
1252
  if(has_action('alm_nextpage_installed') && $nextpage){
1253
 
@@ -1255,36 +1258,31 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
1255
 
1256
  $nextpage_is_paged = ($nextpage_start > 1) ? true : false;
1257
 
1258
- /*
1259
- * alm_nextpage_paged
1260
  * Next Page Add-on hook
1261
  *
1262
  * @return boolean;
1263
  */
1264
- $nextpage_is_paged = apply_filters('alm_nextpage_paged', $nextpage_is_paged);
1265
 
1266
- $alm_nextpage_output = apply_filters('alm_init_nextpage', $nextpage_post_id, $nextpage_start, $nextpage_is_paged, $paging, $div_id, $id);
1267
 
1268
  $ajaxloadmore .= $alm_nextpage_output;
1269
 
1270
  }
1271
  // End Next Page Add-on
1272
 
1273
-
1274
  // Masonry Hook (After)
1275
  $ajaxloadmore .= apply_filters('alm_masonry_after', $transition);
1276
 
1277
-
1278
  // Close ALM container element
1279
  $ajaxloadmore .= '</'.$container_element.'>';
1280
 
1281
-
1282
  // Create Placeholder
1283
  $ajaxloadmore .= self::alm_render_placeholder($placeholder, $paging);
1284
 
1285
-
1286
- /*
1287
- * alm_noscript (Generates <noscript/> element of current query)
1288
  * ALM Core Filter Hook
1289
  *
1290
  * @return html;
@@ -1296,8 +1294,7 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
1296
  // Render <noscript> pagination for SEO and Preloaded (./preloaded.php)
1297
  $ajaxloadmore .= (!empty($noscript_pagingnav)) ? $noscript_pagingnav : '';
1298
 
1299
-
1300
- /*
1301
  * Before Button
1302
  * ALM Core Filter Hook
1303
  *
@@ -1305,12 +1302,10 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
1305
  */
1306
  $ajaxloadmore .= apply_filters('alm_before_button', '');
1307
 
1308
-
1309
  // Create Load More button
1310
  $ajaxloadmore .= self::alm_render_button($seo, $paging, $button_classname, $button_label, $canonicalURL, $elementor_page_link);
1311
 
1312
-
1313
- /*
1314
  * After Button
1315
  * ALM Core Filter Hook
1316
  *
@@ -1318,39 +1313,32 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
1318
  */
1319
  $ajaxloadmore .= apply_filters('alm_after_button', '');
1320
 
1321
-
1322
  // No results text
1323
  if($no_results_text !== '' && !empty($no_results_text)){
1324
  $ajaxloadmore .= '<div class="alm-no-results" style="display: none;">'. html_entity_decode($no_results_text) .'</div>';
1325
  }
1326
 
1327
-
1328
  // Render <noscript> pagination for Nextpage addon
1329
  if(has_action('alm_nextpage_installed') && $nextpage && $nextpage_urls === 'true'){
1330
  $ajaxloadmore .= apply_filters( 'alm_nextpage_noscript_paging', $query_args['post_id'], $query_args['id'] ); // located in Nextpage add-on
1331
  }
1332
 
1333
-
1334
  // Close #ajax-load-more
1335
  $ajaxloadmore .= '</div>';
1336
 
1337
-
1338
- /*
1339
- * alm_after_container
1340
- *
1341
- * ALM Core Filter Hook
1342
  *
1343
  * @return html;
1344
  */
1345
  $ajaxloadmore .= apply_filters('alm_after_container', '');
1346
 
1347
-
1348
  // Progress Bar CSS
1349
  $ajaxloadmore .= apply_filters('alm_progress_css', self::$counter, $progress_bar, $progress_bar_color); // ALM Core Filter Hook
1350
 
1351
-
1352
  // REST API Add-on
1353
- // - add <script/> template to page
1354
  if(has_action('alm_rest_api_installed') && $restapi){
1355
  if($theme_repeater != 'null' && has_action('alm_get_rest_theme_repeater')){
1356
  do_action('alm_get_rest_theme_repeater', $theme_repeater);
@@ -1361,15 +1349,11 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
1361
  }
1362
  // End REST API Add-on
1363
 
1364
-
1365
  // Add localized vars
1366
  ALM_LOCALIZE::add_localized_var('id', $master_id, $localize_id);
1367
 
1368
-
1369
- /*
1370
- * alm_create_script_vars
1371
- *
1372
- * Build localized script vars for each ALM instance.
1373
  *
1374
  * @return <script>
1375
  */
@@ -1396,7 +1380,7 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
1396
  $btn_element = 'button';
1397
  $btn_href = '';
1398
  $btn_rel = ' rel="next"';
1399
- $html .= '<'. $btn_element .' class="alm-load-more-btn more'. $button_classname .'"'. $btn_href . $btn_rel .'>'. $button_label .'</'. $btn_element .'>';
1400
  }
1401
  $html .= '</div>';
1402
 
@@ -1421,4 +1405,3 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
1421
 
1422
  }
1423
  endif;
1424
-
70
 
71
  // Extact shortcode arrtibutes.
72
  extract( shortcode_atts( array(
73
+ 'nested' => false,
74
+ 'woo' => false,
75
+ 'woo_template' => '',
76
+ 'tabs' => false,
77
+ 'tab_template' => '',
78
+ 'filters' => false,
79
+ 'target' => '',
80
+ 'filters_url' => 'true',
81
+ 'filters_paging' => 'true',
82
+ 'filters_scroll' => 'false',
83
+ 'filters_scrolltop' => '30',
84
+ 'filters_analytics' => 'true',
85
+ 'filters_debug' => false,
86
+ 'term_query' => false,
87
+ 'term_query_taxonomy' => '',
88
+ 'term_query_hide_empty' => 'true',
89
+ 'term_query_number' => '5',
90
+ 'acf' => false,
91
+ 'acf_post_id' => '',
92
+ 'acf_field_type' => 'repeater',
93
+ 'acf_field_name' => '',
94
+ 'acf_parent_field_name' => '',
95
+ 'restapi' => false,
96
+ 'restapi_base' => '/wp-json',
97
+ 'restapi_namespace' => 'ajaxloadmore',
98
+ 'restapi_endpoint' => 'posts',
99
+ 'restapi_template_id' => '',
100
+ 'restapi_debug' => false,
101
+ 'users' => false,
102
+ 'users_role' => '',
103
+ 'users_include' => '',
104
+ 'users_exclude' => '',
105
+ 'users_per_page' => '5',
106
+ 'users_order' => 'ASC',
107
+ 'users_orderby' => 'login',
108
+ 'comments' => false,
109
+ 'comments_per_page' => '5',
110
+ 'comments_type' => 'comment',
111
+ 'comments_style' => 'ol',
112
+ 'comments_template' => 'none',
113
+ 'comments_callback' => '',
114
+ 'comments_post_id' => '',
115
+ 'nextpage' => false,
116
+ 'nextpage_post_id' => '',
117
+ 'nextpage_urls' => 'true',
118
+ 'nextpage_scroll' => 'false:30',
119
+ 'nextpage_pageviews' => 'true',
120
+ 'nextpage_title_template' => '',
121
+ 'nextpage_start' => 1,
122
+ 'previous_post' => false,
123
+ 'previous_post_id' => '',
124
+ 'previous_post_order' => 'previous',
125
+ 'previous_post_taxonomy' => '',
126
  'previous_post_excluded_terms' => '',
127
+ 'single_post' => false,
128
+ 'single_post_id' => '',
129
+ 'single_post_order' => 'previous',
130
+ 'single_post_query_order' => 'previous',
131
+ 'single_post_taxonomy' => '',
132
+ 'single_post_excluded_terms' => '',
133
+ 'single_post_progress_bar' => '',
134
+ 'single_post_target' => '',
135
+ 'single_post_preview' => '',
136
+ 'cache' => 'false',
137
+ 'cache_id' => '',
138
+ 'paging' => 'false',
139
+ 'paging_controls' => 'false',
140
+ 'paging_show_at_most' => '7',
141
+ 'paging_classes' => '',
142
+ 'paging_scroll' => false,
143
+ 'paging_first_label' => apply_filters( 'alm_paging_first_label', '' ),
144
+ 'paging_last_label' => apply_filters( 'alm_paging_last_label', '' ),
145
+ 'paging_previous_label' => apply_filters( 'alm_paging_previous_label', '&laquo;' ),
146
+ 'paging_next_label' => apply_filters( 'alm_paging_next_label', '&raquo;' ),
147
+ 'preloaded' => 'false',
148
+ 'preloaded_amount' => '5',
149
+ 'seo' => 'false',
150
+ 'repeater' => 'default',
151
+ 'theme_repeater' => 'null',
152
+ 'cta' => false,
153
+ 'cta_position' => 'before:1',
154
+ 'cta_repeater' => 'null',
155
+ 'cta_theme_repeater' => 'null',
156
+ 'masonry' => '',
157
+ 'post_type' => 'post',
158
+ 'sticky_posts' => false,
159
+ 'post_format' => '',
160
+ 'category' => '',
161
+ 'category__and' => '',
162
+ 'category__not_in' => '',
163
+ 'tag' => '',
164
+ 'tag__and' => '',
165
+ 'tag__not_in' => '',
166
+ 'taxonomy' => '',
167
+ 'taxonomy_terms' => '',
168
+ 'taxonomy_operator' => '',
169
+ 'taxonomy_relation' => '',
170
+ 'meta_key' => '',
171
+ 'meta_value' => '',
172
+ 'meta_compare' => '',
173
+ 'meta_relation' => '',
174
+ 'meta_type' => '',
175
+ 'year' => '',
176
+ 'month' => '',
177
+ 'day' => '',
178
+ 'author' => '',
179
+ 'search' => '',
180
+ 'custom_args' => '',
181
+ 'post_status' => '',
182
+ 'order' => 'DESC',
183
+ 'orderby' => 'date',
184
+ 'post__in' => '',
185
+ 'post__not_in' => '',
186
+ 'exclude' => '',
187
+ 'offset' => '0',
188
+ 'posts_per_page' => '5',
189
+ 'scroll' => 'true',
190
+ 'scroll_distance' => '100',
191
+ 'scroll_container' => '',
192
+ 'scroll_direction' => '',
193
+ 'max_pages' => '0',
194
+ 'pause_override' => 'false',
195
+ 'pause' => 'false',
196
+ 'destroy_after' => '',
197
+ 'transition' => 'fade',
198
+ 'transition_speed' => '250',
199
+ 'transition_container' => 'true',
200
  'transition_container_classes' => '',
201
+ 'masonry_selector' => '',
202
+ 'masonry_columnwidth' => '',
203
+ 'masonry_animation' => '',
204
+ 'masonry_horizontalorder' => '',
205
+ 'progress_bar' => 'false',
206
+ 'progress_bar_color' => 'ed7070',
207
+ 'images_loaded' => 'false',
208
+ 'button_label' => apply_filters( 'alm_button_label', __( 'Load More', 'ajax-load-more' ) ),
209
+ 'button_loading_label' => '',
210
+ 'button_done_label' => '',
211
+ 'container_type' => '',
212
+ 'css_classes' => '',
213
+ 'loading_style' => '',
214
+ 'id' => '',
215
+ 'vars' => '',
216
+ 'primary' => false,
217
+ 'no_results_text' => '',
218
+ 'placeholder' => '',
219
+ 'archive' => false,
220
+ 'woocommerce' => false,
221
+ 'elementor' => false,
222
+ 'elementor_target' => '',
223
+ 'elementor_url' => '',
224
+ 'elementor_link_label' => '',
225
+ 'elementor_controls' => '',
226
+ 'elementor_scrolltop' => '',
227
+ 'elementor_paged' => ( ! get_query_var( 'page' ) || get_query_var( 'page' ) == 0 ) ? 1 : (int) get_query_var( 'page' ),
228
+ 'elementor_woo_paged' => ( !isset( $_GET['product-page'] ) || $_GET['product-page'] == 1 ) ? 1 : (int) $_GET['product-page']
229
  ), $atts) );
230
 
231
  // Elementor.
318
  wp_enqueue_script( 'ajax-load-more-progress' );
319
  }
320
 
321
+ // Single Post.
322
+ $inline_single_posts_css = '';
323
  if ( has_action( 'alm_single_post_installed' ) && $single_post === 'true' ) {
324
+ wp_enqueue_script( 'alm-single-posts' );
325
+
326
+ // Preview CSS.
327
+ if ( ! empty( $single_post_preview ) && $single_post_preview !== 'false' ) {
328
+ if ( ! is_admin() ) {
329
+ $file = ALM_PREV_POST_PATH . 'dist/css/ajax-load-more-single-posts.css';
330
+ $inline_single_posts_css = ALM_ENQUEUE::alm_inline_css( 'ajax-load-more-single-posts', $file, ALM_PREV_POST_URL );
331
+ }
332
+ }
333
  }
334
 
335
  // SEO.
524
  $alm_direction = (!empty($scroll_direction)) ? ' alm-'.$scroll_direction : '';
525
 
526
  // Add Inline CSS.
527
+ $ajaxloadmore .= $inline_css . $inline_layouts_css . $inline_paging_css . $inline_tabs_css . $inline_single_posts_css;
528
 
529
  // Horizontal Scroll CSS.
530
  if ( $scroll_direction === 'horizontal' && ! empty( $scroll_container ) ){
735
  $preloaded_amount = $posts_per_page;
736
  }
737
 
 
 
738
  // $query_args array to store global ALM variables.
739
  $query_args = array(
740
  'post_id' => $post_id,
905
  $nextpage_pageviews,
906
  $nextpage_post_id,
907
  $nextpage_scroll,
908
+ $nextpage_title_template
909
  );
910
  $ajaxloadmore .= $nextpage_return;
911
  }
1025
  $options,
1026
  $single_post_target,
1027
  $single_post_query_order,
1028
+ $query_args,
1029
+ $single_post_preview
1030
  );
1031
  $ajaxloadmore .= $single_post_return;
1032
  }
1079
  );
1080
 
1081
  $elementor_page_link = apply_filters( 'alm_elementor_page_link', $elementor_params['paged'], $elementor_link_label);
 
1082
  $elementor_return = apply_filters( 'alm_elementor_params', $elementor_params );
1083
  $ajaxloadmore .= ' data-elementor="posts"';
1084
  $ajaxloadmore .= $elementor_return;
1094
 
1095
  // Repeaters
1096
  if(!$woo && $elementor !== 'posts'){
1097
+ $ajaxloadmore .= ($theme_repeater === 'null') ? ' data-repeater="' . $repeater . '"' : '';
1098
+ $ajaxloadmore .= ($theme_repeater !== 'null') ? ' data-theme-repeater="' . $theme_repeater . '"' : '';
1099
  }
1100
 
1101
  // Post Type
1212
  // End .alm-listing data
1213
 
1214
 
1215
+ // Preloaded.
 
1216
  $noscript_pagingnav = '';
1217
+ if ( has_action( 'alm_preload_installed' ) && $preloaded === 'true' ) {
1218
  include ALM_PATH .'core/classes/includes/preloaded.php';
1219
  }
1220
 
1221
 
1222
  // Single Post
1223
  // Get first post and append to alm object
1224
+ if ( has_action( 'alm_single_post_installed' ) && $single_post ) {
 
1225
 
1226
  $repeater_type = preg_split('/(?=\d)/', $repeater, 2); // split $repeater at number to retrieve type
1227
  $repeater_type = $repeater_type[0]; // (default | repeater | template_)
1235
  // Get previous post include, build output from the next post filter
1236
  $single_post_output = '<div class="alm-reveal alm-single-post post-'. $single_post_id .'" data-url="'. $single_post_permanlink .'" data-title="'. strip_tags(get_the_title($single_post_id)) .'" data-id="'. $single_post_id .'" data-page="0">'; // Set the post id .alm-reveal div
1237
 
1238
+ /**
1239
+ * Single Post Add-on hook
1240
+ *
1241
+ * @return $args;
1242
+ */
 
 
1243
  if($offset < 1){
1244
  // Only render include if offset is zero
1245
  $single_post_output .= apply_filters('alm_single_post_inc', $repeater, $repeater_type, $theme_repeater, $single_post_id, $post_type);
1246
  }
1247
 
 
1248
  $single_post_output .= '</div>';
1249
  $ajaxloadmore .= $single_post_output; // Add $single_post_output data to $ajaxloadmore
1250
 
1251
  }
1252
  // End Previous Post
1253
 
 
1254
  // Next Page Add-on
1255
  if(has_action('alm_nextpage_installed') && $nextpage){
1256
 
1258
 
1259
  $nextpage_is_paged = ($nextpage_start > 1) ? true : false;
1260
 
1261
+ /**
 
1262
  * Next Page Add-on hook
1263
  *
1264
  * @return boolean;
1265
  */
1266
+ $nextpage_is_paged = apply_filters( 'alm_nextpage_paged', $nextpage_is_paged );
1267
 
1268
+ $alm_nextpage_output = apply_filters( 'alm_init_nextpage', $nextpage_post_id, $nextpage_start, $nextpage_is_paged, $paging, $div_id, $id, $nested );
1269
 
1270
  $ajaxloadmore .= $alm_nextpage_output;
1271
 
1272
  }
1273
  // End Next Page Add-on
1274
 
 
1275
  // Masonry Hook (After)
1276
  $ajaxloadmore .= apply_filters('alm_masonry_after', $transition);
1277
 
 
1278
  // Close ALM container element
1279
  $ajaxloadmore .= '</'.$container_element.'>';
1280
 
 
1281
  // Create Placeholder
1282
  $ajaxloadmore .= self::alm_render_placeholder($placeholder, $paging);
1283
 
1284
+ /**
1285
+ * Generates <noscript/> element of current query.
 
1286
  * ALM Core Filter Hook
1287
  *
1288
  * @return html;
1294
  // Render <noscript> pagination for SEO and Preloaded (./preloaded.php)
1295
  $ajaxloadmore .= (!empty($noscript_pagingnav)) ? $noscript_pagingnav : '';
1296
 
1297
+ /**
 
1298
  * Before Button
1299
  * ALM Core Filter Hook
1300
  *
1302
  */
1303
  $ajaxloadmore .= apply_filters('alm_before_button', '');
1304
 
 
1305
  // Create Load More button
1306
  $ajaxloadmore .= self::alm_render_button($seo, $paging, $button_classname, $button_label, $canonicalURL, $elementor_page_link);
1307
 
1308
+ /**
 
1309
  * After Button
1310
  * ALM Core Filter Hook
1311
  *
1313
  */
1314
  $ajaxloadmore .= apply_filters('alm_after_button', '');
1315
 
 
1316
  // No results text
1317
  if($no_results_text !== '' && !empty($no_results_text)){
1318
  $ajaxloadmore .= '<div class="alm-no-results" style="display: none;">'. html_entity_decode($no_results_text) .'</div>';
1319
  }
1320
 
 
1321
  // Render <noscript> pagination for Nextpage addon
1322
  if(has_action('alm_nextpage_installed') && $nextpage && $nextpage_urls === 'true'){
1323
  $ajaxloadmore .= apply_filters( 'alm_nextpage_noscript_paging', $query_args['post_id'], $query_args['id'] ); // located in Nextpage add-on
1324
  }
1325
 
 
1326
  // Close #ajax-load-more
1327
  $ajaxloadmore .= '</div>';
1328
 
1329
+ /**
1330
+ * After Container.
1331
+ * ALM Core Filter Hook.
 
 
1332
  *
1333
  * @return html;
1334
  */
1335
  $ajaxloadmore .= apply_filters('alm_after_container', '');
1336
 
 
1337
  // Progress Bar CSS
1338
  $ajaxloadmore .= apply_filters('alm_progress_css', self::$counter, $progress_bar, $progress_bar_color); // ALM Core Filter Hook
1339
 
 
1340
  // REST API Add-on
1341
+ // add <script/> template to page
1342
  if(has_action('alm_rest_api_installed') && $restapi){
1343
  if($theme_repeater != 'null' && has_action('alm_get_rest_theme_repeater')){
1344
  do_action('alm_get_rest_theme_repeater', $theme_repeater);
1349
  }
1350
  // End REST API Add-on
1351
 
 
1352
  // Add localized vars
1353
  ALM_LOCALIZE::add_localized_var('id', $master_id, $localize_id);
1354
 
1355
+ /**
1356
+ * Build localized script vars for each ALM instance.
 
 
 
1357
  *
1358
  * @return <script>
1359
  */
1380
  $btn_element = 'button';
1381
  $btn_href = '';
1382
  $btn_rel = ' rel="next"';
1383
+ $html .= '<'. $btn_element .' class="alm-load-more-btn more'. $button_classname .'"'. $btn_href . $btn_rel .' type="button">'. $button_label .'</'. $btn_element .'>';
1384
  }
1385
  $html .= '</div>';
1386
 
1405
 
1406
  }
1407
  endif;
 
core/classes/includes/preloaded.php CHANGED
@@ -12,17 +12,14 @@
12
  $preloaded_output = '';
13
  $preload_offset = $offset;
14
 
15
-
16
  // .alm-reveal default
17
  $alm_reveal = '<div class="alm-reveal alm-preloaded'. $transition_container_classes .'">';
18
 
19
-
20
  // If $seo or $filters, set $preloaded_amount to `$posts_per_page`.
21
  if ( ( has_action( 'alm_seo_installed' ) && $seo === 'true' && ! $users ) || $filters ) {
22
  $preloaded_amount = $posts_per_page;
23
  }
24
 
25
-
26
  // Paging Add-on
27
  // Set $preloaded_amount to $posts_per_page
28
  if($paging === 'true'){
@@ -30,7 +27,6 @@ if($paging === 'true'){
30
  $preload_offset = ($query_args['paged'] > 1) ? $preloaded_amount * ($query_args['paged'] - 1) : $preload_offset;
31
  }
32
 
33
-
34
  // CTA Add-on
35
  // Parse $cta_position
36
  if($cta){
@@ -42,18 +38,15 @@ if($cta){
42
  }
43
  }
44
 
45
-
46
  // Modify $query_args with new offset and posts_per_page
47
  $query_args['offset'] = $preload_offset;
48
  $query_args['posts_per_page'] = $preloaded_amount;
49
 
50
-
51
  // Get Repeater Template Type
52
  $type = alm_get_repeater_type($repeater);
53
 
54
-
55
  // Tabs
56
- if($tabs){
57
 
58
  /*
59
  * alm_tabs_preloaded
@@ -69,7 +62,7 @@ if($tabs){
69
  }
70
 
71
  // Comments
72
- elseif($comments){
73
 
74
  if(has_action('alm_comments_installed') && $comments){
75
 
@@ -103,7 +96,7 @@ elseif($comments){
103
  }
104
 
105
  // Users
106
- elseif($users){
107
 
108
  if(has_action('alm_users_preloaded') && $users){
109
 
@@ -154,7 +147,7 @@ elseif($users){
154
  }
155
 
156
  // Term Query
157
- elseif($term_query){
158
 
159
  if(has_action('alm_terms_preloaded') && $term_query){
160
 
@@ -196,8 +189,8 @@ elseif($term_query){
196
  }
197
  }
198
 
199
- // Advanced Custom Fields (Repeater, Gallery, Flex Content
200
- elseif($acf && ($acf_field_type !== 'relationship')){
201
 
202
  if(has_action('alm_acf_installed') && $acf){
203
 
@@ -299,6 +292,7 @@ else {
299
  }
300
 
301
  while ( $alm_preload_query->have_posts() ) :
 
302
  $alm_preload_query->the_post();
303
 
304
  $alm_item++;
@@ -306,7 +300,7 @@ else {
306
 
307
  // Call to Action [Before].
308
  if( $cta === 'true' && has_action( 'alm_cta_inc' ) && $cta_pos === 'before' ) {
309
- $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 ) : '';
310
  }
311
 
312
  // Repeater Template.
@@ -314,7 +308,7 @@ else {
314
 
315
  // Call to Action [After].
316
  if ( $cta === 'true' && has_action( 'alm_cta_inc' ) && $cta_pos === 'after' ) {
317
- $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 ) : '';
318
  }
319
 
320
  endwhile;
12
  $preloaded_output = '';
13
  $preload_offset = $offset;
14
 
 
15
  // .alm-reveal default
16
  $alm_reveal = '<div class="alm-reveal alm-preloaded'. $transition_container_classes .'">';
17
 
 
18
  // If $seo or $filters, set $preloaded_amount to `$posts_per_page`.
19
  if ( ( has_action( 'alm_seo_installed' ) && $seo === 'true' && ! $users ) || $filters ) {
20
  $preloaded_amount = $posts_per_page;
21
  }
22
 
 
23
  // Paging Add-on
24
  // Set $preloaded_amount to $posts_per_page
25
  if($paging === 'true'){
27
  $preload_offset = ($query_args['paged'] > 1) ? $preloaded_amount * ($query_args['paged'] - 1) : $preload_offset;
28
  }
29
 
 
30
  // CTA Add-on
31
  // Parse $cta_position
32
  if($cta){
38
  }
39
  }
40
 
 
41
  // Modify $query_args with new offset and posts_per_page
42
  $query_args['offset'] = $preload_offset;
43
  $query_args['posts_per_page'] = $preloaded_amount;
44
 
 
45
  // Get Repeater Template Type
46
  $type = alm_get_repeater_type($repeater);
47
 
 
48
  // Tabs
49
+ if ( $tabs ) {
50
 
51
  /*
52
  * alm_tabs_preloaded
62
  }
63
 
64
  // Comments
65
+ elseif ( $comments ) {
66
 
67
  if(has_action('alm_comments_installed') && $comments){
68
 
96
  }
97
 
98
  // Users
99
+ elseif ( $users ) {
100
 
101
  if(has_action('alm_users_preloaded') && $users){
102
 
147
  }
148
 
149
  // Term Query
150
+ elseif ( $term_query ) {
151
 
152
  if(has_action('alm_terms_preloaded') && $term_query){
153
 
189
  }
190
  }
191
 
192
+ // Advanced Custom Fields (Repeater, Gallery, Flex Content)
193
+ elseif ( $acf && ( $acf_field_type !== 'relationship' ) ) {
194
 
195
  if(has_action('alm_acf_installed') && $acf){
196
 
292
  }
293
 
294
  while ( $alm_preload_query->have_posts() ) :
295
+
296
  $alm_preload_query->the_post();
297
 
298
  $alm_item++;
300
 
301
  // Call to Action [Before].
302
  if( $cta === 'true' && has_action( 'alm_cta_inc' ) && $cta_pos === 'before' ) {
303
+ $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, $args ) : '';
304
  }
305
 
306
  // Repeater Template.
308
 
309
  // Call to Action [After].
310
  if ( $cta === 'true' && has_action( 'alm_cta_inc' ) && $cta_pos === 'after' ) {
311
+ $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, $args ) : '';
312
  }
313
 
314
  endwhile;
core/dist/css/ajax-load-more.css CHANGED
@@ -2,7 +2,7 @@
2
  * Ajax Load More
3
  * http://wordpress.org/plugins/ajax-load-more/
4
  *
5
- * Copyright 2015-2020 Connekt Media - https://connekthq.com
6
  * Free to use under the GPLv2 license.
7
  * http://www.gnu.org/licenses/gpl-2.0.html
8
  *
@@ -201,7 +201,7 @@
201
  background-color: #888; }
202
 
203
  /* Infinite */
204
- .ajax-load-more-wrap.infinite .alm-load-more-btn {
205
  width: 100%;
206
  background-color: transparent !important;
207
  background-position: center center;
@@ -217,28 +217,28 @@
217
  text-indent: -9999px;
218
  cursor: default !important;
219
  outline: none !important; }
220
- .ajax-load-more-wrap.infinite .alm-load-more-btn:before {
221
  display: none !important; }
222
- .ajax-load-more-wrap.infinite .alm-load-more-btn:focus, .ajax-load-more-wrap.infinite .alm-load-more-btn:active {
223
  outline: none; }
224
- .ajax-load-more-wrap.infinite .alm-load-more-btn.done {
225
  opacity: 0; }
226
- .ajax-load-more-wrap.infinite .alm-load-more-btn.loading {
227
  opacity: 1; }
228
 
229
- .ajax-load-more-wrap.infinite.skype .alm-load-more-btn {
230
  background-image: url("../../img/spinner-skype.gif"); }
231
 
232
- .ajax-load-more-wrap.infinite.ring .alm-load-more-btn {
233
  background-image: url("../../img/spinner-ring.gif"); }
234
 
235
- .ajax-load-more-wrap.infinite.fading-blocks .alm-load-more-btn {
236
  background-image: url("../../img/loader-fading-blocks.gif"); }
237
 
238
- .ajax-load-more-wrap.infinite.fading-circles .alm-load-more-btn {
239
  background-image: url("../../img/loader-fading-circles.gif"); }
240
 
241
- .ajax-load-more-wrap.infinite.chasing-arrows .alm-load-more-btn {
242
  background-image: url("../../img/spinner-chasing-arrows.gif"); }
243
 
244
  .ajax-load-more-wrap.alm-horizontal .alm-btn-wrap {
2
  * Ajax Load More
3
  * http://wordpress.org/plugins/ajax-load-more/
4
  *
5
+ * Copyright 2015-2021 Connekt Media - https://connekthq.com
6
  * Free to use under the GPLv2 license.
7
  * http://www.gnu.org/licenses/gpl-2.0.html
8
  *
201
  background-color: #888; }
202
 
203
  /* Infinite */
204
+ .ajax-load-more-wrap.infinite > .alm-btn-wrap .alm-load-more-btn {
205
  width: 100%;
206
  background-color: transparent !important;
207
  background-position: center center;
217
  text-indent: -9999px;
218
  cursor: default !important;
219
  outline: none !important; }
220
+ .ajax-load-more-wrap.infinite > .alm-btn-wrap .alm-load-more-btn:before {
221
  display: none !important; }
222
+ .ajax-load-more-wrap.infinite > .alm-btn-wrap .alm-load-more-btn:focus, .ajax-load-more-wrap.infinite > .alm-btn-wrap .alm-load-more-btn:active {
223
  outline: none; }
224
+ .ajax-load-more-wrap.infinite > .alm-btn-wrap .alm-load-more-btn.done {
225
  opacity: 0; }
226
+ .ajax-load-more-wrap.infinite > .alm-btn-wrap .alm-load-more-btn.loading {
227
  opacity: 1; }
228
 
229
+ .ajax-load-more-wrap.infinite.skype > .alm-btn-wrap .alm-load-more-btn {
230
  background-image: url("../../img/spinner-skype.gif"); }
231
 
232
+ .ajax-load-more-wrap.infinite.ring > .alm-btn-wrap .alm-load-more-btn {
233
  background-image: url("../../img/spinner-ring.gif"); }
234
 
235
+ .ajax-load-more-wrap.infinite.fading-blocks > .alm-btn-wrap .alm-load-more-btn {
236
  background-image: url("../../img/loader-fading-blocks.gif"); }
237
 
238
+ .ajax-load-more-wrap.infinite.fading-circles > .alm-btn-wrap .alm-load-more-btn {
239
  background-image: url("../../img/loader-fading-circles.gif"); }
240
 
241
+ .ajax-load-more-wrap.infinite.chasing-arrows > .alm-btn-wrap .alm-load-more-btn {
242
  background-image: url("../../img/spinner-chasing-arrows.gif"); }
243
 
244
  .ajax-load-more-wrap.alm-horizontal .alm-btn-wrap {
core/dist/css/ajax-load-more.min.css CHANGED
@@ -1 +1 @@
1
- .alm-btn-wrap{display:block;text-align:center;padding:10px 0;margin:0 0 15px;position:relative}.alm-btn-wrap:after{display:table;clear:both;height:0;width:100%;content:''}.alm-btn-wrap .alm-load-more-btn{font-size:15px;font-weight:500;width:auto;height:43px;line-height:1;background:#ed7070;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);box-shadow:0 1px 1px rgba(0,0,0,.04);color:#fff;border:none;border-radius:4px;margin:0;padding:0 20px;display:inline-block;position:relative;-webkit-transition:all .3s ease;transition:all .3s ease;text-align:center;text-decoration:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.alm-btn-wrap .alm-load-more-btn.loading,.alm-btn-wrap .alm-load-more-btn:hover{background-color:#e06161;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.09);box-shadow:0 1px 3px rgba(0,0,0,.09);color:#fff;text-decoration:none}.alm-btn-wrap .alm-load-more-btn:active{-webkit-box-shadow:none;box-shadow:none;text-decoration:none}.alm-btn-wrap .alm-load-more-btn.loading{cursor:default;outline:0;padding-left:44px}.alm-btn-wrap .alm-load-more-btn.done{cursor:default;opacity:.15;background-color:#ed7070;outline:0!important;-webkit-box-shadow:none!important;box-shadow:none!important}.alm-btn-wrap .alm-load-more-btn.done:before,.alm-btn-wrap .alm-load-more-btn:before{background:0 0;width:0}.alm-btn-wrap .alm-load-more-btn.loading:before{background:#fff url(../../img/ajax-loader.gif) no-repeat center center;width:30px;height:31px;margin:6px;border-radius:3px;display:inline-block;z-index:0;content:'';position:absolute;left:0;top:0;overflow:hidden;-webkit-transition:width .5s ease-in-out;transition:width .5s ease-in-out}.alm-btn-wrap .alm-elementor-link{display:block;font-size:13px;margin:0 0 15px}@media screen and (min-width:768px){.alm-btn-wrap .alm-elementor-link{position:absolute;left:0;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);margin:0}}.ajax-load-more-wrap.white .alm-load-more-btn{background-color:#fff;color:#787878;border:1px solid #e0e0e0;overflow:hidden;-webkit-transition:none;transition:none;outline:0}.ajax-load-more-wrap.white .alm-load-more-btn.loading,.ajax-load-more-wrap.white .alm-load-more-btn:focus,.ajax-load-more-wrap.white .alm-load-more-btn:hover{background-color:#fff;color:#333;border-color:#aaa}.ajax-load-more-wrap.white .alm-load-more-btn.done{background-color:#fff;color:#444;border-color:#ccc}.ajax-load-more-wrap.white .alm-load-more-btn.loading{color:rgba(255,255,255,0)!important;outline:0!important;background-color:transparent;border-color:transparent!important;-webkit-box-shadow:none!important;box-shadow:none!important;padding-left:20px}.ajax-load-more-wrap.white .alm-load-more-btn.loading:before{margin:0;left:0;top:0;width:100%;height:100%;background-color:transparent;background-image:url(../../img/ajax-loader-lg.gif);background-size:25px 25px;background-position:center center}.ajax-load-more-wrap.light-grey .alm-load-more-btn{background-color:#efefef;color:#787878;border:1px solid #e0e0e0;overflow:hidden;-webkit-transition:all 75ms ease;transition:all 75ms ease;outline:0}.ajax-load-more-wrap.light-grey .alm-load-more-btn.done,.ajax-load-more-wrap.light-grey .alm-load-more-btn.loading,.ajax-load-more-wrap.light-grey .alm-load-more-btn:focus,.ajax-load-more-wrap.light-grey .alm-load-more-btn:hover{background-color:#f1f1f1;color:#222;border-color:#aaa}.ajax-load-more-wrap.light-grey .alm-load-more-btn.loading{color:rgba(255,255,255,0)!important;outline:0!important;background-color:transparent;border-color:transparent!important;-webkit-box-shadow:none!important;box-shadow:none!important;padding-left:20px}.ajax-load-more-wrap.light-grey .alm-load-more-btn.loading:before{margin:0;left:0;top:0;width:100%;height:100%;background-color:transparent;background-image:url(../../img/ajax-loader-lg.gif);background-size:25px 25px;background-position:center center}.ajax-load-more-wrap.blue .alm-load-more-btn{background-color:#1b91ca}.ajax-load-more-wrap.blue .alm-load-more-btn.done,.ajax-load-more-wrap.blue .alm-load-more-btn.loading,.ajax-load-more-wrap.blue .alm-load-more-btn:hover{background-color:#1b84b7}.ajax-load-more-wrap.green .alm-load-more-btn{background-color:#80ca7a}.ajax-load-more-wrap.green .alm-load-more-btn.done,.ajax-load-more-wrap.green .alm-load-more-btn.loading,.ajax-load-more-wrap.green .alm-load-more-btn:hover{background-color:#81c17b}.ajax-load-more-wrap.purple .alm-load-more-btn{background-color:#b97eca}.ajax-load-more-wrap.purple .alm-load-more-btn.done,.ajax-load-more-wrap.purple .alm-load-more-btn.loading,.ajax-load-more-wrap.purple .alm-load-more-btn:hover{background-color:#a477b1}.ajax-load-more-wrap.grey .alm-load-more-btn{background-color:#a09e9e}.ajax-load-more-wrap.grey .alm-load-more-btn.done,.ajax-load-more-wrap.grey .alm-load-more-btn.loading,.ajax-load-more-wrap.grey .alm-load-more-btn:hover{background-color:#888}.ajax-load-more-wrap.infinite .alm-load-more-btn{width:100%;background-color:transparent!important;background-position:center center;background-repeat:no-repeat;background-image:url(../../img/spinner.gif);border:none!important;opacity:0;-webkit-transition:opacity .2s ease;transition:opacity .2s ease;-webkit-box-shadow:none!important;box-shadow:none!important;overflow:hidden;text-indent:-9999px;cursor:default!important;outline:0!important}.ajax-load-more-wrap.infinite .alm-load-more-btn:before{display:none!important}.ajax-load-more-wrap.infinite .alm-load-more-btn:active,.ajax-load-more-wrap.infinite .alm-load-more-btn:focus{outline:0}.ajax-load-more-wrap.infinite .alm-load-more-btn.done{opacity:0}.ajax-load-more-wrap.infinite .alm-load-more-btn.loading{opacity:1}.ajax-load-more-wrap.infinite.skype .alm-load-more-btn{background-image:url(../../img/spinner-skype.gif)}.ajax-load-more-wrap.infinite.ring .alm-load-more-btn{background-image:url(../../img/spinner-ring.gif)}.ajax-load-more-wrap.infinite.fading-blocks .alm-load-more-btn{background-image:url(../../img/loader-fading-blocks.gif)}.ajax-load-more-wrap.infinite.fading-circles .alm-load-more-btn{background-image:url(../../img/loader-fading-circles.gif)}.ajax-load-more-wrap.infinite.chasing-arrows .alm-load-more-btn{background-image:url(../../img/spinner-chasing-arrows.gif)}.ajax-load-more-wrap.alm-horizontal .alm-btn-wrap{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:0;margin:0}.ajax-load-more-wrap.alm-horizontal .alm-btn-wrap button{margin:0}.ajax-load-more-wrap.alm-horizontal .alm-btn-wrap button.done{display:none}.alm-listing .alm-reveal{outline:0}.alm-listing .alm-reveal:after{display:table;clear:both;height:0;width:100%;content:''}.alm-listing{margin:0;padding:0}.alm-listing .alm-paging-content>li,.alm-listing .alm-reveal>li,.alm-listing>li{position:relative}.alm-listing .alm-paging-content>li.alm-item,.alm-listing .alm-reveal>li.alm-item,.alm-listing>li.alm-item{background:0 0;margin:0 0 30px;padding:0 0 0 80px;position:relative;list-style:none}@media screen and (min-width:480px){.alm-listing .alm-paging-content>li.alm-item,.alm-listing .alm-reveal>li.alm-item,.alm-listing>li.alm-item{padding:0 0 0 100px}}@media screen and (min-width:768px){.alm-listing .alm-paging-content>li.alm-item,.alm-listing .alm-reveal>li.alm-item,.alm-listing>li.alm-item{padding:0 0 0 135px}}@media screen and (min-width:1024px){.alm-listing .alm-paging-content>li.alm-item,.alm-listing .alm-reveal>li.alm-item,.alm-listing>li.alm-item{padding:0 0 0 160px}}.alm-listing .alm-paging-content>li.alm-item h3,.alm-listing .alm-reveal>li.alm-item h3,.alm-listing>li.alm-item h3{margin:0}.alm-listing .alm-paging-content>li.alm-item p,.alm-listing .alm-reveal>li.alm-item p,.alm-listing>li.alm-item p{margin:10px 0 0}.alm-listing .alm-paging-content>li.alm-item p.entry-meta,.alm-listing .alm-reveal>li.alm-item p.entry-meta,.alm-listing>li.alm-item p.entry-meta{opacity:.75}.alm-listing .alm-paging-content>li.alm-item img,.alm-listing .alm-reveal>li.alm-item img,.alm-listing>li.alm-item img{position:absolute;left:0;top:0;border-radius:2px;max-width:65px}@media screen and (min-width:480px){.alm-listing .alm-paging-content>li.alm-item img,.alm-listing .alm-reveal>li.alm-item img,.alm-listing>li.alm-item img{max-width:85px}}@media screen and (min-width:768px){.alm-listing .alm-paging-content>li.alm-item img,.alm-listing .alm-reveal>li.alm-item img,.alm-listing>li.alm-item img{max-width:115px}}@media screen and (min-width:1024px){.alm-listing .alm-paging-content>li.alm-item img,.alm-listing .alm-reveal>li.alm-item img,.alm-listing>li.alm-item img{max-width:140px}}.alm-listing .alm-paging-content>li.no-img,.alm-listing .alm-reveal>li.no-img,.alm-listing>li.no-img{padding:0}.alm-listing.products li.product{padding-left:inherit}.alm-listing.products li.product img{position:static;border-radius:inherit}.alm-listing.stylefree .alm-paging-content>li,.alm-listing.stylefree .alm-reveal>li,.alm-listing.stylefree>li{padding:inherit;margin:inherit}.alm-listing.stylefree .alm-paging-content>li img,.alm-listing.stylefree .alm-reveal>li img,.alm-listing.stylefree>li img{padding:inherit;margin:inherit;position:static;border-radius:inherit}.alm-listing.rtl .alm-paging-content>li,.alm-listing.rtl .alm-reveal>li{padding:0 170px 0 0;text-align:right}.alm-listing.rtl .alm-paging-content>li img,.alm-listing.rtl .alm-reveal>li img{left:auto;right:0}.alm-listing.rtl.products li.product{padding-right:inherit}.alm-masonry{display:block;overflow:hidden;clear:both}.alm-placeholder{opacity:0;-webkit-transition:opacity .2s ease;transition:opacity .2s ease;display:none}.ajax-load-more-wrap.alm-horizontal{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:100%}.ajax-load-more-wrap.alm-horizontal .alm-listing,.ajax-load-more-wrap.alm-horizontal .alm-listing .alm-reveal{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.ajax-load-more-wrap.alm-horizontal .alm-listing .alm-reveal>li.alm-item,.ajax-load-more-wrap.alm-horizontal .alm-listing>li.alm-item{padding:0;text-align:center;margin:0 2px;padding:20px 20px 30px;height:auto;background-color:#fff;border:1px solid #efefef;border-radius:4px;width:300px}.ajax-load-more-wrap.alm-horizontal .alm-listing .alm-reveal>li.alm-item img,.ajax-load-more-wrap.alm-horizontal .alm-listing>li.alm-item img{position:static;border-radius:100%;max-width:125px;margin:0 auto 15px;border-radius:4px;-webkit-box-shadow:0 2px 10px rgba(0,0,0,.075);box-shadow:0 2px 10px rgba(0,0,0,.075)}.ajax-load-more-wrap.alm-horizontal .alm-listing .alm-reveal:after{display:none}.alm-toc{display:-webkit-box;display:-ms-flexbox;display:flex;width:auto;padding:10px 0}.alm-toc button{background:#f7f7f7;border-radius:4px;-webkit-transition:all .15s ease;transition:all .15s ease;outline:0;border:1px solid #efefef;-webkit-box-shadow:none;box-shadow:none;color:#454545;cursor:pointer;font-size:14px;font-weight:500;padding:7px 10px;line-height:1;margin:0 5px 0 0;height:auto}.alm-toc button:focus,.alm-toc button:hover{border-color:#ccc;color:#222}.alm-toc button:hover{text-decoration:underline}.alm-toc button:focus{-webkit-box-shadow:0 0 0 3px rgba(0,0,0,.05);box-shadow:0 0 0 3px rgba(0,0,0,.05)}
1
+ .alm-btn-wrap{display:block;text-align:center;padding:10px 0;margin:0 0 15px;position:relative}.alm-btn-wrap:after{display:table;clear:both;height:0;width:100%;content:''}.alm-btn-wrap .alm-load-more-btn{font-size:15px;font-weight:500;width:auto;height:43px;line-height:1;background:#ed7070;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);box-shadow:0 1px 1px rgba(0,0,0,.04);color:#fff;border:none;border-radius:4px;margin:0;padding:0 20px;display:inline-block;position:relative;-webkit-transition:all .3s ease;transition:all .3s ease;text-align:center;text-decoration:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.alm-btn-wrap .alm-load-more-btn.loading,.alm-btn-wrap .alm-load-more-btn:hover{background-color:#e06161;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.09);box-shadow:0 1px 3px rgba(0,0,0,.09);color:#fff;text-decoration:none}.alm-btn-wrap .alm-load-more-btn:active{-webkit-box-shadow:none;box-shadow:none;text-decoration:none}.alm-btn-wrap .alm-load-more-btn.loading{cursor:default;outline:0;padding-left:44px}.alm-btn-wrap .alm-load-more-btn.done{cursor:default;opacity:.15;background-color:#ed7070;outline:0!important;-webkit-box-shadow:none!important;box-shadow:none!important}.alm-btn-wrap .alm-load-more-btn.done:before,.alm-btn-wrap .alm-load-more-btn:before{background:0 0;width:0}.alm-btn-wrap .alm-load-more-btn.loading:before{background:#fff url(../../img/ajax-loader.gif) no-repeat center center;width:30px;height:31px;margin:6px;border-radius:3px;display:inline-block;z-index:0;content:'';position:absolute;left:0;top:0;overflow:hidden;-webkit-transition:width .5s ease-in-out;transition:width .5s ease-in-out}.alm-btn-wrap .alm-elementor-link{display:block;font-size:13px;margin:0 0 15px}@media screen and (min-width:768px){.alm-btn-wrap .alm-elementor-link{position:absolute;left:0;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);margin:0}}.ajax-load-more-wrap.white .alm-load-more-btn{background-color:#fff;color:#787878;border:1px solid #e0e0e0;overflow:hidden;-webkit-transition:none;transition:none;outline:0}.ajax-load-more-wrap.white .alm-load-more-btn.loading,.ajax-load-more-wrap.white .alm-load-more-btn:focus,.ajax-load-more-wrap.white .alm-load-more-btn:hover{background-color:#fff;color:#333;border-color:#aaa}.ajax-load-more-wrap.white .alm-load-more-btn.done{background-color:#fff;color:#444;border-color:#ccc}.ajax-load-more-wrap.white .alm-load-more-btn.loading{color:rgba(255,255,255,0)!important;outline:0!important;background-color:transparent;border-color:transparent!important;-webkit-box-shadow:none!important;box-shadow:none!important;padding-left:20px}.ajax-load-more-wrap.white .alm-load-more-btn.loading:before{margin:0;left:0;top:0;width:100%;height:100%;background-color:transparent;background-image:url(../../img/ajax-loader-lg.gif);background-size:25px 25px;background-position:center center}.ajax-load-more-wrap.light-grey .alm-load-more-btn{background-color:#efefef;color:#787878;border:1px solid #e0e0e0;overflow:hidden;-webkit-transition:all 75ms ease;transition:all 75ms ease;outline:0}.ajax-load-more-wrap.light-grey .alm-load-more-btn.done,.ajax-load-more-wrap.light-grey .alm-load-more-btn.loading,.ajax-load-more-wrap.light-grey .alm-load-more-btn:focus,.ajax-load-more-wrap.light-grey .alm-load-more-btn:hover{background-color:#f1f1f1;color:#222;border-color:#aaa}.ajax-load-more-wrap.light-grey .alm-load-more-btn.loading{color:rgba(255,255,255,0)!important;outline:0!important;background-color:transparent;border-color:transparent!important;-webkit-box-shadow:none!important;box-shadow:none!important;padding-left:20px}.ajax-load-more-wrap.light-grey .alm-load-more-btn.loading:before{margin:0;left:0;top:0;width:100%;height:100%;background-color:transparent;background-image:url(../../img/ajax-loader-lg.gif);background-size:25px 25px;background-position:center center}.ajax-load-more-wrap.blue .alm-load-more-btn{background-color:#1b91ca}.ajax-load-more-wrap.blue .alm-load-more-btn.done,.ajax-load-more-wrap.blue .alm-load-more-btn.loading,.ajax-load-more-wrap.blue .alm-load-more-btn:hover{background-color:#1b84b7}.ajax-load-more-wrap.green .alm-load-more-btn{background-color:#80ca7a}.ajax-load-more-wrap.green .alm-load-more-btn.done,.ajax-load-more-wrap.green .alm-load-more-btn.loading,.ajax-load-more-wrap.green .alm-load-more-btn:hover{background-color:#81c17b}.ajax-load-more-wrap.purple .alm-load-more-btn{background-color:#b97eca}.ajax-load-more-wrap.purple .alm-load-more-btn.done,.ajax-load-more-wrap.purple .alm-load-more-btn.loading,.ajax-load-more-wrap.purple .alm-load-more-btn:hover{background-color:#a477b1}.ajax-load-more-wrap.grey .alm-load-more-btn{background-color:#a09e9e}.ajax-load-more-wrap.grey .alm-load-more-btn.done,.ajax-load-more-wrap.grey .alm-load-more-btn.loading,.ajax-load-more-wrap.grey .alm-load-more-btn:hover{background-color:#888}.ajax-load-more-wrap.infinite>.alm-btn-wrap .alm-load-more-btn{width:100%;background-color:transparent!important;background-position:center center;background-repeat:no-repeat;background-image:url(../../img/spinner.gif);border:none!important;opacity:0;-webkit-transition:opacity .2s ease;transition:opacity .2s ease;-webkit-box-shadow:none!important;box-shadow:none!important;overflow:hidden;text-indent:-9999px;cursor:default!important;outline:0!important}.ajax-load-more-wrap.infinite>.alm-btn-wrap .alm-load-more-btn:before{display:none!important}.ajax-load-more-wrap.infinite>.alm-btn-wrap .alm-load-more-btn:active,.ajax-load-more-wrap.infinite>.alm-btn-wrap .alm-load-more-btn:focus{outline:0}.ajax-load-more-wrap.infinite>.alm-btn-wrap .alm-load-more-btn.done{opacity:0}.ajax-load-more-wrap.infinite>.alm-btn-wrap .alm-load-more-btn.loading{opacity:1}.ajax-load-more-wrap.infinite.skype>.alm-btn-wrap .alm-load-more-btn{background-image:url(../../img/spinner-skype.gif)}.ajax-load-more-wrap.infinite.ring>.alm-btn-wrap .alm-load-more-btn{background-image:url(../../img/spinner-ring.gif)}.ajax-load-more-wrap.infinite.fading-blocks>.alm-btn-wrap .alm-load-more-btn{background-image:url(../../img/loader-fading-blocks.gif)}.ajax-load-more-wrap.infinite.fading-circles>.alm-btn-wrap .alm-load-more-btn{background-image:url(../../img/loader-fading-circles.gif)}.ajax-load-more-wrap.infinite.chasing-arrows>.alm-btn-wrap .alm-load-more-btn{background-image:url(../../img/spinner-chasing-arrows.gif)}.ajax-load-more-wrap.alm-horizontal .alm-btn-wrap{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:0;margin:0}.ajax-load-more-wrap.alm-horizontal .alm-btn-wrap button{margin:0}.ajax-load-more-wrap.alm-horizontal .alm-btn-wrap button.done{display:none}.alm-listing .alm-reveal{outline:0}.alm-listing .alm-reveal:after{display:table;clear:both;height:0;width:100%;content:''}.alm-listing{margin:0;padding:0}.alm-listing .alm-paging-content>li,.alm-listing .alm-reveal>li,.alm-listing>li{position:relative}.alm-listing .alm-paging-content>li.alm-item,.alm-listing .alm-reveal>li.alm-item,.alm-listing>li.alm-item{background:0 0;margin:0 0 30px;padding:0 0 0 80px;position:relative;list-style:none}@media screen and (min-width:480px){.alm-listing .alm-paging-content>li.alm-item,.alm-listing .alm-reveal>li.alm-item,.alm-listing>li.alm-item{padding:0 0 0 100px}}@media screen and (min-width:768px){.alm-listing .alm-paging-content>li.alm-item,.alm-listing .alm-reveal>li.alm-item,.alm-listing>li.alm-item{padding:0 0 0 135px}}@media screen and (min-width:1024px){.alm-listing .alm-paging-content>li.alm-item,.alm-listing .alm-reveal>li.alm-item,.alm-listing>li.alm-item{padding:0 0 0 160px}}.alm-listing .alm-paging-content>li.alm-item h3,.alm-listing .alm-reveal>li.alm-item h3,.alm-listing>li.alm-item h3{margin:0}.alm-listing .alm-paging-content>li.alm-item p,.alm-listing .alm-reveal>li.alm-item p,.alm-listing>li.alm-item p{margin:10px 0 0}.alm-listing .alm-paging-content>li.alm-item p.entry-meta,.alm-listing .alm-reveal>li.alm-item p.entry-meta,.alm-listing>li.alm-item p.entry-meta{opacity:.75}.alm-listing .alm-paging-content>li.alm-item img,.alm-listing .alm-reveal>li.alm-item img,.alm-listing>li.alm-item img{position:absolute;left:0;top:0;border-radius:2px;max-width:65px}@media screen and (min-width:480px){.alm-listing .alm-paging-content>li.alm-item img,.alm-listing .alm-reveal>li.alm-item img,.alm-listing>li.alm-item img{max-width:85px}}@media screen and (min-width:768px){.alm-listing .alm-paging-content>li.alm-item img,.alm-listing .alm-reveal>li.alm-item img,.alm-listing>li.alm-item img{max-width:115px}}@media screen and (min-width:1024px){.alm-listing .alm-paging-content>li.alm-item img,.alm-listing .alm-reveal>li.alm-item img,.alm-listing>li.alm-item img{max-width:140px}}.alm-listing .alm-paging-content>li.no-img,.alm-listing .alm-reveal>li.no-img,.alm-listing>li.no-img{padding:0}.alm-listing.products li.product{padding-left:inherit}.alm-listing.products li.product img{position:static;border-radius:inherit}.alm-listing.stylefree .alm-paging-content>li,.alm-listing.stylefree .alm-reveal>li,.alm-listing.stylefree>li{padding:inherit;margin:inherit}.alm-listing.stylefree .alm-paging-content>li img,.alm-listing.stylefree .alm-reveal>li img,.alm-listing.stylefree>li img{padding:inherit;margin:inherit;position:static;border-radius:inherit}.alm-listing.rtl .alm-paging-content>li,.alm-listing.rtl .alm-reveal>li{padding:0 170px 0 0;text-align:right}.alm-listing.rtl .alm-paging-content>li img,.alm-listing.rtl .alm-reveal>li img{left:auto;right:0}.alm-listing.rtl.products li.product{padding-right:inherit}.alm-masonry{display:block;overflow:hidden;clear:both}.alm-placeholder{opacity:0;-webkit-transition:opacity .2s ease;transition:opacity .2s ease;display:none}.ajax-load-more-wrap.alm-horizontal{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:100%}.ajax-load-more-wrap.alm-horizontal .alm-listing,.ajax-load-more-wrap.alm-horizontal .alm-listing .alm-reveal{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.ajax-load-more-wrap.alm-horizontal .alm-listing .alm-reveal>li.alm-item,.ajax-load-more-wrap.alm-horizontal .alm-listing>li.alm-item{padding:0;text-align:center;margin:0 2px;padding:20px 20px 30px;height:auto;background-color:#fff;border:1px solid #efefef;border-radius:4px;width:300px}.ajax-load-more-wrap.alm-horizontal .alm-listing .alm-reveal>li.alm-item img,.ajax-load-more-wrap.alm-horizontal .alm-listing>li.alm-item img{position:static;border-radius:100%;max-width:125px;margin:0 auto 15px;border-radius:4px;-webkit-box-shadow:0 2px 10px rgba(0,0,0,.075);box-shadow:0 2px 10px rgba(0,0,0,.075)}.ajax-load-more-wrap.alm-horizontal .alm-listing .alm-reveal:after{display:none}.alm-toc{display:-webkit-box;display:-ms-flexbox;display:flex;width:auto;padding:10px 0}.alm-toc button{background:#f7f7f7;border-radius:4px;-webkit-transition:all .15s ease;transition:all .15s ease;outline:0;border:1px solid #efefef;-webkit-box-shadow:none;box-shadow:none;color:#454545;cursor:pointer;font-size:14px;font-weight:500;padding:7px 10px;line-height:1;margin:0 5px 0 0;height:auto}.alm-toc button:focus,.alm-toc button:hover{border-color:#ccc;color:#222}.alm-toc button:hover{text-decoration:underline}.alm-toc button:focus{-webkit-box-shadow:0 0 0 3px rgba(0,0,0,.05);box-shadow:0 0 0 3px rgba(0,0,0,.05)}
core/dist/js/ajax-load-more.js CHANGED
@@ -912,9 +912,8 @@ Object.defineProperty(exports, "__esModule", {
912
  value: true
913
  });
914
  exports.singlePostHTML = singlePostHTML;
915
- /**
916
- * singlePostHTML
917
- * Create the HTML for loading Single Posts
918
  *
919
  * @param {Object} response Query response
920
  * @param {HTMLElement} target The target div
@@ -931,19 +930,71 @@ function singlePostHTML(response) {
931
  debug: 'Single Posts Query'
932
  }
933
  };
 
934
  if (response.status === 200 && response.data && target) {
935
- var div = document.createElement("div");
 
936
  div.innerHTML = response.data;
937
- var htmlTarget = div.querySelector(target);
938
- if (htmlTarget) {
939
- data.html = htmlTarget.innerHTML;
 
 
 
 
 
 
 
 
 
 
 
940
  }
941
  }
942
  return data;
943
  }
944
-
945
  exports.default = singlePostHTML;
946
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
947
  /***/ }),
948
 
949
  /***/ "./core/src/js/addons/woocommerce.js":
@@ -1020,25 +1071,36 @@ function wooInit(alm) {
1020
  }
1021
 
1022
  // Set up URL and class parameters on first item in product listing
1023
- var products = document.querySelector(alm.addons.woocommerce_settings.container); // Get `ul.products`
1024
- if (products) {
1025
- products.setAttribute('aria-live', 'polite');
1026
- products.setAttribute('aria-atomic', 'true');
 
 
 
 
 
 
 
1027
 
1028
  alm.listing.removeAttribute('aria-live');
1029
  alm.listing.removeAttribute('aria-atomic');
1030
 
1031
- var product = products.querySelector(alm.addons.woocommerce_settings.products); // Get first `.product` item
1032
- if (product) {
1033
- product.classList.add('alm-woocommerce');
1034
- product.dataset.url = alm.addons.woocommerce_settings.paged_urls[alm.addons.woocommerce_settings.paged - 1];
1035
- product.dataset.page = alm.page;
1036
- product.dataset.pageTitle = document.title;
 
 
1037
  }
1038
 
1039
  if (alm.addons.woocommerce_settings.paged > 1) {
1040
  almWooCommerceResultsTextInit(alm);
1041
  }
 
 
1042
  }
1043
  }
1044
 
@@ -1217,6 +1279,23 @@ function returnButton(text, link, label, seperator) {
1217
  return text.innerHTML + button;
1218
  }
1219
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1220
  /***/ }),
1221
 
1222
  /***/ "./core/src/js/ajax-load-more.js":
@@ -1404,6 +1483,8 @@ __webpack_require__(/*! ./helpers/polyfills.js */ "./core/src/js/helpers/polyfil
1404
  // External Modules
1405
  var qs = __webpack_require__(/*! qs */ "./node_modules/qs/lib/index.js");
1406
  var imagesLoaded = __webpack_require__(/*! imagesloaded */ "./node_modules/imagesloaded/imagesloaded.js");
 
 
1407
  // Smooth scrolling polyfill
1408
  _smoothscrollPolyfill2.default.polyfill();
1409
 
@@ -1564,6 +1645,7 @@ var alm_is_filtering = false;
1564
  alm.addons.nextpage_pageviews = alm.listing.dataset.nextpagePageviews;
1565
  alm.addons.nextpage_post_id = alm.listing.dataset.nextpagePostId;
1566
  alm.addons.nextpage_startpage = alm.listing.dataset.nextpageStartpage;
 
1567
  }
1568
 
1569
  // Single Posts add-on
@@ -1571,12 +1653,22 @@ var alm_is_filtering = false;
1571
  if (alm.addons.single_post === 'true') {
1572
  alm.addons.single_post_id = alm.listing.dataset.singlePostId;
1573
  alm.addons.single_post_query = alm.listing.dataset.singlePostQuery;
1574
- alm.addons.single_post_order = alm.listing.dataset.singlePostOrder;
1575
  alm.addons.single_post_init_id = alm.listing.dataset.singlePostId;
1576
- alm.addons.single_post_taxonomy = alm.listing.dataset.singlePostTaxonomy;
1577
- alm.addons.single_post_excluded_terms = alm.listing.dataset.singlePostExcludedTerms;
1578
- alm.addons.single_post_progress_bar = alm.listing.dataset.singlePostProgressBar;
1579
- alm.addons.single_post_target = alm.listing.dataset.singlePostTarget;
 
 
 
 
 
 
 
 
 
 
1580
  }
1581
 
1582
  // Comments add-on
@@ -1792,6 +1884,7 @@ var alm_is_filtering = false;
1792
  if (alm.addons.nextpage_startpage > 1) {
1793
  alm.isPaged = true;
1794
  }
 
1795
  } else {
1796
  alm.addons.nextpage = false;
1797
  }
@@ -1803,11 +1896,6 @@ var alm_is_filtering = false;
1803
  alm.addons.single_post_permalink = '';
1804
  alm.addons.single_post_title = '';
1805
  alm.addons.single_post_slug = '';
1806
- alm.addons.single_post_order = alm.addons.single_post_order === undefined ? 'previous' : alm.addons.single_post_order;
1807
- alm.addons.single_post_taxonomy = alm.addons.single_post_taxonomy === undefined ? '' : alm.addons.single_post_taxonomy;
1808
- alm.addons.single_post_excluded_terms = alm.addons.single_post_excluded_terms === undefined ? '' : alm.addons.single_post_excluded_terms;
1809
- alm.addons.single_post_progress_bar = alm.addons.single_post_progress_bar === undefined ? '' : alm.addons.single_post_progress_bar;
1810
- alm.addons.single_post_target = alm.addons.single_post_target === undefined ? '' : alm.addons.single_post_target;
1811
  alm.addons.single_post_title_template = alm.listing.dataset.singlePostTitleTemplate;
1812
  alm.addons.single_post_siteTitle = alm.listing.dataset.singlePostSiteTitle;
1813
  alm.addons.single_post_siteTagline = alm.listing.dataset.singlePostSiteTagline;
@@ -1968,11 +2056,10 @@ var alm_is_filtering = false;
1968
  }
1969
 
1970
  /**
1971
- * LoadPosts()
1972
  * The function to get posts via Ajax
 
1973
  * @since 2.0.0
1974
  */
1975
-
1976
  alm.AjaxLoadMore.loadPosts = function () {
1977
  if (typeof almOnChange === 'function') {
1978
  window.almOnChange(alm);
@@ -2014,13 +2101,12 @@ var alm_is_filtering = false;
2014
  }
2015
  };
2016
 
2017
- /* ajax()
2018
- * Ajax Load Moe Ajax function
2019
  *
2020
- * @param queryType The type of Ajax request (standard/totalposts)
2021
- * @since 2.6.0
2022
  */
2023
-
2024
  alm.AjaxLoadMore.ajax = function (queryType) {
2025
  // Default ALM action
2026
  var action = 'alm_get_posts';
@@ -2063,7 +2149,8 @@ var alm_is_filtering = false;
2063
  scroll: alm.addons.nextpage_scroll,
2064
  pageviews: alm.addons.nextpage_pageviews,
2065
  post_id: alm.addons.nextpage_post_id,
2066
- startpage: alm.addons.nextpage_startpage
 
2067
  };
2068
  }
2069
 
@@ -2134,7 +2221,6 @@ var alm_is_filtering = false;
2134
  };
2135
 
2136
  /**
2137
- * adminajax
2138
  * Send request to the admin-ajax.php
2139
  *
2140
  * @param {*} alm | ALm object
@@ -2213,6 +2299,7 @@ var alm_is_filtering = false;
2213
  // Next Page and Paging
2214
  if (typeof almBuildPagination === 'function') {
2215
  window.almBuildPagination(data.totalpages, alm);
 
2216
  }
2217
  } else if (queryType === 'totalposts' && alm.addons.paging) {
2218
  // Paging
@@ -2227,8 +2314,7 @@ var alm_is_filtering = false;
2227
  };
2228
 
2229
  /**
2230
- * tabs
2231
- * Send request to the WP REST API
2232
  *
2233
  * @param {*} alm | ALm object
2234
  * @since 5.2.0
@@ -2280,7 +2366,6 @@ var alm_is_filtering = false;
2280
  };
2281
 
2282
  /**
2283
- * restapi
2284
  * Send request to the WP REST API
2285
  *
2286
  * @param {*} alm | ALm object
@@ -2309,11 +2394,11 @@ var alm_is_filtering = false;
2309
  _axios2.default.get(alm_rest_url, { params: params }).then(function (response) {
2310
  // Success
2311
  var results = response.data; // Get data from response
2312
- var data = '',
2313
- html = results.html,
2314
- meta = results.meta,
2315
- postcount = meta.postcount,
2316
- totalposts = meta.totalposts;
2317
 
2318
  // loop results to get data from each
2319
  for (var i = 0; i < html.length; i++) {
@@ -2350,11 +2435,10 @@ var alm_is_filtering = false;
2350
  }
2351
 
2352
  /**
2353
- * success
2354
- * Success function after loading data
2355
  *
2356
- * @param data The results of the Ajax request
2357
- * @param is_cache Are results of the Ajax request coming from cache
2358
  * @since 2.6.0
2359
  */
2360
  alm.AjaxLoadMore.success = function (data, is_cache) {
@@ -2378,7 +2462,9 @@ var alm_is_filtering = false;
2378
  // Paging container
2379
  var pagingContent = alm.listing.querySelector('.alm-paging-content');
2380
 
2381
- var html, meta, total, totalLoaded;
 
 
2382
 
2383
  if (is_cache) {
2384
  // If Cache, do not look for json data as we won't be querying the DB.
@@ -2387,11 +2473,17 @@ var alm_is_filtering = false;
2387
  // Standard ALM query results
2388
  html = data.html;
2389
  meta = data.meta;
2390
- alm.posts = alm.addons.paging ? meta.postcount : alm.posts + meta.postcount;
2391
- total = meta.postcount;
2392
- alm.totalposts = meta.totalposts;
2393
- alm.totalposts = alm.addons.preloaded === 'true' ? alm.totalposts - alm.addons.preloaded_amount : alm.totalposts;
 
2394
  alm.debug = meta.debug ? meta.debug : '';
 
 
 
 
 
2395
  }
2396
 
2397
  // Set alm.html as plain text return
@@ -2481,9 +2573,9 @@ var alm_is_filtering = false;
2481
  // We have results!
2482
 
2483
  if (!alm.addons.paging) {
 
2484
  if (alm.addons.single_post) {
2485
- // Single Posts
2486
- reveal.setAttribute('class', 'alm-reveal alm-single-post post-' + alm.addons.single_post_id + alm.tcc);
2487
  reveal.dataset.url = alm.addons.single_post_permalink;
2488
  if (alm.addons.single_post_target) {
2489
  reveal.dataset.page = parseInt(alm.page) + 1;
@@ -2493,6 +2585,12 @@ var alm_is_filtering = false;
2493
  reveal.dataset.id = alm.addons.single_post_id;
2494
  reveal.dataset.title = alm.addons.single_post_title;
2495
  reveal.innerHTML = alm.html;
 
 
 
 
 
 
2496
  } else {
2497
  if (!alm.transition_container) {
2498
  // No transition container
@@ -2521,7 +2619,7 @@ var alm_is_filtering = false;
2521
  // Call to Actions
2522
  if (alm.addons.cta === 'true') {
2523
  posts_per_page = posts_per_page + 1; // Add 1 to posts_per_page for CTAs
2524
- pages = Math.ceil(total / posts_per_page); // Update pages var with new posts_per_page
2525
  total = pages + total; // Get new total w/ CTAs added
2526
  }
2527
 
@@ -2730,7 +2828,7 @@ var alm_is_filtering = false;
2730
  if (alm.transition !== 'masonry' || alm.init && !alm.is_masonry_preloaded) {
2731
  if (!isPaged) {
2732
  if (!alm.transition_container) {
2733
- // No transition container
2734
  if (alm.images_loaded === 'true') {
2735
  imagesLoaded(reveal, function () {
2736
  (0, _almAppendChildren2.default)(alm.listing, reveal);
@@ -2741,11 +2839,11 @@ var alm_is_filtering = false;
2741
  } else {
2742
  (0, _almAppendChildren2.default)(alm.listing, reveal);
2743
 
2744
- // Run srcSet polyfill
2745
  (0, _srcsetPolyfill2.default)(alm.listing, alm.ua);
2746
  }
2747
  } else {
2748
- // Standard container
2749
  alm.listing.appendChild(reveal);
2750
  }
2751
  }
@@ -2789,7 +2887,7 @@ var alm_is_filtering = false;
2789
  }
2790
 
2791
  // None
2792
- else if (alm.transition === 'none') {
2793
  if (alm.images_loaded === 'true') {
2794
  imagesLoaded(reveal, function () {
2795
  (0, _fadeIn2.default)(reveal, 0);
@@ -2801,7 +2899,7 @@ var alm_is_filtering = false;
2801
  }
2802
  }
2803
 
2804
- // Default(Fade)
2805
  else {
2806
  if (alm.images_loaded === 'true') {
2807
  imagesLoaded(reveal, function () {
@@ -3127,7 +3225,7 @@ var alm_is_filtering = false;
3127
  if (!reveal || !alm.transition_container) {
3128
  return false; // Exit if not `transition_container`
3129
  }
3130
- var nested = reveal.querySelectorAll('.ajax-load-more-wrap'); // Get all instances from jQuery obj
3131
  if (nested) {
3132
  nested.forEach(function (element) {
3133
  window.almInit(element);
@@ -3151,10 +3249,9 @@ var alm_is_filtering = false;
3151
  if (alm.fetchingPreviousPost) {
3152
  return false;
3153
  }
3154
-
3155
  alm.fetchingPreviousPost = true;
3156
 
3157
- // Get admin-ajax.php URL
3158
  var ajaxURL = alm_localize.ajaxurl;
3159
 
3160
  // Get data params
@@ -3203,19 +3300,19 @@ var alm_is_filtering = false;
3203
  * @since 2.14.0
3204
  */
3205
  alm.AjaxLoadMore.triggerAddons = function (alm) {
3206
- if (typeof almSetNextPage === 'function') {
3207
  // Next Page
3208
  window.almSetNextPage(alm);
3209
  }
3210
- if (typeof almSEO === 'function') {
3211
  // SEO
3212
  window.almSEO(alm, false);
3213
  }
3214
- if (typeof almWooCommerce === 'function') {
3215
  // WooCommerce
3216
  window.almWooCommerce(alm);
3217
  }
3218
- if (typeof almElementor === 'function') {
3219
  // Elementor
3220
  window.almElementor(alm);
3221
  }
@@ -3471,7 +3568,7 @@ var alm_is_filtering = false;
3471
  });
3472
  alm.window.addEventListener('keyup', function (e) {
3473
  // End, Page Down
3474
- var code = e.keyCode ? e.keyCode : e.which;
3475
  switch (code) {
3476
  case 35:
3477
  case 34:
@@ -3562,8 +3659,10 @@ var alm_is_filtering = false;
3562
  alm.finished = true;
3563
  alm.button.classList.add('done');
3564
  } else {
 
 
 
3565
  if (alm.pause === 'true') {
3566
- alm.button.innerHTML = alm.button_label;
3567
  alm.loading = false;
3568
  } else {
3569
  alm.AjaxLoadMore.loadPosts();
@@ -3581,10 +3680,7 @@ var alm_is_filtering = false;
3581
  alm.AjaxLoadMore.triggerDone();
3582
  }
3583
 
3584
- /*
3585
- * Display tableOfContents
3586
- */
3587
-
3588
  (0, _tableofcontents.tableOfContents)(alm, true, true);
3589
  }
3590
 
@@ -3624,10 +3720,7 @@ var alm_is_filtering = false;
3624
  resultsText.almInitResultsText(alm, 'preloaded');
3625
  }
3626
 
3627
- /*
3628
- * Display tableOfContents
3629
- */
3630
-
3631
  (0, _tableofcontents.tableOfContents)(alm, alm.init, true);
3632
  }
3633
 
@@ -3639,7 +3732,7 @@ var alm_is_filtering = false;
3639
 
3640
  if (nextpage_pages) {
3641
  var nextpage_first = nextpage_pages[0];
3642
- var nextpage_total = alm.localize.total_posts ? parseInt(alm.localize.total_posts) : nextpage_first.dataset.totalPosts;
3643
 
3644
  // Disable if last page loaded
3645
  if (nextpage_pages.length === nextpage_total || parseInt(nextpage_first.dataset.id) === nextpage_total) {
@@ -3648,31 +3741,27 @@ var alm_is_filtering = false;
3648
  }
3649
  }
3650
 
 
3651
  if (alm.resultsText) {
3652
  resultsText.almInitResultsText(alm, 'nextpage');
3653
  }
3654
 
3655
- /*
3656
- * Display tableOfContents
3657
- */
3658
-
3659
  (0, _tableofcontents.tableOfContents)(alm, alm.init, true);
3660
  }
3661
 
3662
- // WooCommerce Add-on
3663
  if (alm.addons.woocommerce) {
3664
- // Initiate WooCommerce
3665
  (0, _woocommerce.wooInit)(alm);
3666
 
3667
- // Trigger `Done` if `paged is less than `pages`
3668
  if (alm.addons.woocommerce_settings.paged >= parseInt(alm.addons.woocommerce_settings.pages)) {
3669
  alm.AjaxLoadMore.triggerDone();
3670
  }
3671
  }
3672
 
3673
- // Elementor Add-on
3674
  if (alm.addons.elementor && alm.addons.elementor_type && alm.addons.elementor_type === 'posts') {
3675
- // Initiate Elementor
3676
  (0, _elementor.elementorInit)(alm);
3677
 
3678
  // Trigger `Done` if `elementor_next_page_url` is empty
@@ -3681,7 +3770,7 @@ var alm_is_filtering = false;
3681
  }
3682
  }
3683
 
3684
- // Window Load (Masonry + Preloaded)
3685
  alm.window.addEventListener('load', function () {
3686
  if (alm.is_masonry_preloaded) {
3687
  // Wrap almMasonry in anonymous async/await function
@@ -3713,7 +3802,8 @@ var alm_is_filtering = false;
3713
  };
3714
 
3715
  /**
3716
- * Update current page - triggered from paging add-on.
 
3717
  *
3718
  * @since 2.7.0
3719
  */
@@ -3890,8 +3980,8 @@ var reset = function reset() {
3890
  }
3891
  }
3892
  }, _callee6, this);
3893
- }))().catch(function (e) {
3894
- console.log('There was an resetting the Ajax Load More instance.');
3895
  });
3896
  } else {
3897
  // Standard ALM
@@ -6774,7 +6864,9 @@ module.exports = __webpack_require__(/*! ./lib/axios */ "./node_modules/axios/li
6774
 
6775
  var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
6776
  var settle = __webpack_require__(/*! ./../core/settle */ "./node_modules/axios/lib/core/settle.js");
 
6777
  var buildURL = __webpack_require__(/*! ./../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js");
 
6778
  var parseHeaders = __webpack_require__(/*! ./../helpers/parseHeaders */ "./node_modules/axios/lib/helpers/parseHeaders.js");
6779
  var isURLSameOrigin = __webpack_require__(/*! ./../helpers/isURLSameOrigin */ "./node_modules/axios/lib/helpers/isURLSameOrigin.js");
6780
  var createError = __webpack_require__(/*! ../core/createError */ "./node_modules/axios/lib/core/createError.js");
@@ -6793,11 +6885,12 @@ module.exports = function xhrAdapter(config) {
6793
  // HTTP basic authentication
6794
  if (config.auth) {
6795
  var username = config.auth.username || '';
6796
- var password = config.auth.password || '';
6797
  requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
6798
  }
6799
 
6800
- request.open(config.method.toUpperCase(), buildURL(config.url, config.params, config.paramsSerializer), true);
 
6801
 
6802
  // Set the request timeout in MS
6803
  request.timeout = config.timeout;
@@ -6834,6 +6927,18 @@ module.exports = function xhrAdapter(config) {
6834
  request = null;
6835
  };
6836
 
 
 
 
 
 
 
 
 
 
 
 
 
6837
  // Handle low level network errors
6838
  request.onerror = function handleError() {
6839
  // Real errors are hidden from us by the browser
@@ -6846,7 +6951,11 @@ module.exports = function xhrAdapter(config) {
6846
 
6847
  // Handle timeout
6848
  request.ontimeout = function handleTimeout() {
6849
- reject(createError('timeout of ' + config.timeout + 'ms exceeded', config, 'ECONNABORTED',
 
 
 
 
6850
  request));
6851
 
6852
  // Clean up request
@@ -6857,12 +6966,10 @@ module.exports = function xhrAdapter(config) {
6857
  // This is only done if running in a standard browser environment.
6858
  // Specifically not if we're in a web worker, or react-native.
6859
  if (utils.isStandardBrowserEnv()) {
6860
- var cookies = __webpack_require__(/*! ./../helpers/cookies */ "./node_modules/axios/lib/helpers/cookies.js");
6861
-
6862
  // Add xsrf header
6863
- var xsrfValue = (config.withCredentials || isURLSameOrigin(config.url)) && config.xsrfCookieName ?
6864
- cookies.read(config.xsrfCookieName) :
6865
- undefined;
6866
 
6867
  if (xsrfValue) {
6868
  requestHeaders[config.xsrfHeaderName] = xsrfValue;
@@ -6883,8 +6990,8 @@ module.exports = function xhrAdapter(config) {
6883
  }
6884
 
6885
  // Add withCredentials to request if needed
6886
- if (config.withCredentials) {
6887
- request.withCredentials = true;
6888
  }
6889
 
6890
  // Add responseType to request if needed
@@ -6924,7 +7031,7 @@ module.exports = function xhrAdapter(config) {
6924
  });
6925
  }
6926
 
6927
- if (requestData === undefined) {
6928
  requestData = null;
6929
  }
6930
 
@@ -6949,6 +7056,7 @@ module.exports = function xhrAdapter(config) {
6949
  var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js");
6950
  var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js");
6951
  var Axios = __webpack_require__(/*! ./core/Axios */ "./node_modules/axios/lib/core/Axios.js");
 
6952
  var defaults = __webpack_require__(/*! ./defaults */ "./node_modules/axios/lib/defaults.js");
6953
 
6954
  /**
@@ -6978,7 +7086,7 @@ axios.Axios = Axios;
6978
 
6979
  // Factory for creating new instances
6980
  axios.create = function create(instanceConfig) {
6981
- return createInstance(utils.merge(defaults, instanceConfig));
6982
  };
6983
 
6984
  // Expose Cancel & CancelToken
@@ -6992,6 +7100,9 @@ axios.all = function all(promises) {
6992
  };
6993
  axios.spread = __webpack_require__(/*! ./helpers/spread */ "./node_modules/axios/lib/helpers/spread.js");
6994
 
 
 
 
6995
  module.exports = axios;
6996
 
6997
  // Allow use of default import syntax in TypeScript
@@ -7127,10 +7238,11 @@ module.exports = function isCancel(value) {
7127
  "use strict";
7128
 
7129
 
7130
- var defaults = __webpack_require__(/*! ./../defaults */ "./node_modules/axios/lib/defaults.js");
7131
  var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
 
7132
  var InterceptorManager = __webpack_require__(/*! ./InterceptorManager */ "./node_modules/axios/lib/core/InterceptorManager.js");
7133
  var dispatchRequest = __webpack_require__(/*! ./dispatchRequest */ "./node_modules/axios/lib/core/dispatchRequest.js");
 
7134
 
7135
  /**
7136
  * Create a new instance of Axios
@@ -7154,13 +7266,22 @@ Axios.prototype.request = function request(config) {
7154
  /*eslint no-param-reassign:0*/
7155
  // Allow for axios('example/url'[, config]) a la fetch API
7156
  if (typeof config === 'string') {
7157
- config = utils.merge({
7158
- url: arguments[0]
7159
- }, arguments[1]);
 
7160
  }
7161
 
7162
- config = utils.merge(defaults, {method: 'get'}, this.defaults, config);
7163
- config.method = config.method.toLowerCase();
 
 
 
 
 
 
 
 
7164
 
7165
  // Hook up interceptors middleware
7166
  var chain = [dispatchRequest, undefined];
@@ -7181,13 +7302,19 @@ Axios.prototype.request = function request(config) {
7181
  return promise;
7182
  };
7183
 
 
 
 
 
 
7184
  // Provide aliases for supported request methods
7185
  utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
7186
  /*eslint func-names:0*/
7187
  Axios.prototype[method] = function(url, config) {
7188
- return this.request(utils.merge(config || {}, {
7189
  method: method,
7190
- url: url
 
7191
  }));
7192
  };
7193
  });
@@ -7195,7 +7322,7 @@ utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData
7195
  utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
7196
  /*eslint func-names:0*/
7197
  Axios.prototype[method] = function(url, data, config) {
7198
- return this.request(utils.merge(config || {}, {
7199
  method: method,
7200
  url: url,
7201
  data: data
@@ -7270,6 +7397,38 @@ InterceptorManager.prototype.forEach = function forEach(fn) {
7270
  module.exports = InterceptorManager;
7271
 
7272
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7273
  /***/ }),
7274
 
7275
  /***/ "./node_modules/axios/lib/core/createError.js":
@@ -7316,8 +7475,6 @@ var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/util
7316
  var transformData = __webpack_require__(/*! ./transformData */ "./node_modules/axios/lib/core/transformData.js");
7317
  var isCancel = __webpack_require__(/*! ../cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js");
7318
  var defaults = __webpack_require__(/*! ../defaults */ "./node_modules/axios/lib/defaults.js");
7319
- var isAbsoluteURL = __webpack_require__(/*! ./../helpers/isAbsoluteURL */ "./node_modules/axios/lib/helpers/isAbsoluteURL.js");
7320
- var combineURLs = __webpack_require__(/*! ./../helpers/combineURLs */ "./node_modules/axios/lib/helpers/combineURLs.js");
7321
 
7322
  /**
7323
  * Throws a `Cancel` if cancellation has been requested.
@@ -7337,11 +7494,6 @@ function throwIfCancellationRequested(config) {
7337
  module.exports = function dispatchRequest(config) {
7338
  throwIfCancellationRequested(config);
7339
 
7340
- // Support baseURL config
7341
- if (config.baseURL && !isAbsoluteURL(config.url)) {
7342
- config.url = combineURLs(config.baseURL, config.url);
7343
- }
7344
-
7345
  // Ensure headers exist
7346
  config.headers = config.headers || {};
7347
 
@@ -7356,7 +7508,7 @@ module.exports = function dispatchRequest(config) {
7356
  config.headers = utils.merge(
7357
  config.headers.common || {},
7358
  config.headers[config.method] || {},
7359
- config.headers || {}
7360
  );
7361
 
7362
  utils.forEach(
@@ -7425,12 +7577,132 @@ module.exports = function enhanceError(error, config, code, request, response) {
7425
  if (code) {
7426
  error.code = code;
7427
  }
 
7428
  error.request = request;
7429
  error.response = response;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7430
  return error;
7431
  };
7432
 
7433
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7434
  /***/ }),
7435
 
7436
  /***/ "./node_modules/axios/lib/core/settle.js":
@@ -7454,7 +7726,6 @@ var createError = __webpack_require__(/*! ./createError */ "./node_modules/axios
7454
  */
7455
  module.exports = function settle(resolve, reject, response) {
7456
  var validateStatus = response.config.validateStatus;
7457
- // Note: status is not exposed by XDomainRequest
7458
  if (!response.status || !validateStatus || validateStatus(response.status)) {
7459
  resolve(response);
7460
  } else {
@@ -7531,7 +7802,7 @@ function getDefaultAdapter() {
7531
  if (typeof XMLHttpRequest !== 'undefined') {
7532
  // For browsers use XHR adapter
7533
  adapter = __webpack_require__(/*! ./adapters/xhr */ "./node_modules/axios/lib/adapters/xhr.js");
7534
- } else if (typeof process !== 'undefined') {
7535
  // For node use HTTP adapter
7536
  adapter = __webpack_require__(/*! ./adapters/http */ "./node_modules/axios/lib/adapters/xhr.js");
7537
  }
@@ -7542,6 +7813,7 @@ var defaults = {
7542
  adapter: getDefaultAdapter(),
7543
 
7544
  transformRequest: [function transformRequest(data, headers) {
 
7545
  normalizeHeaderName(headers, 'Content-Type');
7546
  if (utils.isFormData(data) ||
7547
  utils.isArrayBuffer(data) ||
@@ -7586,6 +7858,7 @@ var defaults = {
7586
  xsrfHeaderName: 'X-XSRF-TOKEN',
7587
 
7588
  maxContentLength: -1,
 
7589
 
7590
  validateStatus: function validateStatus(status) {
7591
  return status >= 200 && status < 300;
@@ -7649,7 +7922,6 @@ var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/util
7649
 
7650
  function encode(val) {
7651
  return encodeURIComponent(val).
7652
- replace(/%40/gi, '@').
7653
  replace(/%3A/gi, ':').
7654
  replace(/%24/g, '$').
7655
  replace(/%2C/gi, ',').
@@ -7704,6 +7976,11 @@ module.exports = function buildURL(url, params, paramsSerializer) {
7704
  }
7705
 
7706
  if (serializedParams) {
 
 
 
 
 
7707
  url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
7708
  }
7709
 
@@ -7755,50 +8032,50 @@ module.exports = (
7755
  utils.isStandardBrowserEnv() ?
7756
 
7757
  // Standard browser envs support document.cookie
7758
- (function standardBrowserEnv() {
7759
- return {
7760
- write: function write(name, value, expires, path, domain, secure) {
7761
- var cookie = [];
7762
- cookie.push(name + '=' + encodeURIComponent(value));
7763
 
7764
- if (utils.isNumber(expires)) {
7765
- cookie.push('expires=' + new Date(expires).toGMTString());
7766
- }
7767
 
7768
- if (utils.isString(path)) {
7769
- cookie.push('path=' + path);
7770
- }
7771
 
7772
- if (utils.isString(domain)) {
7773
- cookie.push('domain=' + domain);
7774
- }
7775
 
7776
- if (secure === true) {
7777
- cookie.push('secure');
7778
- }
7779
 
7780
- document.cookie = cookie.join('; ');
7781
- },
7782
 
7783
- read: function read(name) {
7784
- var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
7785
- return (match ? decodeURIComponent(match[3]) : null);
7786
- },
7787
 
7788
- remove: function remove(name) {
7789
- this.write(name, '', Date.now() - 86400000);
7790
- }
7791
- };
7792
- })() :
7793
 
7794
  // Non standard browser env (web workers, react-native) lack needed support.
7795
- (function nonStandardBrowserEnv() {
7796
- return {
7797
- write: function write() {},
7798
- read: function read() { return null; },
7799
- remove: function remove() {}
7800
- };
7801
- })()
7802
  );
7803
 
7804
 
@@ -7828,6 +8105,29 @@ module.exports = function isAbsoluteURL(url) {
7828
  };
7829
 
7830
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7831
  /***/ }),
7832
 
7833
  /***/ "./node_modules/axios/lib/helpers/isURLSameOrigin.js":
@@ -7847,64 +8147,64 @@ module.exports = (
7847
 
7848
  // Standard browser envs have full support of the APIs needed to test
7849
  // whether the request URL is of the same origin as current location.
7850
- (function standardBrowserEnv() {
7851
- var msie = /(msie|trident)/i.test(navigator.userAgent);
7852
- var urlParsingNode = document.createElement('a');
7853
- var originURL;
7854
 
7855
- /**
7856
  * Parse a URL to discover it's components
7857
  *
7858
  * @param {String} url The URL to be parsed
7859
  * @returns {Object}
7860
  */
7861
- function resolveURL(url) {
7862
- var href = url;
7863
 
7864
- if (msie) {
7865
  // IE needs attribute set twice to normalize properties
7866
- urlParsingNode.setAttribute('href', href);
7867
- href = urlParsingNode.href;
7868
- }
7869
 
7870
- urlParsingNode.setAttribute('href', href);
7871
 
7872
- // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
7873
- return {
7874
- href: urlParsingNode.href,
7875
- protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
7876
- host: urlParsingNode.host,
7877
- search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
7878
- hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
7879
- hostname: urlParsingNode.hostname,
7880
- port: urlParsingNode.port,
7881
- pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
7882
- urlParsingNode.pathname :
7883
- '/' + urlParsingNode.pathname
7884
- };
7885
- }
7886
 
7887
- originURL = resolveURL(window.location.href);
7888
 
7889
- /**
7890
  * Determine if a URL shares the same origin as the current location
7891
  *
7892
  * @param {String} requestURL The URL to test
7893
  * @returns {boolean} True if URL shares the same origin, otherwise false
7894
  */
7895
- return function isURLSameOrigin(requestURL) {
7896
- var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
7897
- return (parsed.protocol === originURL.protocol &&
7898
  parsed.host === originURL.host);
7899
- };
7900
- })() :
7901
 
7902
  // Non standard browser envs (web workers, react-native) lack needed support.
7903
- (function nonStandardBrowserEnv() {
7904
- return function isURLSameOrigin() {
7905
- return true;
7906
- };
7907
- })()
7908
  );
7909
 
7910
 
@@ -8049,7 +8349,6 @@ module.exports = function spread(callback) {
8049
 
8050
 
8051
  var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js");
8052
- var isBuffer = __webpack_require__(/*! is-buffer */ "./node_modules/is-buffer/index.js");
8053
 
8054
  /*global toString:true*/
8055
 
@@ -8067,6 +8366,27 @@ function isArray(val) {
8067
  return toString.call(val) === '[object Array]';
8068
  }
8069
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8070
  /**
8071
  * Determine if a value is an ArrayBuffer
8072
  *
@@ -8124,23 +8444,28 @@ function isNumber(val) {
8124
  }
8125
 
8126
  /**
8127
- * Determine if a value is undefined
8128
  *
8129
  * @param {Object} val The value to test
8130
- * @returns {boolean} True if the value is undefined, otherwise false
8131
  */
8132
- function isUndefined(val) {
8133
- return typeof val === 'undefined';
8134
  }
8135
 
8136
  /**
8137
- * Determine if a value is an Object
8138
  *
8139
  * @param {Object} val The value to test
8140
- * @returns {boolean} True if value is an Object, otherwise false
8141
  */
8142
- function isObject(val) {
8143
- return val !== null && typeof val === 'object';
 
 
 
 
 
8144
  }
8145
 
8146
  /**
@@ -8225,9 +8550,13 @@ function trim(str) {
8225
  *
8226
  * react-native:
8227
  * navigator.product -> 'ReactNative'
 
 
8228
  */
8229
  function isStandardBrowserEnv() {
8230
- if (typeof navigator !== 'undefined' && navigator.product === 'ReactNative') {
 
 
8231
  return false;
8232
  }
8233
  return (
@@ -8295,8 +8624,12 @@ function forEach(obj, fn) {
8295
  function merge(/* obj1, obj2, obj3, ... */) {
8296
  var result = {};
8297
  function assignValue(val, key) {
8298
- if (typeof result[key] === 'object' && typeof val === 'object') {
8299
  result[key] = merge(result[key], val);
 
 
 
 
8300
  } else {
8301
  result[key] = val;
8302
  }
@@ -8327,6 +8660,19 @@ function extend(a, b, thisArg) {
8327
  return a;
8328
  }
8329
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8330
  module.exports = {
8331
  isArray: isArray,
8332
  isArrayBuffer: isArrayBuffer,
@@ -8336,6 +8682,7 @@ module.exports = {
8336
  isString: isString,
8337
  isNumber: isNumber,
8338
  isObject: isObject,
 
8339
  isUndefined: isUndefined,
8340
  isDate: isDate,
8341
  isFile: isFile,
@@ -8347,7 +8694,8 @@ module.exports = {
8347
  forEach: forEach,
8348
  merge: merge,
8349
  extend: extend,
8350
- trim: trim
 
8351
  };
8352
 
8353
 
@@ -9431,7 +9779,7 @@ module.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {
9431
  /*! no static exports found */
9432
  /***/ (function(module, exports) {
9433
 
9434
- var core = module.exports = { version: '2.6.11' };
9435
  if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
9436
 
9437
 
@@ -11435,7 +11783,7 @@ var store = global[SHARED] || (global[SHARED] = {});
11435
  })('versions', []).push({
11436
  version: core.version,
11437
  mode: __webpack_require__(/*! ./_library */ "./node_modules/core-js/modules/_library.js") ? 'pure' : 'global',
11438
- copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
11439
  });
11440
 
11441
 
@@ -17945,28 +18293,6 @@ return ImagesLoaded;
17945
  });
17946
 
17947
 
17948
- /***/ }),
17949
-
17950
- /***/ "./node_modules/is-buffer/index.js":
17951
- /*!*****************************************!*\
17952
- !*** ./node_modules/is-buffer/index.js ***!
17953
- \*****************************************/
17954
- /*! no static exports found */
17955
- /***/ (function(module, exports) {
17956
-
17957
- /*!
17958
- * Determine if an object is a Buffer
17959
- *
17960
- * @author Feross Aboukhadijeh <https://feross.org>
17961
- * @license MIT
17962
- */
17963
-
17964
- module.exports = function isBuffer (obj) {
17965
- return obj != null && obj.constructor != null &&
17966
- typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)
17967
- }
17968
-
17969
-
17970
  /***/ }),
17971
 
17972
  /***/ "./node_modules/process/browser.js":
@@ -18177,27 +18503,24 @@ process.umask = function() { return 0; };
18177
  var replace = String.prototype.replace;
18178
  var percentTwenties = /%20/g;
18179
 
18180
- var util = __webpack_require__(/*! ./utils */ "./node_modules/qs/lib/utils.js");
18181
-
18182
  var Format = {
18183
  RFC1738: 'RFC1738',
18184
  RFC3986: 'RFC3986'
18185
  };
18186
 
18187
- module.exports = util.assign(
18188
- {
18189
- 'default': Format.RFC3986,
18190
- formatters: {
18191
- RFC1738: function (value) {
18192
- return replace.call(value, percentTwenties, '+');
18193
- },
18194
- RFC3986: function (value) {
18195
- return String(value);
18196
- }
18197
  }
18198
  },
18199
- Format
18200
- );
 
18201
 
18202
 
18203
  /***/ }),
@@ -18375,7 +18698,7 @@ var parseObject = function (chain, val, options, valuesParsed) {
18375
  }
18376
  }
18377
 
18378
- leaf = obj; // eslint-disable-line no-param-reassign
18379
  }
18380
 
18381
  return leaf;
@@ -18569,6 +18892,7 @@ var stringify = function stringify(
18569
  sort,
18570
  allowDots,
18571
  serializeDate,
 
18572
  formatter,
18573
  encodeValuesOnly,
18574
  charset
@@ -18584,12 +18908,12 @@ var stringify = function stringify(
18584
  return serializeDate(value);
18585
  }
18586
  return value;
18587
- }).join(',');
18588
  }
18589
 
18590
  if (obj === null) {
18591
  if (strictNullHandling) {
18592
- return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key') : prefix;
18593
  }
18594
 
18595
  obj = '';
@@ -18597,8 +18921,8 @@ var stringify = function stringify(
18597
 
18598
  if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
18599
  if (encoder) {
18600
- var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key');
18601
- return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value'))];
18602
  }
18603
  return [formatter(prefix) + '=' + formatter(String(obj))];
18604
  }
@@ -18610,7 +18934,10 @@ var stringify = function stringify(
18610
  }
18611
 
18612
  var objKeys;
18613
- if (isArray(filter)) {
 
 
 
18614
  objKeys = filter;
18615
  } else {
18616
  var keys = Object.keys(obj);
@@ -18619,7 +18946,7 @@ var stringify = function stringify(
18619
 
18620
  for (var i = 0; i < objKeys.length; ++i) {
18621
  var key = objKeys[i];
18622
- var value = obj[key];
18623
 
18624
  if (skipNulls && value === null) {
18625
  continue;
@@ -18640,6 +18967,7 @@ var stringify = function stringify(
18640
  sort,
18641
  allowDots,
18642
  serializeDate,
 
18643
  formatter,
18644
  encodeValuesOnly,
18645
  charset
@@ -18687,6 +19015,7 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
18687
  encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
18688
  encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
18689
  filter: filter,
 
18690
  formatter: formatter,
18691
  serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
18692
  skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
@@ -18752,6 +19081,7 @@ module.exports = function (object, opts) {
18752
  options.sort,
18753
  options.allowDots,
18754
  options.serializeDate,
 
18755
  options.formatter,
18756
  options.encodeValuesOnly,
18757
  options.charset
@@ -18787,6 +19117,8 @@ module.exports = function (object, opts) {
18787
  "use strict";
18788
 
18789
 
 
 
18790
  var has = Object.prototype.hasOwnProperty;
18791
  var isArray = Array.isArray;
18792
 
@@ -18907,7 +19239,7 @@ var decode = function (str, decoder, charset) {
18907
  }
18908
  };
18909
 
18910
- var encode = function encode(str, defaultEncoder, charset) {
18911
  // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
18912
  // It has been adapted here for stricter adherence to RFC 3986
18913
  if (str.length === 0) {
@@ -18939,6 +19271,7 @@ var encode = function encode(str, defaultEncoder, charset) {
18939
  || (c >= 0x30 && c <= 0x39) // 0-9
18940
  || (c >= 0x41 && c <= 0x5A) // a-z
18941
  || (c >= 0x61 && c <= 0x7A) // A-Z
 
18942
  ) {
18943
  out += string.charAt(i);
18944
  continue;
912
  value: true
913
  });
914
  exports.singlePostHTML = singlePostHTML;
915
+ /**
916
+ * Create the HTML for loading Single Posts.
 
917
  *
918
  * @param {Object} response Query response
919
  * @param {HTMLElement} target The target div
930
  debug: 'Single Posts Query'
931
  }
932
  };
933
+
934
  if (response.status === 200 && response.data && target) {
935
+ // Create temp div to hold Ajax response data.
936
+ var div = document.createElement('div');
937
  div.innerHTML = response.data;
938
+
939
+ // Get target element.
940
+ var html = div.querySelector(target);
941
+
942
+ // Get any custom target elements.
943
+ var customElements = window && window.almSinglePostsCustomElements;
944
+ if (customElements) {
945
+ html.appendChild(singlePostsGetCustomElements(div, customElements));
946
+ }
947
+
948
+ if (html) {
949
+ data.html = html.innerHTML;
950
+ } else {
951
+ console.warn('Ajax Load More: Unable to find ' + target + ' element.');
952
  }
953
  }
954
  return data;
955
  }
 
956
  exports.default = singlePostHTML;
957
 
958
+ /**
959
+ * Collect custom target elements and append them to the returned HTML.
960
+ *
961
+ * This function is useful to get elements from outside the ALM target and bring them into the returned HTML.
962
+ * Useful for when CSS or JS may be loaded in the <head/> and we need it brought into the HTML for Single Posts.
963
+ *
964
+ * e.g. window.almSinglePostsCustomElements = ['#woocommerce-inline-inline-css', '#wc-block-style-css'];
965
+ *
966
+ * @param {object} content The HTML element.
967
+ * @param {array|string} customElements The elements to search for in content.
968
+ * @return {object} HTML elements.
969
+ */
970
+
971
+ function singlePostsGetCustomElements() {
972
+ var content = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
973
+ var customElements = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
974
+
975
+ // Create container element to hold elements.
976
+ var container = document.createElement('div');
977
+ container.classList.add('alm-custom-elements');
978
+
979
+ // Exit if empty.
980
+ if (!content || !customElements) {
981
+ return container;
982
+ }
983
+
984
+ // Convert customElements to an Array.
985
+ customElements = !Array.isArray(customElements) ? [customElements] : customElements;
986
+
987
+ // Loop Array to extract elements and append to container.
988
+ for (var i = 0; i < customElements.length; i++) {
989
+ var element = content.querySelector(customElements[i]);
990
+ if (element) {
991
+ container.appendChild(element);
992
+ }
993
+ }
994
+
995
+ return container;
996
+ }
997
+
998
  /***/ }),
999
 
1000
  /***/ "./core/src/js/addons/woocommerce.js":
1071
  }
1072
 
1073
  // Set up URL and class parameters on first item in product listing
1074
+ var container = document.querySelector(alm.addons.woocommerce_settings.container); // Get `ul.products`
1075
+ if (container) {
1076
+ var count = getContainerCount(alm.addons.woocommerce_settings.container);
1077
+
1078
+ if (count > 1) {
1079
+ // Display warning if multiple containers were found.
1080
+ console.warn('ALM WooCommerce: Multiple containers with the same classname or ID found. The WooCommerce add-on requires a single container to be defined. Get more information -> https://connekthq.com/plugins/ajax-load-more/docs/add-ons/woocommerce/');
1081
+ }
1082
+
1083
+ container.setAttribute('aria-live', 'polite');
1084
+ container.setAttribute('aria-atomic', 'true');
1085
 
1086
  alm.listing.removeAttribute('aria-live');
1087
  alm.listing.removeAttribute('aria-atomic');
1088
 
1089
+ var products = container.querySelector(alm.addons.woocommerce_settings.products); // Get first `.product` item
1090
+ if (products) {
1091
+ products.classList.add('alm-woocommerce');
1092
+ products.dataset.url = alm.addons.woocommerce_settings.paged_urls[alm.addons.woocommerce_settings.paged - 1];
1093
+ products.dataset.page = alm.page;
1094
+ products.dataset.pageTitle = document.title;
1095
+ } else {
1096
+ console.warn('ALM WooCommerce: Unable to locate products. Get more information -> https://connekthq.com/plugins/ajax-load-more/docs/add-ons/woocommerce/#alm_woocommerce_products');
1097
  }
1098
 
1099
  if (alm.addons.woocommerce_settings.paged > 1) {
1100
  almWooCommerceResultsTextInit(alm);
1101
  }
1102
+ } else {
1103
+ console.warn('ALM WooCommerce: Unable to locate container element. Get more information -> https://connekthq.com/plugins/ajax-load-more/docs/add-ons/woocommerce/#alm_woocommerce_container');
1104
  }
1105
  }
1106
 
1279
  return text.innerHTML + button;
1280
  }
1281
 
1282
+ /**
1283
+ * Get total count of WooCommerce containers
1284
+ *
1285
+ * @param {*} container
1286
+ */
1287
+ function getContainerCount(container) {
1288
+ if (!container) {
1289
+ return 0;
1290
+ }
1291
+ var containers = document.querySelectorAll(container); // Get all containers.
1292
+ if (containers) {
1293
+ return containers.length;
1294
+ } else {
1295
+ return 0;
1296
+ }
1297
+ }
1298
+
1299
  /***/ }),
1300
 
1301
  /***/ "./core/src/js/ajax-load-more.js":
1483
  // External Modules
1484
  var qs = __webpack_require__(/*! qs */ "./node_modules/qs/lib/index.js");
1485
  var imagesLoaded = __webpack_require__(/*! imagesloaded */ "./node_modules/imagesloaded/imagesloaded.js");
1486
+
1487
+ _axios2.default.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
1488
  // Smooth scrolling polyfill
1489
  _smoothscrollPolyfill2.default.polyfill();
1490
 
1645
  alm.addons.nextpage_pageviews = alm.listing.dataset.nextpagePageviews;
1646
  alm.addons.nextpage_post_id = alm.listing.dataset.nextpagePostId;
1647
  alm.addons.nextpage_startpage = alm.listing.dataset.nextpageStartpage;
1648
+ alm.addons.nextpage_title_template = alm.listing.dataset.nextpageTitleTemplate;
1649
  }
1650
 
1651
  // Single Posts add-on
1653
  if (alm.addons.single_post === 'true') {
1654
  alm.addons.single_post_id = alm.listing.dataset.singlePostId;
1655
  alm.addons.single_post_query = alm.listing.dataset.singlePostQuery;
1656
+ alm.addons.single_post_order = alm.listing.dataset.singlePostOrder === undefined ? 'previous' : alm.listing.dataset.singlePostOrder;
1657
  alm.addons.single_post_init_id = alm.listing.dataset.singlePostId;
1658
+ alm.addons.single_post_taxonomy = alm.listing.dataset.singlePostTaxonomy === undefined ? '' : alm.listing.dataset.singlePostTaxonomy;
1659
+ alm.addons.single_post_excluded_terms = alm.listing.dataset.singlePostExcludedTerms === undefined ? '' : alm.listing.dataset.singlePostExcludedTerms;
1660
+ alm.addons.single_post_progress_bar = alm.listing.dataset.singlePostProgressBar === undefined ? '' : alm.listing.dataset.singlePostProgressBar;
1661
+ alm.addons.single_post_target = alm.listing.dataset.singlePostTarget === undefined ? '' : alm.listing.dataset.singlePostTarget;
1662
+ alm.addons.single_post_preview = alm.listing.dataset.singlePostPreview === undefined ? false : true;
1663
+ if (alm.addons.single_post_preview) {
1664
+ var singlePostPreviewData = alm.listing.dataset.singlePostPreview.split(':');
1665
+ alm.addons.single_post_preview_data = {
1666
+ button_label: singlePostPreviewData[0] ? singlePostPreviewData[0] : 'Continue Reading',
1667
+ height: singlePostPreviewData[1] ? singlePostPreviewData[1] : 500,
1668
+ element: singlePostPreviewData[2] ? singlePostPreviewData[2] : 'default',
1669
+ className: 'alm-single-post--preview'
1670
+ };
1671
+ }
1672
  }
1673
 
1674
  // Comments add-on
1884
  if (alm.addons.nextpage_startpage > 1) {
1885
  alm.isPaged = true;
1886
  }
1887
+ alm.addons.nextpage_postTitle = alm.listing.dataset.nextpagePostTitle;
1888
  } else {
1889
  alm.addons.nextpage = false;
1890
  }
1896
  alm.addons.single_post_permalink = '';
1897
  alm.addons.single_post_title = '';
1898
  alm.addons.single_post_slug = '';
 
 
 
 
 
1899
  alm.addons.single_post_title_template = alm.listing.dataset.singlePostTitleTemplate;
1900
  alm.addons.single_post_siteTitle = alm.listing.dataset.singlePostSiteTitle;
1901
  alm.addons.single_post_siteTagline = alm.listing.dataset.singlePostSiteTagline;
2056
  }
2057
 
2058
  /**
 
2059
  * The function to get posts via Ajax
2060
+ *
2061
  * @since 2.0.0
2062
  */
 
2063
  alm.AjaxLoadMore.loadPosts = function () {
2064
  if (typeof almOnChange === 'function') {
2065
  window.almOnChange(alm);
2101
  }
2102
  };
2103
 
2104
+ /**
2105
+ * Ajax Load Moe Ajax function
2106
  *
2107
+ * @param {string} queryType The type of Ajax request (standard/totalposts).
2108
+ * @since 2.6.0
2109
  */
 
2110
  alm.AjaxLoadMore.ajax = function (queryType) {
2111
  // Default ALM action
2112
  var action = 'alm_get_posts';
2149
  scroll: alm.addons.nextpage_scroll,
2150
  pageviews: alm.addons.nextpage_pageviews,
2151
  post_id: alm.addons.nextpage_post_id,
2152
+ startpage: alm.addons.nextpage_startpage,
2153
+ nested: alm.nested
2154
  };
2155
  }
2156
 
2221
  };
2222
 
2223
  /**
 
2224
  * Send request to the admin-ajax.php
2225
  *
2226
  * @param {*} alm | ALm object
2299
  // Next Page and Paging
2300
  if (typeof almBuildPagination === 'function') {
2301
  window.almBuildPagination(data.totalpages, alm);
2302
+ alm.totalpages = data.totalpages;
2303
  }
2304
  } else if (queryType === 'totalposts' && alm.addons.paging) {
2305
  // Paging
2314
  };
2315
 
2316
  /**
2317
+ * Send request to the WP REST API.
 
2318
  *
2319
  * @param {*} alm | ALm object
2320
  * @since 5.2.0
2366
  };
2367
 
2368
  /**
 
2369
  * Send request to the WP REST API
2370
  *
2371
  * @param {*} alm | ALm object
2394
  _axios2.default.get(alm_rest_url, { params: params }).then(function (response) {
2395
  // Success
2396
  var results = response.data; // Get data from response
2397
+ var data = '';
2398
+ var html = results.html;
2399
+ var meta = results.meta;
2400
+ var postcount = meta && meta.postcount ? meta.postcount : 0;
2401
+ var totalposts = meta && meta.totalposts ? meta.totalposts : 0;
2402
 
2403
  // loop results to get data from each
2404
  for (var i = 0; i < html.length; i++) {
2435
  }
2436
 
2437
  /**
2438
+ * Success function after loading data.
 
2439
  *
2440
+ * @param {object} data The results of the Ajax request.
2441
+ * @param {boolean} is_cache Are results of the Ajax request coming from cache?
2442
  * @since 2.6.0
2443
  */
2444
  alm.AjaxLoadMore.success = function (data, is_cache) {
2462
  // Paging container
2463
  var pagingContent = alm.listing.querySelector('.alm-paging-content');
2464
 
2465
+ var html = void 0,
2466
+ meta = void 0,
2467
+ total = void 0;
2468
 
2469
  if (is_cache) {
2470
  // If Cache, do not look for json data as we won't be querying the DB.
2473
  // Standard ALM query results
2474
  html = data.html;
2475
  meta = data.meta;
2476
+ total = meta ? parseInt(meta.postcount) : parseInt(alm.posts_per_page);
2477
+
2478
+ var totalposts = meta && meta.totalposts ? meta.totalposts : alm.posts_per_page * 5;
2479
+ alm.totalposts = alm.addons.preloaded === 'true' ? totalposts - alm.addons.preloaded_amount : totalposts;
2480
+ alm.posts = alm.addons.paging ? total : alm.posts + total;
2481
  alm.debug = meta.debug ? meta.debug : '';
2482
+
2483
+ if (!meta) {
2484
+ // Display warning if `meta` is missing.
2485
+ console.warn('Ajax Load More: Unable to access `meta` object in Ajax response. There may be an issue in your Repeater Template or another hook causing interference.');
2486
+ }
2487
  }
2488
 
2489
  // Set alm.html as plain text return
2573
  // We have results!
2574
 
2575
  if (!alm.addons.paging) {
2576
+ // Single Posts.
2577
  if (alm.addons.single_post) {
2578
+ reveal.setAttribute('class', 'alm-reveal alm-single-post post-' + alm.addons.single_post_id + (alm.tcc ? ' ' + alm.tcc : ''));
 
2579
  reveal.dataset.url = alm.addons.single_post_permalink;
2580
  if (alm.addons.single_post_target) {
2581
  reveal.dataset.page = parseInt(alm.page) + 1;
2585
  reveal.dataset.id = alm.addons.single_post_id;
2586
  reveal.dataset.title = alm.addons.single_post_title;
2587
  reveal.innerHTML = alm.html;
2588
+
2589
+ // Single Post Preview
2590
+ if (alm.addons.single_post_preview && alm.addons.single_post_preview_data && typeof almSinglePostCreatePreview === 'function') {
2591
+ var singlePreview = window.almSinglePostCreatePreview(reveal, alm.addons.single_post_id, alm.addons.single_post_preview_data);
2592
+ reveal.replaceChildren(singlePreview ? singlePreview : reveal);
2593
+ }
2594
  } else {
2595
  if (!alm.transition_container) {
2596
  // No transition container
2619
  // Call to Actions
2620
  if (alm.addons.cta === 'true') {
2621
  posts_per_page = posts_per_page + 1; // Add 1 to posts_per_page for CTAs
2622
+ pages = Math.ceil(total / posts_per_page); // Update pages let with new posts_per_page
2623
  total = pages + total; // Get new total w/ CTAs added
2624
  }
2625
 
2828
  if (alm.transition !== 'masonry' || alm.init && !alm.is_masonry_preloaded) {
2829
  if (!isPaged) {
2830
  if (!alm.transition_container) {
2831
+ // No transition container.
2832
  if (alm.images_loaded === 'true') {
2833
  imagesLoaded(reveal, function () {
2834
  (0, _almAppendChildren2.default)(alm.listing, reveal);
2839
  } else {
2840
  (0, _almAppendChildren2.default)(alm.listing, reveal);
2841
 
2842
+ // Run srcSet polyfill.
2843
  (0, _srcsetPolyfill2.default)(alm.listing, alm.ua);
2844
  }
2845
  } else {
2846
+ // Standard container.
2847
  alm.listing.appendChild(reveal);
2848
  }
2849
  }
2887
  }
2888
 
2889
  // None
2890
+ else if (alm.transition === 'none' && alm.transition_container) {
2891
  if (alm.images_loaded === 'true') {
2892
  imagesLoaded(reveal, function () {
2893
  (0, _fadeIn2.default)(reveal, 0);
2899
  }
2900
  }
2901
 
2902
+ // Default (Fade)
2903
  else {
2904
  if (alm.images_loaded === 'true') {
2905
  imagesLoaded(reveal, function () {
3225
  if (!reveal || !alm.transition_container) {
3226
  return false; // Exit if not `transition_container`
3227
  }
3228
+ var nested = reveal.querySelectorAll('.ajax-load-more-wrap'); // Get all instances
3229
  if (nested) {
3230
  nested.forEach(function (element) {
3231
  window.almInit(element);
3249
  if (alm.fetchingPreviousPost) {
3250
  return false;
3251
  }
 
3252
  alm.fetchingPreviousPost = true;
3253
 
3254
+ // Get Ajax URL.
3255
  var ajaxURL = alm_localize.ajaxurl;
3256
 
3257
  // Get data params
3300
  * @since 2.14.0
3301
  */
3302
  alm.AjaxLoadMore.triggerAddons = function (alm) {
3303
+ if (typeof almSetNextPage === 'function' && alm.addons.nextpage) {
3304
  // Next Page
3305
  window.almSetNextPage(alm);
3306
  }
3307
+ if (typeof almSEO === 'function' && alm.addons.seo) {
3308
  // SEO
3309
  window.almSEO(alm, false);
3310
  }
3311
+ if (typeof almWooCommerce === 'function' && alm.addons.woocommerce) {
3312
  // WooCommerce
3313
  window.almWooCommerce(alm);
3314
  }
3315
+ if (typeof almElementor === 'function' && alm.addons.elementor) {
3316
  // Elementor
3317
  window.almElementor(alm);
3318
  }
3568
  });
3569
  alm.window.addEventListener('keyup', function (e) {
3570
  // End, Page Down
3571
+ var code = e.key ? e.key : e.code;
3572
  switch (code) {
3573
  case 35:
3574
  case 34:
3659
  alm.finished = true;
3660
  alm.button.classList.add('done');
3661
  } else {
3662
+ // Set button label.
3663
+ alm.button.innerHTML = alm.button_label;
3664
+ // If Pause.
3665
  if (alm.pause === 'true') {
 
3666
  alm.loading = false;
3667
  } else {
3668
  alm.AjaxLoadMore.loadPosts();
3680
  alm.AjaxLoadMore.triggerDone();
3681
  }
3682
 
3683
+ // Display Table of Contents
 
 
 
3684
  (0, _tableofcontents.tableOfContents)(alm, true, true);
3685
  }
3686
 
3720
  resultsText.almInitResultsText(alm, 'preloaded');
3721
  }
3722
 
3723
+ // Display Table of Contents
 
 
 
3724
  (0, _tableofcontents.tableOfContents)(alm, alm.init, true);
3725
  }
3726
 
3732
 
3733
  if (nextpage_pages) {
3734
  var nextpage_first = nextpage_pages[0];
3735
+ var nextpage_total = nextpage_first.dataset.totalPosts ? parseInt(nextpage_first.dataset.totalPosts) : alm.localize.total_posts;
3736
 
3737
  // Disable if last page loaded
3738
  if (nextpage_pages.length === nextpage_total || parseInt(nextpage_first.dataset.id) === nextpage_total) {
3741
  }
3742
  }
3743
 
3744
+ // Results Text.
3745
  if (alm.resultsText) {
3746
  resultsText.almInitResultsText(alm, 'nextpage');
3747
  }
3748
 
3749
+ // Display Table of Contents
 
 
 
3750
  (0, _tableofcontents.tableOfContents)(alm, alm.init, true);
3751
  }
3752
 
3753
+ // WooCommerce Add-on.
3754
  if (alm.addons.woocommerce) {
 
3755
  (0, _woocommerce.wooInit)(alm);
3756
 
3757
+ // Trigger `Done` if `paged is less than `pages`.
3758
  if (alm.addons.woocommerce_settings.paged >= parseInt(alm.addons.woocommerce_settings.pages)) {
3759
  alm.AjaxLoadMore.triggerDone();
3760
  }
3761
  }
3762
 
3763
+ // Elementor Add-on.
3764
  if (alm.addons.elementor && alm.addons.elementor_type && alm.addons.elementor_type === 'posts') {
 
3765
  (0, _elementor.elementorInit)(alm);
3766
 
3767
  // Trigger `Done` if `elementor_next_page_url` is empty
3770
  }
3771
  }
3772
 
3773
+ // Window Load (Masonry + Preloaded).
3774
  alm.window.addEventListener('load', function () {
3775
  if (alm.is_masonry_preloaded) {
3776
  // Wrap almMasonry in anonymous async/await function
3802
  };
3803
 
3804
  /**
3805
+ * Update Current Page.
3806
+ * Callback function triggered from paging add-on.
3807
  *
3808
  * @since 2.7.0
3809
  */
3980
  }
3981
  }
3982
  }, _callee6, this);
3983
+ }))().catch(function () {
3984
+ console.warn('Ajax Load More: There was an resetting the Ajax Load More instance.');
3985
  });
3986
  } else {
3987
  // Standard ALM
6864
 
6865
  var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
6866
  var settle = __webpack_require__(/*! ./../core/settle */ "./node_modules/axios/lib/core/settle.js");
6867
+ var cookies = __webpack_require__(/*! ./../helpers/cookies */ "./node_modules/axios/lib/helpers/cookies.js");
6868
  var buildURL = __webpack_require__(/*! ./../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js");
6869
+ var buildFullPath = __webpack_require__(/*! ../core/buildFullPath */ "./node_modules/axios/lib/core/buildFullPath.js");
6870
  var parseHeaders = __webpack_require__(/*! ./../helpers/parseHeaders */ "./node_modules/axios/lib/helpers/parseHeaders.js");
6871
  var isURLSameOrigin = __webpack_require__(/*! ./../helpers/isURLSameOrigin */ "./node_modules/axios/lib/helpers/isURLSameOrigin.js");
6872
  var createError = __webpack_require__(/*! ../core/createError */ "./node_modules/axios/lib/core/createError.js");
6885
  // HTTP basic authentication
6886
  if (config.auth) {
6887
  var username = config.auth.username || '';
6888
+ var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';
6889
  requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
6890
  }
6891
 
6892
+ var fullPath = buildFullPath(config.baseURL, config.url);
6893
+ request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
6894
 
6895
  // Set the request timeout in MS
6896
  request.timeout = config.timeout;
6927
  request = null;
6928
  };
6929
 
6930
+ // Handle browser request cancellation (as opposed to a manual cancellation)
6931
+ request.onabort = function handleAbort() {
6932
+ if (!request) {
6933
+ return;
6934
+ }
6935
+
6936
+ reject(createError('Request aborted', config, 'ECONNABORTED', request));
6937
+
6938
+ // Clean up request
6939
+ request = null;
6940
+ };
6941
+
6942
  // Handle low level network errors
6943
  request.onerror = function handleError() {
6944
  // Real errors are hidden from us by the browser
6951
 
6952
  // Handle timeout
6953
  request.ontimeout = function handleTimeout() {
6954
+ var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';
6955
+ if (config.timeoutErrorMessage) {
6956
+ timeoutErrorMessage = config.timeoutErrorMessage;
6957
+ }
6958
+ reject(createError(timeoutErrorMessage, config, 'ECONNABORTED',
6959
  request));
6960
 
6961
  // Clean up request
6966
  // This is only done if running in a standard browser environment.
6967
  // Specifically not if we're in a web worker, or react-native.
6968
  if (utils.isStandardBrowserEnv()) {
 
 
6969
  // Add xsrf header
6970
+ var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?
6971
+ cookies.read(config.xsrfCookieName) :
6972
+ undefined;
6973
 
6974
  if (xsrfValue) {
6975
  requestHeaders[config.xsrfHeaderName] = xsrfValue;
6990
  }
6991
 
6992
  // Add withCredentials to request if needed
6993
+ if (!utils.isUndefined(config.withCredentials)) {
6994
+ request.withCredentials = !!config.withCredentials;
6995
  }
6996
 
6997
  // Add responseType to request if needed
7031
  });
7032
  }
7033
 
7034
+ if (!requestData) {
7035
  requestData = null;
7036
  }
7037
 
7056
  var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js");
7057
  var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js");
7058
  var Axios = __webpack_require__(/*! ./core/Axios */ "./node_modules/axios/lib/core/Axios.js");
7059
+ var mergeConfig = __webpack_require__(/*! ./core/mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js");
7060
  var defaults = __webpack_require__(/*! ./defaults */ "./node_modules/axios/lib/defaults.js");
7061
 
7062
  /**
7086
 
7087
  // Factory for creating new instances
7088
  axios.create = function create(instanceConfig) {
7089
+ return createInstance(mergeConfig(axios.defaults, instanceConfig));
7090
  };
7091
 
7092
  // Expose Cancel & CancelToken
7100
  };
7101
  axios.spread = __webpack_require__(/*! ./helpers/spread */ "./node_modules/axios/lib/helpers/spread.js");
7102
 
7103
+ // Expose isAxiosError
7104
+ axios.isAxiosError = __webpack_require__(/*! ./helpers/isAxiosError */ "./node_modules/axios/lib/helpers/isAxiosError.js");
7105
+
7106
  module.exports = axios;
7107
 
7108
  // Allow use of default import syntax in TypeScript
7238
  "use strict";
7239
 
7240
 
 
7241
  var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
7242
+ var buildURL = __webpack_require__(/*! ../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js");
7243
  var InterceptorManager = __webpack_require__(/*! ./InterceptorManager */ "./node_modules/axios/lib/core/InterceptorManager.js");
7244
  var dispatchRequest = __webpack_require__(/*! ./dispatchRequest */ "./node_modules/axios/lib/core/dispatchRequest.js");
7245
+ var mergeConfig = __webpack_require__(/*! ./mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js");
7246
 
7247
  /**
7248
  * Create a new instance of Axios
7266
  /*eslint no-param-reassign:0*/
7267
  // Allow for axios('example/url'[, config]) a la fetch API
7268
  if (typeof config === 'string') {
7269
+ config = arguments[1] || {};
7270
+ config.url = arguments[0];
7271
+ } else {
7272
+ config = config || {};
7273
  }
7274
 
7275
+ config = mergeConfig(this.defaults, config);
7276
+
7277
+ // Set config.method
7278
+ if (config.method) {
7279
+ config.method = config.method.toLowerCase();
7280
+ } else if (this.defaults.method) {
7281
+ config.method = this.defaults.method.toLowerCase();
7282
+ } else {
7283
+ config.method = 'get';
7284
+ }
7285
 
7286
  // Hook up interceptors middleware
7287
  var chain = [dispatchRequest, undefined];
7302
  return promise;
7303
  };
7304
 
7305
+ Axios.prototype.getUri = function getUri(config) {
7306
+ config = mergeConfig(this.defaults, config);
7307
+ return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, '');
7308
+ };
7309
+
7310
  // Provide aliases for supported request methods
7311
  utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
7312
  /*eslint func-names:0*/
7313
  Axios.prototype[method] = function(url, config) {
7314
+ return this.request(mergeConfig(config || {}, {
7315
  method: method,
7316
+ url: url,
7317
+ data: (config || {}).data
7318
  }));
7319
  };
7320
  });
7322
  utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
7323
  /*eslint func-names:0*/
7324
  Axios.prototype[method] = function(url, data, config) {
7325
+ return this.request(mergeConfig(config || {}, {
7326
  method: method,
7327
  url: url,
7328
  data: data
7397
  module.exports = InterceptorManager;
7398
 
7399
 
7400
+ /***/ }),
7401
+
7402
+ /***/ "./node_modules/axios/lib/core/buildFullPath.js":
7403
+ /*!******************************************************!*\
7404
+ !*** ./node_modules/axios/lib/core/buildFullPath.js ***!
7405
+ \******************************************************/
7406
+ /*! no static exports found */
7407
+ /***/ (function(module, exports, __webpack_require__) {
7408
+
7409
+ "use strict";
7410
+
7411
+
7412
+ var isAbsoluteURL = __webpack_require__(/*! ../helpers/isAbsoluteURL */ "./node_modules/axios/lib/helpers/isAbsoluteURL.js");
7413
+ var combineURLs = __webpack_require__(/*! ../helpers/combineURLs */ "./node_modules/axios/lib/helpers/combineURLs.js");
7414
+
7415
+ /**
7416
+ * Creates a new URL by combining the baseURL with the requestedURL,
7417
+ * only when the requestedURL is not already an absolute URL.
7418
+ * If the requestURL is absolute, this function returns the requestedURL untouched.
7419
+ *
7420
+ * @param {string} baseURL The base URL
7421
+ * @param {string} requestedURL Absolute or relative URL to combine
7422
+ * @returns {string} The combined full path
7423
+ */
7424
+ module.exports = function buildFullPath(baseURL, requestedURL) {
7425
+ if (baseURL && !isAbsoluteURL(requestedURL)) {
7426
+ return combineURLs(baseURL, requestedURL);
7427
+ }
7428
+ return requestedURL;
7429
+ };
7430
+
7431
+
7432
  /***/ }),
7433
 
7434
  /***/ "./node_modules/axios/lib/core/createError.js":
7475
  var transformData = __webpack_require__(/*! ./transformData */ "./node_modules/axios/lib/core/transformData.js");
7476
  var isCancel = __webpack_require__(/*! ../cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js");
7477
  var defaults = __webpack_require__(/*! ../defaults */ "./node_modules/axios/lib/defaults.js");
 
 
7478
 
7479
  /**
7480
  * Throws a `Cancel` if cancellation has been requested.
7494
  module.exports = function dispatchRequest(config) {
7495
  throwIfCancellationRequested(config);
7496
 
 
 
 
 
 
7497
  // Ensure headers exist
7498
  config.headers = config.headers || {};
7499
 
7508
  config.headers = utils.merge(
7509
  config.headers.common || {},
7510
  config.headers[config.method] || {},
7511
+ config.headers
7512
  );
7513
 
7514
  utils.forEach(
7577
  if (code) {
7578
  error.code = code;
7579
  }
7580
+
7581
  error.request = request;
7582
  error.response = response;
7583
+ error.isAxiosError = true;
7584
+
7585
+ error.toJSON = function toJSON() {
7586
+ return {
7587
+ // Standard
7588
+ message: this.message,
7589
+ name: this.name,
7590
+ // Microsoft
7591
+ description: this.description,
7592
+ number: this.number,
7593
+ // Mozilla
7594
+ fileName: this.fileName,
7595
+ lineNumber: this.lineNumber,
7596
+ columnNumber: this.columnNumber,
7597
+ stack: this.stack,
7598
+ // Axios
7599
+ config: this.config,
7600
+ code: this.code
7601
+ };
7602
+ };
7603
  return error;
7604
  };
7605
 
7606
 
7607
+ /***/ }),
7608
+
7609
+ /***/ "./node_modules/axios/lib/core/mergeConfig.js":
7610
+ /*!****************************************************!*\
7611
+ !*** ./node_modules/axios/lib/core/mergeConfig.js ***!
7612
+ \****************************************************/
7613
+ /*! no static exports found */
7614
+ /***/ (function(module, exports, __webpack_require__) {
7615
+
7616
+ "use strict";
7617
+
7618
+
7619
+ var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js");
7620
+
7621
+ /**
7622
+ * Config-specific merge-function which creates a new config-object
7623
+ * by merging two configuration objects together.
7624
+ *
7625
+ * @param {Object} config1
7626
+ * @param {Object} config2
7627
+ * @returns {Object} New object resulting from merging config2 to config1
7628
+ */
7629
+ module.exports = function mergeConfig(config1, config2) {
7630
+ // eslint-disable-next-line no-param-reassign
7631
+ config2 = config2 || {};
7632
+ var config = {};
7633
+
7634
+ var valueFromConfig2Keys = ['url', 'method', 'data'];
7635
+ var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params'];
7636
+ var defaultToConfig2Keys = [
7637
+ 'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer',
7638
+ 'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',
7639
+ 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress',
7640
+ 'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent',
7641
+ 'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding'
7642
+ ];
7643
+ var directMergeKeys = ['validateStatus'];
7644
+
7645
+ function getMergedValue(target, source) {
7646
+ if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
7647
+ return utils.merge(target, source);
7648
+ } else if (utils.isPlainObject(source)) {
7649
+ return utils.merge({}, source);
7650
+ } else if (utils.isArray(source)) {
7651
+ return source.slice();
7652
+ }
7653
+ return source;
7654
+ }
7655
+
7656
+ function mergeDeepProperties(prop) {
7657
+ if (!utils.isUndefined(config2[prop])) {
7658
+ config[prop] = getMergedValue(config1[prop], config2[prop]);
7659
+ } else if (!utils.isUndefined(config1[prop])) {
7660
+ config[prop] = getMergedValue(undefined, config1[prop]);
7661
+ }
7662
+ }
7663
+
7664
+ utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {
7665
+ if (!utils.isUndefined(config2[prop])) {
7666
+ config[prop] = getMergedValue(undefined, config2[prop]);
7667
+ }
7668
+ });
7669
+
7670
+ utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);
7671
+
7672
+ utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {
7673
+ if (!utils.isUndefined(config2[prop])) {
7674
+ config[prop] = getMergedValue(undefined, config2[prop]);
7675
+ } else if (!utils.isUndefined(config1[prop])) {
7676
+ config[prop] = getMergedValue(undefined, config1[prop]);
7677
+ }
7678
+ });
7679
+
7680
+ utils.forEach(directMergeKeys, function merge(prop) {
7681
+ if (prop in config2) {
7682
+ config[prop] = getMergedValue(config1[prop], config2[prop]);
7683
+ } else if (prop in config1) {
7684
+ config[prop] = getMergedValue(undefined, config1[prop]);
7685
+ }
7686
+ });
7687
+
7688
+ var axiosKeys = valueFromConfig2Keys
7689
+ .concat(mergeDeepPropertiesKeys)
7690
+ .concat(defaultToConfig2Keys)
7691
+ .concat(directMergeKeys);
7692
+
7693
+ var otherKeys = Object
7694
+ .keys(config1)
7695
+ .concat(Object.keys(config2))
7696
+ .filter(function filterAxiosKeys(key) {
7697
+ return axiosKeys.indexOf(key) === -1;
7698
+ });
7699
+
7700
+ utils.forEach(otherKeys, mergeDeepProperties);
7701
+
7702
+ return config;
7703
+ };
7704
+
7705
+
7706
  /***/ }),
7707
 
7708
  /***/ "./node_modules/axios/lib/core/settle.js":
7726
  */
7727
  module.exports = function settle(resolve, reject, response) {
7728
  var validateStatus = response.config.validateStatus;
 
7729
  if (!response.status || !validateStatus || validateStatus(response.status)) {
7730
  resolve(response);
7731
  } else {
7802
  if (typeof XMLHttpRequest !== 'undefined') {
7803
  // For browsers use XHR adapter
7804
  adapter = __webpack_require__(/*! ./adapters/xhr */ "./node_modules/axios/lib/adapters/xhr.js");
7805
+ } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {
7806
  // For node use HTTP adapter
7807
  adapter = __webpack_require__(/*! ./adapters/http */ "./node_modules/axios/lib/adapters/xhr.js");
7808
  }
7813
  adapter: getDefaultAdapter(),
7814
 
7815
  transformRequest: [function transformRequest(data, headers) {
7816
+ normalizeHeaderName(headers, 'Accept');
7817
  normalizeHeaderName(headers, 'Content-Type');
7818
  if (utils.isFormData(data) ||
7819
  utils.isArrayBuffer(data) ||
7858
  xsrfHeaderName: 'X-XSRF-TOKEN',
7859
 
7860
  maxContentLength: -1,
7861
+ maxBodyLength: -1,
7862
 
7863
  validateStatus: function validateStatus(status) {
7864
  return status >= 200 && status < 300;
7922
 
7923
  function encode(val) {
7924
  return encodeURIComponent(val).
 
7925
  replace(/%3A/gi, ':').
7926
  replace(/%24/g, '$').
7927
  replace(/%2C/gi, ',').
7976
  }
7977
 
7978
  if (serializedParams) {
7979
+ var hashmarkIndex = url.indexOf('#');
7980
+ if (hashmarkIndex !== -1) {
7981
+ url = url.slice(0, hashmarkIndex);
7982
+ }
7983
+
7984
  url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
7985
  }
7986
 
8032
  utils.isStandardBrowserEnv() ?
8033
 
8034
  // Standard browser envs support document.cookie
8035
+ (function standardBrowserEnv() {
8036
+ return {
8037
+ write: function write(name, value, expires, path, domain, secure) {
8038
+ var cookie = [];
8039
+ cookie.push(name + '=' + encodeURIComponent(value));
8040
 
8041
+ if (utils.isNumber(expires)) {
8042
+ cookie.push('expires=' + new Date(expires).toGMTString());
8043
+ }
8044
 
8045
+ if (utils.isString(path)) {
8046
+ cookie.push('path=' + path);
8047
+ }
8048
 
8049
+ if (utils.isString(domain)) {
8050
+ cookie.push('domain=' + domain);
8051
+ }
8052
 
8053
+ if (secure === true) {
8054
+ cookie.push('secure');
8055
+ }
8056
 
8057
+ document.cookie = cookie.join('; ');
8058
+ },
8059
 
8060
+ read: function read(name) {
8061
+ var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
8062
+ return (match ? decodeURIComponent(match[3]) : null);
8063
+ },
8064
 
8065
+ remove: function remove(name) {
8066
+ this.write(name, '', Date.now() - 86400000);
8067
+ }
8068
+ };
8069
+ })() :
8070
 
8071
  // Non standard browser env (web workers, react-native) lack needed support.
8072
+ (function nonStandardBrowserEnv() {
8073
+ return {
8074
+ write: function write() {},
8075
+ read: function read() { return null; },
8076
+ remove: function remove() {}
8077
+ };
8078
+ })()
8079
  );
8080
 
8081
 
8105
  };
8106
 
8107
 
8108
+ /***/ }),
8109
+
8110
+ /***/ "./node_modules/axios/lib/helpers/isAxiosError.js":
8111
+ /*!********************************************************!*\
8112
+ !*** ./node_modules/axios/lib/helpers/isAxiosError.js ***!
8113
+ \********************************************************/
8114
+ /*! no static exports found */
8115
+ /***/ (function(module, exports, __webpack_require__) {
8116
+
8117
+ "use strict";
8118
+
8119
+
8120
+ /**
8121
+ * Determines whether the payload is an error thrown by Axios
8122
+ *
8123
+ * @param {*} payload The value to test
8124
+ * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
8125
+ */
8126
+ module.exports = function isAxiosError(payload) {
8127
+ return (typeof payload === 'object') && (payload.isAxiosError === true);
8128
+ };
8129
+
8130
+
8131
  /***/ }),
8132
 
8133
  /***/ "./node_modules/axios/lib/helpers/isURLSameOrigin.js":
8147
 
8148
  // Standard browser envs have full support of the APIs needed to test
8149
  // whether the request URL is of the same origin as current location.
8150
+ (function standardBrowserEnv() {
8151
+ var msie = /(msie|trident)/i.test(navigator.userAgent);
8152
+ var urlParsingNode = document.createElement('a');
8153
+ var originURL;
8154
 
8155
+ /**
8156
  * Parse a URL to discover it's components
8157
  *
8158
  * @param {String} url The URL to be parsed
8159
  * @returns {Object}
8160
  */
8161
+ function resolveURL(url) {
8162
+ var href = url;
8163
 
8164
+ if (msie) {
8165
  // IE needs attribute set twice to normalize properties
8166
+ urlParsingNode.setAttribute('href', href);
8167
+ href = urlParsingNode.href;
8168
+ }
8169
 
8170
+ urlParsingNode.setAttribute('href', href);
8171
 
8172
+ // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
8173
+ return {
8174
+ href: urlParsingNode.href,
8175
+ protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
8176
+ host: urlParsingNode.host,
8177
+ search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
8178
+ hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
8179
+ hostname: urlParsingNode.hostname,
8180
+ port: urlParsingNode.port,
8181
+ pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
8182
+ urlParsingNode.pathname :
8183
+ '/' + urlParsingNode.pathname
8184
+ };
8185
+ }
8186
 
8187
+ originURL = resolveURL(window.location.href);
8188
 
8189
+ /**
8190
  * Determine if a URL shares the same origin as the current location
8191
  *
8192
  * @param {String} requestURL The URL to test
8193
  * @returns {boolean} True if URL shares the same origin, otherwise false
8194
  */
8195
+ return function isURLSameOrigin(requestURL) {
8196
+ var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
8197
+ return (parsed.protocol === originURL.protocol &&
8198
  parsed.host === originURL.host);
8199
+ };
8200
+ })() :
8201
 
8202
  // Non standard browser envs (web workers, react-native) lack needed support.
8203
+ (function nonStandardBrowserEnv() {
8204
+ return function isURLSameOrigin() {
8205
+ return true;
8206
+ };
8207
+ })()
8208
  );
8209
 
8210
 
8349
 
8350
 
8351
  var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js");
 
8352
 
8353
  /*global toString:true*/
8354
 
8366
  return toString.call(val) === '[object Array]';
8367
  }
8368
 
8369
+ /**
8370
+ * Determine if a value is undefined
8371
+ *
8372
+ * @param {Object} val The value to test
8373
+ * @returns {boolean} True if the value is undefined, otherwise false
8374
+ */
8375
+ function isUndefined(val) {
8376
+ return typeof val === 'undefined';
8377
+ }
8378
+
8379
+ /**
8380
+ * Determine if a value is a Buffer
8381
+ *
8382
+ * @param {Object} val The value to test
8383
+ * @returns {boolean} True if value is a Buffer, otherwise false
8384
+ */
8385
+ function isBuffer(val) {
8386
+ return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
8387
+ && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);
8388
+ }
8389
+
8390
  /**
8391
  * Determine if a value is an ArrayBuffer
8392
  *
8444
  }
8445
 
8446
  /**
8447
+ * Determine if a value is an Object
8448
  *
8449
  * @param {Object} val The value to test
8450
+ * @returns {boolean} True if value is an Object, otherwise false
8451
  */
8452
+ function isObject(val) {
8453
+ return val !== null && typeof val === 'object';
8454
  }
8455
 
8456
  /**
8457
+ * Determine if a value is a plain Object
8458
  *
8459
  * @param {Object} val The value to test
8460
+ * @return {boolean} True if value is a plain Object, otherwise false
8461
  */
8462
+ function isPlainObject(val) {
8463
+ if (toString.call(val) !== '[object Object]') {
8464
+ return false;
8465
+ }
8466
+
8467
+ var prototype = Object.getPrototypeOf(val);
8468
+ return prototype === null || prototype === Object.prototype;
8469
  }
8470
 
8471
  /**
8550
  *
8551
  * react-native:
8552
  * navigator.product -> 'ReactNative'
8553
+ * nativescript
8554
+ * navigator.product -> 'NativeScript' or 'NS'
8555
  */
8556
  function isStandardBrowserEnv() {
8557
+ if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||
8558
+ navigator.product === 'NativeScript' ||
8559
+ navigator.product === 'NS')) {
8560
  return false;
8561
  }
8562
  return (
8624
  function merge(/* obj1, obj2, obj3, ... */) {
8625
  var result = {};
8626
  function assignValue(val, key) {
8627
+ if (isPlainObject(result[key]) && isPlainObject(val)) {
8628
  result[key] = merge(result[key], val);
8629
+ } else if (isPlainObject(val)) {
8630
+ result[key] = merge({}, val);
8631
+ } else if (isArray(val)) {
8632
+ result[key] = val.slice();
8633
  } else {
8634
  result[key] = val;
8635
  }
8660
  return a;
8661
  }
8662
 
8663
+ /**
8664
+ * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
8665
+ *
8666
+ * @param {string} content with BOM
8667
+ * @return {string} content value without BOM
8668
+ */
8669
+ function stripBOM(content) {
8670
+ if (content.charCodeAt(0) === 0xFEFF) {
8671
+ content = content.slice(1);
8672
+ }
8673
+ return content;
8674
+ }
8675
+
8676
  module.exports = {
8677
  isArray: isArray,
8678
  isArrayBuffer: isArrayBuffer,
8682
  isString: isString,
8683
  isNumber: isNumber,
8684
  isObject: isObject,
8685
+ isPlainObject: isPlainObject,
8686
  isUndefined: isUndefined,
8687
  isDate: isDate,
8688
  isFile: isFile,
8694
  forEach: forEach,
8695
  merge: merge,
8696
  extend: extend,
8697
+ trim: trim,
8698
+ stripBOM: stripBOM
8699
  };
8700
 
8701
 
9779
  /*! no static exports found */
9780
  /***/ (function(module, exports) {
9781
 
9782
+ var core = module.exports = { version: '2.6.12' };
9783
  if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
9784
 
9785
 
11783
  })('versions', []).push({
11784
  version: core.version,
11785
  mode: __webpack_require__(/*! ./_library */ "./node_modules/core-js/modules/_library.js") ? 'pure' : 'global',
11786
+ copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
11787
  });
11788
 
11789
 
18293
  });
18294
 
18295
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18296
  /***/ }),
18297
 
18298
  /***/ "./node_modules/process/browser.js":
18503
  var replace = String.prototype.replace;
18504
  var percentTwenties = /%20/g;
18505
 
 
 
18506
  var Format = {
18507
  RFC1738: 'RFC1738',
18508
  RFC3986: 'RFC3986'
18509
  };
18510
 
18511
+ module.exports = {
18512
+ 'default': Format.RFC3986,
18513
+ formatters: {
18514
+ RFC1738: function (value) {
18515
+ return replace.call(value, percentTwenties, '+');
18516
+ },
18517
+ RFC3986: function (value) {
18518
+ return String(value);
 
 
18519
  }
18520
  },
18521
+ RFC1738: Format.RFC1738,
18522
+ RFC3986: Format.RFC3986
18523
+ };
18524
 
18525
 
18526
  /***/ }),
18698
  }
18699
  }
18700
 
18701
+ leaf = obj;
18702
  }
18703
 
18704
  return leaf;
18892
  sort,
18893
  allowDots,
18894
  serializeDate,
18895
+ format,
18896
  formatter,
18897
  encodeValuesOnly,
18898
  charset
18908
  return serializeDate(value);
18909
  }
18910
  return value;
18911
+ });
18912
  }
18913
 
18914
  if (obj === null) {
18915
  if (strictNullHandling) {
18916
+ return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
18917
  }
18918
 
18919
  obj = '';
18921
 
18922
  if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
18923
  if (encoder) {
18924
+ var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
18925
+ return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
18926
  }
18927
  return [formatter(prefix) + '=' + formatter(String(obj))];
18928
  }
18934
  }
18935
 
18936
  var objKeys;
18937
+ if (generateArrayPrefix === 'comma' && isArray(obj)) {
18938
+ // we need to join elements in
18939
+ objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : undefined }];
18940
+ } else if (isArray(filter)) {
18941
  objKeys = filter;
18942
  } else {
18943
  var keys = Object.keys(obj);
18946
 
18947
  for (var i = 0; i < objKeys.length; ++i) {
18948
  var key = objKeys[i];
18949
+ var value = typeof key === 'object' && key.value !== undefined ? key.value : obj[key];
18950
 
18951
  if (skipNulls && value === null) {
18952
  continue;
18967
  sort,
18968
  allowDots,
18969
  serializeDate,
18970
+ format,
18971
  formatter,
18972
  encodeValuesOnly,
18973
  charset
19015
  encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
19016
  encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
19017
  filter: filter,
19018
+ format: format,
19019
  formatter: formatter,
19020
  serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
19021
  skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
19081
  options.sort,
19082
  options.allowDots,
19083
  options.serializeDate,
19084
+ options.format,
19085
  options.formatter,
19086
  options.encodeValuesOnly,
19087
  options.charset
19117
  "use strict";
19118
 
19119
 
19120
+ var formats = __webpack_require__(/*! ./formats */ "./node_modules/qs/lib/formats.js");
19121
+
19122
  var has = Object.prototype.hasOwnProperty;
19123
  var isArray = Array.isArray;
19124
 
19239
  }
19240
  };
19241
 
19242
+ var encode = function encode(str, defaultEncoder, charset, kind, format) {
19243
  // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
19244
  // It has been adapted here for stricter adherence to RFC 3986
19245
  if (str.length === 0) {
19271
  || (c >= 0x30 && c <= 0x39) // 0-9
19272
  || (c >= 0x41 && c <= 0x5A) // a-z
19273
  || (c >= 0x61 && c <= 0x7A) // A-Z
19274
+ || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
19275
  ) {
19276
  out += string.charAt(i);
19277
  continue;
core/dist/js/ajax-load-more.min.js CHANGED
@@ -1,13 +1,6 @@
1
- var ajaxloadmore=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=96)}([function(t,e,n){var r=n(1),o=n(7),a=n(15),i=n(11),s=n(18),l=function(t,e,n){var c,u,d,f,p=t&l.F,g=t&l.G,h=t&l.S,m=t&l.P,v=t&l.B,_=g?r:h?r[e]||(r[e]={}):(r[e]||{}).prototype,y=g?o:o[e]||(o[e]={}),b=y.prototype||(y.prototype={});for(c in g&&(n=e),n)d=((u=!p&&_&&void 0!==_[c])?_:n)[c],f=v&&u?s(d,r):m&&"function"==typeof d?s(Function.call,d):d,_&&i(_,c,d,t&l.U),y[c]!=d&&a(y,c,f),m&&b[c]!=d&&(b[c]=d)};r.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(51)("wks"),o=n(30),a=n(1).Symbol,i="function"==typeof a;(t.exports=function(t){return r[t]||(r[t]=i&&a[t]||(i?a:o)("Symbol."+t))}).store=r},function(t,e,n){var r=n(20),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(t,e,n){t.exports=!n(2)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(3),o=n(108),a=n(27),i=Object.defineProperty;e.f=n(8)?Object.defineProperty:function(t,e,n){if(r(t),e=a(e,!0),r(n),o)try{return i(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(25);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(1),o=n(15),a=n(14),i=n(30)("src"),s=n(185),l=(""+s).split("toString");n(7).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var c="function"==typeof n;c&&(a(n,"name")||o(n,"name",e)),t[e]!==n&&(c&&(a(n,i)||o(n,i,t[e]?""+t[e]:l.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[i]||s.call(this)}))},function(t,e,n){var r=n(0),o=n(2),a=n(25),i=/"/g,s=function(t,e,n,r){var o=String(a(t)),s="<"+e;return""!==n&&(s+=" "+n+'="'+String(r).replace(i,"&quot;")+'"'),s+">"+o+"</"+e+">"};t.exports=function(t,e){var n={};n[t]=e(s),r(r.P+r.F*o((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",n)}},function(t,e,n){"use strict";var r=n(97),o=n(141),a=Object.prototype.toString;function i(t){return"[object Array]"===a.call(t)}function s(t){return null!==t&&"object"==typeof t}function l(t){return"[object Function]"===a.call(t)}function c(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:i,isArrayBuffer:function(t){return"[object ArrayBuffer]"===a.call(t)},isBuffer:o,isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isUndefined:function(t){return void 0===t},isDate:function(t){return"[object Date]"===a.call(t)},isFile:function(t){return"[object File]"===a.call(t)},isBlob:function(t){return"[object Blob]"===a.call(t)},isFunction:l,isStream:function(t){return s(t)&&l(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function t(){var e={};function n(n,r){"object"==typeof e[r]&&"object"==typeof n?e[r]=t(e[r],n):e[r]=n}for(var r=0,o=arguments.length;r<o;r++)c(arguments[r],n);return e},extend:function(t,e,n){return c(e,(function(e,o){t[o]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(9),o=n(29);t.exports=n(8)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(45),o=n(25);t.exports=function(t){return r(o(t))}},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e){return!!t&&r((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},function(t,e,n){var r=n(19);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(46),o=n(29),a=n(16),i=n(27),s=n(14),l=n(108),c=Object.getOwnPropertyDescriptor;e.f=n(8)?c:function(t,e){if(t=a(t),e=i(e,!0),l)try{return c(t,e)}catch(t){}if(s(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(0),o=n(7),a=n(2);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],i={};i[t]=e(n),r(r.S+r.F*a((function(){n(1)})),"Object",i)}},function(t,e,n){var r=n(18),o=n(45),a=n(10),i=n(6),s=n(124);t.exports=function(t,e){var n=1==t,l=2==t,c=3==t,u=4==t,d=6==t,f=5==t||d,p=e||s;return function(e,s,g){for(var h,m,v=a(e),_=o(v),y=r(s,g,3),b=i(_.length),w=0,x=n?p(e,b):l?p(e,0):void 0;b>w;w++)if((f||w in _)&&(m=y(h=_[w],w,v),t))if(n)x[w]=m;else if(m)switch(t){case 3:return!0;case 5:return h;case 6:return w;case 2:x.push(h)}else if(u)return!1;return d?-1:c||u?u:x}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";if(n(8)){var r=n(31),o=n(1),a=n(2),i=n(0),s=n(62),l=n(94),c=n(18),u=n(43),d=n(29),f=n(15),p=n(44),g=n(20),h=n(6),m=n(135),v=n(33),_=n(27),y=n(14),b=n(47),w=n(4),x=n(10),S=n(86),A=n(34),j=n(36),E=n(35).f,L=n(88),P=n(30),M=n(5),O=n(23),T=n(52),I=n(48),F=n(90),C=n(41),N=n(55),k=n(42),R=n(89),q=n(126),D=n(9),z=n(21),B=D.f,W=z.f,H=o.RangeError,U=o.TypeError,V=o.Uint8Array,G=Array.prototype,Y=l.ArrayBuffer,X=l.DataView,Q=O(0),$=O(2),J=O(3),K=O(4),Z=O(5),tt=O(6),et=T(!0),nt=T(!1),rt=F.values,ot=F.keys,at=F.entries,it=G.lastIndexOf,st=G.reduce,lt=G.reduceRight,ct=G.join,ut=G.sort,dt=G.slice,ft=G.toString,pt=G.toLocaleString,gt=M("iterator"),ht=M("toStringTag"),mt=P("typed_constructor"),vt=P("def_constructor"),_t=s.CONSTR,yt=s.TYPED,bt=s.VIEW,wt=O(1,(function(t,e){return Et(I(t,t[vt]),e)})),xt=a((function(){return 1===new V(new Uint16Array([1]).buffer)[0]})),St=!!V&&!!V.prototype.set&&a((function(){new V(1).set({})})),At=function(t,e){var n=g(t);if(n<0||n%e)throw H("Wrong offset!");return n},jt=function(t){if(w(t)&&yt in t)return t;throw U(t+" is not a typed array!")},Et=function(t,e){if(!w(t)||!(mt in t))throw U("It is not a typed array constructor!");return new t(e)},Lt=function(t,e){return Pt(I(t,t[vt]),e)},Pt=function(t,e){for(var n=0,r=e.length,o=Et(t,r);r>n;)o[n]=e[n++];return o},Mt=function(t,e,n){B(t,e,{get:function(){return this._d[n]}})},Ot=function(t){var e,n,r,o,a,i,s=x(t),l=arguments.length,u=l>1?arguments[1]:void 0,d=void 0!==u,f=L(s);if(null!=f&&!S(f)){for(i=f.call(s),r=[],e=0;!(a=i.next()).done;e++)r.push(a.value);s=r}for(d&&l>2&&(u=c(u,arguments[2],2)),e=0,n=h(s.length),o=Et(this,n);n>e;e++)o[e]=d?u(s[e],e):s[e];return o},Tt=function(){for(var t=0,e=arguments.length,n=Et(this,e);e>t;)n[t]=arguments[t++];return n},It=!!V&&a((function(){pt.call(new V(1))})),Ft=function(){return pt.apply(It?dt.call(jt(this)):jt(this),arguments)},Ct={copyWithin:function(t,e){return q.call(jt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return K(jt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return R.apply(jt(this),arguments)},filter:function(t){return Lt(this,$(jt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Z(jt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(jt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Q(jt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(jt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(jt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ct.apply(jt(this),arguments)},lastIndexOf:function(t){return it.apply(jt(this),arguments)},map:function(t){return wt(jt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return st.apply(jt(this),arguments)},reduceRight:function(t){return lt.apply(jt(this),arguments)},reverse:function(){for(var t,e=jt(this).length,n=Math.floor(e/2),r=0;r<n;)t=this[r],this[r++]=this[--e],this[e]=t;return this},some:function(t){return J(jt(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return ut.call(jt(this),t)},subarray:function(t,e){var n=jt(this),r=n.length,o=v(t,r);return new(I(n,n[vt]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,h((void 0===e?r:v(e,r))-o))}},Nt=function(t,e){return Lt(this,dt.call(jt(this),t,e))},kt=function(t){jt(this);var e=At(arguments[1],1),n=this.length,r=x(t),o=h(r.length),a=0;if(o+e>n)throw H("Wrong length!");for(;a<o;)this[e+a]=r[a++]},Rt={entries:function(){return at.call(jt(this))},keys:function(){return ot.call(jt(this))},values:function(){return rt.call(jt(this))}},qt=function(t,e){return w(t)&&t[yt]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Dt=function(t,e){return qt(t,e=_(e,!0))?d(2,t[e]):W(t,e)},zt=function(t,e,n){return!(qt(t,e=_(e,!0))&&w(n)&&y(n,"value"))||y(n,"get")||y(n,"set")||n.configurable||y(n,"writable")&&!n.writable||y(n,"enumerable")&&!n.enumerable?B(t,e,n):(t[e]=n.value,t)};_t||(z.f=Dt,D.f=zt),i(i.S+i.F*!_t,"Object",{getOwnPropertyDescriptor:Dt,defineProperty:zt}),a((function(){ft.call({})}))&&(ft=pt=function(){return ct.call(this)});var Bt=p({},Ct);p(Bt,Rt),f(Bt,gt,Rt.values),p(Bt,{slice:Nt,set:kt,constructor:function(){},toString:ft,toLocaleString:Ft}),Mt(Bt,"buffer","b"),Mt(Bt,"byteOffset","o"),Mt(Bt,"byteLength","l"),Mt(Bt,"length","e"),B(Bt,ht,{get:function(){return this[yt]}}),t.exports=function(t,e,n,l){var c=t+((l=!!l)?"Clamped":"")+"Array",d="get"+t,p="set"+t,g=o[c],v=g||{},_=g&&j(g),y=!g||!s.ABV,x={},S=g&&g.prototype,L=function(t,n){B(t,n,{get:function(){return function(t,n){var r=t._d;return r.v[d](n*e+r.o,xt)}(this,n)},set:function(t){return function(t,n,r){var o=t._d;l&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),o.v[p](n*e+o.o,r,xt)}(this,n,t)},enumerable:!0})};y?(g=n((function(t,n,r,o){u(t,g,c,"_d");var a,i,s,l,d=0,p=0;if(w(n)){if(!(n instanceof Y||"ArrayBuffer"==(l=b(n))||"SharedArrayBuffer"==l))return yt in n?Pt(g,n):Ot.call(g,n);a=n,p=At(r,e);var v=n.byteLength;if(void 0===o){if(v%e)throw H("Wrong length!");if((i=v-p)<0)throw H("Wrong length!")}else if((i=h(o)*e)+p>v)throw H("Wrong length!");s=i/e}else s=m(n),a=new Y(i=s*e);for(f(t,"_d",{b:a,o:p,l:i,e:s,v:new X(a)});d<s;)L(t,d++)})),S=g.prototype=A(Bt),f(S,"constructor",g)):a((function(){g(1)}))&&a((function(){new g(-1)}))&&N((function(t){new g,new g(null),new g(1.5),new g(t)}),!0)||(g=n((function(t,n,r,o){var a;return u(t,g,c),w(n)?n instanceof Y||"ArrayBuffer"==(a=b(n))||"SharedArrayBuffer"==a?void 0!==o?new v(n,At(r,e),o):void 0!==r?new v(n,At(r,e)):new v(n):yt in n?Pt(g,n):Ot.call(g,n):new v(m(n))})),Q(_!==Function.prototype?E(v).concat(E(_)):E(v),(function(t){t in g||f(g,t,v[t])})),g.prototype=S,r||(S.constructor=g));var P=S[gt],M=!!P&&("values"==P.name||null==P.name),O=Rt.values;f(g,mt,!0),f(S,yt,c),f(S,bt,!0),f(S,vt,g),(l?new g(1)[ht]==c:ht in S)||B(S,ht,{get:function(){return c}}),x[c]=g,i(i.G+i.W+i.F*(g!=v),x),i(i.S,c,{BYTES_PER_ELEMENT:e}),i(i.S+i.F*a((function(){v.of.call(g,1)})),c,{from:Ot,of:Tt}),"BYTES_PER_ELEMENT"in S||f(S,"BYTES_PER_ELEMENT",e),i(i.P,c,Ct),k(c),i(i.P+i.F*St,c,{set:kt}),i(i.P+i.F*!M,c,Rt),r||S.toString==ft||(S.toString=ft),i(i.P+i.F*a((function(){new g(1).slice()})),c,{slice:Nt}),i(i.P+i.F*(a((function(){return[1,2].toLocaleString()!=new g([1,2]).toLocaleString()}))||!a((function(){S.toLocaleString.call([1,2])}))),c,{toLocaleString:Ft}),C[c]=M?P:O,r||M||f(S,gt,O)}}else t.exports=function(){}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(30)("meta"),o=n(4),a=n(14),i=n(9).f,s=0,l=Object.isExtensible||function(){return!0},c=!n(2)((function(){return l(Object.preventExtensions({}))})),u=function(t){i(t,r,{value:{i:"O"+ ++s,w:{}}})},d=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,r)){if(!l(t))return"F";if(!e)return"E";u(t)}return t[r].i},getWeak:function(t,e){if(!a(t,r)){if(!l(t))return!0;if(!e)return!1;u(t)}return t[r].w},onFreeze:function(t){return c&&d.NEED&&l(t)&&!a(t,r)&&u(t),t}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports=!1},function(t,e,n){var r=n(110),o=n(73);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(20),o=Math.max,a=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):a(t,e)}},function(t,e,n){var r=n(3),o=n(111),a=n(73),i=n(72)("IE_PROTO"),s=function(){},l=function(){var t,e=n(70)("iframe"),r=a.length;for(e.style.display="none",n(74).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;r--;)delete l.prototype[a[r]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[i]=t):n=l(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(110),o=n(73).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(14),o=n(10),a=n(72)("IE_PROTO"),i=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?i:null}},function(t,e,n){var r=n(5)("unscopables"),o=Array.prototype;null==o[r]&&n(15)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){var r=n(9).f,o=n(14),a=n(5)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,a)&&r(t,a,{configurable:!0,value:e})}},function(t,e,n){var r=n(0),o=n(25),a=n(2),i=n(76),s="["+i+"]",l=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),u=function(t,e,n){var o={},s=a((function(){return!!i[t]()||"​…"!="​…"[t]()})),l=o[t]=s?e(d):i[t];n&&(o[n]=l),r(r.P+r.F*s,"String",o)},d=u.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(c,"")),t};t.exports=u},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(1),o=n(9),a=n(8),i=n(5)("species");t.exports=function(t){var e=r[t];a&&e&&!e[i]&&o.f(e,i,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(11);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){var r=n(24);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(24),o=n(5)("toStringTag"),a="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:a?r(e):"Object"==(i=r(e))&&"function"==typeof e.callee?"Arguments":i}},function(t,e,n){var r=n(3),o=n(19),a=n(5)("species");t.exports=function(t,e){var n,i=r(t).constructor;return void 0===i||null==(n=r(i)[a])?e:o(n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!alm_localize.a11y_focus)return!1;t.addons.woocommerce||t.addons.elementor?r(!1,!1,e,!1,t.isSafari):t.transition_container&&n>0?t.addons.paging?r(t.init,t.addons.preloaded,t.listing,o,t.isSafari):t.addons.single_post||t.addons.nextpage?r(!1,t.addons.preloaded,e,o,t.isSafari):r(t.init,t.addons.preloaded,e,o,t.isSafari):t.transition_container||r(t.init,t.addons.preloaded,e[0],o,t.isSafari)};var r=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"false",n=arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!r&&(t||!n)&&"true"!==e)return!1;n.setAttribute("tabIndex","-1"),n.style.outline="none";var o=n.classList.contains("alm-listing")?n:n.parentNode,a=o.dataset.scrollContainer;if(a){var i=document.querySelector(a);i&&setTimeout((function(){n.focus({preventScroll:!0})}),50)}else setTimeout((function(){n.focus({preventScroll:!0})}),50)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){if(0==e)t.style.opacity=1,t.style.height="auto";else{e/=10;var n=0,r=setInterval((function(){n>.9&&(t.style.opacity=1,clearInterval(r)),t.style.opacity=n,n+=.1}),e);t.style.height="auto"}}},function(t,e,n){var r=n(7),o=n(1),a=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(31)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(16),o=n(6),a=n(33);t.exports=function(t){return function(e,n,i){var s,l=r(e),c=o(l.length),u=a(i,c);if(t&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(24);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(5)("iterator"),o=!1;try{var a=[7][r]();a.return=function(){o=!0},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var a=[7],i=a[r]();i.next=function(){return{done:n=!0}},a[r]=function(){return i},t(a)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(3);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){"use strict";var r=n(47),o=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var a=n.call(t,e);if("object"!=typeof a)throw new TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},function(t,e,n){"use strict";n(128);var r=n(11),o=n(15),a=n(2),i=n(25),s=n(5),l=n(91),c=s("species"),u=!a((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),d=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var f=s(t),p=!a((function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})),g=p?!a((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[f](""),!e})):void 0;if(!p||!g||"replace"===t&&!u||"split"===t&&!d){var h=/./[f],m=n(i,f,""[t],(function(t,e,n,r,o){return e.exec===l?p&&!o?{done:!0,value:h.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}})),v=m[0],_=m[1];r(String.prototype,t,v),o(RegExp.prototype,f,2==e?function(t,e){return _.call(t,this,e)}:function(t){return _.call(t,this)})}}},function(t,e,n){var r=n(18),o=n(123),a=n(86),i=n(3),s=n(6),l=n(88),c={},u={};(e=t.exports=function(t,e,n,d,f){var p,g,h,m,v=f?function(){return t}:l(t),_=r(n,d,e?2:1),y=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(a(v)){for(p=s(t.length);p>y;y++)if((m=e?_(i(g=t[y])[0],g[1]):_(t[y]))===c||m===u)return m}else for(h=v.call(t);!(g=h.next()).done;)if((m=o(h,_,g.value,e))===c||m===u)return m}).BREAK=c,e.RETURN=u},function(t,e,n){var r=n(1).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){"use strict";var r=n(1),o=n(0),a=n(11),i=n(44),s=n(28),l=n(59),c=n(43),u=n(4),d=n(2),f=n(55),p=n(39),g=n(77);t.exports=function(t,e,n,h,m,v){var _=r[t],y=_,b=m?"set":"add",w=y&&y.prototype,x={},S=function(t){var e=w[t];a(w,t,"delete"==t||"has"==t?function(t){return!(v&&!u(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return v&&!u(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof y&&(v||w.forEach&&!d((function(){(new y).entries().next()})))){var A=new y,j=A[b](v?{}:-0,1)!=A,E=d((function(){A.has(1)})),L=f((function(t){new y(t)})),P=!v&&d((function(){for(var t=new y,e=5;e--;)t[b](e,e);return!t.has(-0)}));L||((y=e((function(e,n){c(e,y,t);var r=g(new _,e,y);return null!=n&&l(n,m,r[b],r),r}))).prototype=w,w.constructor=y),(E||P)&&(S("delete"),S("has"),m&&S("get")),(P||j)&&S(b),v&&w.clear&&delete w.clear}else y=h.getConstructor(e,t,m,b),i(y.prototype,n),s.NEED=!0;return p(y,t),x[t]=y,o(o.G+o.W+o.F*(y!=_),x),v||h.setStrong(y,t,m),y}},function(t,e,n){for(var r,o=n(1),a=n(15),i=n(30),s=i("typed_array"),l=i("view"),c=!(!o.ArrayBuffer||!o.DataView),u=c,d=0,f="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");d<9;)(r=o[f[d++]])?(a(r.prototype,s,!0),a(r.prototype,l,!0)):u=!1;t.exports={ABV:c,CONSTR:u,TYPED:s,VIEW:l}},function(t,e,n){t.exports=n(140)},function(t,e,n){"use strict";(function(e){var r=n(13),o=n(144),a={"Content-Type":"application/x-www-form-urlencoded"};function i(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var s,l={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==e)&&(s=n(98)),s),transformRequest:[function(t,e){return o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(i(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(i(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(t){l.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){l.headers[t]=r.merge(a)})),t.exports=l}).call(this,n(143))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseQuerystring=function(t){var e=window.location.search.substring(1),n="",r="";e&&((n=JSON.parse('{"'+e.replace(/&/g,'","').replace(/=/g,'":"')+'"}',(function(t,e){return""===t?e:decodeURIComponent(e.replace(/\+/g,"-"))}))).pg&&delete n.pg,n.auto&&delete n.auto);n&&(r+="/",Object.keys(n).forEach((function(t,e){r+=e>0?"--":"",r+=t+"--"+n[t]})));return t+r},e.buildFilterURL=i,e.createMasonryFiltersPage=function(t,e){if(!t.addons.filters)return e;var n=window.location.search,r=t.page+1;return r="true"===t.addons.preloaded?r+1:r,e=s(t,e,n,r)},e.createMasonryFiltersPages=function(t,e){if(!t.addons.filters)return e;var n=1,r=t.page,o=window.location.search;if(t.addons.filters_startpage>1){for(var a=parseInt(t.posts_per_page),i=[],l=0;l<e.length;l+=a)i.push(e.slice(l,a+l));for(var c=0;c<i.length;c++){var u=c>0?c*a:0;n=c+1,e[u]&&(e[u]=s(t,e[u],o,n))}}else n=r,e&&e[0]&&(e[0]=s(t,e[0],o,n));return e};var r,o=n(164),a=(r=o)&&r.__esModule?r:{default:r};function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=e;return t.addons.filters_paging&&(r=n>1?r?(0,a.default)("pg")?e.replace(/(pg=)[^\&]+/,"$1"+n):e+"&pg="+n:"?pg="+n:"&"===(r="?"===(r=e.replace(/(pg=)[^\&]+/,""))?"":r)[r.length-1]?r.slice(0,-1):r),r}function s(t,e,n,r){if(e.classList.add("alm-filters"),e.dataset.page=r,r>1)e.dataset.url=t.canonical_url+i(t,n,r);else{var o=n.replace(/(pg=)[^\&]+/,"");o="?"===o?"":o,e.dataset.url=t.canonical_url+o}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text/html";if(!t)return!1;var n=new DOMParser,r=n.parseFromString(t,e);return r?Array.prototype.slice.call(r.body.childNodes):r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!t)return!1;if(e.indexOf("Safari")>-1&&-1!=e.indexOf("Chrome")||e.indexOf("Firefox")>-1||e.indexOf("Windows")>-1)return!1;for(var n=t.querySelectorAll("img[srcset]:not(.alm-loaded)"),r=0;r<n.length;r++){var o=n[r];o.classList.add("alm-loaded"),o.outerHTML=o.outerHTML}}},function(t,e,n){var r,o;
2
  /*!
3
  * imagesLoaded v4.1.4
4
  * JavaScript is all like "You images are done yet or what?"
5
  * MIT License
6
- */!function(a,i){"use strict";r=[n(170)],void 0===(o=function(t){return function(t,e){var n=t.jQuery,r=t.console;function o(t,e){for(var n in e)t[n]=e[n];return t}var a=Array.prototype.slice;function i(t,e,s){if(!(this instanceof i))return new i(t,e,s);var l,c=t;("string"==typeof t&&(c=document.querySelectorAll(t)),c)?(this.elements=(l=c,Array.isArray(l)?l:"object"==typeof l&&"number"==typeof l.length?a.call(l):[l]),this.options=o({},this.options),"function"==typeof e?s=e:o(this.options,e),s&&this.on("always",s),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(this.check.bind(this))):r.error("Bad element for imagesLoaded "+(c||t))}i.prototype=Object.create(e.prototype),i.prototype.options={},i.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},i.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&s[e]){for(var n=t.querySelectorAll("img"),r=0;r<n.length;r++){var o=n[r];this.addImage(o)}if("string"==typeof this.options.background){var a=t.querySelectorAll(this.options.background);for(r=0;r<a.length;r++){var i=a[r];this.addElementBackgroundImages(i)}}}};var s={1:!0,9:!0,11:!0};function l(t){this.img=t}function c(t,e){this.url=t,this.element=e,this.img=new Image}return i.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var n=/url\((['"])?(.*?)\1\)/gi,r=n.exec(e.backgroundImage);null!==r;){var o=r&&r[2];o&&this.addBackground(o,t),r=n.exec(e.backgroundImage)}},i.prototype.addImage=function(t){var e=new l(t);this.images.push(e)},i.prototype.addBackground=function(t,e){var n=new c(t,e);this.images.push(n)},i.prototype.check=function(){var t=this;function e(e,n,r){setTimeout((function(){t.progress(e,n,r)}))}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach((function(t){t.once("progress",e),t.check()})):this.complete()},i.prototype.progress=function(t,e,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&r&&r.log("progress: "+n,t,e)},i.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},l.prototype=Object.create(e.prototype),l.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},l.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},l.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},l.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},l.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},l.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},l.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},c.prototype=Object.create(l.prototype),c.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},c.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},c.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},i.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((n=e).fn.imagesLoaded=function(t,e){return new i(this,t,e).jqDeferred.promise(n(this))})},i.makeJQueryPlugin(),i}(a,t)}.apply(e,r))||(t.exports=o)}("undefined"!=typeof window?window:this)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){e/=10,t.style.opacity=.5;var n=setInterval((function(){t.style.opacity<.1?clearInterval(n):t.style.opacity-=.1}),e)}},function(t,e,n){var r=n(4),o=n(1).document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},function(t,e,n){e.f=n(5)},function(t,e,n){var r=n(51)("keys"),o=n(30);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(1).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(4),o=n(3),a=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(18)(Function.call,n(21).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return a(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:a}},function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,e,n){var r=n(4),o=n(75).set;t.exports=function(t,e,n){var a,i=e.constructor;return i!==n&&"function"==typeof i&&(a=i.prototype)!==n.prototype&&r(a)&&o&&o(t,a),t}},function(t,e,n){"use strict";var r=n(20),o=n(25);t.exports=function(t){var e=String(o(this)),n="",a=r(t);if(a<0||a==1/0)throw RangeError("Count can't be negative");for(;a>0;(a>>>=1)&&(e+=e))1&a&&(n+=e);return n}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e,n){var r=n(20),o=n(25);t.exports=function(t){return function(e,n){var a,i,s=String(o(e)),l=r(n),c=s.length;return l<0||l>=c?t?"":void 0:(a=s.charCodeAt(l))<55296||a>56319||l+1===c||(i=s.charCodeAt(l+1))<56320||i>57343?t?s.charAt(l):a:t?s.slice(l,l+2):i-56320+(a-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(31),o=n(0),a=n(11),i=n(15),s=n(41),l=n(122),c=n(39),u=n(36),d=n(5)("iterator"),f=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,n,g,h,m,v){l(n,e,g);var _,y,b,w=function(t){if(!f&&t in j)return j[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",S="values"==h,A=!1,j=t.prototype,E=j[d]||j["@@iterator"]||h&&j[h],L=E||w(h),P=h?S?w("entries"):L:void 0,M="Array"==e&&j.entries||E;if(M&&(b=u(M.call(new t)))!==Object.prototype&&b.next&&(c(b,x,!0),r||"function"==typeof b[d]||i(b,d,p)),S&&E&&"values"!==E.name&&(A=!0,L=function(){return E.call(this)}),r&&!v||!f&&!A&&j[d]||i(j,d,L),s[e]=L,s[x]=p,h)if(_={values:S?L:w("values"),keys:m?L:w("keys"),entries:P},v)for(y in _)y in j||a(j,y,_[y]);else o(o.P+o.F*(f||A),e,_);return _}},function(t,e,n){var r=n(84),o=n(25);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},function(t,e,n){var r=n(4),o=n(24),a=n(5)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==o(t))}},function(t,e,n){var r=n(5)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){var r=n(41),o=n(5)("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||a[o]===t)}},function(t,e,n){"use strict";var r=n(9),o=n(29);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(47),o=n(5)("iterator"),a=n(41);t.exports=n(7).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||a[r(t)]}},function(t,e,n){"use strict";var r=n(10),o=n(33),a=n(6);t.exports=function(t){for(var e=r(this),n=a(e.length),i=arguments.length,s=o(i>1?arguments[1]:void 0,n),l=i>2?arguments[2]:void 0,c=void 0===l?n:o(l,n);c>s;)e[s++]=t;return e}},function(t,e,n){"use strict";var r=n(37),o=n(127),a=n(41),i=n(16);t.exports=n(82)(Array,"Array",(function(t,e){this._t=i(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},function(t,e,n){"use strict";var r,o,a=n(56),i=RegExp.prototype.exec,s=String.prototype.replace,l=i,c=(r=/a/,o=/b*/g,i.call(r,"a"),i.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),u=void 0!==/()??/.exec("")[1];(c||u)&&(l=function(t){var e,n,r,o,l=this;return u&&(n=new RegExp("^"+l.source+"$(?!\\s)",a.call(l))),c&&(e=l.lastIndex),r=i.call(l,t),c&&r&&(l.lastIndex=l.global?r.index+r[0].length:e),u&&r&&r.length>1&&s.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),t.exports=l},function(t,e,n){"use strict";var r=n(81)(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e,n){var r,o,a,i=n(18),s=n(116),l=n(74),c=n(70),u=n(1),d=u.process,f=u.setImmediate,p=u.clearImmediate,g=u.MessageChannel,h=u.Dispatch,m=0,v={},_=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},y=function(t){_.call(t.data)};f&&p||(f=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++m]=function(){s("function"==typeof t?t:Function(t),e)},r(m),m},p=function(t){delete v[t]},"process"==n(24)(d)?r=function(t){d.nextTick(i(_,t,1))}:h&&h.now?r=function(t){h.now(i(_,t,1))}:g?(a=(o=new g).port2,o.port1.onmessage=y,r=i(a.postMessage,a,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(t){u.postMessage(t+"","*")},u.addEventListener("message",y,!1)):r="onreadystatechange"in c("script")?function(t){l.appendChild(c("script")).onreadystatechange=function(){l.removeChild(this),_.call(t)}}:function(t){setTimeout(i(_,t,1),0)}),t.exports={set:f,clear:p}},function(t,e,n){"use strict";var r=n(1),o=n(8),a=n(31),i=n(62),s=n(15),l=n(44),c=n(2),u=n(43),d=n(20),f=n(6),p=n(135),g=n(35).f,h=n(9).f,m=n(89),v=n(39),_=r.ArrayBuffer,y=r.DataView,b=r.Math,w=r.RangeError,x=r.Infinity,S=_,A=b.abs,j=b.pow,E=b.floor,L=b.log,P=b.LN2,M=o?"_b":"buffer",O=o?"_l":"byteLength",T=o?"_o":"byteOffset";function I(t,e,n){var r,o,a,i=new Array(n),s=8*n-e-1,l=(1<<s)-1,c=l>>1,u=23===e?j(2,-24)-j(2,-77):0,d=0,f=t<0||0===t&&1/t<0?1:0;for((t=A(t))!=t||t===x?(o=t!=t?1:0,r=l):(r=E(L(t)/P),t*(a=j(2,-r))<1&&(r--,a*=2),(t+=r+c>=1?u/a:u*j(2,1-c))*a>=2&&(r++,a/=2),r+c>=l?(o=0,r=l):r+c>=1?(o=(t*a-1)*j(2,e),r+=c):(o=t*j(2,c-1)*j(2,e),r=0));e>=8;i[d++]=255&o,o/=256,e-=8);for(r=r<<e|o,s+=e;s>0;i[d++]=255&r,r/=256,s-=8);return i[--d]|=128*f,i}function F(t,e,n){var r,o=8*n-e-1,a=(1<<o)-1,i=a>>1,s=o-7,l=n-1,c=t[l--],u=127&c;for(c>>=7;s>0;u=256*u+t[l],l--,s-=8);for(r=u&(1<<-s)-1,u>>=-s,s+=e;s>0;r=256*r+t[l],l--,s-=8);if(0===u)u=1-i;else{if(u===a)return r?NaN:c?-x:x;r+=j(2,e),u-=i}return(c?-1:1)*r*j(2,u-e)}function C(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function N(t){return[255&t]}function k(t){return[255&t,t>>8&255]}function R(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function q(t){return I(t,52,8)}function D(t){return I(t,23,4)}function z(t,e,n){h(t.prototype,e,{get:function(){return this[n]}})}function B(t,e,n,r){var o=p(+n);if(o+e>t[O])throw w("Wrong index!");var a=t[M]._b,i=o+t[T],s=a.slice(i,i+e);return r?s:s.reverse()}function W(t,e,n,r,o,a){var i=p(+n);if(i+e>t[O])throw w("Wrong index!");for(var s=t[M]._b,l=i+t[T],c=r(+o),u=0;u<e;u++)s[l+u]=c[a?u:e-u-1]}if(i.ABV){if(!c((function(){_(1)}))||!c((function(){new _(-1)}))||c((function(){return new _,new _(1.5),new _(NaN),"ArrayBuffer"!=_.name}))){for(var H,U=(_=function(t){return u(this,_),new S(p(t))}).prototype=S.prototype,V=g(S),G=0;V.length>G;)(H=V[G++])in _||s(_,H,S[H]);a||(U.constructor=_)}var Y=new y(new _(2)),X=y.prototype.setInt8;Y.setInt8(0,2147483648),Y.setInt8(1,2147483649),!Y.getInt8(0)&&Y.getInt8(1)||l(y.prototype,{setInt8:function(t,e){X.call(this,t,e<<24>>24)},setUint8:function(t,e){X.call(this,t,e<<24>>24)}},!0)}else _=function(t){u(this,_,"ArrayBuffer");var e=p(t);this._b=m.call(new Array(e),0),this[O]=e},y=function(t,e,n){u(this,y,"DataView"),u(t,_,"DataView");var r=t[O],o=d(e);if(o<0||o>r)throw w("Wrong offset!");if(o+(n=void 0===n?r-o:f(n))>r)throw w("Wrong length!");this[M]=t,this[T]=o,this[O]=n},o&&(z(_,"byteLength","_l"),z(y,"buffer","_b"),z(y,"byteLength","_l"),z(y,"byteOffset","_o")),l(y.prototype,{getInt8:function(t){return B(this,1,t)[0]<<24>>24},getUint8:function(t){return B(this,1,t)[0]},getInt16:function(t){var e=B(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=B(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return C(B(this,4,t,arguments[1]))},getUint32:function(t){return C(B(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return F(B(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return F(B(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){W(this,1,t,N,e)},setUint8:function(t,e){W(this,1,t,N,e)},setInt16:function(t,e){W(this,2,t,k,e,arguments[2])},setUint16:function(t,e){W(this,2,t,k,e,arguments[2])},setInt32:function(t,e){W(this,4,t,R,e,arguments[2])},setUint32:function(t,e){W(this,4,t,R,e,arguments[2])},setFloat32:function(t,e){W(this,4,t,D,e,arguments[2])},setFloat64:function(t,e){W(this,8,t,q,e,arguments[2])}});v(_,"ArrayBuffer"),v(y,"DataView"),s(y.prototype,i.VIEW,!0),e.ArrayBuffer=_,e.DataView=y},function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),i=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:i,assign:function(t,e){return Object.keys(e).reduce((function(t,n){return t[n]=e[n],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var a=e[r],i=a.obj[a.prop],s=Object.keys(i),l=0;l<s.length;++l){var c=s[l],u=i[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(e.push({obj:i,prop:c}),n.push(u))}return function(t){for(;t.length>1;){var e=t.pop(),n=e.obj[e.prop];if(o(n)){for(var r=[],a=0;a<n.length;++a)void 0!==n[a]&&r.push(n[a]);e.obj[e.prop]=r}}}(e),t},decode:function(t,e,n){var r=t.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(t){return r}},encode:function(t,e,n){if(0===t.length)return t;var r=t;if("symbol"==typeof t?r=Symbol.prototype.toString.call(t):"string"!=typeof t&&(r=String(t)),"iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var o="",i=0;i<r.length;++i){var s=r.charCodeAt(i);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?o+=r.charAt(i):s<128?o+=a[s]:s<2048?o+=a[192|s>>6]+a[128|63&s]:s<55296||s>=57344?o+=a[224|s>>12]+a[128|s>>6&63]+a[128|63&s]:(i+=1,s=65536+((1023&s)<<10|1023&r.charCodeAt(i)),o+=a[240|s>>18]+a[128|s>>12&63]+a[128|s>>6&63]+a[128|63&s])}return o},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(o(t)){for(var n=[],r=0;r<t.length;r+=1)n.push(e(t[r]));return n}return e(t)},merge:function t(e,n,a){if(!n)return e;if("object"!=typeof n){if(o(e))e.push(n);else{if(!e||"object"!=typeof e)return[e,n];(a&&(a.plainObjects||a.allowPrototypes)||!r.call(Object.prototype,n))&&(e[n]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(n);var s=e;return o(e)&&!o(n)&&(s=i(e,a)),o(e)&&o(n)?(n.forEach((function(n,o){if(r.call(e,o)){var i=e[o];i&&"object"==typeof i&&n&&"object"==typeof n?e[o]=t(i,n,a):e.push(n)}else e[o]=n})),e):Object.keys(n).reduce((function(e,o){var i=n[o];return r.call(e,o)?e[o]=t(e[o],i,a):e[o]=i,e}),s)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.render=e.getOffset=e.almScroll=e.start=e.tracking=e.tab=e.reset=e.filter=void 0;var r=C(n(63)),o=C(n(158));n(159);var a=C(n(160)),i=C(n(102)),s=C(n(162)),l=C(n(163)),c=C(n(66)),u=C(n(103)),d=F(n(165)),f=F(n(104)),p=n(105),g=C(n(166)),h=C(n(167)),m=C(n(49)),v=C(n(168)),_=C(n(169)),y=C(n(50)),b=C(n(69)),w=C(n(171)),x=C(n(172)),S=C(n(173)),A=C(n(174)),j=C(n(67)),E=n(175),L=n(176),P=n(177),M=n(178),O=n(180),T=n(65),I=n(106);function F(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function C(t){return t&&t.__esModule?t:{default:t}}function N(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,n){return function r(o,a){try{var i=e[o](a),s=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(s).then((function(t){r("next",t)}),(function(t){r("throw",t)}));t(s)}("next")}))}}n(181),n(354),n(355);var k=n(356),R=n(68);o.default.polyfill();var q=!1;!function(){var t=function(t,e){alm_localize&&"true"===alm_localize.scrolltop&&window.scrollTo(0,0);var n=this;n.AjaxLoadMore={},n.addons={},n.extensions={},n.integration={},n.window=window,n.page=0,n.posts=0,n.totalposts=0,n.proceed=!1,n.disable_ajax=!1,n.init=!0,n.loading=!0,n.finished=!1,n.timer=null,n.ua=window.navigator.userAgent?window.navigator.userAgent:"",n.vendor=window.navigator.vendor?window.navigator.vendor:"",n.isSafari=/Safari/i.test(n.ua)&&/Apple Computer/.test(n.vendor)&&!/Mobi|Android/i.test(n.ua),n.master_id=t.dataset.id?"ajax-load-more-"+t.dataset.id:t.id,t.classList.add("alm-"+e),t.setAttribute("data-alm-id",e),n.master_id=n.master_id.replace(/-/g,"_"),n.localize=window[n.master_id+"_vars"],n.main=t,n.listing=t.querySelector(".alm-listing")||t.querySelector(".alm-comments"),n.content=n.listing,n.el=n.content,n.ajax=t.querySelector(".alm-ajax"),n.container_type=n.listing.dataset.containerType,n.canonical_url=t.dataset.canonicalUrl,n.nested=t.dataset.nested?t.dataset.nested:null,n.is_search=t.dataset.search,n.slug=t.dataset.slug,n.post_id=t.dataset.postId,n.id=t.dataset.id?t.dataset.id:"";var o=t.querySelector(".alm-no-results");if(n.no_results=o?o.innerHTML:"",n.repeater=n.listing.dataset.repeater,n.theme_repeater=n.listing.dataset.themeRepeater,n.post_type=n.listing.dataset.postType?n.listing.dataset.postType:"post",n.sticky_posts=n.listing.dataset.stickyPosts?n.listing.dataset.stickyPosts:null,n.btnWrap=t.querySelectorAll(".alm-btn-wrap"),n.btnWrap=Array.prototype.slice.call(n.btnWrap),n.btnWrap[n.btnWrap.length-1].style.visibility="visible",n.trigger=n.btnWrap[n.btnWrap.length-1],n.button=n.trigger.querySelector("button.alm-load-more-btn"),n.button_label=n.listing.dataset.buttonLabel,n.button_loading_label=n.listing.dataset.buttonLoadingLabel,n.button_done_label=n.listing.dataset.buttonDoneLabel,n.placeholder=n.main.querySelector(".alm-placeholder"),n.scroll_distance=n.listing.dataset.scrollDistance,n.scroll_distance=n.scroll_distance?n.scroll_distance:100,n.scroll_container=n.listing.dataset.scrollContainer,n.scroll_direction=n.listing.dataset.scrollDirection,n.max_pages=n.listing.dataset.maxPages?parseInt(n.listing.dataset.maxPages):0,n.pause_override=n.listing.dataset.pauseOverride,n.pause=!!n.listing.dataset.pause&&n.listing.dataset.pause,n.transition=n.listing.dataset.transition,n.transition_container=n.listing.dataset.transitionContainer,n.tcc=n.listing.dataset.transitionContainerClasses,n.speed=alm_localize.speed?parseInt(alm_localize.speed):200,n.images_loaded=!!n.listing.dataset.imagesLoaded&&n.listing.dataset.imagesLoaded,n.destroy_after=n.listing.dataset.destroyAfter?n.listing.dataset.destroyAfter:"",n.orginal_posts_per_page=parseInt(n.listing.dataset.postsPerPage),n.posts_per_page=n.listing.dataset.postsPerPage,n.offset=n.listing.dataset.offset?parseInt(n.listing.dataset.offset):0,n.integration.woocommerce=!!n.listing.dataset.woocommerce&&n.listing.dataset.woocommerce,n.integration.woocommerce="true"===n.integration.woocommerce,n.is_search=void 0!==n.is_search&&n.is_search,n.search_value="true"===n.is_search?n.slug:"",n.addons.elementor=!("posts"!==n.listing.dataset.elementor||!n.listing.dataset.elementorSettings),n.addons.elementor&&(n=(0,O.elementorCreateParams)(n)),n.addons.woocommerce=!(!n.listing.dataset.woo||"true"!==n.listing.dataset.woo),n.addons.woocommerce&&n.listing.dataset.wooSettings&&(n.addons.woocommerce_settings=JSON.parse(n.listing.dataset.wooSettings),n.addons.woocommerce_settings.results_text=document.querySelectorAll(n.addons.woocommerce_settings.results),n.page=parseInt(n.page)+parseInt(n.addons.woocommerce_settings.paged)),n.addons.cache=n.listing.dataset.cache,n.addons.cache=void 0!==n.addons.cache&&n.addons.cache,"true"===n.addons.cache&&(n.addons.cache_id=n.listing.dataset.cacheId,n.addons.cache_path=n.listing.dataset.cachePath,n.addons.cache_logged_in=n.listing.dataset.cacheLoggedIn,n.addons.cache_logged_in=void 0!==n.addons.cache_logged_in&&n.addons.cache_logged_in),n.addons.cta=!!n.listing.dataset.cta&&n.listing.dataset.cta,"true"===n.addons.cta&&(n.addons.cta_position=n.listing.dataset.ctaPosition,n.addons.cta_repeater=n.listing.dataset.ctaRepeater,n.addons.cta_theme_repeater=n.listing.dataset.ctaThemeRepeater),n.addons.nextpage=n.listing.dataset.nextpage,"true"===n.addons.nextpage&&(n.addons.nextpage_urls=n.listing.dataset.nextpageUrls,n.addons.nextpage_scroll=n.listing.dataset.nextpageScroll,n.addons.nextpage_pageviews=n.listing.dataset.nextpagePageviews,n.addons.nextpage_post_id=n.listing.dataset.nextpagePostId,n.addons.nextpage_startpage=n.listing.dataset.nextpageStartpage),n.addons.single_post=n.listing.dataset.singlePost,"true"===n.addons.single_post&&(n.addons.single_post_id=n.listing.dataset.singlePostId,n.addons.single_post_query=n.listing.dataset.singlePostQuery,n.addons.single_post_order=n.listing.dataset.singlePostOrder,n.addons.single_post_init_id=n.listing.dataset.singlePostId,n.addons.single_post_taxonomy=n.listing.dataset.singlePostTaxonomy,n.addons.single_post_excluded_terms=n.listing.dataset.singlePostExcludedTerms,n.addons.single_post_progress_bar=n.listing.dataset.singlePostProgressBar,n.addons.single_post_target=n.listing.dataset.singlePostTarget),n.addons.comments=!!n.listing.dataset.comments&&n.listing.dataset.comments,"true"===n.addons.comments&&(n.addons.comments_post_id=n.listing.dataset.comments_post_id,n.addons.comments_per_page=n.listing.dataset.comments_per_page,n.addons.comments_per_page=void 0===n.addons.comments_per_page?"5":n.addons.comments_per_page,n.addons.comments_type=n.listing.dataset.comments_type,n.addons.comments_style=n.listing.dataset.comments_style,n.addons.comments_template=n.listing.dataset.comments_template,n.addons.comments_callback=n.listing.dataset.comments_callback),n.addons.tabs=n.listing.dataset.tabs,n.addons.filters=n.listing.dataset.filters,n.addons.seo=n.listing.dataset.seo,n.addons.preloaded=n.listing.dataset.preloaded,n.addons.preloaded_amount=n.listing.dataset.preloadedAmount?n.listing.dataset.preloadedAmount:0,n.is_preloaded="true"===n.listing.dataset.isPreloaded,n.addons.users="true"===n.listing.dataset.users,n.addons.users&&(n.orginal_posts_per_page=n.listing.dataset.usersPerPage,n.posts_per_page=n.listing.dataset.usersPerPage),n.extensions.restapi=n.listing.dataset.restapi,n.extensions.restapi_base_url=n.listing.dataset.restapiBaseUrl,n.extensions.restapi_namespace=n.listing.dataset.restapiNamespace,n.extensions.restapi_endpoint=n.listing.dataset.restapiEndpoint,n.extensions.restapi_template_id=n.listing.dataset.restapiTemplateId,n.extensions.restapi_debug=n.listing.dataset.restapiDebug,n.extensions.acf=n.listing.dataset.acf,n.extensions.acf_field_type=n.listing.dataset.acfFieldType,n.extensions.acf_field_name=n.listing.dataset.acfFieldName,n.extensions.acf_parent_field_name=n.listing.dataset.acfParentFieldName,n.extensions.acf_post_id=n.listing.dataset.acfPostId,n.extensions.acf="true"===n.extensions.acf,void 0!==n.extensions.acf_field_type&&void 0!==n.extensions.acf_field_name&&void 0!==n.extensions.acf_post_id||(n.extensions.acf=!1),n.extensions.term_query=n.listing.dataset.termQuery,n.extensions.term_query_taxonomy=n.listing.dataset.termQueryTaxonomy,n.extensions.term_query_hide_empty=n.listing.dataset.termQueryHideEmpty,n.extensions.term_query_number=n.listing.dataset.termQueryNumber,n.extensions.term_query="true"===n.extensions.term_query,n.addons.paging=n.listing.dataset.paging,"true"===n.addons.paging?(n.addons.paging=!0,n.addons.paging_init=!0,n.addons.paging_controls="true"===n.listing.dataset.pagingControls,n.addons.paging_show_at_most=n.listing.dataset.pagingShowAtMost,n.addons.paging_classes=n.listing.dataset.pagingClasses,n.addons.paging_show_at_most=void 0===n.addons.paging_show_at_most?7:n.addons.paging_show_at_most,n.addons.paging_first_label=n.listing.dataset.pagingFirstLabel,n.addons.paging_previous_label=n.listing.dataset.pagingPreviousLabel,n.addons.paging_next_label=n.listing.dataset.pagingNextLabel,n.addons.paging_last_label=n.listing.dataset.pagingLastLabel,n.addons.paging_scroll=!!n.listing.dataset.pagingScroll&&n.listing.dataset.pagingScroll,n.addons.paging_scrolltop=n.listing.dataset.pagingScrolltop?parseInt(n.listing.dataset.pagingScrolltop):100,n.pause="true"===n.addons.preloaded||n.pause):n.addons.paging=!1,"true"===n.addons.filters){n.addons.filters=!0,n.addons.filters_url="true"===n.listing.dataset.filtersUrl,n.addons.filters_paging="true"===n.listing.dataset.filtersPaging,n.addons.filters_scroll="true"===n.listing.dataset.filtersScroll,n.addons.filters_scrolltop=n.listing.dataset.filtersScrolltop?n.listing.dataset.filtersScrolltop:"30",n.addons.filters_analtyics=n.listing.dataset.filtersAnalytics,n.addons.filters_debug=n.listing.dataset.filtersDebug,n.addons.filters_startpage=0;var w=(0,a.default)("pg");n.addons.filters_startpage=null!==w?parseInt(w):0,!n.addons.paging&&n.addons.filters_startpage>0&&(n.posts_per_page=n.posts_per_page*n.addons.filters_startpage,n.isPaged=n.addons.filters_startpage>0)}else n.addons.filters=!1;if("true"===n.addons.tabs){if(n.addons.tabs=!0,n.addons.tab_template=n.listing.dataset.tabTemplate?n.listing.dataset.tabTemplate:"",n.addons.tab_onload=n.listing.dataset.tabOnload?n.listing.dataset.tabOnload:"",n.addons.tabs_resturl=n.listing.dataset.tabsRestUrl?n.listing.dataset.tabsRestUrl:"",""!==n.addons.tab_onload){var F=document.querySelector(".alm-tab-nav li [data-tab-url="+n.addons.tab_onload+"]");if(n.addons.tab_template=F?F.dataset.tabTemplate:n.addons.tab_template,n.listing.dataset.tabOnload="",F){var C=document.querySelector(".alm-tab-nav li .active");C&&C.classList.remove("active")}}}else n.addons.tabs=!1;if("true"===n.extensions.restapi?(n.extensions.restapi=!0,n.extensions.restapi_debug=void 0!==n.extensions.restapi_debug&&n.extensions.restapi_debug,n.extensions.restapi=""!==n.extensions.restapi_template_id&&n.extensions.restapi):n.extensions.restapi=!1,"true"===n.addons.preloaded?(n.addons.preloaded_amount=void 0===n.addons.preloaded_amount?n.posts_per_page:n.addons.preloaded_amount,n.localize&&n.localize.total_posts&&parseInt(n.localize.total_posts)<=parseInt(n.addons.preloaded_amount)&&(n.addons.preloaded_total_posts=n.localize.total_posts,n.disable_ajax=!0)):n.addons.preloaded="false",n.addons.seo=void 0!==n.addons.seo&&n.addons.seo,n.addons.seo="true"===n.addons.seo||n.addons.seo,n.addons.seo&&(n.addons.seo_permalink=n.listing.dataset.seoPermalink,n.addons.seo_pageview=n.listing.dataset.seoPageview,n.addons.seo_trailing_slash="false"===n.listing.dataset.seoTrailingSlash?"":"/",n.addons.seo_leading_slash="true"===n.listing.dataset.seoLeadingSlash?"/":""),n.start_page=n.listing.dataset.seoStartPage,n.start_page?(n.addons.seo_scroll=n.listing.dataset.seoScroll,n.addons.seo_scrolltop=n.listing.dataset.seoScrolltop,n.addons.seo_controls=n.listing.dataset.seoControls,n.isPaged=!1,n.start_page>1&&(n.isPaged=!0,n.posts_per_page=n.start_page*n.posts_per_page),n.addons.paging&&(n.posts_per_page=n.orginal_posts_per_page)):n.start_page=1,"true"===n.addons.nextpage?(n.addons.nextpage=!0,n.posts_per_page=1,void 0===n.addons.nextpage_urls&&(n.addons.nextpage_urls="true"),void 0===n.addons.nextpage_scroll&&(n.addons.nextpage_scroll="false:30"),void 0===n.addons.nextpage_pageviews&&(n.addons.nextpage_pageviews="true"),void 0===n.addons.nextpage_post_id&&(n.addons.nextpage=!1,n.addons.nextpage_post_id=null),void 0===n.addons.nextpage_startpage&&(n.addons.nextpage_startpage=1),n.addons.nextpage_startpage>1&&(n.isPaged=!0)):n.addons.nextpage=!1,"true"===n.addons.single_post?(n.addons.single_post=!0,n.addons.single_post_permalink="",n.addons.single_post_title="",n.addons.single_post_slug="",n.addons.single_post_order=void 0===n.addons.single_post_order?"previous":n.addons.single_post_order,n.addons.single_post_taxonomy=void 0===n.addons.single_post_taxonomy?"":n.addons.single_post_taxonomy,n.addons.single_post_excluded_terms=void 0===n.addons.single_post_excluded_terms?"":n.addons.single_post_excluded_terms,n.addons.single_post_progress_bar=void 0===n.addons.single_post_progress_bar?"":n.addons.single_post_progress_bar,n.addons.single_post_target=void 0===n.addons.single_post_target?"":n.addons.single_post_target,n.addons.single_post_title_template=n.listing.dataset.singlePostTitleTemplate,n.addons.single_post_siteTitle=n.listing.dataset.singlePostSiteTitle,n.addons.single_post_siteTagline=n.listing.dataset.singlePostSiteTagline,n.addons.single_post_pageview=n.listing.dataset.singlePostPageview,n.addons.single_post_scroll=n.listing.dataset.singlePostScroll,n.addons.single_post_scroll_speed=n.listing.dataset.singlePostScrollSpeed,n.addons.single_post_scroll_top=n.listing.dataset.singlePostScrolltop,n.addons.single_post_controls=n.listing.dataset.singlePostControls):n.addons.single_post=!1,n.addons.single_post&&void 0===n.addons.single_post_id&&(n.addons.single_post_id="",n.addons.single_post_init_id=""),(void 0===n.pause||n.addons.seo&&n.start_page>1)&&(n.pause=!1),"true"===n.addons.preloaded&&n.addons.seo&&n.start_page>0&&(n.pause=!1),n.addons.filters&&n.addons.filters_startpage>0&&(n.pause=!1),"true"===n.addons.preloaded&&n.addons.paging&&(n.pause=!0),n.repeater=void 0===n.repeater?"default":n.repeater,n.theme_repeater=void 0!==n.theme_repeater&&n.theme_repeater,n.max_pages=void 0===n.max_pages||0===n.max_pages?1e4:n.max_pages,n.scroll_distance=void 0===n.scroll_distance?100:n.scroll_distance,n.scroll_distance_perc=!1,-1==n.scroll_distance.toString().indexOf("%")?n.scroll_distance=parseInt(n.scroll_distance):(n.scroll_distance_perc=!0,n.scroll_distance_orig=parseInt(n.scroll_distance),n.scroll_distance=(0,A.default)(n)),n.scroll_container=void 0===n.scroll_container?"":n.scroll_container,n.scroll_direction=void 0===n.scroll_direction?"vertical":n.scroll_direction,n.transition=void 0===n.transition?"fade":n.transition,n.tcc=void 0===n.tcc?"":n.tcc,n.is_masonry_preloaded=!1,"masonry"===n.transition&&(n.masonry_init=!0,n.msnry?n.msnry.destroy():n.msnry="",n.masonry_selector=n.listing.dataset.masonrySelector,n.masonry_columnwidth=n.listing.dataset.masonryColumnwidth,n.masonry_animation=n.listing.dataset.masonryAnimation,n.masonry_animation=void 0===n.masonry_animation?"standard":n.masonry_animation,n.masonry_horizontalorder=n.listing.dataset.masonryHorizontalorder,n.masonry_horizontalorder=void 0===n.masonry_horizontalorder?"true":n.masonry_horizontalorder,n.transition_container=!1,n.images_loaded=!1,n.is_masonry_preloaded="true"===n.addons.preloaded||n.is_masonry_preloaded),void 0===n.listing.dataset.scroll?n.scroll=!0:"false"===n.listing.dataset.scroll?n.scroll=!1:n.scroll=!0,n.transition_container=void 0===n.transition_container||"true"===n.transition_container,n.button_label=void 0===n.button_label?"Load More":n.button_label,n.button_loading_label=void 0!==n.button_loading_label&&n.button_loading_label,n.button_done_label=void 0!==n.button_done_label&&n.button_done_label,n.addons.paging)n.main.classList.add("loading");else{var D=t.childNodes;if(D){var z=Array.prototype.slice.call(D).filter((function(t){return!!t.classList&&t.classList.contains("alm-btn-wrap")}));n.button=z?z[0].querySelector(".alm-load-more-btn"):container.querySelector(".alm-btn-wrap .alm-load-more-btn")}else n.button=container.querySelector(".alm-btn-wrap .alm-load-more-btn");n.button.disabled=!1,n.button.style.display=""}if(n.integration.woocommerce?(n.resultsText=document.querySelectorAll(".woocommerce-result-count"),n.resultsText.length<1&&(n.resultsText=document.querySelectorAll(".alm-results-text"))):n.resultsText=document.querySelectorAll(".alm-results-text"),n.resultsText?n.resultsText.forEach((function(t){t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true")})):n.resultsText=!1,n.tableofcontents=document.querySelector(".alm-toc"),n.tableofcontents?(n.tableofcontents.setAttribute("aria-live","polite"),n.tableofcontents.setAttribute("aria-atomic","true")):n.tableofcontents=!1,n.AjaxLoadMore.loadPosts=function(){if("function"==typeof almOnChange&&window.almOnChange(n),(0,E.showPlaceholder)(n),!n.disable_ajax)if(n.addons.paging||(n.button.classList.add("loading"),!1!==n.button_loading_label&&(n.button.innerHTML=n.button_loading_label)),n.main.classList.add("alm-loading"),n.loading=!0,"true"!==n.addons.cache||n.addons.cache_logged_in)n.AjaxLoadMore.ajax("standard");else{var t=(0,l.default)(n);t?r.default.get(t).then((function(t){n.AjaxLoadMore.success(t.data,!0)})).catch((function(t){n.AjaxLoadMore.ajax("standard")})):n.AjaxLoadMore.ajax("standard")}},n.AjaxLoadMore.ajax=function(t){var e="alm_get_posts";n.acf_array="",n.extensions.acf&&("relationship"!==n.extensions.acf_field_type&&(e="alm_acf"),n.acf_array={acf:"true",post_id:n.extensions.acf_post_id,field_type:n.extensions.acf_field_type,field_name:n.extensions.acf_field_name,parent_field_name:n.extensions.acf_parent_field_name}),n.term_query_array="",n.extensions.term_query&&(e="alm_get_terms",n.term_query_array={term_query:"true",taxonomy:n.extensions.term_query_taxonomy,hide_empty:n.extensions.term_query_hide_empty,number:n.extensions.term_query_number}),n.nextpage_array="",n.addons.nextpage&&(e="alm_nextpage",n.nextpage_array={nextpage:"true",urls:n.addons.nextpage_urls,scroll:n.addons.nextpage_scroll,pageviews:n.addons.nextpage_pageviews,post_id:n.addons.nextpage_post_id,startpage:n.addons.nextpage_startpage}),n.single_post_array="",n.addons.single_post&&(n.single_post_array={single_post:"true",id:n.addons.single_post_id,slug:n.addons.single_post_slug}),n.comments_array="","true"===n.addons.comments&&(e="alm_comments",n.posts_per_page=n.addons.comments_per_page,n.comments_array={comments:"true",post_id:n.addons.comments_post_id,per_page:n.addons.comments_per_page,type:n.addons.comments_type,style:n.addons.comments_style,template:n.addons.comments_template,callback:n.addons.comments_callback}),n.users_array="",n.addons.users&&(e="alm_users",n.users_array={users:"true",role:n.listing.dataset.usersRole,include:n.listing.dataset.usersInclude,exclude:n.listing.dataset.usersExclude,per_page:n.posts_per_page,order:n.listing.dataset.usersOrder,orderby:n.listing.dataset.usersOrderby}),n.cta_array="","true"===n.addons.cta&&(n.cta_array={cta:"true",cta_position:n.addons.cta_position,cta_repeater:n.addons.cta_repeater,cta_theme_repeater:n.addons.cta_theme_repeater}),n.extensions.restapi?n.AjaxLoadMore.restapi(n,e,t):n.addons.tabs?n.AjaxLoadMore.tabs(n):n.AjaxLoadMore.adminajax(n,e,t)},n.AjaxLoadMore.adminajax=function(t,e,n){1==t.page||t.addons.paging||t.button.classList.add("loading"),r.default.interceptors.request.use((function(t){return t.paramsSerializer=function(t){return k.stringify(t,{arrayFormat:"brackets",encode:!1})},t}));var o=alm_localize.ajaxurl,a=d.almGetAjaxParams(t,e,n);t.addons.single_post&&t.addons.single_post_target&&(o=t.addons.single_post_permalink+"?id="+t.addons.single_post_id+"&alm_page="+(parseInt(t.page)+1),a=""),t.addons.woocommerce&&(o=(0,v.default)(t),a=""),t.addons.elementor&&t.addons.elementor_type&&"posts"===t.addons.elementor_type&&(o=(0,v.default)(t),a=""),r.default.get(o,{params:a}).then((function(e){var r="";t.addons.single_post&&t.addons.single_post_target?(r=(0,L.singlePostHTML)(e,t.addons.single_post_target),(0,P.createCacheFile)(t,r.html,"single")):t.addons.woocommerce?(r=(0,M.wooGetContent)(e,t),(0,P.createCacheFile)(t,r.html,"woocommerce")):t.addons.elementor?(r=(0,O.elementorGetContent)(e,t),(0,P.createCacheFile)(t,r.html,"elementor")):r=e.data,"standard"===n?t.AjaxLoadMore.success(r,!1):"totalpages"===n&&t.addons.paging&&t.addons.nextpage?"function"==typeof almBuildPagination&&window.almBuildPagination(r.totalpages,t):"totalposts"===n&&t.addons.paging&&"function"==typeof almBuildPagination&&window.almBuildPagination(r.totalposts,t)})).catch((function(e){t.AjaxLoadMore.error(e,"adminajax")}))},n.AjaxLoadMore.tabs=function(t){var e=t.addons.tabs_resturl+"ajaxloadmore/tab",n={post_id:t.post_id,template:t.addons.tab_template};r.default.interceptors.request.use((function(t){return t.paramsSerializer=function(t){return k.stringify(t,{arrayFormat:"brackets",encode:!1})},t})),r.default.get(e,{params:n}).then((function(e){var n={html:e.data.html,meta:{postcount:1,totalposts:1}};t.AjaxLoadMore.success(n,!1),"function"==typeof almTabLoaded&&window.almTabLoaded(t)})).catch((function(e){t.AjaxLoadMore.error(e,"restapi")}))},n.AjaxLoadMore.restapi=function(t,e,n){var o=wp.template(t.extensions.restapi_template_id),a=t.extensions.restapi_base_url+"/"+t.extensions.restapi_namespace+"/"+t.extensions.restapi_endpoint,i=d.almGetRestParams(t);r.default.interceptors.request.use((function(t){return t.paramsSerializer=function(t){return k.stringify(t,{arrayFormat:"brackets",encode:!1})},t})),r.default.get(a,{params:i}).then((function(e){for(var n=e.data,r="",a=n.html,i=n.meta,s=i.postcount,l=i.totalposts,c=0;c<a.length;c++){var u=a[c];"true"===t.restapi_debug&&console.log(u),r+=o(u)}var d={html:r,meta:{postcount:s,totalposts:l}};t.AjaxLoadMore.success(d,!1)})).catch((function(e){t.AjaxLoadMore.error(e,"restapi")}))},n.addons.paging&&(n.addons.nextpage?n.AjaxLoadMore.ajax("totalpages"):n.AjaxLoadMore.ajax("totalposts")),n.AjaxLoadMore.success=function(e,r){var o=this;n.addons.single_post&&n.AjaxLoadMore.getSinglePost();var a=!1,l="table"===n.container_type?document.createElement("tbody"):document.createElement("div");n.el=l,l.style.opacity=0,l.style.height=0,l.style.outline="none";var d,f,v,w=n.listing.querySelector(".alm-paging-content");if(r?d=e:(d=e.html,f=e.meta,n.posts=n.addons.paging?f.postcount:n.posts+f.postcount,v=f.postcount,n.totalposts=f.totalposts,n.totalposts="true"===n.addons.preloaded?n.totalposts-n.addons.preloaded_amount:n.totalposts,n.debug=f.debug?f.debug:""),n.html=d,v=r?(0,c.default)(d).length:v,n.init&&(f&&(n.main.dataset.totalPosts=f.totalposts?f.totalposts:0),n.addons.paging&&v>0&&n.AjaxLoadMore.pagingInit(d,"alm-reveal"),0===v&&(n.addons.paging&&"function"==typeof almPagingEmpty&&window.almPagingEmpty(n),"function"==typeof almEmpty&&window.almEmpty(n),n.no_results&&setTimeout((function(){(0,x.default)(n.content,n.no_results)}),n.speed+10)),n.isPaged&&(n.posts_per_page=n.addons.users?n.listing.dataset.usersPerPage:n.listing.dataset.postsPerPage,n.posts_per_page=n.addons.nextpage?1:n.posts_per_page,n.page=n.start_page?n.start_page-1:n.page,n.addons.filters&&n.addons.filters_startpage>0&&(n.page=n.addons.filters_startpage-1,n.posts_per_page=n.listing.dataset.postsPerPage))),(0,S.default)(n),N(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,g.default)(n);case 2:case"end":return t.stop()}}),t,o)})))(),v>0){if(n.addons.paging)n.init?setTimeout((function(){n.main.classList.remove("alm-loading"),n.AjaxLoadMore.triggerAddons(n)}),n.speed):w&&((0,b.default)(w,n.speed),w.style.outline="none",n.main.classList.remove("alm-loading"),setTimeout((function(){w.style.opacity=0,w.innerHTML=n.html,R(w,(function(){n.AjaxLoadMore.triggerAddons(n),(0,y.default)(w,n.speed),setTimeout((function(){w.style.opacity="",h.default.init(w)}),parseInt(n.speed)+10),"function"==typeof almOnPagingComplete&&window.almOnPagingComplete(n)}))}),parseInt(n.speed)+25));else{if(n.addons.single_post)l.setAttribute("class","alm-reveal alm-single-post post-"+n.addons.single_post_id+n.tcc),l.dataset.url=n.addons.single_post_permalink,n.addons.single_post_target?l.dataset.page=parseInt(n.page)+1:l.dataset.page=n.page,l.dataset.id=n.addons.single_post_id,l.dataset.title=n.addons.single_post_title,l.innerHTML=n.html;else if(n.transition_container){var A=void 0,E=window.location.search,L=n.addons.seo?" alm-seo":"",P=n.addons.filters?" alm-filters":"",F=n.is_preloaded?" alm-preloaded":"";if(n.init&&(n.start_page>1||n.addons.filters_startpage>0)){var C=[],k=[],D=parseInt(n.posts_per_page),z=Math.ceil(v/D);a=!0,"true"===n.addons.cta&&(D+=1,z=Math.ceil(v/D),v=z+v);for(var B=(0,u.default)((0,c.default)(n.html,"text/html")),W=0;W<v;W+=D)C.push(B.slice(W,D+W));for(var H=0;H<C.length;H++){var U="true"===n.addons.preloaded?1:0,V=document.createElement("div");H>0||"true"===n.addons.preloaded?(A=H+1+U,n.addons.seo&&(V=(0,I.createSEOAttributes)(n,V,E,L,A)),n.addons.filters&&(V.setAttribute("class","alm-reveal"+P+n.tcc),V.dataset.url=n.canonical_url+(0,T.buildFilterURL)(n,E,A),V.dataset.page=A)):(n.addons.seo&&(V=(0,I.createSEOAttributes)(n,V,E,L,1)),n.addons.filters&&(V.setAttribute("class","alm-reveal"+P+F+n.tcc),V.dataset.url=n.canonical_url+(0,T.buildFilterURL)(n,E,0),V.dataset.page="1")),(0,i.default)(V,C[H]),(0,j.default)(V,n.ua),k.push(V)}n.listing.style.opacity=0,n.listing.style.height=0,(0,i.default)(n.listing,k),l=n.listing,n.el=l}else{if(n.addons.seo&&n.page>0||"true"===n.addons.preloaded){var G="true"===n.addons.preloaded?1:0;A=n.page+1+G,n.addons.seo?l=(0,I.createSEOAttributes)(n,l,E,L,A):n.addons.filters?(l.setAttribute("class","alm-reveal"+P+n.tcc),l.dataset.url=n.canonical_url+(0,T.buildFilterURL)(n,E,A),l.dataset.page=A):l.setAttribute("class","alm-reveal"+n.tcc)}else n.addons.filters?(l.setAttribute("class","alm-reveal"+P+n.tcc),l.dataset.url=n.canonical_url+(0,T.buildFilterURL)(n,E,parseInt(n.page)+1),l.dataset.page=parseInt(n.page)+1):n.addons.seo?l=(0,I.createSEOAttributes)(n,l,E,L,1):l.setAttribute("class","alm-reveal"+n.tcc);l.innerHTML=n.html}}else n.el=n.html,l="table"===n.container_type?(0,s.default)(n.html):(0,u.default)((0,c.default)(n.html,"text/html"));if(n.addons.woocommerce)return N(regeneratorRuntime.mark((function t(){var r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,M.woocommerce)(l,n,e.pageTitle);case 2:r=n.page+2,n.button.dataset.page=r,o=n.addons.woocommerce_settings.paged_urls[r-1],n.button.dataset.url=o||"",n.AjaxLoadMore.transitionEnd(),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),r>parseInt(n.addons.woocommerce_settings.pages)&&n.AjaxLoadMore.triggerDone();case 9:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log(t),console.log("There was an error loading woocommerce products")})),void(n.init=!1);if(n.addons.elementor)return N(regeneratorRuntime.mark((function t(){var r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,O.elementor)(l,n,e.pageTitle);case 2:r=n.page+1,n.button.dataset.page=r,o=n.addons.elementor_next_page_url,n.button.dataset.url=o||"",n.AjaxLoadMore.transitionEnd(),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),o||n.AjaxLoadMore.triggerDone();case 9:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log(t),console.log("There was an error loading Elementor Post Widget items")})),void(n.init=!1);("masonry"!==n.transition||n.init&&!n.is_masonry_preloaded)&&(a||(n.transition_container?n.listing.appendChild(l):"true"===n.images_loaded?R(l,(function(){(0,i.default)(n.listing,l),(0,j.default)(n.listing,n.ua)})):((0,i.default)(n.listing,l),(0,j.default)(n.listing,n.ua)))),"masonry"===n.transition?(n.el=n.listing,N(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,_.default)(n,n.init,q);case 2:n.masonry_init=!1,n.AjaxLoadMore.triggerWindowResize(),n.AjaxLoadMore.transitionEnd(),"function"==typeof almComplete&&window.almComplete(n);case 6:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log("There was an error with ALM Masonry")}))):"none"===n.transition?"true"===n.images_loaded?R(l,(function(){(0,y.default)(l,0),n.AjaxLoadMore.transitionEnd()})):((0,y.default)(l,0),n.AjaxLoadMore.transitionEnd()):"true"===n.images_loaded?R(l,(function(){n.transition_container&&(0,y.default)(l,n.speed),n.AjaxLoadMore.transitionEnd()})):(n.transition_container&&(0,y.default)(l,n.speed),n.AjaxLoadMore.transitionEnd()),n.addons.tabs&&"function"==typeof almTabsSetHeight&&R(l,(function(){(0,y.default)(n.listing,n.speed),setTimeout((function(){window.almTabsSetHeight(n)}),n.speed)}))}R(l,(function(){n.AjaxLoadMore.nested(l),h.default.init(n.el),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),q&&n.addons.filters&&"function"==typeof almFiltersAddonComplete&&window.almFiltersAddonComplete(t),q=!1,n.addons.tabs&&"function"==typeof almTabsComplete&&window.almTabsComplete(),n.addons.cache?n.addons.nextpage&&n.localize?parseInt(n.localize.page)===parseInt(n.localize.total_posts)&&n.AjaxLoadMore.triggerDone():v<parseInt(n.posts_per_page)&&n.AjaxLoadMore.triggerDone():n.posts>=n.totalposts&&!n.addons.single_post&&n.AjaxLoadMore.triggerDone()})),"function"==typeof almFiltersOnload&&n.init&&window.almFiltersOnload(n)}else n.AjaxLoadMore.noresults();if(void 0!==n.destroy_after&&""!==n.destroy_after){var Y=n.page+1;(Y="true"===n.addons.preloaded?Y++:Y)==n.destroy_after&&n.AjaxLoadMore.destroyed()}(0,p.tableOfContents)(n,n.init),"masonry"!==n.transition&&(0,m.default)(n,l,v,q),n.main.classList.contains("alm-is-filtering")&&n.main.classList.remove("alm-is-filtering"),n.init=!1},n.AjaxLoadMore.noresults=function(){n.addons.paging||(setTimeout((function(){n.button.classList.remove("loading"),n.button.classList.add("done")}),n.speed),n.AjaxLoadMore.resetBtnText()),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),q&&n.addons.filters&&("function"==typeof almFiltersAddonComplete&&almFiltersAddonComplete(t),q=!1),n.addons.tabs&&"function"==typeof almTabsComplete&&almTabsComplete(),"masonry"===n.transition&&(n.content.style.height="auto"),n.AjaxLoadMore.triggerDone()},n.AjaxLoadMore.pagingPreloadedInit=function(t){t=null==t?"":t,n.AjaxLoadMore.pagingInit(t,"alm-reveal"),""===t&&("function"==typeof almPagingEmpty&&window.almPagingEmpty(n),"function"==typeof almEmpty&&window.almEmpty(n),n.no_results&&(0,x.default)(n.content,n.no_results))},n.AjaxLoadMore.pagingNextpageInit=function(t){t=null==t?"":t,n.AjaxLoadMore.pagingInit(t,"alm-reveal alm-nextpage"),"function"==typeof almSetNextPageVars&&window.almSetNextPageVars(n)},n.AjaxLoadMore.pagingInit=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"alm-reveal";t=null==t?"":t;var r=document.createElement("div");r.setAttribute("class",e);var o=document.createElement("div");o.setAttribute("class","alm-paging-content"+n.tcc),o.innerHTML=t,r.appendChild(o);var a=document.createElement("div");a.setAttribute("class","alm-paging-loading"),r.appendChild(a),n.listing.appendChild(r);var i=window.getComputedStyle(n.listing),s=parseInt(i.getPropertyValue("padding-top").replace("px","")),l=parseInt(i.getPropertyValue("padding-bottom").replace("px","")),c=r.offsetHeight;n.listing.style.height=c+s+l+"px",h.default.init(r),n.AjaxLoadMore.resetBtnText(),setTimeout((function(){"function"==typeof almFadePageControls&&window.almFadePageControls(n.btnWrap),"function"==typeof almOnWindowResize&&window.almOnWindowResize(n),n.main.classList.remove("loading")}),n.speed)},n.AjaxLoadMore.nested=function(t){if(!t||!n.transition_container)return!1;var e=t.querySelectorAll(".ajax-load-more-wrap");e&&e.forEach((function(t){window.almInit(t)}))},n.addons.single_post_id&&(n.fetchingPreviousPost=!1,n.addons.single_post_init=!0),n.AjaxLoadMore.getSinglePost=function(){if(n.fetchingPreviousPost)return!1;n.fetchingPreviousPost=!0;var t=alm_localize.ajaxurl,e={id:n.addons.single_post_id,initial_id:n.addons.single_post_init_id,order:n.addons.single_post_order,taxonomy:n.addons.single_post_taxonomy,excluded_terms:n.addons.single_post_excluded_terms,post_type:n.post_type,init:n.addons.single_post_init,action:"alm_get_single"};r.default.get(t,{params:e}).then((function(t){var e=t.data;e.has_previous_post?(n.listing.dataset.singlePostId=e.prev_id,n.addons.single_post_id=e.prev_id,n.addons.single_post_permalink=e.prev_permalink,n.addons.single_post_title=e.prev_title,n.addons.single_post_slug=e.prev_slug):e.has_previous_post||n.AjaxLoadMore.triggerDone(),"function"==typeof window.almSetSinglePost&&window.almSetSinglePost(n,e.current_id,e.permalink,e.title),n.fetchingPreviousPost=!1,n.addons.single_post_init=!1})).catch((function(t){n.AjaxLoadMore.error(t,"getSinglePost"),n.fetchingPreviousPost=!1}))},n.AjaxLoadMore.triggerAddons=function(t){"function"==typeof almSetNextPage&&window.almSetNextPage(t),"function"==typeof almSEO&&window.almSEO(t,!1),"function"==typeof almWooCommerce&&window.almWooCommerce(t),"function"==typeof almElementor&&window.almElementor(t)},n.AjaxLoadMore.triggerDone=function(){n.loading=!1,n.finished=!0,(0,E.hidePlaceholder)(n),n.addons.paging||(!1!==n.button_done_label&&setTimeout((function(){n.button.innerHTML=n.button_done_label}),75),n.button.classList.add("done"),n.button.disabled=!0),"function"==typeof almDone&&setTimeout((function(){window.almDone(n)}),n.speed+10)},n.AjaxLoadMore.resetBtnText=function(){!1===n.button_loading_label||n.addons.paging||(n.button.innerHTML=n.button_label)},n.AjaxLoadMore.error=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;n.loading=!1,n.addons.paging||(n.button.classList.remove("loading"),n.AjaxLoadMore.resetBtnText()),console.log("Error: ",t),t.response?console.log("Error Msg: ",t.message):t.request?console.log(t.request):console.log("Error Msg: ",t.message),e&&console.log("ALM Error started in "+e),t.config&&console.log("ALM Error Debug: ",t.config)},n.AjaxLoadMore.click=function(t){var e=t.target||t.currentTarget;"true"===n.pause&&(n.pause=!1,n.pause_override=!1,n.AjaxLoadMore.loadPosts()),n.loading||n.finished||e.classList.contains("done")||(n.loading=!0,n.page++,n.AjaxLoadMore.loadPosts()),e.blur()},n.addons.paging||n.fetchingPreviousPost||(n.button.onclick=n.AjaxLoadMore.click),n.addons.paging||n.addons.tabs||n.scroll_distance_perc||"horizontal"===n.scroll_direction){var B=void 0;n.window.onresize=function(){clearTimeout(B),B=setTimeout((function(t){n.addons.tabs&&"function"==typeof almOnTabsWindowResize&&window.almOnTabsWindowResize(n),n.addons.paging&&"function"==typeof almOnWindowResize&&window.almOnWindowResize(n),n.scroll_distance_perc&&(n.scroll_distance=(0,A.default)(n)),"horizontal"===n.scroll_direction&&n.AjaxLoadMore.horizontal()}),n.speed)}}n.AjaxLoadMore.isVisible=function(){return n.visible=n.main.clientWidth>0&&n.main.clientHeight>0,n.visible},n.AjaxLoadMore.triggerWindowResize=function(){if("function"==typeof Event)window.dispatchEvent(new Event("resize"));else{var t=window.document.createEvent("UIEvents");t.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(t)}},n.AjaxLoadMore.scroll=function(){n.timer&&clearTimeout(n.timer),n.timer=setTimeout((function(){if(n.AjaxLoadMore.isVisible()&&!n.fetchingPreviousPost){var t=n.trigger.getBoundingClientRect(),e=Math.round(t.top-n.window.innerHeight)+n.scroll_distance<=0;if(n.window!==window){var r=n.main.offsetHeight,o=n.main.offsetWidth;"horizontal"===n.scroll_direction?(n.AjaxLoadMore.horizontal(),e=o<=Math.round(n.window.scrollLeft+n.window.offsetWidth-n.scroll_distance)):e=r<=Math.round(n.window.scrollTop+n.window.offsetHeight-n.scroll_distance)}(!n.loading&&!n.finished&&e&&n.page<n.max_pages-1&&n.proceed&&"true"===n.pause&&"true"===n.pause_override||!n.loading&&!n.finished&&e&&n.page<n.max_pages-1&&n.proceed&&"true"!==n.pause)&&n.button.click()}}),25)},n.AjaxLoadMore.scrollSetup=function(){n.scroll&&!n.addons.paging&&(""!==n.scroll_container&&(n.window=document.querySelector(n.scroll_container)?document.querySelector(n.scroll_container):n.window,setTimeout((function(){n.AjaxLoadMore.horizontal()}),500)),n.window.addEventListener("scroll",n.AjaxLoadMore.scroll),n.window.addEventListener("touchstart",n.AjaxLoadMore.scroll),n.window.addEventListener("wheel",(function(t){Math.sign(t.deltaY)>0&&n.AjaxLoadMore.scroll()})),n.window.addEventListener("keyup",(function(t){switch(t.keyCode?t.keyCode:t.which){case 35:case 34:n.AjaxLoadMore.scroll()}})))},n.AjaxLoadMore.horizontal=function(){"horizontal"===n.scroll_direction&&(n.main.style.width=n.listing.offsetWidth+"px")},n.AjaxLoadMore.destroyed=function(){n.disable_ajax=!0,n.addons.paging||(n.button.style.display="none",n.AjaxLoadMore.triggerDone(),"function"==typeof almDestroyed&&window.almDestroyed(n))},n.AjaxLoadMore.transitionEnd=function(){setTimeout((function(){n.AjaxLoadMore.resetBtnText(),n.main.classList.remove("alm-loading"),n.button.classList.remove("loading"),n.AjaxLoadMore.triggerAddons(n),n.addons.paging||setTimeout((function(){n.loading=!1}),3*n.speed)}),50),(0,E.hidePlaceholder)(n)},n.AjaxLoadMore.setLocalizedVar=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";n.localize&&""!==t&&""!==e&&(n.localize[t]=e.toString(),window[n.master_id+"_vars"][t]=e.toString())},n.AjaxLoadMore.init=function(){if("true"===n.addons.preloaded&&1==n.destroy_after&&n.AjaxLoadMore.destroyed(),n.addons.paging||n.addons.single_post||(n.disable_ajax?(n.finished=!0,n.button.classList.add("done")):"true"===n.pause?(n.button.innerHTML=n.button_label,n.loading=!1):n.AjaxLoadMore.loadPosts()),n.addons.single_post&&(n.AjaxLoadMore.getSinglePost(),n.loading=!1,n.addons.single_post_query&&""===n.addons.single_post_order&&n.AjaxLoadMore.triggerDone(),(0,p.tableOfContents)(n,!0,!0)),"true"===n.addons.preloaded&&n.addons.seo&&!n.addons.paging&&setTimeout((function(){"function"==typeof almSEO&&n.start_page<1&&window.almSEO(n,!0)}),n.speed),"true"!==n.addons.preloaded||n.addons.paging||setTimeout((function(){n.addons.preloaded_total_posts<=parseInt(n.addons.preloaded_amount)&&n.AjaxLoadMore.triggerDone(),0==n.addons.preloaded_total_posts&&("function"==typeof almEmpty&&window.almEmpty(n),n.no_results&&(0,x.default)(n.content,n.no_results))}),n.speed),"true"===n.addons.preloaded&&(n.resultsText&&f.almInitResultsText(n,"preloaded"),(0,p.tableOfContents)(n,n.init,!0)),n.addons.nextpage){if(n.listing.querySelector(".alm-nextpage")&&!n.addons.paging){var t=n.listing.querySelectorAll(".alm-nextpage");if(t){var e=t[0],r=n.localize.total_posts?parseInt(n.localize.total_posts):e.dataset.totalPosts;t.length!==r&&parseInt(e.dataset.id)!==r||n.AjaxLoadMore.triggerDone()}}n.resultsText&&f.almInitResultsText(n,"nextpage"),(0,p.tableOfContents)(n,n.init,!0)}n.addons.woocommerce&&((0,M.wooInit)(n),n.addons.woocommerce_settings.paged>=parseInt(n.addons.woocommerce_settings.pages)&&n.AjaxLoadMore.triggerDone()),n.addons.elementor&&n.addons.elementor_type&&"posts"===n.addons.elementor_type&&((0,O.elementorInit)(n),""===n.addons.elementor_next_page_url&&n.AjaxLoadMore.triggerDone()),n.window.addEventListener("load",(function(){n.is_masonry_preloaded&&N(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,_.default)(n,!0,!1);case 2:n.masonry_init=!1;case 3:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log("There was an error with ALM Masonry")})),"function"==typeof almOnLoad&&window.almOnLoad(n)}))},window.almUpdateCurrentPage=function(t,e,n){n.page=t,n.page=n.addons.nextpage&&!n.addons.paging?n.page-1:n.page;var r="",o="";n.addons.paging_init&&"true"===n.addons.preloaded?((o=n.listing.querySelector(".alm-reveal")||n.listing.querySelector(".alm-nextpage"))&&(r=o.innerHTML,o.parentNode.removeChild(o),n.addons.preloaded_amount=0,n.AjaxLoadMore.pagingPreloadedInit(r)),n.addons.paging_init=!1,n.init=!1):n.addons.paging_init&&n.addons.nextpage?((o=n.listing.querySelector(".alm-reveal")||n.listing.querySelector(".alm-nextpage"))&&(r=o.innerHTML,o.parentNode.removeChild(o),n.AjaxLoadMore.pagingNextpageInit(r)),n.addons.paging_init=!1,n.init=!1):n.AjaxLoadMore.loadPosts()},window.almGetParentContainer=function(){return n.listing},window.almGetObj=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""!==t?n[t]:n},window.almTriggerClick=function(){n.button.click()},setTimeout((function(){n.proceed=!0,n.AjaxLoadMore.scrollSetup()}),500),n.AjaxLoadMore.init()};window.almInit=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;new t(e,n)};var e=document.querySelectorAll(".ajax-load-more-wrap");e.length&&[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(e)).forEach((function(e,n){new t(e,n)}))}();e.filter=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fade",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"200",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!t||!e||!n)return!1;q=!0,(0,w.default)(t,e,n,"filter")};e.reset=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={};q=!0,t&&t.target&&(e={target:target}),t&&"woocommerce"===t.type?N(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=document.querySelector('.ajax-load-more-wrap .alm-listing[data-woo="true"]'),t.next=3,(0,M.wooReset)();case 3:(r=t.sent)&&(n.dataset.wooSettings=r,(0,w.default)("fade","100",e,"filter"));case 5:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log("There was an resetting the Ajax Load More instance.")})):(0,w.default)("fade","200",e,"filter")};e.tab=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e="fade",n=alm_localize.speed?parseInt(alm_localize.speed):200;if(!t)return!1;q=!0,(0,w.default)(e,n,t,"tab")};e.tracking=function(t){"function"==typeof gtag&&(gtag("event","page_view",{page_path:t}),alm_localize.ga_debug&&console.log("Pageview sent to Google Analytics (gtag)")),"function"==typeof ga&&(ga("send","pageview",t),alm_localize.ga_debug&&console.log("Pageview sent to Google Analytics (ga)")),"function"==typeof __gaTracker&&(__gaTracker("send","pageview",t),alm_localize.ga_debug&&console.log("Pageview sent to Google Analytics (__gaTracker)")),"function"==typeof almAnalytics&&window.almAnalytics(t)};e.start=function(t){if(!t)return!1;window.almInit(t)};e.almScroll=function(t){if(!t)return!1;window.scrollTo({top:t,behavior:"smooth"})};e.getOffset=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!t)return!1;var e=t.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,r=window.pageYOffset||document.documentElement.scrollTop;return{top:e.top+r,left:e.left+n}};e.render=function(t){if(!t)return!1}},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e,n){"use strict";var r=n(13),o=n(145),a=n(147),i=n(148),s=n(149),l=n(99);t.exports=function(t){return new Promise((function(e,c){var u=t.data,d=t.headers;r.isFormData(u)&&delete d["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",g=t.auth.password||"";d.Authorization="Basic "+btoa(p+":"+g)}if(f.open(t.method.toUpperCase(),a(t.url,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in f?i(f.getAllResponseHeaders()):null,r={data:t.responseType&&"text"!==t.responseType?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:n,config:t,request:f};o(e,c,r),f=null}},f.onerror=function(){c(l("Network Error",t,null,f)),f=null},f.ontimeout=function(){c(l("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var h=n(150),m=(t.withCredentials||s(t.url))&&t.xsrfCookieName?h.read(t.xsrfCookieName):void 0;m&&(d[t.xsrfHeaderName]=m)}if("setRequestHeader"in f&&r.forEach(d,(function(t,e){void 0===u&&"content-type"===e.toLowerCase()?delete d[e]:f.setRequestHeader(e,t)})),t.withCredentials&&(f.withCredentials=!0),t.responseType)try{f.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&f.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){f&&(f.abort(),c(t),f=null)})),void 0===u&&(u=null),f.send(u)}))}},function(t,e,n){"use strict";var r=n(146);t.exports=function(t,e,n,o,a){var i=new Error(t);return r(i,e,n,o,a)}},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(161),a=(r=o)&&r.__esModule?r:{default:r};e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"fade";if(!t||!e)return!1;for(var r=0;r<e.length;r++){var o=e[r];(0,a.default)(t,o,n)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!t)return!1;var e=["#text","#comment"],n=t.filter((function(t){return-1===e.indexOf(t.nodeName.toLowerCase())}));return n}},function(t,e,n){"use strict";function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||!t.localize||"true"===t.nested)return!1;var n=0,r=0,a=0,i=0,s="true"===t.addons.preloaded,l=!!t.addons.paging,c=t.orginal_posts_per_page;switch(e){case"nextpage":a=n=parseInt(t.localize.page),r=parseInt(t.localize.total_posts),i=parseInt(r),o(t.resultsText,n,r,a,i);break;case"woocommerce":break;default:n=parseInt(t.page)+1,r=Math.ceil(t.localize.total_posts/c),a=parseInt(t.localize.post_count),i=parseInt(t.localize.total_posts),s&&(n=l?t.page+1:n+1),o(t.resultsText,n,r,a,i)}}Object.defineProperty(e,"__esModule",{value:!0}),e.almResultsText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||"true"===t.nested)return!1;var n="nextpage"===e||"woocommerce"===e?e:"standard";r(t,n)},e.almGetResultsText=r,e.almInitResultsText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||!t.localize||"true"===t.nested)return!1;var n=0,r=Math.ceil(t.localize.total_posts/t.orginal_posts_per_page),a=parseInt(t.localize.post_count),i=parseInt(t.localize.total_posts);switch(e){case"nextpage":n=t.addons.nextpage_startpage,a=n,r=i,o(t.resultsText,n,i,a,i);break;case"preloaded":n=t.addons.paging&&t.addons.seo?parseInt(t.start_page)+1:parseInt(t.page)+1,o(t.resultsText,n,r,a,i);break;case"woocommerce":break;default:console.log("No results to set.")}};var o=function(t,e,n,r,o){t.forEach((function(t){var a=(n=parseInt(n))>0?alm_localize.results_text:alm_localize.no_results_text;n>0?(a=(a=(a=(a=(a=(a=a.replace("{num}",'<span class="alm-results-num">'+e+"</span>")).replace("{page}",'<span class="alm-results-page">'+e+"</span>")).replace("{total}",'<span class="alm-results-total">'+n+"</span>")).replace("{pages}",'<span class="alm-results-pages">'+n+"</span>")).replace("{post_count}",'<span class="alm-results-post_count">'+r+"</span>")).replace("{total_posts}",'<span class="alm-results-total_posts">'+o+"</span>"),t.innerHTML=a):t.innerHTML=a}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tableOfContents=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.localize&&t.localize.post_count?parseInt(t.localize.post_count):0;if(0==r&&!t.addons.single_post)return!1;if(t&&t.tableofcontents&&t.transition_container&&"masonry"!==t.transition){var o=t.tableofcontents.dataset.offset?parseInt(t.tableofcontents.dataset.offset):30,a=t.start_page?parseInt(t.start_page):0,i=t.addons.filters_startpage?parseInt(t.addons.filters_startpage):0,l=t.addons.nextpage_startpage?parseInt(t.addons.nextpage_startpage):0,c=parseInt(t.page),u="true"===t.addons.preloaded;if(t.addons.paging||t.addons.nextpage)return!1;e?setTimeout((function(){if(t.addons.seo&&a>1||t.addons.filters&&i>1||t.addons.nextpage&&l>1){if(t.addons.seo&&a>1)for(var e=0;e<a;e++)s(t,e,o);if(t.addons.filters&&i>1)for(var r=0;r<i;r++)s(t,r,o);if(t.addons.nextpage&&l>1)for(var d=0;d<l;d++)s(t,d,o)}else!n&&u&&(c+=1),s(t,c,o)}),100):(u&&(t.addons.seo&&a>0||t.addons.filters&&i>0?c=c:c+=1),s(t,c,o))}},e.clearTOC=function(){var t=document.querySelector(".alm-toc");t&&(t.innerHTML="")};var r,o=n(96),a=n(49),i=(r=a)&&r.__esModule?r:{default:r};function s(t,e,n){if(!t.tableofcontents)return!1;var r=document.createElement("button");r.type="button",e=parseInt(e)+1,r.innerHTML=function(t,e){var n=e;if(t.addons.single_post){var r=e-1,o=void 0;if(t.addons.single_post_target){t.init?r=r:r+=1;var a=document.querySelectorAll(".alm-reveal.alm-single-post");a&&(o=a[r])}else o=document.querySelector(".alm-reveal.alm-single-post[data-page="+(e-1)+"]");n=o?o.dataset.title:n}var i="almTOCLabel_"+t.id;"function"==typeof window[i]&&(n=window[i](e,n));return n}(t,e),r.dataset.page=t.addons.single_post_target&&t.init?e-1:e,t.tableofcontents.appendChild(r),r.addEventListener("click",(function(e){var r=this.dataset.page,a=document.querySelector(".alm-reveal:nth-child("+r+")")||document.querySelector(".alm-nextpage:nth-child("+r+")");if(t.addons.single_post_target&&(a=document.querySelector('.alm-reveal.alm-single-post[data-page="'+r+'"]')),!a)return!1;var s="function"==typeof o.getOffset?(0,o.getOffset)(a).top:a.offsetTop;(0,o.almScroll)(s-n),setTimeout((function(){(0,i.default)(t,a,r,!1)}),1e3)}))}},function(t,e,n){"use strict";function r(t,e,n,r,o){return e.classList.add(r),e.dataset.page=o,"default"===t.addons.seo_permalink?e.dataset.url=o>1?t.canonical_url+n+"&paged="+o:t.canonical_url+n:e.dataset.url=o>1?t.canonical_url+t.addons.seo_leading_slash+"page/"+o+t.addons.seo_trailing_slash+n:t.canonical_url+n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.createMasonrySEOPage=function(t,e){if(!t.addons.seo)return e;var n=window.location.search,o=t.page+1;return o="true"===t.addons.preloaded?o+1:o,e=r(t,e,n,"alm-seo",o)},e.createMasonrySEOPages=function(t,e){if(!t.addons.seo)return e;var n=1,o=t.page,a=window.location.search;if(t.start_page>1){for(var i=parseInt(t.posts_per_page),s=[],l=0;l<e.length;l+=i)s.push(e.slice(l,i+l));for(var c=0;c<s.length;c++){var u=c>0?c*i:0;n=c+1,e[u]&&(e[u]=r(t,e[u],a,"alm-seo",n))}}else n=o,e[0]=r(t,e[0],a,"alm-seo",n);return e},e.createSEOAttributes=function(t,e,n,r,o){e.setAttribute("class","alm-reveal"+r+t.tcc),e.dataset.page=o,"default"===t.addons.seo_permalink?e.dataset.url=o>1?t.canonical_url+n+"&paged="+o:t.canonical_url+n:e.dataset.url=o>1?t.canonical_url+t.addons.seo_leading_slash+"page/"+o+t.addons.seo_trailing_slash+n:t.canonical_url+n;return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(179)),o=a(n(49));function a(t){return t&&t.__esModule?t:{default:t}}function i(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,n){return function r(o,a){try{var i=e[o](a),s=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(s).then((function(t){r("next",t)}),(function(t){r("throw",t)}));t(s)}("next")}))}}e.default=function(t,e,n,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window.location,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"";return new Promise((function(c){var u=e.length,d=0,f=1;!function p(){f<=u?i(regeneratorRuntime.mark((function o(){return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return e[d].style.opacity=0,1==f&&(e[d].classList.add(l),e[d].dataset.url=s,e[d].dataset.page=n.page+1,e[d].dataset.pageTitle=a),o.next=4,(0,r.default)(t,e[d],n.ua);case 4:f++,d++,p();case 7:case"end":return o.stop()}}),o,this)})))().catch((function(t){console.log("There was an error loading the items")})):(setTimeout((function(){e.map((function(t){t.style.opacity=1})),e[0]&&(0,o.default)(n,e[0],null,!1)}),50),c(!0))}()}))}},function(t,e,n){t.exports=!n(8)&&!n(2)((function(){return 7!=Object.defineProperty(n(70)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(1),o=n(7),a=n(31),i=n(71),s=n(9).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=a?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:i.f(t)})}},function(t,e,n){var r=n(14),o=n(16),a=n(52)(!1),i=n(72)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),l=0,c=[];for(n in s)n!=i&&r(s,n)&&c.push(n);for(;e.length>l;)r(s,n=e[l++])&&(~a(c,n)||c.push(n));return c}},function(t,e,n){var r=n(9),o=n(3),a=n(32);t.exports=n(8)?Object.defineProperties:function(t,e){o(t);for(var n,i=a(e),s=i.length,l=0;s>l;)r.f(t,n=i[l++],e[n]);return t}},function(t,e,n){var r=n(16),o=n(35).f,a={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return i&&"[object Window]"==a.call(t)?function(t){try{return o(t)}catch(t){return i.slice()}}(t):o(r(t))}},function(t,e,n){"use strict";var r=n(8),o=n(32),a=n(53),i=n(46),s=n(10),l=n(45),c=Object.assign;t.exports=!c||n(2)((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r}))?function(t,e){for(var n=s(t),c=arguments.length,u=1,d=a.f,f=i.f;c>u;)for(var p,g=l(arguments[u++]),h=d?o(g).concat(d(g)):o(g),m=h.length,v=0;m>v;)p=h[v++],r&&!f.call(g,p)||(n[p]=g[p]);return n}:c},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){"use strict";var r=n(19),o=n(4),a=n(116),i=[].slice,s={},l=function(t,e,n){if(!(e in s)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";s[e]=Function("F,a","return new F("+r.join(",")+")")}return s[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=i.call(arguments,1),s=function(){var r=n.concat(i.call(arguments));return this instanceof s?l(e,r.length,r):a(e,r,t)};return o(e.prototype)&&(s.prototype=e.prototype),s}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(1).parseInt,o=n(40).trim,a=n(76),i=/^[-+]?0[xX]/;t.exports=8!==r(a+"08")||22!==r(a+"0x16")?function(t,e){var n=o(String(t),3);return r(n,e>>>0||(i.test(n)?16:10))}:r},function(t,e,n){var r=n(1).parseFloat,o=n(40).trim;t.exports=1/r(n(76)+"-0")!=-1/0?function(t){var e=o(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},function(t,e,n){var r=n(24);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},function(t,e,n){var r=n(4),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){"use strict";var r=n(34),o=n(29),a=n(39),i={};n(15)(i,n(5)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(i,{next:o(1,n)}),a(t,e+" Iterator")}},function(t,e,n){var r=n(3);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var a=t.return;throw void 0!==a&&r(a.call(t)),e}}},function(t,e,n){var r=n(275);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var r=n(19),o=n(10),a=n(45),i=n(6);t.exports=function(t,e,n,s,l){r(e);var c=o(t),u=a(c),d=i(c.length),f=l?d-1:0,p=l?-1:1;if(n<2)for(;;){if(f in u){s=u[f],f+=p;break}if(f+=p,l?f<0:d<=f)throw TypeError("Reduce of empty array with no initial value")}for(;l?f>=0:d>f;f+=p)f in u&&(s=e(s,u[f],f,c));return s}},function(t,e,n){"use strict";var r=n(10),o=n(33),a=n(6);t.exports=[].copyWithin||function(t,e){var n=r(this),i=a(n.length),s=o(t,i),l=o(e,i),c=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===c?i:o(c,i))-l,i-s),d=1;for(l<s&&s<l+u&&(d=-1,l+=u-1,s+=u-1);u-- >0;)l in n?n[s]=n[l]:delete n[s],s+=d,l+=d;return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var r=n(91);n(0)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(t,e,n){n(8)&&"g"!=/./g.flags&&n(9).f(RegExp.prototype,"flags",{configurable:!0,get:n(56)})},function(t,e,n){"use strict";var r,o,a,i,s=n(31),l=n(1),c=n(18),u=n(47),d=n(0),f=n(4),p=n(19),g=n(43),h=n(59),m=n(48),v=n(93).set,_=n(295)(),y=n(131),b=n(296),w=n(60),x=n(132),S=l.TypeError,A=l.process,j=A&&A.versions,E=j&&j.v8||"",L=l.Promise,P="process"==u(A),M=function(){},O=o=y.f,T=!!function(){try{var t=L.resolve(1),e=(t.constructor={})[n(5)("species")]=function(t){t(M,M)};return(P||"function"==typeof PromiseRejectionEvent)&&t.then(M)instanceof e&&0!==E.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),I=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},F=function(t,e){if(!t._n){t._n=!0;var n=t._c;_((function(){for(var r=t._v,o=1==t._s,a=0,i=function(e){var n,a,i,s=o?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(o||(2==t._h&&k(t),t._h=1),!0===s?n=r:(u&&u.enter(),n=s(r),u&&(u.exit(),i=!0)),n===e.promise?c(S("Promise-chain cycle")):(a=I(n))?a.call(n,l,c):l(n)):c(r)}catch(t){u&&!i&&u.exit(),c(t)}};n.length>a;)i(n[a++]);t._c=[],t._n=!1,e&&!t._h&&C(t)}))}},C=function(t){v.call(l,(function(){var e,n,r,o=t._v,a=N(t);if(a&&(e=b((function(){P?A.emit("unhandledRejection",o,t):(n=l.onunhandledrejection)?n({promise:t,reason:o}):(r=l.console)&&r.error&&r.error("Unhandled promise rejection",o)})),t._h=P||N(t)?2:1),t._a=void 0,a&&e.e)throw e.v}))},N=function(t){return 1!==t._h&&0===(t._a||t._c).length},k=function(t){v.call(l,(function(){var e;P?A.emit("rejectionHandled",t):(e=l.onrejectionhandled)&&e({promise:t,reason:t._v})}))},R=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),F(e,!0))},q=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw S("Promise can't be resolved itself");(e=I(t))?_((function(){var r={_w:n,_d:!1};try{e.call(t,c(q,r,1),c(R,r,1))}catch(t){R.call(r,t)}})):(n._v=t,n._s=1,F(n,!1))}catch(t){R.call({_w:n,_d:!1},t)}}};T||(L=function(t){g(this,L,"Promise","_h"),p(t),r.call(this);try{t(c(q,this,1),c(R,this,1))}catch(t){R.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(44)(L.prototype,{then:function(t,e){var n=O(m(this,L));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=P?A.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&F(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),a=function(){var t=new r;this.promise=t,this.resolve=c(q,t,1),this.reject=c(R,t,1)},y.f=O=function(t){return t===L||t===i?new a(t):o(t)}),d(d.G+d.W+d.F*!T,{Promise:L}),n(39)(L,"Promise"),n(42)("Promise"),i=n(7).Promise,d(d.S+d.F*!T,"Promise",{reject:function(t){var e=O(this);return(0,e.reject)(t),e.promise}}),d(d.S+d.F*(s||!T),"Promise",{resolve:function(t){return x(s&&this===i?L:this,t)}}),d(d.S+d.F*!(T&&n(55)((function(t){L.all(t).catch(M)}))),"Promise",{all:function(t){var e=this,n=O(e),r=n.resolve,o=n.reject,a=b((function(){var n=[],a=0,i=1;h(t,!1,(function(t){var s=a++,l=!1;n.push(void 0),i++,e.resolve(t).then((function(t){l||(l=!0,n[s]=t,--i||r(n))}),o)})),--i||r(n)}));return a.e&&o(a.v),n.promise},race:function(t){var e=this,n=O(e),r=n.reject,o=b((function(){h(t,!1,(function(t){e.resolve(t).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},function(t,e,n){"use strict";var r=n(19);function o(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new o(t)}},function(t,e,n){var r=n(3),o=n(4),a=n(131);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=a.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(9).f,o=n(34),a=n(44),i=n(18),s=n(43),l=n(59),c=n(82),u=n(127),d=n(42),f=n(8),p=n(28).fastKey,g=n(38),h=f?"_s":"size",m=function(t,e){var n,r=p(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,c){var u=t((function(t,r){s(t,u,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[h]=0,null!=r&&l(r,n,t[c],t)}));return a(u.prototype,{clear:function(){for(var t=g(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[h]=0},delete:function(t){var n=g(this,e),r=m(n,t);if(r){var o=r.n,a=r.p;delete n._i[r.i],r.r=!0,a&&(a.n=o),o&&(o.p=a),n._f==r&&(n._f=o),n._l==r&&(n._l=a),n[h]--}return!!r},forEach:function(t){g(this,e);for(var n,r=i(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!m(g(this,e),t)}}),f&&r(u.prototype,"size",{get:function(){return g(this,e)[h]}}),u},def:function(t,e,n){var r,o,a=m(t,e);return a?a.v=n:(t._l=a={i:o=p(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=a),r&&(r.n=a),t[h]++,"F"!==o&&(t._i[o]=a)),t},getEntry:m,setStrong:function(t,e,n){c(t,e,(function(t,n){this._t=g(t,e),this._k=n,this._l=void 0}),(function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?u(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,u(1))}),n?"entries":"values",!n,!0),d(e)}}},function(t,e,n){"use strict";var r=n(44),o=n(28).getWeak,a=n(3),i=n(4),s=n(43),l=n(59),c=n(23),u=n(14),d=n(38),f=c(5),p=c(6),g=0,h=function(t){return t._l||(t._l=new m)},m=function(){this.a=[]},v=function(t,e){return f(t.a,(function(t){return t[0]===e}))};m.prototype={get:function(t){var e=v(this,t);if(e)return e[1]},has:function(t){return!!v(this,t)},set:function(t,e){var n=v(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=p(this.a,(function(e){return e[0]===t}));return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,a){var c=t((function(t,r){s(t,c,e,"_i"),t._t=e,t._i=g++,t._l=void 0,null!=r&&l(r,n,t[a],t)}));return r(c.prototype,{delete:function(t){if(!i(t))return!1;var n=o(t);return!0===n?h(d(this,e)).delete(t):n&&u(n,this._i)&&delete n[this._i]},has:function(t){if(!i(t))return!1;var n=o(t);return!0===n?h(d(this,e)).has(t):n&&u(n,this._i)}}),c},def:function(t,e,n){var r=o(a(e),!0);return!0===r?h(t).set(e,n):r[t._i]=n,t},ufstore:h}},function(t,e,n){var r=n(20),o=n(6);t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=o(e);if(e!==n)throw RangeError("Wrong length!");return n}},function(t,e,n){var r=n(35),o=n(53),a=n(3),i=n(1).Reflect;t.exports=i&&i.ownKeys||function(t){var e=r.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(6),o=n(78),a=n(25);t.exports=function(t,e,n,i){var s=String(a(t)),l=s.length,c=void 0===n?" ":String(n),u=r(e);if(u<=l||""==c)return s;var d=u-l,f=o.call(c,Math.ceil(d/c.length));return f.length>d&&(f=f.slice(0,d)),i?f+s:s+f}},function(t,e,n){var r=n(8),o=n(32),a=n(16),i=n(46).f;t.exports=function(t){return function(e){for(var n,s=a(e),l=o(s),c=l.length,u=0,d=[];c>u;)n=l[u++],r&&!i.call(s,n)||d.push(t?[n,s[n]]:s[n]);return d}}},function(t,e,n){"use strict";var r=String.prototype.replace,o=/%20/g,a=n(95),i={RFC1738:"RFC1738",RFC3986:"RFC3986"};t.exports=a.assign({default:i.RFC3986,formatters:{RFC1738:function(t){return r.call(t,o,"+")},RFC3986:function(t){return String(t)}}},i)},function(t,e,n){"use strict";var r=n(13),o=n(97),a=n(142),i=n(64);function s(t){var e=new a(t),n=o(a.prototype.request,e);return r.extend(n,a.prototype,e),r.extend(n,e),n}var l=s(i);l.Axios=a,l.create=function(t){return s(r.merge(i,t))},l.Cancel=n(101),l.CancelToken=n(156),l.isCancel=n(100),l.all=function(t){return Promise.all(t)},l.spread=n(157),t.exports=l,t.exports.default=l},function(t,e){
7
- /*!
8
- * Determine if an object is a Buffer
9
- *
10
- * @author Feross Aboukhadijeh <https://feross.org>
11
- * @license MIT
12
- */
13
- t.exports=function(t){return null!=t&&null!=t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}},function(t,e,n){"use strict";var r=n(64),o=n(13),a=n(151),i=n(152);function s(t){this.defaults=t,this.interceptors={request:new a,response:new a}}s.prototype.request=function(t){"string"==typeof t&&(t=o.merge({url:arguments[0]},arguments[1])),(t=o.merge(r,{method:"get"},this.defaults,t)).method=t.method.toLowerCase();var e=[i,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},o.forEach(["delete","get","head","options"],(function(t){s.prototype[t]=function(e,n){return this.request(o.merge(n||{},{method:t,url:e}))}})),o.forEach(["post","put","patch"],(function(t){s.prototype[t]=function(e,n,r){return this.request(o.merge(r||{},{method:t,url:e,data:n}))}})),t.exports=s},function(t,e){var n,r,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(t){n=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(t){r=i}}();var l,c=[],u=!1,d=-1;function f(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&p())}function p(){if(!u){var t=s(f);u=!0;for(var e=c.length;e;){for(l=c,c=[];++d<e;)l&&l[d].run();d=-1,e=c.length}l=null,u=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function g(t,e){this.fun=t,this.array=e}function h(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new g(t,e)),1!==c.length||u||s(p)},g.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){"use strict";var r=n(13);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},function(t,e,n){"use strict";var r=n(99);t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t}},function(t,e,n){"use strict";var r=n(13);function o(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var a;if(n)a=n(e);else if(r.isURLSearchParams(e))a=e.toString();else{var i=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),i.push(o(e)+"="+o(t))})))})),a=i.join("&")}return a&&(t+=(-1===t.indexOf("?")?"?":"&")+a),t}},function(t,e,n){"use strict";var r=n(13),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,a,i={};return t?(r.forEach(t.split("\n"),(function(t){if(a=t.indexOf(":"),e=r.trim(t.substr(0,a)).toLowerCase(),n=r.trim(t.substr(a+1)),e){if(i[e]&&o.indexOf(e)>=0)return;i[e]="set-cookie"===e?(i[e]?i[e]:[]).concat([n]):i[e]?i[e]+", "+n:n}})),i):i}},function(t,e,n){"use strict";var r=n(13);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r=n(13);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,a,i){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(a)&&s.push("domain="+a),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";var r=n(13);function o(){this.handlers=[]}o.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},function(t,e,n){"use strict";var r=n(13),o=n(153),a=n(100),i=n(64),s=n(154),l=n(155);function c(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return c(t),t.baseURL&&!s(t.url)&&(t.url=l(t.baseURL,t.url)),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||i.adapter)(t).then((function(e){return c(t),e.data=o(e.data,e.headers,t.transformResponse),e}),(function(e){return a(e)||(c(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,n){"use strict";var r=n(13);t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(101);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){!function(){"use strict";t.exports={polyfill:function(){var t=window,e=document;if(!("scrollBehavior"in e.documentElement.style)||!0===t.__forceSmoothScrollPolyfill__){var n,r=t.HTMLElement||t.Element,o={scroll:t.scroll||t.scrollTo,scrollBy:t.scrollBy,elementScroll:r.prototype.scroll||s,scrollIntoView:r.prototype.scrollIntoView},a=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now,i=(n=t.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);t.scroll=t.scrollTo=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?g.call(t,e.body,void 0!==arguments[0].left?~~arguments[0].left:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:t.scrollY||t.pageYOffset):o.scroll.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:t.scrollY||t.pageYOffset))},t.scrollBy=function(){void 0!==arguments[0]&&(l(arguments[0])?o.scrollBy.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):g.call(t,e.body,~~arguments[0].left+(t.scrollX||t.pageXOffset),~~arguments[0].top+(t.scrollY||t.pageYOffset)))},r.prototype.scroll=r.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==l(arguments[0])){var t=arguments[0].left,e=arguments[0].top;g.call(this,this,void 0===t?this.scrollLeft:~~t,void 0===e?this.scrollTop:~~e)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},r.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},r.prototype.scrollIntoView=function(){if(!0!==l(arguments[0])){var n=f(this),r=n.getBoundingClientRect(),a=this.getBoundingClientRect();n!==e.body?(g.call(this,n,n.scrollLeft+a.left-r.left,n.scrollTop+a.top-r.top),"fixed"!==t.getComputedStyle(n).position&&t.scrollBy({left:r.left,top:r.top,behavior:"smooth"})):t.scrollBy({left:a.left,top:a.top,behavior:"smooth"})}else o.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function s(t,e){this.scrollLeft=t,this.scrollTop=e}function l(t){if(null===t||"object"!=typeof t||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"==typeof t&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function c(t,e){return"Y"===e?t.clientHeight+i<t.scrollHeight:"X"===e?t.clientWidth+i<t.scrollWidth:void 0}function u(e,n){var r=t.getComputedStyle(e,null)["overflow"+n];return"auto"===r||"scroll"===r}function d(t){var e=c(t,"Y")&&u(t,"Y"),n=c(t,"X")&&u(t,"X");return e||n}function f(t){for(;t!==e.body&&!1===d(t);)t=t.parentNode||t.host;return t}function p(e){var n,r,o,i,s=(a()-e.startTime)/468;i=s=s>1?1:s,n=.5*(1-Math.cos(Math.PI*i)),r=e.startX+(e.x-e.startX)*n,o=e.startY+(e.y-e.startY)*n,e.method.call(e.scrollable,r,o),r===e.x&&o===e.y||t.requestAnimationFrame(p.bind(t,e))}function g(n,r,i){var l,c,u,d,f=a();n===e.body?(l=t,c=t.scrollX||t.pageXOffset,u=t.scrollY||t.pageYOffset,d=o.scroll):(l=n,c=n.scrollLeft,u=n.scrollTop,d=s),p({scrollable:l,method:d,startTime:f,startX:c,startY:u,x:r,y:i})}}}}()},function(t,e,n){"use strict";var r,o,a,i;history,Object.entries||(Object.entries=function(t){for(var e=Object.keys(t),n=e.length,r=new Array(n);n--;)r[n]=[e[n],t[e[n]]];return r}),void 0===Array.isArray&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),Array.from||(Array.from=(r=Object.prototype.toString,o=function(t){return"function"==typeof t||"[object Function]"===r.call(t)},a=Math.pow(2,53)-1,i=function(t){var e=function(t){var e=Number(t);return isNaN(e)?0:0!==e&&isFinite(e)?(e>0?1:-1)*Math.floor(Math.abs(e)):e}(t);return Math.min(Math.max(e,0),a)},function(t){var e=this,n=Object(t);if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r,a=arguments.length>1?arguments[1]:void 0;if(void 0!==a){if(!o(a))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(r=arguments[2])}for(var s,l=i(n.length),c=o(e)?Object(new e(l)):new Array(l),u=0;u<l;)s=n[u],c[u]=a?void 0===r?a(s,u):a.call(r,s,u):s,u+=1;return c.length=l,c})),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(t,e){e=e||window;for(var n=0;n<this.length;n++)t.call(e,this[n],n,this)}),[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){e||(e=window.location.href),t=t.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=["#text","#comment"];e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"fade";if(!t||!e)return!1;-1===r.indexOf(e.nodeName.toLowerCase())&&("masonry"===n&&(e.style.opacity=0),t.appendChild(e))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!t)return!1;var e=document.createElement("tbody");e.innerHTML=t;var n=[e];return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(65);e.default=function(t){if(!t)return!1;var e="",n=".html",o=t.addons.cache_path+t.addons.cache_id;if(t.init&&t.addons.seo&&t.isPaged)e=o+"/page-1-"+t.start_page+n;else if(t.addons.filters){var a=(0,r.parseQuerystring)(o);if(t.init&&t.isPaged)e=a+"/page-1-"+t.addons.filters_startpage+n;else{var i=t.page+1;"true"===t.addons.preloaded&&(i=t.page+2),e=a+"/page-"+i+n}}else if(t.addons.nextpage){var s=void 0;t.addons.paging?s=parseInt(t.page)+1:(s=parseInt(t.page)+2,t.isPaged&&(s=parseInt(t.page)+parseInt(t.addons.nextpage_startpage)+1)),e=o+"/page-"+s+n}else e=t.addons.single_post?o+"/"+t.addons.single_post_id+n:"true"===t.addons.comments&&"true"===t.addons.preloaded?o+"/page-"+(t.page+2)+n:o+"/page-"+(t.page+1)+n;return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){for(var e=window.location.search.substring(1).split("&"),n=0;n<e.length;n++){var r=e[n].split("=");if(decodeURIComponent(r[0])==t)return decodeURIComponent(r[1])}return!1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.almGetAjaxParams=function(t,e,n){var r={id:t.id,post_id:t.post_id,slug:t.slug,canonical_url:encodeURIComponent(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};t.theme_repeater&&(r.theme_repeater=t.theme_repeater);t.addons.filters&&(r.filters=t.addons.filters,r.filters_startpage=t.addons.filters_startpage);t.addons.paging&&(r.paging=t.addons.paging);t.addons.preloaded&&(r.preloaded=t.addons.preloaded,r.preloaded_amount=t.addons.preloaded_amount);"true"===t.addons.cache&&(r.cache_id=t.addons.cache_id,r.cache_logged_in=t.addons.cache_logged_in);t.acf_array&&(r.acf=t.acf_array);t.term_query_array&&(r.term_query=t.term_query_array);t.cta_array&&(r.cta=t.cta_array);t.comments_array&&(r.comments=t.comments_array);t.nextpage_array&&(r.nextpage=t.nextpage_array);t.single_post_array&&(r.single_post=t.single_post_array);t.users_array&&(r.users=t.users_array);t.listing.dataset.lang&&(r.lang=t.listing.dataset.lang);t.listing.dataset.stickyPosts&&(r.sticky_posts=t.listing.dataset.stickyPosts);t.listing.dataset.postFormat&&(r.post_format=t.listing.dataset.postFormat);t.listing.dataset.category&&(r.category=t.listing.dataset.category);t.listing.dataset.categoryAnd&&(r.category__and=t.listing.dataset.categoryAnd);t.listing.dataset.categoryNotIn&&(r.category__not_in=t.listing.dataset.categoryNotIn);t.listing.dataset.tag&&(r.tag=t.listing.dataset.tag);t.listing.dataset.tagAnd&&(r.tag__and=t.listing.dataset.tagAnd);t.listing.dataset.tagNotIn&&(r.tag__not_in=t.listing.dataset.tagNotIn);t.listing.dataset.taxonomy&&(r.taxonomy=t.listing.dataset.taxonomy);t.listing.dataset.taxonomyTerms&&(r.taxonomy_terms=t.listing.dataset.taxonomyTerms);t.listing.dataset.taxonomyOperator&&(r.taxonomy_operator=t.listing.dataset.taxonomyOperator);t.listing.dataset.taxonomyRelation&&(r.taxonomy_relation=t.listing.dataset.taxonomyRelation);t.listing.dataset.metaKey&&(r.meta_key=t.listing.dataset.metaKey);t.listing.dataset.metaValue&&(r.meta_value=t.listing.dataset.metaValue);t.listing.dataset.metaCompare&&(r.meta_compare=t.listing.dataset.metaCompare);t.listing.dataset.metaRelation&&(r.meta_relation=t.listing.dataset.metaRelation);t.listing.dataset.metaType&&(r.meta_type=t.listing.dataset.metaType);t.listing.dataset.author&&(r.author=t.listing.dataset.author);t.listing.dataset.year&&(r.year=t.listing.dataset.year);t.listing.dataset.month&&(r.month=t.listing.dataset.month);t.listing.dataset.day&&(r.day=t.listing.dataset.day);t.listing.dataset.order&&(r.order=t.listing.dataset.order);t.listing.dataset.orderby&&(r.orderby=t.listing.dataset.orderby);t.listing.dataset.postStatus&&(r.post_status=t.listing.dataset.postStatus);t.listing.dataset.postIn&&(r.post__in=t.listing.dataset.postIn);t.listing.dataset.postNotIn&&(r.post__not_in=t.listing.dataset.postNotIn);t.listing.dataset.exclude&&(r.exclude=t.listing.dataset.exclude);t.listing.dataset.search&&(r.search=t.listing.dataset.search);t.listing.dataset.s&&(r.search=t.listing.dataset.s);t.listing.dataset.customArgs&&(r.custom_args=escape(t.listing.dataset.customArgs));t.listing.dataset.vars&&(r.vars=escape(t.listing.dataset.vars));return r.action=e,r.query_type=n,r},e.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:encodeURIComponent(t.canonical_url),post_type:t.post_type,post_format:t.listing.dataset.postFormat,category:t.listing.dataset.category,category__not_in:t.listing.dataset.categoryNotIn,tag:t.listing.dataset.tag,tag__not_in:t.listing.dataset.tagNotIn,taxonomy:t.listing.dataset.taxonomy,taxonomy_terms:t.listing.dataset.taxonomyTerms,taxonomy_operator:t.listing.dataset.taxonomyOperator,taxonomy_relation:t.listing.dataset.taxonomyRelation,meta_key:t.listing.dataset.metaKey,meta_value:t.listing.dataset.metaValue,meta_compare:t.listing.dataset.metaCompare,meta_relation:t.listing.dataset.metaRelation,meta_type:t.listing.dataset.metaType,author:t.listing.dataset.author,year:t.listing.dataset.year,month:t.listing.dataset.month,day:t.listing.dataset.day,post_status:t.listing.dataset.postStatus,order:t.listing.dataset.order,orderby:t.listing.dataset.orderby,post__in:t.listing.dataset.postIn,post__not_in:t.listing.dataset.postNotIn,search:t.listing.dataset.search,s:t.listing.dataset.s,custom_args:t.listing.dataset.customArgs,vars:t.listing.dataset.vars,lang:t.lang,preloaded:t.addons.preloaded,preloaded_amount:t.addons.preloaded_amount,seo_start_page:t.start_page}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(104));e.default=function(t){return new Promise((function(e){var n="standard";t.addons.nextpage?(n="nextpage",t.addons.paging?t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+1):t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+parseInt(t.addons.nextpage_startpage)+1)):t.addons.woocommerce?(n="woocommerce",t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+1)):t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+1),"true"===t.addons.preloaded||t.addons.nextpage||t.addons.woocommerce||t.AjaxLoadMore.setLocalizedVar("total_posts",t.totalposts),t.AjaxLoadMore.setLocalizedVar("post_count",function(t){var e=parseInt(t.posts),n=parseInt(t.addons.preloaded_amount),r=e+n;return r=t.start_page>1?r-n:r,r=t.addons.filters_startpage>1?r-n:r,r=t.addons.single_post?r+1:r,r=t.addons.nextpage?r+1:r}(t)),r.almResultsText(t,n),e(!0)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(66);(r=o)&&r.__esModule;var a={init:function(t){if(!0===this.isScript(t))t.parentNode.replaceChild(this.clone(t),t);else{var e=0,n=t.childNodes;if(void 0===n){var r=(new DOMParser).parseFromString(t,"text/html");r&&(n=r.body.childNodes)}for(;e<n.length;)this.replace(n[e++])}return t},replace:function(t){if(!0===this.isScript(t))t.parentNode.replaceChild(this.clone(t),t);else for(var e=0,n=t.childNodes;e<n.length;)this.replace(n[e++]);return t},isScript:function(t){return"SCRIPT"===t.tagName},clone:function(t){var e=document.createElement("script");e.text=t.innerHTML;for(var n=t.attributes.length-1;n>=0;n--)e.setAttribute(t.attributes[n].name,t.attributes[n].value);return e}};e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){if(!t||!t.trigger)return!1;var e=t.trigger.querySelector("button"),n=e?e.dataset.url:"";return n||""}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=d(n(50)),o=d(n(102)),a=d(n(66)),i=d(n(67)),s=d(n(103)),l=n(65),c=n(106),u=d(n(49));function d(t){return t&&t.__esModule?t:{default:t}}var f=n(68);e.default=function t(e,n,d){return new Promise((function(p){var g=e.listing,h=e.html,m=e.masonry_selector,v=e.masonry_columnwidth,_=e.masonry_animation,y=e.masonry_horizontalorder,b=e.speed,w=e.masonry_init,x=(b+100)/1e3+"s",S="scale(0.5)",A="scale(1)";if("zoom-out"===_&&(S="translateY(-20px) scale(1.25)",A="translateY(0) scale(1)"),"slide-up"===_&&(S="translateY(50px)",A="translateY(0)"),"slide-down"===_&&(S="translateY(-50px)",A="translateY(0)"),"none"===_&&(S="translateY(0)",A="translateY(0)"),v?isNaN(v)||(v=parseInt(v)):v=m,y="true"===y,d)g.parentNode.style.opacity=0,t(e,!0,!1),p(!0);else if(w&&n)(0,i.default)(g,e.ua),f(g,(function(){var t={itemSelector:m,transitionDuration:x,columnWidth:v,horizontalOrder:y,hiddenStyle:{transform:S,opacity:0},visibleStyle:{transform:A,opacity:1}},n=window.alm_masonry_vars;n&&Object.keys(n).forEach((function(e){t[e]=n[e]}));var o=g.querySelectorAll(m);e.addons.filters&&(o=(0,l.createMasonryFiltersPages)(e,Array.prototype.slice.call(o))),e.addons.seo&&(o=(0,c.createMasonrySEOPages)(e,Array.prototype.slice.call(o))),setTimeout((function(){e.msnry=new Masonry(g,t),(0,r.default)(g.parentNode,125),p(!0)}),1)}));else{var j=(0,s.default)((0,a.default)(h,"text/html"));j&&((0,o.default)(e.listing,j,"masonry"),(0,i.default)(g,e.ua),f(g,(function(){e.msnry.appended(j),(0,u.default)(e,j,j.length,!1),e.addons.filters&&(0,l.createMasonryFiltersPage)(e,j[0]),e.addons.seo&&(0,c.createMasonrySEOPage)(e,j[0]),p(!0)})))}}))}},function(t,e,n){var r,o;"undefined"!=typeof window&&window,void 0===(o="function"==typeof(r=function(){"use strict";function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var n=this._events=this._events||{},r=n[t]=n[t]||[];return-1==r.indexOf(e)&&r.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var n=this._onceEvents=this._onceEvents||{};return(n[t]=n[t]||{})[e]=!0,this}},e.off=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){var r=n.indexOf(e);return-1!=r&&n.splice(r,1),this}},e.emitEvent=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){n=n.slice(0),e=e||[];for(var r=this._onceEvents&&this._onceEvents[t],o=0;o<n.length;o++){var a=n[o];r&&r[a]&&(this.off(t,a),delete r[a]),a.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t})?r.call(e,n,e,t):r)||(t.exports=o)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){o=!0,a=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw a}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=s(n(50)),a=s(n(69)),i=n(105);function s(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"filter";if(n.target){var o=document.querySelectorAll('.ajax-load-more-wrap[data-id="'+n.target+'"]');o.forEach((function(o){l(t,e,n,o,r)}))}else{var a=document.querySelectorAll(".ajax-load-more-wrap");a.forEach((function(o){l(t,e,n,o,r)}))}(0,i.clearTOC)()};var l=function(t,e,n,r,o){if("fade"===t||"masonry"===t){switch(o){case"filter":r.classList.add("alm-is-filtering"),(0,a.default)(r,e);break;case"tab":r.classList.add("alm-loading");var i=r.querySelector(".alm-listing");r.style.height=i.offsetHeight+"px",(0,a.default)(i,e)}setTimeout((function(){c(e,n,r,o)}),e)}else r.classList.add("alm-is-filtering"),c(e,n,r,o)},c=function(t,e,n,r){var o=n.querySelector(".alm-btn-wrap"),a=n.querySelectorAll(".alm-listing");[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(a)).forEach((function(t){t.innerHTML=""}));var i=o.querySelector(".alm-load-more-btn");i&&i.classList.remove("done");var s=o.querySelector(".alm-paging");s&&(s.style.opacity=0),e.preloadedAmount=0,u(t,e,n,r)},u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,e=arguments[1],n=arguments[2],a=arguments[3],i=n.querySelector(".alm-listing")||n.querySelector(".alm-comments");if(!i)return!1;switch(a){case"filter":var s=!0,l=!1,c=void 0;try{for(var u,d=Object.entries(e)[Symbol.iterator]();!(s=(u=d.next()).done);s=!0){var f=u.value,p=r(f,2),g=p[0],h=p[1];g=g.replace(/\W+/g,"-").replace(/([a-z\d])([A-Z])/g,"$1-$2").toLowerCase(),i.setAttribute("data-"+g,h)}}catch(t){l=!0,c=t}finally{try{!s&&d.return&&d.return()}finally{if(l)throw c}}(0,o.default)(n,t);break;case"tab":i.setAttribute("data-preloaded","false"),i.setAttribute("data-pause","false"),i.setAttribute("data-tab-template",e.tabTemplate)}var m="";switch(e.target?(m=document.querySelector('.ajax-load-more-wrap[data-id="'+e.target+'"]'))&&window.almInit(m):(m=document.querySelector(".ajax-load-more-wrap"))&&window.almInit(m),a){case"filter":"function"==typeof almFilterComplete&&almFilterComplete();break;case"tab":"function"==typeof almTabsComplete&&almTabsComplete()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(""===e)return!1;e=e.replace(/(<p><\/p>)+/g,""),t.innerHTML=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){if(t&&t.debug){var e={query:t.debug,localize:t.localize};console.log("ALM Debug:",e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){if(!t)return!1;var e=-1!==t.scroll_distance_orig.toString().indexOf("-"),n=t.scroll_distance_orig.toString().replace("-","").replace("%",""),r=t.window.innerHeight,o=Math.floor(r/100*parseInt(n));return parseInt(e?"-"+o:o)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.showPlaceholder=function(t){if(!t||!t.main||t.addons.paging)return!1;t.placeholder&&(t.placeholder.style.display="block",(0,r.default)(t.placeholder,75))},e.hidePlaceholder=function(t){if(!t||!t.main||t.addons.paging)return!1;t.placeholder&&((0,o.default)(t.placeholder,75),setTimeout((function(){t.placeholder.style.display="none"}),75))};var r=a(n(50)),o=a(n(69));function a(t){return t&&t.__esModule?t:{default:t}}},function(t,e,n){"use strict";function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n={html:"",meta:{postcount:1,totalposts:1,debug:"Single Posts Query"}};if(200===t.status&&t.data&&e){var r=document.createElement("div");r.innerHTML=t.data;var o=r.querySelector(e);o&&(n.html=o.innerHTML)}return n}Object.defineProperty(e,"__esModule",{value:!0}),e.singlePostHTML=r,e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createCacheFile=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"standard";if("true"!==t.addons.cache||!e||""===e)return!1;var r="single"===n?t.addons.single_post_id:"page-"+(t.page+1),o=new FormData;o.append("action","alm_cache_from_html"),o.append("security",alm_localize.alm_nonce),o.append("cache_id",t.addons.cache_id),o.append("cache_logged_in",t.addons.cache_logged_in),o.append("canonical_url",t.canonical_url),o.append("name",r),o.append("html",e.trim()),a.default.post(alm_localize.ajaxurl,o).then((function(e){console.log("Cache created for: "+t.canonical_url)}))},e.wooCache=function(t,e){if("true"!==t.addons.cache||!e||""===e)return!1;var n=new FormData;n.append("action","alm_cache_from_html"),n.append("security",alm_localize.alm_nonce),n.append("cache_id",t.addons.cache_id),n.append("cache_logged_in",t.addons.cache_logged_in),n.append("canonical_url",t.canonical_url),n.append("name","page-"+t.page),n.append("html",e.trim()),a.default.post(alm_localize.ajaxurl,n).then((function(e){console.log("Cache created for post: "+t.canonical_url)}))};var r,o=n(63),a=(r=o)&&r.__esModule?r:{default:r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wooInit=function(t){if(!t||!t.addons.woocommerce)return!1;t.button.dataset.page=t.addons.woocommerce_settings.paged+1;var e=t.addons.woocommerce_settings.paged_urls[t.addons.woocommerce_settings.paged];t.button.dataset.url=e||"";var n=document.querySelector(t.addons.woocommerce_settings.container);if(n){n.setAttribute("aria-live","polite"),n.setAttribute("aria-atomic","true"),t.listing.removeAttribute("aria-live"),t.listing.removeAttribute("aria-atomic");var r=n.querySelector(t.addons.woocommerce_settings.products);r&&(r.classList.add("alm-woocommerce"),r.dataset.url=t.addons.woocommerce_settings.paged_urls[t.addons.woocommerce_settings.paged-1],r.dataset.page=t.page,r.dataset.pageTitle=document.title),t.addons.woocommerce_settings.paged>1&&function(t){if(t&&t.addons.woocommerce_settings.results_text){var e=document.querySelectorAll(t.addons.woocommerce_settings.results);if(e.length<1)return!1;var n=t.addons.woocommerce_settings.settings.previous_page_link,r=t.addons.woocommerce_settings.settings.previous_page_label,o=t.addons.woocommerce_settings.settings.previous_page_sep;e.forEach((function(t){n&&r&&(t.innerHTML=s(t,n,r,o))}))}}(t)}},e.woocommerce=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.title;if(!t||!e)return!1;return new Promise((function(r){var a=document.querySelector(e.addons.woocommerce_settings.container),s=t.querySelectorAll(e.addons.woocommerce_settings.products),l=e.addons.woocommerce_settings.paged_urls[e.page];a&&s&&l&&(s=Array.prototype.slice.call(s),i(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,o.default)(a,s,e,n,l,"alm-woocommerce");case 2:r(!0);case 3:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log(t,"There was an error with WooCommerce")})))}))},e.wooReset=function(){return new Promise((function(t){var e=window.location;r.default.get(e).then((function(e){if(200===e.status&&e.data){var n=document.createElement("div");n.innerHTML=e.data;var r=n.querySelector('.ajax-load-more-wrap .alm-listing[data-woo="true"]'),o=r?r.dataset.wooSettings:"";t(o)}else t(!1)})).catch((function(e){t(!1)}))}))},e.wooGetContent=function(t,e){var n={html:"",meta:{postcount:1,totalposts:e.localize.total_posts,debug:"WooCommerce Query"}};if(200===t.status&&t.data){var r=document.createElement("div");r.innerHTML=t.data;var o=r.querySelector("title").innerHTML;n.pageTitle=o;var a=r.querySelector(e.addons.woocommerce_settings.container);n.html=a?a.innerHTML:"",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments[1];if(t&&e&&e.addons.woocommerce_settings.results_text){var n=t.querySelector(e.addons.woocommerce_settings.results),r=e.addons.woocommerce_settings.settings.previous_page_link,o=e.addons.woocommerce_settings.settings.previous_page_label,a=e.addons.woocommerce_settings.settings.previous_page_sep;e.addons.woocommerce_settings.results_text&&e.addons.woocommerce_settings.results_text.forEach((function(t){t.innerHTML=r&&o?s(n,r,o,a):n.innerHTML}))}}(r,e)}return n};var r=a(n(63)),o=a(n(107));function a(t){return t&&t.__esModule?t:{default:t}}function i(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,n){return function r(o,a){try{var i=e[o](a),s=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(s).then((function(t){r("next",t)}),(function(t){r("throw",t)}));t(s)}("next")}))}}function s(t,e,n,r){var o=" "+r+' <a href="'+e+'">'+n+"</a>";return t.innerHTML+o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(67),a=(r=o)&&r.__esModule?r:{default:r};var i=n(68);e.default=function(t,e,n){return new Promise((function(r){i(e,(function(){e.style.transition="all 0.4s ease",t.appendChild(e),(0,a.default)(e,n),r(!0)}))}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.elementorInit=function(t){if(!t.addons.elementor||!t.addons.elementor_type||"posts"===!t.addons.elementor_type)return!1;var e=t.addons.elementor_element;if(e){t.button.dataset.page=t.addons.elementor_paged;var n=t.addons.elementor_next_page_url;t.button.dataset.url=n||"",e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),t.listing.removeAttribute("aria-live"),t.listing.removeAttribute("aria-atomic");var r=e.querySelector("."+t.addons.elementor_item_class);if(r&&(r.classList.add("alm-elementor"),r.dataset.url=window.location,r.dataset.page=t.addons.elementor_paged,r.dataset.pageTitle=document.title),t.addons.elementor_paged,t.addons.elementor_masonry){var o=void 0;setTimeout((function(){window.addEventListener("resize",(function(){clearTimeout(o),o=setTimeout((function(){s(t,"."+t.addons.elementor_container_class,"."+t.addons.elementor_item_class)}),100)}))}),250)}}},e.elementor=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.title;if(!t||!e)return!1;return new Promise((function(r){var o=e.addons.elementor_element.querySelector("."+e.addons.elementor_container_class),l=t.querySelectorAll("."+e.addons.elementor_item_class),c=e.addons.elementor_current_url;o&&l&&c?(l=Array.prototype.slice.call(l),i(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.default)(o,l,e,n,c,"alm-elementor");case 2:e.addons.elementor_masonry&&setTimeout((function(){s(e,"."+e.addons.elementor_container_class,"."+e.addons.elementor_item_class)}),125),r(!0);case 4:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log(t,"There was an error with Elementor")}))):r(!1)}))},e.elementorGetContent=function(t,e){var n={html:"",meta:{postcount:1,totalposts:e.localize.total_posts,debug:"Elementor Query"}};if(200===t.status&&t.data){var r=document.createElement("div");r.innerHTML=t.data;var o=r.querySelector("title").innerHTML;n.pageTitle=o;var a=r.querySelector(e.addons.elementor_target+" ."+e.addons.elementor_container_class);n.html=a?a.innerHTML:"",e.addons.elementor_current_url=e.addons.elementor_next_page_url,e.addons.elementor_next_page_url=(i=r,s=e.addons.elementor_pagination_class,(c=i.querySelector(s))?l(c):"")}var i,s,c;return n},e.elementorCreateParams=function(t){t.addons.elementor_type="posts",t.addons.elementor_settings=JSON.parse(t.listing.dataset.elementorSettings),t.addons.elementor_target=t.addons.elementor_settings.target,t.addons.elementor_element=t.addons.elementor_settings.target?document.querySelector(".elementor-widget-wrap "+t.addons.elementor_settings.target):"",t.addons.elementor_widget=function(t){if(!t)return!1;return t.classList.contains("elementor-wc-products")?"woocommerce":"posts"}(t.addons.elementor_element),(t=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"posts";return t.addons.elementor_container_class="woocommerce"===e?t.addons.elementor_settings.woo_container_class:t.addons.elementor_settings.posts_container_class,t.addons.elementor_item_class="woocommerce"===e?t.addons.elementor_settings.woo_item_class:t.addons.elementor_settings.posts_item_class,t.addons.elementor_pagination_class="woocommerce"===e?"."+t.addons.elementor_settings.woo_pagination_class:"."+t.addons.elementor_settings.posts_pagination_class,t}(t,t.addons.elementor_widget)).addons.elementor_pagination=t.addons.elementor_element.querySelector(t.addons.elementor_pagination_class)||t.addons.elementor_element.querySelector("."+t.addons.elementor_settings.pagination_class),t.addons.elementor_pagination=!!t.addons.elementor_pagination&&t.addons.elementor_pagination,t.addons.elementor_controls=t.addons.elementor_settings.controls,t.addons.elementor_controls="true"===t.addons.elementor_controls,t.addons.elementor_scrolltop=parseInt(t.addons.elementor_settings.scrolltop),t.addons.elementor_current_url=window.location.href,t.addons.elementor_next_page_url=l(t.addons.elementor_pagination),t.addons.elementor_paged=t.addons.elementor_settings.paged?parseInt(t.addons.elementor_settings.paged):1,t.page=parseInt(t.page)+t.addons.elementor_paged,(t=function(t){if(!t.addons.elementor_element)return t;var e=t.addons.elementor_element,n=e.dataset.settings?JSON.parse(e.dataset.settings):"";if(!n)return t;t.addons.elementor_masonry=n.hasOwnProperty("cards_masonry")||n.hasOwnProperty("classic_masonry"),t.addons.elementor_masonry&&(t.addons.elementor_masonry_columns=parseInt(n.cards_columns)||parseInt(n.classic_columns),t.addons.elementor_masonry_columns_mobile=parseInt(n.cards_columns_mobile)||parseInt(n.classic_columns_mobile),t.addons.elementor_masonry_columns_tablet=parseInt(n.cards_columns_tablet)||parseInt(n.classic_columns_tablet),t.addons.elementor_masonry_gap=parseInt(n.cards_row_gap.size));return t}(t)).addons.elementor_element||console.warn("Ajax Load More: Unable to locate Elementor Widget. Are you sure you've set up your target parameter correctly?");t.addons.elementor_pagination||console.warn("Ajax Load More: Unable to locate Elementor pagination. There are either no results or p Ajax Load More is unable to locate the pagination widget?");return t};var r,o=n(107),a=(r=o)&&r.__esModule?r:{default:r};function i(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,n){return function r(o,a){try{var i=e[o](a),s=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(s).then((function(t){r("next",t)}),(function(t){r("throw",t)}));t(s)}("next")}))}}function s(t,e,n){var r=[],o=t.addons.elementor_masonry_columns,a=t.addons.elementor_masonry_columns_tablet,i=t.addons.elementor_masonry_columns_mobile,s=t.addons.elementor_masonry_gap,l=o,c=window.elementorFrontendConfig&&window.elementorFrontendConfig.breakpoints?window.elementorFrontendConfig.breakpoints:0,u=window.innerWidth;l=u>c.lg?o:u>c.md?a:i;var d=document.querySelector(e);if(!d)return!1;var f=d.querySelectorAll(n);if(!f)return!1;f.forEach((function(t,e){var n=Math.floor(e/l),o=t.getBoundingClientRect().height+s;if(n){var a=jQuery(t).position(),i=e%l,c=Math.round(a.top)-r[i];c*=-1,t.style.marginTop=Math.round(c)+"px",r[i]+=o}else r.push(o)}))}function l(t){return t&&t.querySelector("a.next")?t.querySelector("a.next").href:""}},function(t,e,n){n(182)},function(t,e,n){"use strict";n(183),n(326),n(328),n(331),n(333),n(335),n(337),n(339),n(341),n(343),n(345),n(347),n(349),n(353)},function(t,e,n){n(184),n(187),n(188),n(189),n(190),n(191),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(199),n(200),n(201),n(202),n(203),n(204),n(205),n(206),n(207),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(220),n(221),n(222),n(223),n(224),n(225),n(226),n(227),n(228),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(265),n(266),n(268),n(269),n(270),n(271),n(272),n(273),n(274),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(288),n(90),n(289),n(128),n(290),n(129),n(291),n(292),n(293),n(294),n(130),n(297),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(321),n(322),n(323),n(324),n(325),t.exports=n(7)},function(t,e,n){"use strict";var r=n(1),o=n(14),a=n(8),i=n(0),s=n(11),l=n(28).KEY,c=n(2),u=n(51),d=n(39),f=n(30),p=n(5),g=n(71),h=n(109),m=n(186),v=n(54),_=n(3),y=n(4),b=n(10),w=n(16),x=n(27),S=n(29),A=n(34),j=n(112),E=n(21),L=n(53),P=n(9),M=n(32),O=E.f,T=P.f,I=j.f,F=r.Symbol,C=r.JSON,N=C&&C.stringify,k=p("_hidden"),R=p("toPrimitive"),q={}.propertyIsEnumerable,D=u("symbol-registry"),z=u("symbols"),B=u("op-symbols"),W=Object.prototype,H="function"==typeof F&&!!L.f,U=r.QObject,V=!U||!U.prototype||!U.prototype.findChild,G=a&&c((function(){return 7!=A(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=O(W,e);r&&delete W[e],T(t,e,n),r&&t!==W&&T(W,e,r)}:T,Y=function(t){var e=z[t]=A(F.prototype);return e._k=t,e},X=H&&"symbol"==typeof F.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof F},Q=function(t,e,n){return t===W&&Q(B,e,n),_(t),e=x(e,!0),_(n),o(z,e)?(n.enumerable?(o(t,k)&&t[k][e]&&(t[k][e]=!1),n=A(n,{enumerable:S(0,!1)})):(o(t,k)||T(t,k,S(1,{})),t[k][e]=!0),G(t,e,n)):T(t,e,n)},$=function(t,e){_(t);for(var n,r=m(e=w(e)),o=0,a=r.length;a>o;)Q(t,n=r[o++],e[n]);return t},J=function(t){var e=q.call(this,t=x(t,!0));return!(this===W&&o(z,t)&&!o(B,t))&&(!(e||!o(this,t)||!o(z,t)||o(this,k)&&this[k][t])||e)},K=function(t,e){if(t=w(t),e=x(e,!0),t!==W||!o(z,e)||o(B,e)){var n=O(t,e);return!n||!o(z,e)||o(t,k)&&t[k][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=I(w(t)),r=[],a=0;n.length>a;)o(z,e=n[a++])||e==k||e==l||r.push(e);return r},tt=function(t){for(var e,n=t===W,r=I(n?B:w(t)),a=[],i=0;r.length>i;)!o(z,e=r[i++])||n&&!o(W,e)||a.push(z[e]);return a};H||(s((F=function(){if(this instanceof F)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(n){this===W&&e.call(B,n),o(this,k)&&o(this[k],t)&&(this[k][t]=!1),G(this,t,S(1,n))};return a&&V&&G(W,t,{configurable:!0,set:e}),Y(t)}).prototype,"toString",(function(){return this._k})),E.f=K,P.f=Q,n(35).f=j.f=Z,n(46).f=J,L.f=tt,a&&!n(31)&&s(W,"propertyIsEnumerable",J,!0),g.f=function(t){return Y(p(t))}),i(i.G+i.W+i.F*!H,{Symbol:F});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)p(et[nt++]);for(var rt=M(p.store),ot=0;rt.length>ot;)h(rt[ot++]);i(i.S+i.F*!H,"Symbol",{for:function(t){return o(D,t+="")?D[t]:D[t]=F(t)},keyFor:function(t){if(!X(t))throw TypeError(t+" is not a symbol!");for(var e in D)if(D[e]===t)return e},useSetter:function(){V=!0},useSimple:function(){V=!1}}),i(i.S+i.F*!H,"Object",{create:function(t,e){return void 0===e?A(t):$(A(t),e)},defineProperty:Q,defineProperties:$,getOwnPropertyDescriptor:K,getOwnPropertyNames:Z,getOwnPropertySymbols:tt});var at=c((function(){L.f(1)}));i(i.S+i.F*at,"Object",{getOwnPropertySymbols:function(t){return L.f(b(t))}}),C&&i(i.S+i.F*(!H||c((function(){var t=F();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(y(e)||void 0!==t)&&!X(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!X(e))return e}),r[1]=e,N.apply(C,r)}}),F.prototype[R]||n(15)(F.prototype,R,F.prototype.valueOf),d(F,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},function(t,e,n){t.exports=n(51)("native-function-to-string",Function.toString)},function(t,e,n){var r=n(32),o=n(53),a=n(46);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var i,s=n(t),l=a.f,c=0;s.length>c;)l.call(t,i=s[c++])&&e.push(i);return e}},function(t,e,n){var r=n(0);r(r.S,"Object",{create:n(34)})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(8),"Object",{defineProperty:n(9).f})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(8),"Object",{defineProperties:n(111)})},function(t,e,n){var r=n(16),o=n(21).f;n(22)("getOwnPropertyDescriptor",(function(){return function(t,e){return o(r(t),e)}}))},function(t,e,n){var r=n(10),o=n(36);n(22)("getPrototypeOf",(function(){return function(t){return o(r(t))}}))},function(t,e,n){var r=n(10),o=n(32);n(22)("keys",(function(){return function(t){return o(r(t))}}))},function(t,e,n){n(22)("getOwnPropertyNames",(function(){return n(112).f}))},function(t,e,n){var r=n(4),o=n(28).onFreeze;n(22)("freeze",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(4),o=n(28).onFreeze;n(22)("seal",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(4),o=n(28).onFreeze;n(22)("preventExtensions",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(4);n(22)("isFrozen",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(4);n(22)("isSealed",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(4);n(22)("isExtensible",(function(t){return function(e){return!!r(e)&&(!t||t(e))}}))},function(t,e,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(113)})},function(t,e,n){var r=n(0);r(r.S,"Object",{is:n(114)})},function(t,e,n){var r=n(0);r(r.S,"Object",{setPrototypeOf:n(75).set})},function(t,e,n){"use strict";var r=n(47),o={};o[n(5)("toStringTag")]="z",o+""!="[object z]"&&n(11)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(t,e,n){var r=n(0);r(r.P,"Function",{bind:n(115)})},function(t,e,n){var r=n(9).f,o=Function.prototype,a=/^\s*function ([^ (]*)/;"name"in o||n(8)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(a)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(4),o=n(36),a=n(5)("hasInstance"),i=Function.prototype;a in i||n(9).f(i,a,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(0),o=n(117);r(r.G+r.F*(parseInt!=o),{parseInt:o})},function(t,e,n){var r=n(0),o=n(118);r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},function(t,e,n){"use strict";var r=n(1),o=n(14),a=n(24),i=n(77),s=n(27),l=n(2),c=n(35).f,u=n(21).f,d=n(9).f,f=n(40).trim,p=r.Number,g=p,h=p.prototype,m="Number"==a(n(34)(h)),v="trim"in String.prototype,_=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){var n,r,o,a=(e=v?e.trim():f(e,3)).charCodeAt(0);if(43===a||45===a){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===a){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var i,l=e.slice(2),c=0,u=l.length;c<u;c++)if((i=l.charCodeAt(c))<48||i>o)return NaN;return parseInt(l,r)}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof p&&(m?l((function(){h.valueOf.call(n)})):"Number"!=a(n))?i(new g(_(e)),n,p):_(e)};for(var y,b=n(8)?c(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;b.length>w;w++)o(g,y=b[w])&&!o(p,y)&&d(p,y,u(g,y));p.prototype=h,h.constructor=p,n(11)(r,"Number",p)}},function(t,e,n){"use strict";var r=n(0),o=n(20),a=n(119),i=n(78),s=1..toFixed,l=Math.floor,c=[0,0,0,0,0,0],u="Number.toFixed: incorrect invocation!",d=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*c[n],c[n]=r%1e7,r=l(r/1e7)},f=function(t){for(var e=6,n=0;--e>=0;)n+=c[e],c[e]=l(n/t),n=n%t*1e7},p=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==c[t]){var n=String(c[t]);e=""===e?n:e+i.call("0",7-n.length)+n}return e},g=function(t,e,n){return 0===e?n:e%2==1?g(t,e-1,n*t):g(t*t,e/2,n)};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(2)((function(){s.call({})}))),"Number",{toFixed:function(t){var e,n,r,s,l=a(this,u),c=o(t),h="",m="0";if(c<0||c>20)throw RangeError(u);if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(h="-",l=-l),l>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(l*g(2,69,1))-69)<0?l*g(2,-e,1):l/g(2,e,1),n*=4503599627370496,(e=52-e)>0){for(d(0,n),r=c;r>=7;)d(1e7,0),r-=7;for(d(g(10,r,1),0),r=e-1;r>=23;)f(1<<23),r-=23;f(1<<r),d(1,1),f(2),m=p()}else d(0,n),d(1<<-e,0),m=p()+i.call("0",c);return m=c>0?h+((s=m.length)<=c?"0."+i.call("0",c-s)+m:m.slice(0,s-c)+"."+m.slice(s-c)):h+m}})},function(t,e,n){"use strict";var r=n(0),o=n(2),a=n(119),i=1..toPrecision;r(r.P+r.F*(o((function(){return"1"!==i.call(1,void 0)}))||!o((function(){i.call({})}))),"Number",{toPrecision:function(t){var e=a(this,"Number#toPrecision: incorrect invocation!");return void 0===t?i.call(e):i.call(e,t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(0),o=n(1).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{isInteger:n(120)})},function(t,e,n){var r=n(0);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(0),o=n(120),a=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return o(t)&&a(t)<=9007199254740991}})},function(t,e,n){var r=n(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(0),o=n(118);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(t,e,n){var r=n(0),o=n(117);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(t,e,n){var r=n(0),o=n(121),a=Math.sqrt,i=Math.acosh;r(r.S+r.F*!(i&&710==Math.floor(i(Number.MAX_VALUE))&&i(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+a(t-1)*a(t+1))}})},function(t,e,n){var r=n(0),o=Math.asinh;r(r.S+r.F*!(o&&1/o(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},function(t,e,n){var r=n(0),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(0),o=n(79);r(r.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(0),o=Math.exp;r(r.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,e,n){var r=n(0),o=n(80);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},function(t,e,n){var r=n(0);r(r.S,"Math",{fround:n(229)})},function(t,e,n){var r=n(79),o=Math.pow,a=o(2,-52),i=o(2,-23),s=o(2,127)*(2-i),l=o(2,-126);t.exports=Math.fround||function(t){var e,n,o=Math.abs(t),c=r(t);return o<l?c*(o/l/i+1/a-1/a)*l*i:(n=(e=(1+i/a)*o)-(e-o))>s||n!=n?c*(1/0):c*n}},function(t,e,n){var r=n(0),o=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,a=0,i=0,s=arguments.length,l=0;i<s;)l<(n=o(arguments[i++]))?(a=a*(r=l/n)*r+1,l=n):a+=n>0?(r=n/l)*r:n;return l===1/0?1/0:l*Math.sqrt(a)}})},function(t,e,n){var r=n(0),o=Math.imul;r(r.S+r.F*n(2)((function(){return-5!=o(4294967295,5)||2!=o.length})),"Math",{imul:function(t,e){var n=+t,r=+e,o=65535&n,a=65535&r;return 0|o*a+((65535&n>>>16)*a+o*(65535&r>>>16)<<16>>>0)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log1p:n(121)})},function(t,e,n){var r=n(0);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(0);r(r.S,"Math",{sign:n(79)})},function(t,e,n){var r=n(0),o=n(80),a=Math.exp;r(r.S+r.F*n(2)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(a(t-1)-a(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(0),o=n(80),a=Math.exp;r(r.S,"Math",{tanh:function(t){var e=o(t=+t),n=o(-t);return e==1/0?1:n==1/0?-1:(e-n)/(a(t)+a(-t))}})},function(t,e,n){var r=n(0);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(0),o=n(33),a=String.fromCharCode,i=String.fromCodePoint;r(r.S+r.F*(!!i&&1!=i.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,i=0;r>i;){if(e=+arguments[i++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?a(e):a(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(0),o=n(16),a=n(6);r(r.S,"String",{raw:function(t){for(var e=o(t.raw),n=a(e.length),r=arguments.length,i=[],s=0;n>s;)i.push(String(e[s++])),s<r&&i.push(String(arguments[s]));return i.join("")}})},function(t,e,n){"use strict";n(40)("trim",(function(t){return function(){return t(this,3)}}))},function(t,e,n){"use strict";var r=n(81)(!0);n(82)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";var r=n(0),o=n(81)(!1);r(r.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,e,n){"use strict";var r=n(0),o=n(6),a=n(83),i="".endsWith;r(r.P+r.F*n(85)("endsWith"),"String",{endsWith:function(t){var e=a(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=o(e.length),s=void 0===n?r:Math.min(o(n),r),l=String(t);return i?i.call(e,l,s):e.slice(s-l.length,s)===l}})},function(t,e,n){"use strict";var r=n(0),o=n(83);r(r.P+r.F*n(85)("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(0);r(r.P,"String",{repeat:n(78)})},function(t,e,n){"use strict";var r=n(0),o=n(6),a=n(83),i="".startsWith;r(r.P+r.F*n(85)("startsWith"),"String",{startsWith:function(t){var e=a(this,t,"startsWith"),n=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return i?i.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";n(12)("anchor",(function(t){return function(e){return t(this,"a","name",e)}}))},function(t,e,n){"use strict";n(12)("big",(function(t){return function(){return t(this,"big","","")}}))},function(t,e,n){"use strict";n(12)("blink",(function(t){return function(){return t(this,"blink","","")}}))},function(t,e,n){"use strict";n(12)("bold",(function(t){return function(){return t(this,"b","","")}}))},function(t,e,n){"use strict";n(12)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},function(t,e,n){"use strict";n(12)("fontcolor",(function(t){return function(e){return t(this,"font","color",e)}}))},function(t,e,n){"use strict";n(12)("fontsize",(function(t){return function(e){return t(this,"font","size",e)}}))},function(t,e,n){"use strict";n(12)("italics",(function(t){return function(){return t(this,"i","","")}}))},function(t,e,n){"use strict";n(12)("link",(function(t){return function(e){return t(this,"a","href",e)}}))},function(t,e,n){"use strict";n(12)("small",(function(t){return function(){return t(this,"small","","")}}))},function(t,e,n){"use strict";n(12)("strike",(function(t){return function(){return t(this,"strike","","")}}))},function(t,e,n){"use strict";n(12)("sub",(function(t){return function(){return t(this,"sub","","")}}))},function(t,e,n){"use strict";n(12)("sup",(function(t){return function(){return t(this,"sup","","")}}))},function(t,e,n){var r=n(0);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var r=n(0),o=n(10),a=n(27);r(r.P+r.F*n(2)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var e=o(this),n=a(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(0),o=n(264);r(r.P+r.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},function(t,e,n){"use strict";var r=n(2),o=Date.prototype.getTime,a=Date.prototype.toISOString,i=function(t){return t>9?t:"0"+t};t.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=a.call(new Date(-50000000000001))}))||!r((function(){a.call(new Date(NaN))}))?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+i(t.getUTCMonth()+1)+"-"+i(t.getUTCDate())+"T"+i(t.getUTCHours())+":"+i(t.getUTCMinutes())+":"+i(t.getUTCSeconds())+"."+(n>99?n:"0"+i(n))+"Z"}:a},function(t,e,n){var r=Date.prototype,o=r.toString,a=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(11)(r,"toString",(function(){var t=a.call(this);return t==t?o.call(this):"Invalid Date"}))},function(t,e,n){var r=n(5)("toPrimitive"),o=Date.prototype;r in o||n(15)(o,r,n(267))},function(t,e,n){"use strict";var r=n(3),o=n(27);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),"number"!=t)}},function(t,e,n){var r=n(0);r(r.S,"Array",{isArray:n(54)})},function(t,e,n){"use strict";var r=n(18),o=n(0),a=n(10),i=n(123),s=n(86),l=n(6),c=n(87),u=n(88);o(o.S+o.F*!n(55)((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,o,d,f=a(t),p="function"==typeof this?this:Array,g=arguments.length,h=g>1?arguments[1]:void 0,m=void 0!==h,v=0,_=u(f);if(m&&(h=r(h,g>2?arguments[2]:void 0,2)),null==_||p==Array&&s(_))for(n=new p(e=l(f.length));e>v;v++)c(n,v,m?h(f[v],v):f[v]);else for(d=_.call(f),n=new p;!(o=d.next()).done;v++)c(n,v,m?i(d,h,[o.value,v],!0):o.value);return n.length=v,n}})},function(t,e,n){"use strict";var r=n(0),o=n(87);r(r.S+r.F*n(2)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)o(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(0),o=n(16),a=[].join;r(r.P+r.F*(n(45)!=Object||!n(17)(a)),"Array",{join:function(t){return a.call(o(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var r=n(0),o=n(74),a=n(24),i=n(33),s=n(6),l=[].slice;r(r.P+r.F*n(2)((function(){o&&l.call(o)})),"Array",{slice:function(t,e){var n=s(this.length),r=a(this);if(e=void 0===e?n:e,"Array"==r)return l.call(this,t,e);for(var o=i(t,n),c=i(e,n),u=s(c-o),d=new Array(u),f=0;f<u;f++)d[f]="String"==r?this.charAt(o+f):this[o+f];return d}})},function(t,e,n){"use strict";var r=n(0),o=n(19),a=n(10),i=n(2),s=[].sort,l=[1,2,3];r(r.P+r.F*(i((function(){l.sort(void 0)}))||!i((function(){l.sort(null)}))||!n(17)(s)),"Array",{sort:function(t){return void 0===t?s.call(a(this)):s.call(a(this),o(t))}})},function(t,e,n){"use strict";var r=n(0),o=n(23)(0),a=n(17)([].forEach,!0);r(r.P+r.F*!a,"Array",{forEach:function(t){return o(this,t,arguments[1])}})},function(t,e,n){var r=n(4),o=n(54),a=n(5)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&null===(e=e[a])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){"use strict";var r=n(0),o=n(23)(1);r(r.P+r.F*!n(17)([].map,!0),"Array",{map:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(23)(2);r(r.P+r.F*!n(17)([].filter,!0),"Array",{filter:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(23)(3);r(r.P+r.F*!n(17)([].some,!0),"Array",{some:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(23)(4);r(r.P+r.F*!n(17)([].every,!0),"Array",{every:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(125);r(r.P+r.F*!n(17)([].reduce,!0),"Array",{reduce:function(t){return o(this,t,arguments.length,arguments[1],!1)}})},function(t,e,n){"use strict";var r=n(0),o=n(125);r(r.P+r.F*!n(17)([].reduceRight,!0),"Array",{reduceRight:function(t){return o(this,t,arguments.length,arguments[1],!0)}})},function(t,e,n){"use strict";var r=n(0),o=n(52)(!1),a=[].indexOf,i=!!a&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(i||!n(17)(a)),"Array",{indexOf:function(t){return i?a.apply(this,arguments)||0:o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(16),a=n(20),i=n(6),s=[].lastIndexOf,l=!!s&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(l||!n(17)(s)),"Array",{lastIndexOf:function(t){if(l)return s.apply(this,arguments)||0;var e=o(this),n=i(e.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,a(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},function(t,e,n){var r=n(0);r(r.P,"Array",{copyWithin:n(126)}),n(37)("copyWithin")},function(t,e,n){var r=n(0);r(r.P,"Array",{fill:n(89)}),n(37)("fill")},function(t,e,n){"use strict";var r=n(0),o=n(23)(5),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),r(r.P+r.F*a,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(37)("find")},function(t,e,n){"use strict";var r=n(0),o=n(23)(6),a="findIndex",i=!0;a in[]&&Array(1)[a]((function(){i=!1})),r(r.P+r.F*i,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(37)(a)},function(t,e,n){n(42)("Array")},function(t,e,n){var r=n(1),o=n(77),a=n(9).f,i=n(35).f,s=n(84),l=n(56),c=r.RegExp,u=c,d=c.prototype,f=/a/g,p=/a/g,g=new c(f)!==f;if(n(8)&&(!g||n(2)((function(){return p[n(5)("match")]=!1,c(f)!=f||c(p)==p||"/a/i"!=c(f,"i")})))){c=function(t,e){var n=this instanceof c,r=s(t),a=void 0===e;return!n&&r&&t.constructor===c&&a?t:o(g?new u(r&&!a?t.source:t,e):u((r=t instanceof c)?t.source:t,r&&a?l.call(t):e),n?this:d,c)};for(var h=function(t){t in c||a(c,t,{configurable:!0,get:function(){return u[t]},set:function(e){u[t]=e}})},m=i(u),v=0;m.length>v;)h(m[v++]);d.constructor=c,c.prototype=d,n(11)(r,"RegExp",c)}n(42)("RegExp")},function(t,e,n){"use strict";n(129);var r=n(3),o=n(56),a=n(8),i=/./.toString,s=function(t){n(11)(RegExp.prototype,"toString",t,!0)};n(2)((function(){return"/a/b"!=i.call({source:"a",flags:"b"})}))?s((function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!a&&t instanceof RegExp?o.call(t):void 0)})):"toString"!=i.name&&s((function(){return i.call(this)}))},function(t,e,n){"use strict";var r=n(3),o=n(6),a=n(92),i=n(57);n(58)("match",1,(function(t,e,n,s){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=s(n,t,this);if(e.done)return e.value;var l=r(t),c=String(this);if(!l.global)return i(l,c);var u=l.unicode;l.lastIndex=0;for(var d,f=[],p=0;null!==(d=i(l,c));){var g=String(d[0]);f[p]=g,""===g&&(l.lastIndex=a(c,o(l.lastIndex),u)),p++}return 0===p?null:f}]}))},function(t,e,n){"use strict";var r=n(3),o=n(10),a=n(6),i=n(20),s=n(92),l=n(57),c=Math.max,u=Math.min,d=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n(58)("replace",2,(function(t,e,n,g){return[function(r,o){var a=t(this),i=null==r?void 0:r[e];return void 0!==i?i.call(r,a,o):n.call(String(a),r,o)},function(t,e){var o=g(n,t,this,e);if(o.done)return o.value;var d=r(t),f=String(this),p="function"==typeof e;p||(e=String(e));var m=d.global;if(m){var v=d.unicode;d.lastIndex=0}for(var _=[];;){var y=l(d,f);if(null===y)break;if(_.push(y),!m)break;""===String(y[0])&&(d.lastIndex=s(f,a(d.lastIndex),v))}for(var b,w="",x=0,S=0;S<_.length;S++){y=_[S];for(var A=String(y[0]),j=c(u(i(y.index),f.length),0),E=[],L=1;L<y.length;L++)E.push(void 0===(b=y[L])?b:String(b));var P=y.groups;if(p){var M=[A].concat(E,j,f);void 0!==P&&M.push(P);var O=String(e.apply(void 0,M))}else O=h(A,f,j,E,P,e);j>=x&&(w+=f.slice(x,j)+O,x=j+A.length)}return w+f.slice(x)}];function h(t,e,r,a,i,s){var l=r+t.length,c=a.length,u=p;return void 0!==i&&(i=o(i),u=f),n.call(s,u,(function(n,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(l);case"<":s=i[o.slice(1,-1)];break;default:var u=+o;if(0===u)return n;if(u>c){var f=d(u/10);return 0===f?n:f<=c?void 0===a[f-1]?o.charAt(1):a[f-1]+o.charAt(1):n}s=a[u-1]}return void 0===s?"":s}))}}))},function(t,e,n){"use strict";var r=n(3),o=n(114),a=n(57);n(58)("search",1,(function(t,e,n,i){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=i(n,t,this);if(e.done)return e.value;var s=r(t),l=String(this),c=s.lastIndex;o(c,0)||(s.lastIndex=0);var u=a(s,l);return o(s.lastIndex,c)||(s.lastIndex=c),null===u?-1:u.index}]}))},function(t,e,n){"use strict";var r=n(84),o=n(3),a=n(48),i=n(92),s=n(6),l=n(57),c=n(91),u=n(2),d=Math.min,f=[].push,p="length",g=!u((function(){RegExp(4294967295,"y")}));n(58)("split",2,(function(t,e,n,u){var h;return h="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[p]||2!="ab".split(/(?:ab)*/)[p]||4!=".".split(/(.?)(.?)/)[p]||".".split(/()()/)[p]>1||"".split(/.?/)[p]?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(o,t,e);for(var a,i,s,l=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,g=void 0===e?4294967295:e>>>0,h=new RegExp(t.source,u+"g");(a=c.call(h,o))&&!((i=h.lastIndex)>d&&(l.push(o.slice(d,a.index)),a[p]>1&&a.index<o[p]&&f.apply(l,a.slice(1)),s=a[0][p],d=i,l[p]>=g));)h.lastIndex===a.index&&h.lastIndex++;return d===o[p]?!s&&h.test("")||l.push(""):l.push(o.slice(d)),l[p]>g?l.slice(0,g):l}:"0".split(void 0,0)[p]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,r){var o=t(this),a=null==n?void 0:n[e];return void 0!==a?a.call(n,o,r):h.call(String(o),n,r)},function(t,e){var r=u(h,t,this,e,h!==n);if(r.done)return r.value;var c=o(t),f=String(this),p=a(c,RegExp),m=c.unicode,v=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(g?"y":"g"),_=new p(g?c:"^(?:"+c.source+")",v),y=void 0===e?4294967295:e>>>0;if(0===y)return[];if(0===f.length)return null===l(_,f)?[f]:[];for(var b=0,w=0,x=[];w<f.length;){_.lastIndex=g?w:0;var S,A=l(_,g?f:f.slice(w));if(null===A||(S=d(s(_.lastIndex+(g?0:w)),f.length))===b)w=i(f,w,m);else{if(x.push(f.slice(b,w)),x.length===y)return x;for(var j=1;j<=A.length-1;j++)if(x.push(A[j]),x.length===y)return x;w=b=S}}return x.push(f.slice(b)),x}]}))},function(t,e,n){var r=n(1),o=n(93).set,a=r.MutationObserver||r.WebKitMutationObserver,i=r.process,s=r.Promise,l="process"==n(24)(i);t.exports=function(){var t,e,n,c=function(){var r,o;for(l&&(r=i.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(l)n=function(){i.nextTick(c)};else if(!a||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(c)}}else n=function(){o.call(r,c)};else{var d=!0,f=document.createTextNode("");new a(c).observe(f,{characterData:!0}),n=function(){f.data=d=!d}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){"use strict";var r=n(133),o=n(38);t.exports=n(61)("Map",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=r.getEntry(o(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(o(this,"Map"),0===t?0:t,e)}},r,!0)},function(t,e,n){"use strict";var r=n(133),o=n(38);t.exports=n(61)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(o(this,"Set"),t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r,o=n(1),a=n(23)(0),i=n(11),s=n(28),l=n(113),c=n(134),u=n(4),d=n(38),f=n(38),p=!o.ActiveXObject&&"ActiveXObject"in o,g=s.getWeak,h=Object.isExtensible,m=c.ufstore,v=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},_={get:function(t){if(u(t)){var e=g(t);return!0===e?m(d(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return c.def(d(this,"WeakMap"),t,e)}},y=t.exports=n(61)("WeakMap",v,_,c,!0,!0);f&&p&&(l((r=c.getConstructor(v,"WeakMap")).prototype,_),s.NEED=!0,a(["delete","has","get","set"],(function(t){var e=y.prototype,n=e[t];i(e,t,(function(e,o){if(u(e)&&!h(e)){this._f||(this._f=new r);var a=this._f[t](e,o);return"set"==t?this:a}return n.call(this,e,o)}))})))},function(t,e,n){"use strict";var r=n(134),o=n(38);n(61)("WeakSet",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(o(this,"WeakSet"),t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(0),o=n(62),a=n(94),i=n(3),s=n(33),l=n(6),c=n(4),u=n(1).ArrayBuffer,d=n(48),f=a.ArrayBuffer,p=a.DataView,g=o.ABV&&u.isView,h=f.prototype.slice,m=o.VIEW;r(r.G+r.W+r.F*(u!==f),{ArrayBuffer:f}),r(r.S+r.F*!o.CONSTR,"ArrayBuffer",{isView:function(t){return g&&g(t)||c(t)&&m in t}}),r(r.P+r.U+r.F*n(2)((function(){return!new f(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(t,e){if(void 0!==h&&void 0===e)return h.call(i(this),t);for(var n=i(this).byteLength,r=s(t,n),o=s(void 0===e?n:e,n),a=new(d(this,f))(l(o-r)),c=new p(this),u=new p(a),g=0;r<o;)u.setUint8(g++,c.getUint8(r++));return a}}),n(42)("ArrayBuffer")},function(t,e,n){var r=n(0);r(r.G+r.W+r.F*!n(62).ABV,{DataView:n(94).DataView})},function(t,e,n){n(26)("Int8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Uint8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Uint8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}),!0)},function(t,e,n){n(26)("Int16",2,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Uint16",2,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Int32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Uint32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Float32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Float64",8,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){var r=n(0),o=n(19),a=n(3),i=(n(1).Reflect||{}).apply,s=Function.apply;r(r.S+r.F*!n(2)((function(){i((function(){}))})),"Reflect",{apply:function(t,e,n){var r=o(t),l=a(n);return i?i(r,e,l):s.call(r,e,l)}})},function(t,e,n){var r=n(0),o=n(34),a=n(19),i=n(3),s=n(4),l=n(2),c=n(115),u=(n(1).Reflect||{}).construct,d=l((function(){function t(){}return!(u((function(){}),[],t)instanceof t)})),f=!l((function(){u((function(){}))}));r(r.S+r.F*(d||f),"Reflect",{construct:function(t,e){a(t),i(e);var n=arguments.length<3?t:a(arguments[2]);if(f&&!d)return u(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(c.apply(t,r))}var l=n.prototype,p=o(s(l)?l:Object.prototype),g=Function.apply.call(t,p,e);return s(g)?g:p}})},function(t,e,n){var r=n(9),o=n(0),a=n(3),i=n(27);o(o.S+o.F*n(2)((function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(t,e,n){a(t),e=i(e,!0),a(n);try{return r.f(t,e,n),!0}catch(t){return!1}}})},function(t,e,n){var r=n(0),o=n(21).f,a=n(3);r(r.S,"Reflect",{deleteProperty:function(t,e){var n=o(a(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){"use strict";var r=n(0),o=n(3),a=function(t){this._t=o(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)};n(122)(a,"Object",(function(){var t,e=this._k;do{if(this._i>=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}})),r(r.S,"Reflect",{enumerate:function(t){return new a(t)}})},function(t,e,n){var r=n(21),o=n(36),a=n(14),i=n(0),s=n(4),l=n(3);i(i.S,"Reflect",{get:function t(e,n){var i,c,u=arguments.length<3?e:arguments[2];return l(e)===u?e[n]:(i=r.f(e,n))?a(i,"value")?i.value:void 0!==i.get?i.get.call(u):void 0:s(c=o(e))?t(c,n,u):void 0}})},function(t,e,n){var r=n(21),o=n(0),a=n(3);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(a(t),e)}})},function(t,e,n){var r=n(0),o=n(36),a=n(3);r(r.S,"Reflect",{getPrototypeOf:function(t){return o(a(t))}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(0),o=n(3),a=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return o(t),!a||a(t)}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{ownKeys:n(136)})},function(t,e,n){var r=n(0),o=n(3),a=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){o(t);try{return a&&a(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(9),o=n(21),a=n(36),i=n(14),s=n(0),l=n(29),c=n(3),u=n(4);s(s.S,"Reflect",{set:function t(e,n,s){var d,f,p=arguments.length<4?e:arguments[3],g=o.f(c(e),n);if(!g){if(u(f=a(e)))return t(f,n,s,p);g=l(0)}if(i(g,"value")){if(!1===g.writable||!u(p))return!1;if(d=o.f(p,n)){if(d.get||d.set||!1===d.writable)return!1;d.value=s,r.f(p,n,d)}else r.f(p,n,l(0,s));return!0}return void 0!==g.set&&(g.set.call(p,s),!0)}})},function(t,e,n){var r=n(0),o=n(75);o&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){o.check(t,e);try{return o.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){n(327),t.exports=n(7).Array.includes},function(t,e,n){"use strict";var r=n(0),o=n(52)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(37)("includes")},function(t,e,n){n(329),t.exports=n(7).Array.flatMap},function(t,e,n){"use strict";var r=n(0),o=n(330),a=n(10),i=n(6),s=n(19),l=n(124);r(r.P,"Array",{flatMap:function(t){var e,n,r=a(this);return s(t),e=i(r.length),n=l(r,0),o(n,r,r,e,0,1,t,arguments[1]),n}}),n(37)("flatMap")},function(t,e,n){"use strict";var r=n(54),o=n(4),a=n(6),i=n(18),s=n(5)("isConcatSpreadable");t.exports=function t(e,n,l,c,u,d,f,p){for(var g,h,m=u,v=0,_=!!f&&i(f,p,3);v<c;){if(v in l){if(g=_?_(l[v],v,n):l[v],h=!1,o(g)&&(h=void 0!==(h=g[s])?!!h:r(g)),h&&d>0)m=t(e,n,g,a(g.length),m,d-1)-1;else{if(m>=9007199254740991)throw TypeError();e[m]=g}m++}v++}return m}},function(t,e,n){n(332),t.exports=n(7).String.padStart},function(t,e,n){"use strict";var r=n(0),o=n(137),a=n(60),i=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a);r(r.P+r.F*i,"String",{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){n(334),t.exports=n(7).String.padEnd},function(t,e,n){"use strict";var r=n(0),o=n(137),a=n(60),i=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a);r(r.P+r.F*i,"String",{padEnd:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){n(336),t.exports=n(7).String.trimLeft},function(t,e,n){"use strict";n(40)("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart")},function(t,e,n){n(338),t.exports=n(7).String.trimRight},function(t,e,n){"use strict";n(40)("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd")},function(t,e,n){n(340),t.exports=n(71).f("asyncIterator")},function(t,e,n){n(109)("asyncIterator")},function(t,e,n){n(342),t.exports=n(7).Object.getOwnPropertyDescriptors},function(t,e,n){var r=n(0),o=n(136),a=n(16),i=n(21),s=n(87);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=a(t),l=i.f,c=o(r),u={},d=0;c.length>d;)void 0!==(n=l(r,e=c[d++]))&&s(u,e,n);return u}})},function(t,e,n){n(344),t.exports=n(7).Object.values},function(t,e,n){var r=n(0),o=n(138)(!1);r(r.S,"Object",{values:function(t){return o(t)}})},function(t,e,n){n(346),t.exports=n(7).Object.entries},function(t,e,n){var r=n(0),o=n(138)(!0);r(r.S,"Object",{entries:function(t){return o(t)}})},function(t,e,n){"use strict";n(130),n(348),t.exports=n(7).Promise.finally},function(t,e,n){"use strict";var r=n(0),o=n(7),a=n(1),i=n(48),s=n(132);r(r.P+r.R,"Promise",{finally:function(t){var e=i(this,o.Promise||a.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then((function(){return n}))}:t,n?function(n){return s(e,t()).then((function(){throw n}))}:t)}})},function(t,e,n){n(350),n(351),n(352),t.exports=n(7)},function(t,e,n){var r=n(1),o=n(0),a=n(60),i=[].slice,s=/MSIE .\./.test(a),l=function(t){return function(e,n){var r=arguments.length>2,o=!!r&&i.call(arguments,2);return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,n)}};o(o.G+o.B+o.F*s,{setTimeout:l(r.setTimeout),setInterval:l(r.setInterval)})},function(t,e,n){var r=n(0),o=n(93);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},function(t,e,n){for(var r=n(90),o=n(32),a=n(11),i=n(1),s=n(15),l=n(41),c=n(5),u=c("iterator"),d=c("toStringTag"),f=l.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},g=o(p),h=0;h<g.length;h++){var m,v=g[h],_=p[v],y=i[v],b=y&&y.prototype;if(b&&(b[u]||s(b,u,f),b[d]||s(b,d,v),l[v]=f,_))for(m in r)b[m]||a(b,m,r[m],!0)}},function(t,e,n){var r=function(t){"use strict";var e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof d?e:d,a=Object.create(o.prototype),i=new S(r||[]);return a._invoke=function(t,e,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return j()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var s=b(i,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,i),a}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var u={};function d(){}function f(){}function p(){}var g={};g[o]=function(){return this};var h=Object.getPrototypeOf,m=h&&h(h(A([])));m&&m!==e&&n.call(m,o)&&(g=m);var v=p.prototype=d.prototype=Object.create(g);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function y(t,e){var r;this._invoke=function(o,a){function i(){return new e((function(r,i){!function r(o,a,i,s){var l=c(t[o],t,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==typeof d&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,i,s)}),(function(t){r("throw",t,i,s)})):e.resolve(d).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,s)}))}s(l.arg)}(o,a,r,i)}))}return r=r?r.then(i,i):i()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,u;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function A(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return a.next=a}}return{next:j}}function j(){return{value:void 0,done:!0}}return f.prototype=v.constructor=p,p.constructor=f,f.displayName=s(p,i,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,s(t,i,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},_(y.prototype),y.prototype[a]=function(){return this},t.AsyncIterator=y,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new y(l(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},_(v),s(v,i,"Generator"),v[o]=function(){return this},v.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=A,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return i.type="throw",i.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,u):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),u},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),u}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:A(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,e){!function(){if("undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof HTMLElement){var t=!1;try{var e=document.createElement("div");e.addEventListener("focus",(function(t){t.preventDefault(),t.stopPropagation()}),!0),e.focus(Object.defineProperty({},"preventScroll",{get:function(){if(navigator&&void 0!==navigator.userAgent&&navigator.userAgent&&navigator.userAgent.match(/Edge\/1[7-8]/))return t=!1;t=!0}}))}catch(t){}if(void 0===HTMLElement.prototype.nativeFocus&&!t){HTMLElement.prototype.nativeFocus=HTMLElement.prototype.focus;var n=function(t){for(var e=0;e<t.length;e++)t[e][0].scrollTop=t[e][1],t[e][0].scrollLeft=t[e][2];t=[]};HTMLElement.prototype.focus=function(t){if(t&&t.preventScroll){var e=function(t){for(var e=t.parentNode,n=[],r=document.scrollingElement||document.documentElement;e&&e!==r;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&n.push([e,e.scrollTop,e.scrollLeft]),e=e.parentNode;return e=r,n.push([e,e.scrollTop,e.scrollLeft]),n}(this);if("function"==typeof setTimeout){var r=this;setTimeout((function(){r.nativeFocus(),n(e)}),0)}else this.nativeFocus(),n(e)}else this.nativeFocus()}}}}()},function(t,e,n){"use strict";var r,o,a,i,s,l;if(Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var e=Array.prototype.slice.call(arguments,1),n=this,r=function(){},o=function(){return n.apply(this instanceof r&&t?this:t,e.concat(Array.prototype.slice.call(arguments)))};return r.prototype=this.prototype,o.prototype=new r,o}),r=Object.prototype,o=r.__defineGetter__,a=r.__defineSetter__,i=r.__lookupGetter__,s=r.__lookupSetter__,l=r.hasOwnProperty,o&&a&&i&&s&&(Object.defineProperty||(Object.defineProperty=function(t,e,n){if(arguments.length<3)throw new TypeError("Arguments not optional");if(e+="",l.call(n,"value")&&(i.call(t,e)||s.call(t,e)||(t[e]=n.value),l.call(n,"get")||l.call(n,"set")))throw new TypeError("Cannot specify an accessor and a value");if(!(n.writable&&n.enumerable&&n.configurable))throw new TypeError("This implementation of Object.defineProperty does not support false for configurable, enumerable, or writable.");return n.get&&o.call(t,e,n.get),n.set&&a.call(t,e,n.set),t}),Object.getOwnPropertyDescriptor||(Object.getOwnPropertyDescriptor=function(t,e){if(arguments.length<2)throw new TypeError("Arguments not optional.");e+="";var n={configurable:!0,enumerable:!0,writable:!0},r=i.call(t,e),o=s.call(t,e);return l.call(t,e)?r||o?(delete n.writable,n.get=n.set=void 0,r&&(n.get=r),o&&(n.set=o),n):(n.value=t[e],n):n}),Object.defineProperties||(Object.defineProperties=function(t,e){var n;for(n in e)l.call(e,n)&&Object.defineProperty(t,n,e[n])})),!(document.documentElement.dataset||Object.getOwnPropertyDescriptor(Element.prototype,"dataset")&&Object.getOwnPropertyDescriptor(Element.prototype,"dataset").get)){var c={enumerable:!0,get:function(){var t,e,n,r,o,a,i=this.attributes,s=i.length,l=function(t){return t.charAt(1).toUpperCase()},c=function(){return this},u=function(t,e){return void 0!==e?this.setAttribute(t,e):this.removeAttribute(t)};try{({}).__defineGetter__("test",(function(){})),e={}}catch(t){e=document.createElement("div")}for(t=0;t<s;t++)if((a=i[t])&&a.name&&/^data-\w[\w\-]*$/.test(a.name)){n=a.value,o=(r=a.name).substr(5).replace(/-./g,l);try{Object.defineProperty(e,o,{enumerable:this.enumerable,get:c.bind(n||""),set:u.bind(this,r)})}catch(t){e[o]=n}}return e}};try{Object.defineProperty(Element.prototype,"dataset",c)}catch(t){c.enumerable=!1,Object.defineProperty(Element.prototype,"dataset",c)}}},function(t,e,n){"use strict";var r=n(357),o=n(358),a=n(139);t.exports={formats:a,parse:o,stringify:r}},function(t,e,n){"use strict";var r=n(95),o=n(139),a=Object.prototype.hasOwnProperty,i={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},s=Array.isArray,l=Array.prototype.push,c=function(t,e){l.apply(t,s(e)?e:[e])},u=Date.prototype.toISOString,d=o.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:function(t){return u.call(t)},skipNulls:!1,strictNullHandling:!1},p=function t(e,n,o,a,i,l,u,d,p,g,h,m,v){var _,y=e;if("function"==typeof u?y=u(n,y):y instanceof Date?y=g(y):"comma"===o&&s(y)&&(y=r.maybeMap(y,(function(t){return t instanceof Date?g(t):t})).join(",")),null===y){if(a)return l&&!m?l(n,f.encoder,v,"key"):n;y=""}if("string"==typeof(_=y)||"number"==typeof _||"boolean"==typeof _||"symbol"==typeof _||"bigint"==typeof _||r.isBuffer(y))return l?[h(m?n:l(n,f.encoder,v,"key"))+"="+h(l(y,f.encoder,v,"value"))]:[h(n)+"="+h(String(y))];var b,w=[];if(void 0===y)return w;if(s(u))b=u;else{var x=Object.keys(y);b=d?x.sort(d):x}for(var S=0;S<b.length;++S){var A=b[S],j=y[A];if(!i||null!==j){var E=s(y)?"function"==typeof o?o(n,A):n:n+(p?"."+A:"["+A+"]");c(w,t(j,E,o,a,i,l,u,d,p,g,h,m,v))}}return w};t.exports=function(t,e){var n,r=t,l=function(t){if(!t)return f;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||f.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==t.format){if(!a.call(o.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var r=o.formatters[n],i=f.filter;return("function"==typeof t.filter||s(t.filter))&&(i=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===t.allowDots?f.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:f.charsetSentinel,delimiter:void 0===t.delimiter?f.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:f.encode,encoder:"function"==typeof t.encoder?t.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:f.encodeValuesOnly,filter:i,formatter:r,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:f.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:f.strictNullHandling}}(e);"function"==typeof l.filter?r=(0,l.filter)("",r):s(l.filter)&&(n=l.filter);var u,d=[];if("object"!=typeof r||null===r)return"";u=e&&e.arrayFormat in i?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var g=i[u];n||(n=Object.keys(r)),l.sort&&n.sort(l.sort);for(var h=0;h<n.length;++h){var m=n[h];l.skipNulls&&null===r[m]||c(d,p(r[m],m,g,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.formatter,l.encodeValuesOnly,l.charset))}var v=d.join(l.delimiter),_=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),v.length>0?_+v:""}},function(t,e,n){"use strict";var r=n(95),o=Object.prototype.hasOwnProperty,a=Array.isArray,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},l=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},c=function(t,e,n,r){if(t){var a=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(a),c=s?a.slice(0,s.index):a,u=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var d=0;n.depth>0&&null!==(s=i.exec(a))&&d<n.depth;){if(d+=1,!n.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+a.slice(s.index)+"]"),function(t,e,n,r){for(var o=r?e:l(e,n),a=t.length-1;a>=0;--a){var i,s=t[a];if("[]"===s&&n.parseArrays)i=[].concat(o);else{i=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(c,10);n.parseArrays||""!==c?!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(i=[])[u]=o:i[c]=o:i={0:o}}o=i}return o}(u,e,n,r)}};t.exports=function(t,e){var n=function(t){if(!t)return i;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?i.charset:t.charset;return{allowDots:void 0===t.allowDots?i.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:i.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:i.comma,decoder:"function"==typeof t.decoder?t.decoder:i.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:i.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:i.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:i.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:i.strictNullHandling}}(e);if(""===t||null==t)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof t?function(t,e){var n,c={},u=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,d=e.parameterLimit===1/0?void 0:e.parameterLimit,f=u.split(e.delimiter,d),p=-1,g=e.charset;if(e.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[n]?g="utf-8":"utf8=%26%2310003%3B"===f[n]&&(g="iso-8859-1"),p=n,n=f.length);for(n=0;n<f.length;++n)if(n!==p){var h,m,v=f[n],_=v.indexOf("]="),y=-1===_?v.indexOf("="):_+1;-1===y?(h=e.decoder(v,i.decoder,g,"key"),m=e.strictNullHandling?null:""):(h=e.decoder(v.slice(0,y),i.decoder,g,"key"),m=r.maybeMap(l(v.slice(y+1),e),(function(t){return e.decoder(t,i.decoder,g,"value")}))),m&&e.interpretNumericEntities&&"iso-8859-1"===g&&(m=s(m)),v.indexOf("[]=")>-1&&(m=a(m)?[m]:m),o.call(c,h)?c[h]=r.combine(c[h],m):c[h]=m}return c}(t,n):t,d=n.plainObjects?Object.create(null):{},f=Object.keys(u),p=0;p<f.length;++p){var g=f[p],h=c(g,u[g],n,"string"==typeof t);d=r.merge(d,h,n)}return r.compact(d)}}]);
1
+ var ajaxloadmore=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=95)}([function(t,e,n){var r=n(1),o=n(7),a=n(15),i=n(12),s=n(18),l=function(t,e,n){var c,u,d,f,p=t&l.F,g=t&l.G,m=t&l.S,h=t&l.P,v=t&l.B,_=g?r:m?r[e]||(r[e]={}):(r[e]||{}).prototype,y=g?o:o[e]||(o[e]={}),b=y.prototype||(y.prototype={});for(c in g&&(n=e),n)d=((u=!p&&_&&void 0!==_[c])?_:n)[c],f=v&&u?s(d,r):h&&"function"==typeof d?s(Function.call,d):d,_&&i(_,c,d,t&l.U),y[c]!=d&&a(y,c,f),h&&b[c]!=d&&(b[c]=d)};r.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(51)("wks"),o=n(30),a=n(1).Symbol,i="function"==typeof a;(t.exports=function(t){return r[t]||(r[t]=i&&a[t]||(i?a:o)("Symbol."+t))}).store=r},function(t,e,n){var r=n(20),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(t,e,n){t.exports=!n(2)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(3),o=n(110),a=n(27),i=Object.defineProperty;e.f=n(8)?Object.defineProperty:function(t,e,n){if(r(t),e=a(e,!0),r(n),o)try{return i(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(25);t.exports=function(t){return Object(r(t))}},function(t,e,n){"use strict";var r=n(96),o=Object.prototype.toString;function a(t){return"[object Array]"===o.call(t)}function i(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function l(t){if("[object Object]"!==o.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function c(t){return"[object Function]"===o.call(t)}function u(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),a(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:a,isArrayBuffer:function(t){return"[object ArrayBuffer]"===o.call(t)},isBuffer:function(t){return null!==t&&!i(t)&&null!==t.constructor&&!i(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isPlainObject:l,isUndefined:i,isDate:function(t){return"[object Date]"===o.call(t)},isFile:function(t){return"[object File]"===o.call(t)},isBlob:function(t){return"[object Blob]"===o.call(t)},isFunction:c,isStream:function(t){return s(t)&&c(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:u,merge:function t(){var e={};function n(n,r){l(e[r])&&l(n)?e[r]=t(e[r],n):l(n)?e[r]=t({},n):a(n)?e[r]=n.slice():e[r]=n}for(var r=0,o=arguments.length;r<o;r++)u(arguments[r],n);return e},extend:function(t,e,n){return u(e,(function(e,o){t[o]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},function(t,e,n){var r=n(1),o=n(15),a=n(14),i=n(30)("src"),s=n(187),l=(""+s).split("toString");n(7).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var c="function"==typeof n;c&&(a(n,"name")||o(n,"name",e)),t[e]!==n&&(c&&(a(n,i)||o(n,i,t[e]?""+t[e]:l.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[i]||s.call(this)}))},function(t,e,n){var r=n(0),o=n(2),a=n(25),i=/"/g,s=function(t,e,n,r){var o=String(a(t)),s="<"+e;return""!==n&&(s+=" "+n+'="'+String(r).replace(i,"&quot;")+'"'),s+">"+o+"</"+e+">"};t.exports=function(t,e){var n={};n[t]=e(s),r(r.P+r.F*o((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",n)}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(9),o=n(29);t.exports=n(8)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(45),o=n(25);t.exports=function(t){return r(o(t))}},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e){return!!t&&r((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},function(t,e,n){var r=n(19);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(46),o=n(29),a=n(16),i=n(27),s=n(14),l=n(110),c=Object.getOwnPropertyDescriptor;e.f=n(8)?c:function(t,e){if(t=a(t),e=i(e,!0),l)try{return c(t,e)}catch(t){}if(s(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(0),o=n(7),a=n(2);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],i={};i[t]=e(n),r(r.S+r.F*a((function(){n(1)})),"Object",i)}},function(t,e,n){var r=n(18),o=n(45),a=n(10),i=n(6),s=n(126);t.exports=function(t,e){var n=1==t,l=2==t,c=3==t,u=4==t,d=6==t,f=5==t||d,p=e||s;return function(e,s,g){for(var m,h,v=a(e),_=o(v),y=r(s,g,3),b=i(_.length),w=0,x=n?p(e,b):l?p(e,0):void 0;b>w;w++)if((f||w in _)&&(h=y(m=_[w],w,v),t))if(n)x[w]=h;else if(h)switch(t){case 3:return!0;case 5:return m;case 6:return w;case 2:x.push(m)}else if(u)return!1;return d?-1:c||u?u:x}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";if(n(8)){var r=n(31),o=n(1),a=n(2),i=n(0),s=n(62),l=n(93),c=n(18),u=n(43),d=n(29),f=n(15),p=n(44),g=n(20),m=n(6),h=n(137),v=n(33),_=n(27),y=n(14),b=n(47),w=n(4),x=n(10),S=n(85),A=n(34),j=n(36),P=n(35).f,E=n(87),L=n(30),O=n(5),M=n(23),T=n(52),I=n(48),C=n(89),N=n(41),F=n(55),k=n(42),R=n(88),q=n(128),D=n(9),z=n(21),B=D.f,U=z.f,W=o.RangeError,H=o.TypeError,V=o.Uint8Array,G=Array.prototype,Y=l.ArrayBuffer,X=l.DataView,Q=M(0),$=M(2),J=M(3),K=M(4),Z=M(5),tt=M(6),et=T(!0),nt=T(!1),rt=C.values,ot=C.keys,at=C.entries,it=G.lastIndexOf,st=G.reduce,lt=G.reduceRight,ct=G.join,ut=G.sort,dt=G.slice,ft=G.toString,pt=G.toLocaleString,gt=O("iterator"),mt=O("toStringTag"),ht=L("typed_constructor"),vt=L("def_constructor"),_t=s.CONSTR,yt=s.TYPED,bt=s.VIEW,wt=M(1,(function(t,e){return Pt(I(t,t[vt]),e)})),xt=a((function(){return 1===new V(new Uint16Array([1]).buffer)[0]})),St=!!V&&!!V.prototype.set&&a((function(){new V(1).set({})})),At=function(t,e){var n=g(t);if(n<0||n%e)throw W("Wrong offset!");return n},jt=function(t){if(w(t)&&yt in t)return t;throw H(t+" is not a typed array!")},Pt=function(t,e){if(!w(t)||!(ht in t))throw H("It is not a typed array constructor!");return new t(e)},Et=function(t,e){return Lt(I(t,t[vt]),e)},Lt=function(t,e){for(var n=0,r=e.length,o=Pt(t,r);r>n;)o[n]=e[n++];return o},Ot=function(t,e,n){B(t,e,{get:function(){return this._d[n]}})},Mt=function(t){var e,n,r,o,a,i,s=x(t),l=arguments.length,u=l>1?arguments[1]:void 0,d=void 0!==u,f=E(s);if(null!=f&&!S(f)){for(i=f.call(s),r=[],e=0;!(a=i.next()).done;e++)r.push(a.value);s=r}for(d&&l>2&&(u=c(u,arguments[2],2)),e=0,n=m(s.length),o=Pt(this,n);n>e;e++)o[e]=d?u(s[e],e):s[e];return o},Tt=function(){for(var t=0,e=arguments.length,n=Pt(this,e);e>t;)n[t]=arguments[t++];return n},It=!!V&&a((function(){pt.call(new V(1))})),Ct=function(){return pt.apply(It?dt.call(jt(this)):jt(this),arguments)},Nt={copyWithin:function(t,e){return q.call(jt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return K(jt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return R.apply(jt(this),arguments)},filter:function(t){return Et(this,$(jt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Z(jt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(jt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Q(jt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(jt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(jt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ct.apply(jt(this),arguments)},lastIndexOf:function(t){return it.apply(jt(this),arguments)},map:function(t){return wt(jt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return st.apply(jt(this),arguments)},reduceRight:function(t){return lt.apply(jt(this),arguments)},reverse:function(){for(var t,e=jt(this).length,n=Math.floor(e/2),r=0;r<n;)t=this[r],this[r++]=this[--e],this[e]=t;return this},some:function(t){return J(jt(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return ut.call(jt(this),t)},subarray:function(t,e){var n=jt(this),r=n.length,o=v(t,r);return new(I(n,n[vt]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,m((void 0===e?r:v(e,r))-o))}},Ft=function(t,e){return Et(this,dt.call(jt(this),t,e))},kt=function(t){jt(this);var e=At(arguments[1],1),n=this.length,r=x(t),o=m(r.length),a=0;if(o+e>n)throw W("Wrong length!");for(;a<o;)this[e+a]=r[a++]},Rt={entries:function(){return at.call(jt(this))},keys:function(){return ot.call(jt(this))},values:function(){return rt.call(jt(this))}},qt=function(t,e){return w(t)&&t[yt]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Dt=function(t,e){return qt(t,e=_(e,!0))?d(2,t[e]):U(t,e)},zt=function(t,e,n){return!(qt(t,e=_(e,!0))&&w(n)&&y(n,"value"))||y(n,"get")||y(n,"set")||n.configurable||y(n,"writable")&&!n.writable||y(n,"enumerable")&&!n.enumerable?B(t,e,n):(t[e]=n.value,t)};_t||(z.f=Dt,D.f=zt),i(i.S+i.F*!_t,"Object",{getOwnPropertyDescriptor:Dt,defineProperty:zt}),a((function(){ft.call({})}))&&(ft=pt=function(){return ct.call(this)});var Bt=p({},Nt);p(Bt,Rt),f(Bt,gt,Rt.values),p(Bt,{slice:Ft,set:kt,constructor:function(){},toString:ft,toLocaleString:Ct}),Ot(Bt,"buffer","b"),Ot(Bt,"byteOffset","o"),Ot(Bt,"byteLength","l"),Ot(Bt,"length","e"),B(Bt,mt,{get:function(){return this[yt]}}),t.exports=function(t,e,n,l){var c=t+((l=!!l)?"Clamped":"")+"Array",d="get"+t,p="set"+t,g=o[c],v=g||{},_=g&&j(g),y=!g||!s.ABV,x={},S=g&&g.prototype,E=function(t,n){B(t,n,{get:function(){return function(t,n){var r=t._d;return r.v[d](n*e+r.o,xt)}(this,n)},set:function(t){return function(t,n,r){var o=t._d;l&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),o.v[p](n*e+o.o,r,xt)}(this,n,t)},enumerable:!0})};y?(g=n((function(t,n,r,o){u(t,g,c,"_d");var a,i,s,l,d=0,p=0;if(w(n)){if(!(n instanceof Y||"ArrayBuffer"==(l=b(n))||"SharedArrayBuffer"==l))return yt in n?Lt(g,n):Mt.call(g,n);a=n,p=At(r,e);var v=n.byteLength;if(void 0===o){if(v%e)throw W("Wrong length!");if((i=v-p)<0)throw W("Wrong length!")}else if((i=m(o)*e)+p>v)throw W("Wrong length!");s=i/e}else s=h(n),a=new Y(i=s*e);for(f(t,"_d",{b:a,o:p,l:i,e:s,v:new X(a)});d<s;)E(t,d++)})),S=g.prototype=A(Bt),f(S,"constructor",g)):a((function(){g(1)}))&&a((function(){new g(-1)}))&&F((function(t){new g,new g(null),new g(1.5),new g(t)}),!0)||(g=n((function(t,n,r,o){var a;return u(t,g,c),w(n)?n instanceof Y||"ArrayBuffer"==(a=b(n))||"SharedArrayBuffer"==a?void 0!==o?new v(n,At(r,e),o):void 0!==r?new v(n,At(r,e)):new v(n):yt in n?Lt(g,n):Mt.call(g,n):new v(h(n))})),Q(_!==Function.prototype?P(v).concat(P(_)):P(v),(function(t){t in g||f(g,t,v[t])})),g.prototype=S,r||(S.constructor=g));var L=S[gt],O=!!L&&("values"==L.name||null==L.name),M=Rt.values;f(g,ht,!0),f(S,yt,c),f(S,bt,!0),f(S,vt,g),(l?new g(1)[mt]==c:mt in S)||B(S,mt,{get:function(){return c}}),x[c]=g,i(i.G+i.W+i.F*(g!=v),x),i(i.S,c,{BYTES_PER_ELEMENT:e}),i(i.S+i.F*a((function(){v.of.call(g,1)})),c,{from:Mt,of:Tt}),"BYTES_PER_ELEMENT"in S||f(S,"BYTES_PER_ELEMENT",e),i(i.P,c,Nt),k(c),i(i.P+i.F*St,c,{set:kt}),i(i.P+i.F*!O,c,Rt),r||S.toString==ft||(S.toString=ft),i(i.P+i.F*a((function(){new g(1).slice()})),c,{slice:Ft}),i(i.P+i.F*(a((function(){return[1,2].toLocaleString()!=new g([1,2]).toLocaleString()}))||!a((function(){S.toLocaleString.call([1,2])}))),c,{toLocaleString:Ct}),N[c]=O?L:M,r||O||f(S,gt,M)}}else t.exports=function(){}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(30)("meta"),o=n(4),a=n(14),i=n(9).f,s=0,l=Object.isExtensible||function(){return!0},c=!n(2)((function(){return l(Object.preventExtensions({}))})),u=function(t){i(t,r,{value:{i:"O"+ ++s,w:{}}})},d=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,r)){if(!l(t))return"F";if(!e)return"E";u(t)}return t[r].i},getWeak:function(t,e){if(!a(t,r)){if(!l(t))return!0;if(!e)return!1;u(t)}return t[r].w},onFreeze:function(t){return c&&d.NEED&&l(t)&&!a(t,r)&&u(t),t}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports=!1},function(t,e,n){var r=n(112),o=n(72);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(20),o=Math.max,a=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):a(t,e)}},function(t,e,n){var r=n(3),o=n(113),a=n(72),i=n(71)("IE_PROTO"),s=function(){},l=function(){var t,e=n(69)("iframe"),r=a.length;for(e.style.display="none",n(73).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;r--;)delete l.prototype[a[r]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[i]=t):n=l(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(112),o=n(72).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(14),o=n(10),a=n(71)("IE_PROTO"),i=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?i:null}},function(t,e,n){var r=n(5)("unscopables"),o=Array.prototype;null==o[r]&&n(15)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){var r=n(9).f,o=n(14),a=n(5)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,a)&&r(t,a,{configurable:!0,value:e})}},function(t,e,n){var r=n(0),o=n(25),a=n(2),i=n(75),s="["+i+"]",l=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),u=function(t,e,n){var o={},s=a((function(){return!!i[t]()||"​…"!="​…"[t]()})),l=o[t]=s?e(d):i[t];n&&(o[n]=l),r(r.P+r.F*s,"String",o)},d=u.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(c,"")),t};t.exports=u},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(1),o=n(9),a=n(8),i=n(5)("species");t.exports=function(t){var e=r[t];a&&e&&!e[i]&&o.f(e,i,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(12);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){var r=n(24);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(24),o=n(5)("toStringTag"),a="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:a?r(e):"Object"==(i=r(e))&&"function"==typeof e.callee?"Arguments":i}},function(t,e,n){var r=n(3),o=n(19),a=n(5)("species");t.exports=function(t,e){var n,i=r(t).constructor;return void 0===i||null==(n=r(i)[a])?e:o(n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!alm_localize.a11y_focus)return!1;t.addons.woocommerce||t.addons.elementor?r(!1,!1,e,!1,t.isSafari):t.transition_container&&n>0?t.addons.paging?r(t.init,t.addons.preloaded,t.listing,o,t.isSafari):t.addons.single_post||t.addons.nextpage?r(!1,t.addons.preloaded,e,o,t.isSafari):r(t.init,t.addons.preloaded,e,o,t.isSafari):t.transition_container||r(t.init,t.addons.preloaded,e[0],o,t.isSafari)};var r=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"false",n=arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!r&&(t||!n)&&"true"!==e)return!1;n.setAttribute("tabIndex","-1"),n.style.outline="none";var o=n.classList.contains("alm-listing")?n:n.parentNode,a=o.dataset.scrollContainer;if(a){var i=document.querySelector(a);i&&setTimeout((function(){n.focus({preventScroll:!0})}),50)}else setTimeout((function(){n.focus({preventScroll:!0})}),50)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){if(0==e)t.style.opacity=1,t.style.height="auto";else{e/=10;var n=0,r=setInterval((function(){n>.9&&(t.style.opacity=1,clearInterval(r)),t.style.opacity=n,n+=.1}),e);t.style.height="auto"}}},function(t,e,n){var r=n(7),o=n(1),a=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(31)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(16),o=n(6),a=n(33);t.exports=function(t){return function(e,n,i){var s,l=r(e),c=o(l.length),u=a(i,c);if(t&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(24);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(5)("iterator"),o=!1;try{var a=[7][r]();a.return=function(){o=!0},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var a=[7],i=a[r]();i.next=function(){return{done:n=!0}},a[r]=function(){return i},t(a)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(3);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){"use strict";var r=n(47),o=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var a=n.call(t,e);if("object"!=typeof a)throw new TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},function(t,e,n){"use strict";n(130);var r=n(12),o=n(15),a=n(2),i=n(25),s=n(5),l=n(90),c=s("species"),u=!a((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),d=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var f=s(t),p=!a((function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})),g=p?!a((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[f](""),!e})):void 0;if(!p||!g||"replace"===t&&!u||"split"===t&&!d){var m=/./[f],h=n(i,f,""[t],(function(t,e,n,r,o){return e.exec===l?p&&!o?{done:!0,value:m.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}})),v=h[0],_=h[1];r(String.prototype,t,v),o(RegExp.prototype,f,2==e?function(t,e){return _.call(t,this,e)}:function(t){return _.call(t,this)})}}},function(t,e,n){var r=n(18),o=n(125),a=n(85),i=n(3),s=n(6),l=n(87),c={},u={};(e=t.exports=function(t,e,n,d,f){var p,g,m,h,v=f?function(){return t}:l(t),_=r(n,d,e?2:1),y=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(a(v)){for(p=s(t.length);p>y;y++)if((h=e?_(i(g=t[y])[0],g[1]):_(t[y]))===c||h===u)return h}else for(m=v.call(t);!(g=m.next()).done;)if((h=o(m,_,g.value,e))===c||h===u)return h}).BREAK=c,e.RETURN=u},function(t,e,n){var r=n(1).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){"use strict";var r=n(1),o=n(0),a=n(12),i=n(44),s=n(28),l=n(59),c=n(43),u=n(4),d=n(2),f=n(55),p=n(39),g=n(76);t.exports=function(t,e,n,m,h,v){var _=r[t],y=_,b=h?"set":"add",w=y&&y.prototype,x={},S=function(t){var e=w[t];a(w,t,"delete"==t||"has"==t?function(t){return!(v&&!u(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return v&&!u(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof y&&(v||w.forEach&&!d((function(){(new y).entries().next()})))){var A=new y,j=A[b](v?{}:-0,1)!=A,P=d((function(){A.has(1)})),E=f((function(t){new y(t)})),L=!v&&d((function(){for(var t=new y,e=5;e--;)t[b](e,e);return!t.has(-0)}));E||((y=e((function(e,n){c(e,y,t);var r=g(new _,e,y);return null!=n&&l(n,h,r[b],r),r}))).prototype=w,w.constructor=y),(P||L)&&(S("delete"),S("has"),h&&S("get")),(L||j)&&S(b),v&&w.clear&&delete w.clear}else y=m.getConstructor(e,t,h,b),i(y.prototype,n),s.NEED=!0;return p(y,t),x[t]=y,o(o.G+o.W+o.F*(y!=_),x),v||m.setStrong(y,t,h),y}},function(t,e,n){for(var r,o=n(1),a=n(15),i=n(30),s=i("typed_array"),l=i("view"),c=!(!o.ArrayBuffer||!o.DataView),u=c,d=0,f="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");d<9;)(r=o[f[d++]])?(a(r.prototype,s,!0),a(r.prototype,l,!0)):u=!1;t.exports={ABV:c,CONSTR:u,TYPED:s,VIEW:l}},function(t,e,n){t.exports=n(142)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseQuerystring=function(t){var e=window.location.search.substring(1),n="",r="";e&&((n=JSON.parse('{"'+e.replace(/&/g,'","').replace(/=/g,'":"')+'"}',(function(t,e){return""===t?e:decodeURIComponent(e.replace(/\+/g,"-"))}))).pg&&delete n.pg,n.auto&&delete n.auto);n&&(r+="/",Object.keys(n).forEach((function(t,e){r+=e>0?"--":"",r+=t+"--"+n[t]})));return t+r},e.buildFilterURL=i,e.createMasonryFiltersPage=function(t,e){if(!t.addons.filters)return e;var n=window.location.search,r=t.page+1;return r="true"===t.addons.preloaded?r+1:r,e=s(t,e,n,r)},e.createMasonryFiltersPages=function(t,e){if(!t.addons.filters)return e;var n=1,r=t.page,o=window.location.search;if(t.addons.filters_startpage>1){for(var a=parseInt(t.posts_per_page),i=[],l=0;l<e.length;l+=a)i.push(e.slice(l,a+l));for(var c=0;c<i.length;c++){var u=c>0?c*a:0;n=c+1,e[u]&&(e[u]=s(t,e[u],o,n))}}else n=r,e&&e[0]&&(e[0]=s(t,e[0],o,n));return e};var r,o=n(166),a=(r=o)&&r.__esModule?r:{default:r};function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=e;return t.addons.filters_paging&&(r=n>1?r?(0,a.default)("pg")?e.replace(/(pg=)[^\&]+/,"$1"+n):e+"&pg="+n:"?pg="+n:"&"===(r="?"===(r=e.replace(/(pg=)[^\&]+/,""))?"":r)[r.length-1]?r.slice(0,-1):r),r}function s(t,e,n,r){if(e.classList.add("alm-filters"),e.dataset.page=r,r>1)e.dataset.url=t.canonical_url+i(t,n,r);else{var o=n.replace(/(pg=)[^\&]+/,"");o="?"===o?"":o,e.dataset.url=t.canonical_url+o}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text/html";if(!t)return!1;var n=new DOMParser,r=n.parseFromString(t,e);return r?Array.prototype.slice.call(r.body.childNodes):r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!t)return!1;if(e.indexOf("Safari")>-1&&-1!=e.indexOf("Chrome")||e.indexOf("Firefox")>-1||e.indexOf("Windows")>-1)return!1;for(var n=t.querySelectorAll("img[srcset]:not(.alm-loaded)"),r=0;r<n.length;r++){var o=n[r];o.classList.add("alm-loaded"),o.outerHTML=o.outerHTML}}},function(t,e,n){var r,o;
2
  /*!
3
  * imagesLoaded v4.1.4
4
  * JavaScript is all like "You images are done yet or what?"
5
  * MIT License
6
+ */!function(a,i){"use strict";r=[n(172)],void 0===(o=function(t){return function(t,e){var n=t.jQuery,r=t.console;function o(t,e){for(var n in e)t[n]=e[n];return t}var a=Array.prototype.slice;function i(t,e,s){if(!(this instanceof i))return new i(t,e,s);var l,c=t;("string"==typeof t&&(c=document.querySelectorAll(t)),c)?(this.elements=(l=c,Array.isArray(l)?l:"object"==typeof l&&"number"==typeof l.length?a.call(l):[l]),this.options=o({},this.options),"function"==typeof e?s=e:o(this.options,e),s&&this.on("always",s),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(this.check.bind(this))):r.error("Bad element for imagesLoaded "+(c||t))}i.prototype=Object.create(e.prototype),i.prototype.options={},i.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},i.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&s[e]){for(var n=t.querySelectorAll("img"),r=0;r<n.length;r++){var o=n[r];this.addImage(o)}if("string"==typeof this.options.background){var a=t.querySelectorAll(this.options.background);for(r=0;r<a.length;r++){var i=a[r];this.addElementBackgroundImages(i)}}}};var s={1:!0,9:!0,11:!0};function l(t){this.img=t}function c(t,e){this.url=t,this.element=e,this.img=new Image}return i.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var n=/url\((['"])?(.*?)\1\)/gi,r=n.exec(e.backgroundImage);null!==r;){var o=r&&r[2];o&&this.addBackground(o,t),r=n.exec(e.backgroundImage)}},i.prototype.addImage=function(t){var e=new l(t);this.images.push(e)},i.prototype.addBackground=function(t,e){var n=new c(t,e);this.images.push(n)},i.prototype.check=function(){var t=this;function e(e,n,r){setTimeout((function(){t.progress(e,n,r)}))}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach((function(t){t.once("progress",e),t.check()})):this.complete()},i.prototype.progress=function(t,e,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&r&&r.log("progress: "+n,t,e)},i.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},l.prototype=Object.create(e.prototype),l.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},l.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},l.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},l.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},l.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},l.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},l.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},c.prototype=Object.create(l.prototype),c.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},c.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},c.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},i.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((n=e).fn.imagesLoaded=function(t,e){return new i(this,t,e).jqDeferred.promise(n(this))})},i.makeJQueryPlugin(),i}(a,t)}.apply(e,r))||(t.exports=o)}("undefined"!=typeof window?window:this)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){e/=10,t.style.opacity=.5;var n=setInterval((function(){t.style.opacity<.1?clearInterval(n):t.style.opacity-=.1}),e)}},function(t,e,n){var r=n(4),o=n(1).document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},function(t,e,n){e.f=n(5)},function(t,e,n){var r=n(51)("keys"),o=n(30);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(1).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(4),o=n(3),a=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(18)(Function.call,n(21).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return a(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:a}},function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,e,n){var r=n(4),o=n(74).set;t.exports=function(t,e,n){var a,i=e.constructor;return i!==n&&"function"==typeof i&&(a=i.prototype)!==n.prototype&&r(a)&&o&&o(t,a),t}},function(t,e,n){"use strict";var r=n(20),o=n(25);t.exports=function(t){var e=String(o(this)),n="",a=r(t);if(a<0||a==1/0)throw RangeError("Count can't be negative");for(;a>0;(a>>>=1)&&(e+=e))1&a&&(n+=e);return n}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e,n){var r=n(20),o=n(25);t.exports=function(t){return function(e,n){var a,i,s=String(o(e)),l=r(n),c=s.length;return l<0||l>=c?t?"":void 0:(a=s.charCodeAt(l))<55296||a>56319||l+1===c||(i=s.charCodeAt(l+1))<56320||i>57343?t?s.charAt(l):a:t?s.slice(l,l+2):i-56320+(a-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(31),o=n(0),a=n(12),i=n(15),s=n(41),l=n(124),c=n(39),u=n(36),d=n(5)("iterator"),f=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,n,g,m,h,v){l(n,e,g);var _,y,b,w=function(t){if(!f&&t in j)return j[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",S="values"==m,A=!1,j=t.prototype,P=j[d]||j["@@iterator"]||m&&j[m],E=P||w(m),L=m?S?w("entries"):E:void 0,O="Array"==e&&j.entries||P;if(O&&(b=u(O.call(new t)))!==Object.prototype&&b.next&&(c(b,x,!0),r||"function"==typeof b[d]||i(b,d,p)),S&&P&&"values"!==P.name&&(A=!0,E=function(){return P.call(this)}),r&&!v||!f&&!A&&j[d]||i(j,d,E),s[e]=E,s[x]=p,m)if(_={values:S?E:w("values"),keys:h?E:w("keys"),entries:L},v)for(y in _)y in j||a(j,y,_[y]);else o(o.P+o.F*(f||A),e,_);return _}},function(t,e,n){var r=n(83),o=n(25);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},function(t,e,n){var r=n(4),o=n(24),a=n(5)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==o(t))}},function(t,e,n){var r=n(5)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){var r=n(41),o=n(5)("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||a[o]===t)}},function(t,e,n){"use strict";var r=n(9),o=n(29);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(47),o=n(5)("iterator"),a=n(41);t.exports=n(7).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||a[r(t)]}},function(t,e,n){"use strict";var r=n(10),o=n(33),a=n(6);t.exports=function(t){for(var e=r(this),n=a(e.length),i=arguments.length,s=o(i>1?arguments[1]:void 0,n),l=i>2?arguments[2]:void 0,c=void 0===l?n:o(l,n);c>s;)e[s++]=t;return e}},function(t,e,n){"use strict";var r=n(37),o=n(129),a=n(41),i=n(16);t.exports=n(81)(Array,"Array",(function(t,e){this._t=i(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},function(t,e,n){"use strict";var r,o,a=n(56),i=RegExp.prototype.exec,s=String.prototype.replace,l=i,c=(r=/a/,o=/b*/g,i.call(r,"a"),i.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),u=void 0!==/()??/.exec("")[1];(c||u)&&(l=function(t){var e,n,r,o,l=this;return u&&(n=new RegExp("^"+l.source+"$(?!\\s)",a.call(l))),c&&(e=l.lastIndex),r=i.call(l,t),c&&r&&(l.lastIndex=l.global?r.index+r[0].length:e),u&&r&&r.length>1&&s.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),t.exports=l},function(t,e,n){"use strict";var r=n(80)(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e,n){var r,o,a,i=n(18),s=n(118),l=n(73),c=n(69),u=n(1),d=u.process,f=u.setImmediate,p=u.clearImmediate,g=u.MessageChannel,m=u.Dispatch,h=0,v={},_=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},y=function(t){_.call(t.data)};f&&p||(f=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++h]=function(){s("function"==typeof t?t:Function(t),e)},r(h),h},p=function(t){delete v[t]},"process"==n(24)(d)?r=function(t){d.nextTick(i(_,t,1))}:m&&m.now?r=function(t){m.now(i(_,t,1))}:g?(a=(o=new g).port2,o.port1.onmessage=y,r=i(a.postMessage,a,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(t){u.postMessage(t+"","*")},u.addEventListener("message",y,!1)):r="onreadystatechange"in c("script")?function(t){l.appendChild(c("script")).onreadystatechange=function(){l.removeChild(this),_.call(t)}}:function(t){setTimeout(i(_,t,1),0)}),t.exports={set:f,clear:p}},function(t,e,n){"use strict";var r=n(1),o=n(8),a=n(31),i=n(62),s=n(15),l=n(44),c=n(2),u=n(43),d=n(20),f=n(6),p=n(137),g=n(35).f,m=n(9).f,h=n(88),v=n(39),_=r.ArrayBuffer,y=r.DataView,b=r.Math,w=r.RangeError,x=r.Infinity,S=_,A=b.abs,j=b.pow,P=b.floor,E=b.log,L=b.LN2,O=o?"_b":"buffer",M=o?"_l":"byteLength",T=o?"_o":"byteOffset";function I(t,e,n){var r,o,a,i=new Array(n),s=8*n-e-1,l=(1<<s)-1,c=l>>1,u=23===e?j(2,-24)-j(2,-77):0,d=0,f=t<0||0===t&&1/t<0?1:0;for((t=A(t))!=t||t===x?(o=t!=t?1:0,r=l):(r=P(E(t)/L),t*(a=j(2,-r))<1&&(r--,a*=2),(t+=r+c>=1?u/a:u*j(2,1-c))*a>=2&&(r++,a/=2),r+c>=l?(o=0,r=l):r+c>=1?(o=(t*a-1)*j(2,e),r+=c):(o=t*j(2,c-1)*j(2,e),r=0));e>=8;i[d++]=255&o,o/=256,e-=8);for(r=r<<e|o,s+=e;s>0;i[d++]=255&r,r/=256,s-=8);return i[--d]|=128*f,i}function C(t,e,n){var r,o=8*n-e-1,a=(1<<o)-1,i=a>>1,s=o-7,l=n-1,c=t[l--],u=127&c;for(c>>=7;s>0;u=256*u+t[l],l--,s-=8);for(r=u&(1<<-s)-1,u>>=-s,s+=e;s>0;r=256*r+t[l],l--,s-=8);if(0===u)u=1-i;else{if(u===a)return r?NaN:c?-x:x;r+=j(2,e),u-=i}return(c?-1:1)*r*j(2,u-e)}function N(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function F(t){return[255&t]}function k(t){return[255&t,t>>8&255]}function R(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function q(t){return I(t,52,8)}function D(t){return I(t,23,4)}function z(t,e,n){m(t.prototype,e,{get:function(){return this[n]}})}function B(t,e,n,r){var o=p(+n);if(o+e>t[M])throw w("Wrong index!");var a=t[O]._b,i=o+t[T],s=a.slice(i,i+e);return r?s:s.reverse()}function U(t,e,n,r,o,a){var i=p(+n);if(i+e>t[M])throw w("Wrong index!");for(var s=t[O]._b,l=i+t[T],c=r(+o),u=0;u<e;u++)s[l+u]=c[a?u:e-u-1]}if(i.ABV){if(!c((function(){_(1)}))||!c((function(){new _(-1)}))||c((function(){return new _,new _(1.5),new _(NaN),"ArrayBuffer"!=_.name}))){for(var W,H=(_=function(t){return u(this,_),new S(p(t))}).prototype=S.prototype,V=g(S),G=0;V.length>G;)(W=V[G++])in _||s(_,W,S[W]);a||(H.constructor=_)}var Y=new y(new _(2)),X=y.prototype.setInt8;Y.setInt8(0,2147483648),Y.setInt8(1,2147483649),!Y.getInt8(0)&&Y.getInt8(1)||l(y.prototype,{setInt8:function(t,e){X.call(this,t,e<<24>>24)},setUint8:function(t,e){X.call(this,t,e<<24>>24)}},!0)}else _=function(t){u(this,_,"ArrayBuffer");var e=p(t);this._b=h.call(new Array(e),0),this[M]=e},y=function(t,e,n){u(this,y,"DataView"),u(t,_,"DataView");var r=t[M],o=d(e);if(o<0||o>r)throw w("Wrong offset!");if(o+(n=void 0===n?r-o:f(n))>r)throw w("Wrong length!");this[O]=t,this[T]=o,this[M]=n},o&&(z(_,"byteLength","_l"),z(y,"buffer","_b"),z(y,"byteLength","_l"),z(y,"byteOffset","_o")),l(y.prototype,{getInt8:function(t){return B(this,1,t)[0]<<24>>24},getUint8:function(t){return B(this,1,t)[0]},getInt16:function(t){var e=B(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=B(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return N(B(this,4,t,arguments[1]))},getUint32:function(t){return N(B(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return C(B(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return C(B(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){U(this,1,t,F,e)},setUint8:function(t,e){U(this,1,t,F,e)},setInt16:function(t,e){U(this,2,t,k,e,arguments[2])},setUint16:function(t,e){U(this,2,t,k,e,arguments[2])},setInt32:function(t,e){U(this,4,t,R,e,arguments[2])},setUint32:function(t,e){U(this,4,t,R,e,arguments[2])},setFloat32:function(t,e){U(this,4,t,D,e,arguments[2])},setFloat64:function(t,e){U(this,8,t,q,e,arguments[2])}});v(_,"ArrayBuffer"),v(y,"DataView"),s(y.prototype,i.VIEW,!0),e.ArrayBuffer=_,e.DataView=y},function(t,e,n){"use strict";var r=String.prototype.replace,o=/%20/g,a="RFC1738",i="RFC3986";t.exports={default:i,formatters:{RFC1738:function(t){return r.call(t,o,"+")},RFC3986:function(t){return String(t)}},RFC1738:a,RFC3986:i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.render=e.getOffset=e.almScroll=e.start=e.tracking=e.tab=e.reset=e.filter=void 0;var r=N(n(63)),o=N(n(160));n(161);var a=N(n(162)),i=N(n(104)),s=N(n(164)),l=N(n(165)),c=N(n(65)),u=N(n(105)),d=C(n(167)),f=C(n(106)),p=n(107),g=N(n(168)),m=N(n(169)),h=N(n(49)),v=N(n(170)),_=N(n(171)),y=N(n(50)),b=N(n(68)),w=N(n(173)),x=N(n(174)),S=N(n(175)),A=N(n(176)),j=N(n(66)),P=n(177),E=n(178),L=n(179),O=n(180),M=n(182),T=n(64),I=n(108);function C(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function N(t){return t&&t.__esModule?t:{default:t}}function F(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,n){return function r(o,a){try{var i=e[o](a),s=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(s).then((function(t){r("next",t)}),(function(t){r("throw",t)}));t(s)}("next")}))}}n(183),n(356),n(357);var k=n(358),R=n(67);r.default.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",o.default.polyfill();var q=!1;!function(){var t=function(t,e){alm_localize&&"true"===alm_localize.scrolltop&&window.scrollTo(0,0);var n=this;n.AjaxLoadMore={},n.addons={},n.extensions={},n.integration={},n.window=window,n.page=0,n.posts=0,n.totalposts=0,n.proceed=!1,n.disable_ajax=!1,n.init=!0,n.loading=!0,n.finished=!1,n.timer=null,n.ua=window.navigator.userAgent?window.navigator.userAgent:"",n.vendor=window.navigator.vendor?window.navigator.vendor:"",n.isSafari=/Safari/i.test(n.ua)&&/Apple Computer/.test(n.vendor)&&!/Mobi|Android/i.test(n.ua),n.master_id=t.dataset.id?"ajax-load-more-"+t.dataset.id:t.id,t.classList.add("alm-"+e),t.setAttribute("data-alm-id",e),n.master_id=n.master_id.replace(/-/g,"_"),n.localize=window[n.master_id+"_vars"],n.main=t,n.listing=t.querySelector(".alm-listing")||t.querySelector(".alm-comments"),n.content=n.listing,n.el=n.content,n.ajax=t.querySelector(".alm-ajax"),n.container_type=n.listing.dataset.containerType,n.canonical_url=t.dataset.canonicalUrl,n.nested=t.dataset.nested?t.dataset.nested:null,n.is_search=t.dataset.search,n.slug=t.dataset.slug,n.post_id=t.dataset.postId,n.id=t.dataset.id?t.dataset.id:"";var o=t.querySelector(".alm-no-results");if(n.no_results=o?o.innerHTML:"",n.repeater=n.listing.dataset.repeater,n.theme_repeater=n.listing.dataset.themeRepeater,n.post_type=n.listing.dataset.postType?n.listing.dataset.postType:"post",n.sticky_posts=n.listing.dataset.stickyPosts?n.listing.dataset.stickyPosts:null,n.btnWrap=t.querySelectorAll(".alm-btn-wrap"),n.btnWrap=Array.prototype.slice.call(n.btnWrap),n.btnWrap[n.btnWrap.length-1].style.visibility="visible",n.trigger=n.btnWrap[n.btnWrap.length-1],n.button=n.trigger.querySelector("button.alm-load-more-btn"),n.button_label=n.listing.dataset.buttonLabel,n.button_loading_label=n.listing.dataset.buttonLoadingLabel,n.button_done_label=n.listing.dataset.buttonDoneLabel,n.placeholder=n.main.querySelector(".alm-placeholder"),n.scroll_distance=n.listing.dataset.scrollDistance,n.scroll_distance=n.scroll_distance?n.scroll_distance:100,n.scroll_container=n.listing.dataset.scrollContainer,n.scroll_direction=n.listing.dataset.scrollDirection,n.max_pages=n.listing.dataset.maxPages?parseInt(n.listing.dataset.maxPages):0,n.pause_override=n.listing.dataset.pauseOverride,n.pause=!!n.listing.dataset.pause&&n.listing.dataset.pause,n.transition=n.listing.dataset.transition,n.transition_container=n.listing.dataset.transitionContainer,n.tcc=n.listing.dataset.transitionContainerClasses,n.speed=alm_localize.speed?parseInt(alm_localize.speed):200,n.images_loaded=!!n.listing.dataset.imagesLoaded&&n.listing.dataset.imagesLoaded,n.destroy_after=n.listing.dataset.destroyAfter?n.listing.dataset.destroyAfter:"",n.orginal_posts_per_page=parseInt(n.listing.dataset.postsPerPage),n.posts_per_page=n.listing.dataset.postsPerPage,n.offset=n.listing.dataset.offset?parseInt(n.listing.dataset.offset):0,n.integration.woocommerce=!!n.listing.dataset.woocommerce&&n.listing.dataset.woocommerce,n.integration.woocommerce="true"===n.integration.woocommerce,n.is_search=void 0!==n.is_search&&n.is_search,n.search_value="true"===n.is_search?n.slug:"",n.addons.elementor=!("posts"!==n.listing.dataset.elementor||!n.listing.dataset.elementorSettings),n.addons.elementor&&(n=(0,M.elementorCreateParams)(n)),n.addons.woocommerce=!(!n.listing.dataset.woo||"true"!==n.listing.dataset.woo),n.addons.woocommerce&&n.listing.dataset.wooSettings&&(n.addons.woocommerce_settings=JSON.parse(n.listing.dataset.wooSettings),n.addons.woocommerce_settings.results_text=document.querySelectorAll(n.addons.woocommerce_settings.results),n.page=parseInt(n.page)+parseInt(n.addons.woocommerce_settings.paged)),n.addons.cache=n.listing.dataset.cache,n.addons.cache=void 0!==n.addons.cache&&n.addons.cache,"true"===n.addons.cache&&(n.addons.cache_id=n.listing.dataset.cacheId,n.addons.cache_path=n.listing.dataset.cachePath,n.addons.cache_logged_in=n.listing.dataset.cacheLoggedIn,n.addons.cache_logged_in=void 0!==n.addons.cache_logged_in&&n.addons.cache_logged_in),n.addons.cta=!!n.listing.dataset.cta&&n.listing.dataset.cta,"true"===n.addons.cta&&(n.addons.cta_position=n.listing.dataset.ctaPosition,n.addons.cta_repeater=n.listing.dataset.ctaRepeater,n.addons.cta_theme_repeater=n.listing.dataset.ctaThemeRepeater),n.addons.nextpage=n.listing.dataset.nextpage,"true"===n.addons.nextpage&&(n.addons.nextpage_urls=n.listing.dataset.nextpageUrls,n.addons.nextpage_scroll=n.listing.dataset.nextpageScroll,n.addons.nextpage_pageviews=n.listing.dataset.nextpagePageviews,n.addons.nextpage_post_id=n.listing.dataset.nextpagePostId,n.addons.nextpage_startpage=n.listing.dataset.nextpageStartpage,n.addons.nextpage_title_template=n.listing.dataset.nextpageTitleTemplate),n.addons.single_post=n.listing.dataset.singlePost,"true"===n.addons.single_post&&(n.addons.single_post_id=n.listing.dataset.singlePostId,n.addons.single_post_query=n.listing.dataset.singlePostQuery,n.addons.single_post_order=void 0===n.listing.dataset.singlePostOrder?"previous":n.listing.dataset.singlePostOrder,n.addons.single_post_init_id=n.listing.dataset.singlePostId,n.addons.single_post_taxonomy=void 0===n.listing.dataset.singlePostTaxonomy?"":n.listing.dataset.singlePostTaxonomy,n.addons.single_post_excluded_terms=void 0===n.listing.dataset.singlePostExcludedTerms?"":n.listing.dataset.singlePostExcludedTerms,n.addons.single_post_progress_bar=void 0===n.listing.dataset.singlePostProgressBar?"":n.listing.dataset.singlePostProgressBar,n.addons.single_post_target=void 0===n.listing.dataset.singlePostTarget?"":n.listing.dataset.singlePostTarget,n.addons.single_post_preview=void 0!==n.listing.dataset.singlePostPreview,n.addons.single_post_preview)){var w=n.listing.dataset.singlePostPreview.split(":");n.addons.single_post_preview_data={button_label:w[0]?w[0]:"Continue Reading",height:w[1]?w[1]:500,element:w[2]?w[2]:"default",className:"alm-single-post--preview"}}if(n.addons.comments=!!n.listing.dataset.comments&&n.listing.dataset.comments,"true"===n.addons.comments&&(n.addons.comments_post_id=n.listing.dataset.comments_post_id,n.addons.comments_per_page=n.listing.dataset.comments_per_page,n.addons.comments_per_page=void 0===n.addons.comments_per_page?"5":n.addons.comments_per_page,n.addons.comments_type=n.listing.dataset.comments_type,n.addons.comments_style=n.listing.dataset.comments_style,n.addons.comments_template=n.listing.dataset.comments_template,n.addons.comments_callback=n.listing.dataset.comments_callback),n.addons.tabs=n.listing.dataset.tabs,n.addons.filters=n.listing.dataset.filters,n.addons.seo=n.listing.dataset.seo,n.addons.preloaded=n.listing.dataset.preloaded,n.addons.preloaded_amount=n.listing.dataset.preloadedAmount?n.listing.dataset.preloadedAmount:0,n.is_preloaded="true"===n.listing.dataset.isPreloaded,n.addons.users="true"===n.listing.dataset.users,n.addons.users&&(n.orginal_posts_per_page=n.listing.dataset.usersPerPage,n.posts_per_page=n.listing.dataset.usersPerPage),n.extensions.restapi=n.listing.dataset.restapi,n.extensions.restapi_base_url=n.listing.dataset.restapiBaseUrl,n.extensions.restapi_namespace=n.listing.dataset.restapiNamespace,n.extensions.restapi_endpoint=n.listing.dataset.restapiEndpoint,n.extensions.restapi_template_id=n.listing.dataset.restapiTemplateId,n.extensions.restapi_debug=n.listing.dataset.restapiDebug,n.extensions.acf=n.listing.dataset.acf,n.extensions.acf_field_type=n.listing.dataset.acfFieldType,n.extensions.acf_field_name=n.listing.dataset.acfFieldName,n.extensions.acf_parent_field_name=n.listing.dataset.acfParentFieldName,n.extensions.acf_post_id=n.listing.dataset.acfPostId,n.extensions.acf="true"===n.extensions.acf,void 0!==n.extensions.acf_field_type&&void 0!==n.extensions.acf_field_name&&void 0!==n.extensions.acf_post_id||(n.extensions.acf=!1),n.extensions.term_query=n.listing.dataset.termQuery,n.extensions.term_query_taxonomy=n.listing.dataset.termQueryTaxonomy,n.extensions.term_query_hide_empty=n.listing.dataset.termQueryHideEmpty,n.extensions.term_query_number=n.listing.dataset.termQueryNumber,n.extensions.term_query="true"===n.extensions.term_query,n.addons.paging=n.listing.dataset.paging,"true"===n.addons.paging?(n.addons.paging=!0,n.addons.paging_init=!0,n.addons.paging_controls="true"===n.listing.dataset.pagingControls,n.addons.paging_show_at_most=n.listing.dataset.pagingShowAtMost,n.addons.paging_classes=n.listing.dataset.pagingClasses,n.addons.paging_show_at_most=void 0===n.addons.paging_show_at_most?7:n.addons.paging_show_at_most,n.addons.paging_first_label=n.listing.dataset.pagingFirstLabel,n.addons.paging_previous_label=n.listing.dataset.pagingPreviousLabel,n.addons.paging_next_label=n.listing.dataset.pagingNextLabel,n.addons.paging_last_label=n.listing.dataset.pagingLastLabel,n.addons.paging_scroll=!!n.listing.dataset.pagingScroll&&n.listing.dataset.pagingScroll,n.addons.paging_scrolltop=n.listing.dataset.pagingScrolltop?parseInt(n.listing.dataset.pagingScrolltop):100,n.pause="true"===n.addons.preloaded||n.pause):n.addons.paging=!1,"true"===n.addons.filters){n.addons.filters=!0,n.addons.filters_url="true"===n.listing.dataset.filtersUrl,n.addons.filters_paging="true"===n.listing.dataset.filtersPaging,n.addons.filters_scroll="true"===n.listing.dataset.filtersScroll,n.addons.filters_scrolltop=n.listing.dataset.filtersScrolltop?n.listing.dataset.filtersScrolltop:"30",n.addons.filters_analtyics=n.listing.dataset.filtersAnalytics,n.addons.filters_debug=n.listing.dataset.filtersDebug,n.addons.filters_startpage=0;var C=(0,a.default)("pg");n.addons.filters_startpage=null!==C?parseInt(C):0,!n.addons.paging&&n.addons.filters_startpage>0&&(n.posts_per_page=n.posts_per_page*n.addons.filters_startpage,n.isPaged=n.addons.filters_startpage>0)}else n.addons.filters=!1;if("true"===n.addons.tabs){if(n.addons.tabs=!0,n.addons.tab_template=n.listing.dataset.tabTemplate?n.listing.dataset.tabTemplate:"",n.addons.tab_onload=n.listing.dataset.tabOnload?n.listing.dataset.tabOnload:"",n.addons.tabs_resturl=n.listing.dataset.tabsRestUrl?n.listing.dataset.tabsRestUrl:"",""!==n.addons.tab_onload){var N=document.querySelector(".alm-tab-nav li [data-tab-url="+n.addons.tab_onload+"]");if(n.addons.tab_template=N?N.dataset.tabTemplate:n.addons.tab_template,n.listing.dataset.tabOnload="",N){var D=document.querySelector(".alm-tab-nav li .active");D&&D.classList.remove("active")}}}else n.addons.tabs=!1;if("true"===n.extensions.restapi?(n.extensions.restapi=!0,n.extensions.restapi_debug=void 0!==n.extensions.restapi_debug&&n.extensions.restapi_debug,n.extensions.restapi=""!==n.extensions.restapi_template_id&&n.extensions.restapi):n.extensions.restapi=!1,"true"===n.addons.preloaded?(n.addons.preloaded_amount=void 0===n.addons.preloaded_amount?n.posts_per_page:n.addons.preloaded_amount,n.localize&&n.localize.total_posts&&parseInt(n.localize.total_posts)<=parseInt(n.addons.preloaded_amount)&&(n.addons.preloaded_total_posts=n.localize.total_posts,n.disable_ajax=!0)):n.addons.preloaded="false",n.addons.seo=void 0!==n.addons.seo&&n.addons.seo,n.addons.seo="true"===n.addons.seo||n.addons.seo,n.addons.seo&&(n.addons.seo_permalink=n.listing.dataset.seoPermalink,n.addons.seo_pageview=n.listing.dataset.seoPageview,n.addons.seo_trailing_slash="false"===n.listing.dataset.seoTrailingSlash?"":"/",n.addons.seo_leading_slash="true"===n.listing.dataset.seoLeadingSlash?"/":""),n.start_page=n.listing.dataset.seoStartPage,n.start_page?(n.addons.seo_scroll=n.listing.dataset.seoScroll,n.addons.seo_scrolltop=n.listing.dataset.seoScrolltop,n.addons.seo_controls=n.listing.dataset.seoControls,n.isPaged=!1,n.start_page>1&&(n.isPaged=!0,n.posts_per_page=n.start_page*n.posts_per_page),n.addons.paging&&(n.posts_per_page=n.orginal_posts_per_page)):n.start_page=1,"true"===n.addons.nextpage?(n.addons.nextpage=!0,n.posts_per_page=1,void 0===n.addons.nextpage_urls&&(n.addons.nextpage_urls="true"),void 0===n.addons.nextpage_scroll&&(n.addons.nextpage_scroll="false:30"),void 0===n.addons.nextpage_pageviews&&(n.addons.nextpage_pageviews="true"),void 0===n.addons.nextpage_post_id&&(n.addons.nextpage=!1,n.addons.nextpage_post_id=null),void 0===n.addons.nextpage_startpage&&(n.addons.nextpage_startpage=1),n.addons.nextpage_startpage>1&&(n.isPaged=!0),n.addons.nextpage_postTitle=n.listing.dataset.nextpagePostTitle):n.addons.nextpage=!1,"true"===n.addons.single_post?(n.addons.single_post=!0,n.addons.single_post_permalink="",n.addons.single_post_title="",n.addons.single_post_slug="",n.addons.single_post_title_template=n.listing.dataset.singlePostTitleTemplate,n.addons.single_post_siteTitle=n.listing.dataset.singlePostSiteTitle,n.addons.single_post_siteTagline=n.listing.dataset.singlePostSiteTagline,n.addons.single_post_pageview=n.listing.dataset.singlePostPageview,n.addons.single_post_scroll=n.listing.dataset.singlePostScroll,n.addons.single_post_scroll_speed=n.listing.dataset.singlePostScrollSpeed,n.addons.single_post_scroll_top=n.listing.dataset.singlePostScrolltop,n.addons.single_post_controls=n.listing.dataset.singlePostControls):n.addons.single_post=!1,n.addons.single_post&&void 0===n.addons.single_post_id&&(n.addons.single_post_id="",n.addons.single_post_init_id=""),(void 0===n.pause||n.addons.seo&&n.start_page>1)&&(n.pause=!1),"true"===n.addons.preloaded&&n.addons.seo&&n.start_page>0&&(n.pause=!1),n.addons.filters&&n.addons.filters_startpage>0&&(n.pause=!1),"true"===n.addons.preloaded&&n.addons.paging&&(n.pause=!0),n.repeater=void 0===n.repeater?"default":n.repeater,n.theme_repeater=void 0!==n.theme_repeater&&n.theme_repeater,n.max_pages=void 0===n.max_pages||0===n.max_pages?1e4:n.max_pages,n.scroll_distance=void 0===n.scroll_distance?100:n.scroll_distance,n.scroll_distance_perc=!1,-1==n.scroll_distance.toString().indexOf("%")?n.scroll_distance=parseInt(n.scroll_distance):(n.scroll_distance_perc=!0,n.scroll_distance_orig=parseInt(n.scroll_distance),n.scroll_distance=(0,A.default)(n)),n.scroll_container=void 0===n.scroll_container?"":n.scroll_container,n.scroll_direction=void 0===n.scroll_direction?"vertical":n.scroll_direction,n.transition=void 0===n.transition?"fade":n.transition,n.tcc=void 0===n.tcc?"":n.tcc,n.is_masonry_preloaded=!1,"masonry"===n.transition&&(n.masonry_init=!0,n.msnry?n.msnry.destroy():n.msnry="",n.masonry_selector=n.listing.dataset.masonrySelector,n.masonry_columnwidth=n.listing.dataset.masonryColumnwidth,n.masonry_animation=n.listing.dataset.masonryAnimation,n.masonry_animation=void 0===n.masonry_animation?"standard":n.masonry_animation,n.masonry_horizontalorder=n.listing.dataset.masonryHorizontalorder,n.masonry_horizontalorder=void 0===n.masonry_horizontalorder?"true":n.masonry_horizontalorder,n.transition_container=!1,n.images_loaded=!1,n.is_masonry_preloaded="true"===n.addons.preloaded||n.is_masonry_preloaded),void 0===n.listing.dataset.scroll?n.scroll=!0:"false"===n.listing.dataset.scroll?n.scroll=!1:n.scroll=!0,n.transition_container=void 0===n.transition_container||"true"===n.transition_container,n.button_label=void 0===n.button_label?"Load More":n.button_label,n.button_loading_label=void 0!==n.button_loading_label&&n.button_loading_label,n.button_done_label=void 0!==n.button_done_label&&n.button_done_label,n.addons.paging)n.main.classList.add("loading");else{var z=t.childNodes;if(z){var B=Array.prototype.slice.call(z).filter((function(t){return!!t.classList&&t.classList.contains("alm-btn-wrap")}));n.button=B?B[0].querySelector(".alm-load-more-btn"):container.querySelector(".alm-btn-wrap .alm-load-more-btn")}else n.button=container.querySelector(".alm-btn-wrap .alm-load-more-btn");n.button.disabled=!1,n.button.style.display=""}if(n.integration.woocommerce?(n.resultsText=document.querySelectorAll(".woocommerce-result-count"),n.resultsText.length<1&&(n.resultsText=document.querySelectorAll(".alm-results-text"))):n.resultsText=document.querySelectorAll(".alm-results-text"),n.resultsText?n.resultsText.forEach((function(t){t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true")})):n.resultsText=!1,n.tableofcontents=document.querySelector(".alm-toc"),n.tableofcontents?(n.tableofcontents.setAttribute("aria-live","polite"),n.tableofcontents.setAttribute("aria-atomic","true")):n.tableofcontents=!1,n.AjaxLoadMore.loadPosts=function(){if("function"==typeof almOnChange&&window.almOnChange(n),(0,P.showPlaceholder)(n),!n.disable_ajax)if(n.addons.paging||(n.button.classList.add("loading"),!1!==n.button_loading_label&&(n.button.innerHTML=n.button_loading_label)),n.main.classList.add("alm-loading"),n.loading=!0,"true"!==n.addons.cache||n.addons.cache_logged_in)n.AjaxLoadMore.ajax("standard");else{var t=(0,l.default)(n);t?r.default.get(t).then((function(t){n.AjaxLoadMore.success(t.data,!0)})).catch((function(t){n.AjaxLoadMore.ajax("standard")})):n.AjaxLoadMore.ajax("standard")}},n.AjaxLoadMore.ajax=function(t){var e="alm_get_posts";n.acf_array="",n.extensions.acf&&("relationship"!==n.extensions.acf_field_type&&(e="alm_acf"),n.acf_array={acf:"true",post_id:n.extensions.acf_post_id,field_type:n.extensions.acf_field_type,field_name:n.extensions.acf_field_name,parent_field_name:n.extensions.acf_parent_field_name}),n.term_query_array="",n.extensions.term_query&&(e="alm_get_terms",n.term_query_array={term_query:"true",taxonomy:n.extensions.term_query_taxonomy,hide_empty:n.extensions.term_query_hide_empty,number:n.extensions.term_query_number}),n.nextpage_array="",n.addons.nextpage&&(e="alm_nextpage",n.nextpage_array={nextpage:"true",urls:n.addons.nextpage_urls,scroll:n.addons.nextpage_scroll,pageviews:n.addons.nextpage_pageviews,post_id:n.addons.nextpage_post_id,startpage:n.addons.nextpage_startpage,nested:n.nested}),n.single_post_array="",n.addons.single_post&&(n.single_post_array={single_post:"true",id:n.addons.single_post_id,slug:n.addons.single_post_slug}),n.comments_array="","true"===n.addons.comments&&(e="alm_comments",n.posts_per_page=n.addons.comments_per_page,n.comments_array={comments:"true",post_id:n.addons.comments_post_id,per_page:n.addons.comments_per_page,type:n.addons.comments_type,style:n.addons.comments_style,template:n.addons.comments_template,callback:n.addons.comments_callback}),n.users_array="",n.addons.users&&(e="alm_users",n.users_array={users:"true",role:n.listing.dataset.usersRole,include:n.listing.dataset.usersInclude,exclude:n.listing.dataset.usersExclude,per_page:n.posts_per_page,order:n.listing.dataset.usersOrder,orderby:n.listing.dataset.usersOrderby}),n.cta_array="","true"===n.addons.cta&&(n.cta_array={cta:"true",cta_position:n.addons.cta_position,cta_repeater:n.addons.cta_repeater,cta_theme_repeater:n.addons.cta_theme_repeater}),n.extensions.restapi?n.AjaxLoadMore.restapi(n,e,t):n.addons.tabs?n.AjaxLoadMore.tabs(n):n.AjaxLoadMore.adminajax(n,e,t)},n.AjaxLoadMore.adminajax=function(t,e,n){1==t.page||t.addons.paging||t.button.classList.add("loading"),r.default.interceptors.request.use((function(t){return t.paramsSerializer=function(t){return k.stringify(t,{arrayFormat:"brackets",encode:!1})},t}));var o=alm_localize.ajaxurl,a=d.almGetAjaxParams(t,e,n);t.addons.single_post&&t.addons.single_post_target&&(o=t.addons.single_post_permalink+"?id="+t.addons.single_post_id+"&alm_page="+(parseInt(t.page)+1),a=""),t.addons.woocommerce&&(o=(0,v.default)(t),a=""),t.addons.elementor&&t.addons.elementor_type&&"posts"===t.addons.elementor_type&&(o=(0,v.default)(t),a=""),r.default.get(o,{params:a}).then((function(e){var r="";t.addons.single_post&&t.addons.single_post_target?(r=(0,E.singlePostHTML)(e,t.addons.single_post_target),(0,L.createCacheFile)(t,r.html,"single")):t.addons.woocommerce?(r=(0,O.wooGetContent)(e,t),(0,L.createCacheFile)(t,r.html,"woocommerce")):t.addons.elementor?(r=(0,M.elementorGetContent)(e,t),(0,L.createCacheFile)(t,r.html,"elementor")):r=e.data,"standard"===n?t.AjaxLoadMore.success(r,!1):"totalpages"===n&&t.addons.paging&&t.addons.nextpage?"function"==typeof almBuildPagination&&(window.almBuildPagination(r.totalpages,t),t.totalpages=r.totalpages):"totalposts"===n&&t.addons.paging&&"function"==typeof almBuildPagination&&window.almBuildPagination(r.totalposts,t)})).catch((function(e){t.AjaxLoadMore.error(e,"adminajax")}))},n.AjaxLoadMore.tabs=function(t){var e=t.addons.tabs_resturl+"ajaxloadmore/tab",n={post_id:t.post_id,template:t.addons.tab_template};r.default.interceptors.request.use((function(t){return t.paramsSerializer=function(t){return k.stringify(t,{arrayFormat:"brackets",encode:!1})},t})),r.default.get(e,{params:n}).then((function(e){var n={html:e.data.html,meta:{postcount:1,totalposts:1}};t.AjaxLoadMore.success(n,!1),"function"==typeof almTabLoaded&&window.almTabLoaded(t)})).catch((function(e){t.AjaxLoadMore.error(e,"restapi")}))},n.AjaxLoadMore.restapi=function(t,e,n){var o=wp.template(t.extensions.restapi_template_id),a=t.extensions.restapi_base_url+"/"+t.extensions.restapi_namespace+"/"+t.extensions.restapi_endpoint,i=d.almGetRestParams(t);r.default.interceptors.request.use((function(t){return t.paramsSerializer=function(t){return k.stringify(t,{arrayFormat:"brackets",encode:!1})},t})),r.default.get(a,{params:i}).then((function(e){for(var n=e.data,r="",a=n.html,i=n.meta,s=i&&i.postcount?i.postcount:0,l=i&&i.totalposts?i.totalposts:0,c=0;c<a.length;c++){var u=a[c];"true"===t.restapi_debug&&console.log(u),r+=o(u)}var d={html:r,meta:{postcount:s,totalposts:l}};t.AjaxLoadMore.success(d,!1)})).catch((function(e){t.AjaxLoadMore.error(e,"restapi")}))},n.addons.paging&&(n.addons.nextpage?n.AjaxLoadMore.ajax("totalpages"):n.AjaxLoadMore.ajax("totalposts")),n.AjaxLoadMore.success=function(e,r){var o=this;n.addons.single_post&&n.AjaxLoadMore.getSinglePost();var a=!1,l="table"===n.container_type?document.createElement("tbody"):document.createElement("div");n.el=l,l.style.opacity=0,l.style.height=0,l.style.outline="none";var d=n.listing.querySelector(".alm-paging-content"),f=void 0,v=void 0,w=void 0;if(r)f=e;else{f=e.html,v=e.meta,w=v?parseInt(v.postcount):parseInt(n.posts_per_page);var A=v&&v.totalposts?v.totalposts:5*n.posts_per_page;n.totalposts="true"===n.addons.preloaded?A-n.addons.preloaded_amount:A,n.posts=n.addons.paging?w:n.posts+w,n.debug=v.debug?v.debug:"",v||console.warn("Ajax Load More: Unable to access `meta` object in Ajax response. There may be an issue in your Repeater Template or another hook causing interference.")}if(n.html=f,w=r?(0,c.default)(f).length:w,n.init&&(v&&(n.main.dataset.totalPosts=v.totalposts?v.totalposts:0),n.addons.paging&&w>0&&n.AjaxLoadMore.pagingInit(f,"alm-reveal"),0===w&&(n.addons.paging&&"function"==typeof almPagingEmpty&&window.almPagingEmpty(n),"function"==typeof almEmpty&&window.almEmpty(n),n.no_results&&setTimeout((function(){(0,x.default)(n.content,n.no_results)}),n.speed+10)),n.isPaged&&(n.posts_per_page=n.addons.users?n.listing.dataset.usersPerPage:n.listing.dataset.postsPerPage,n.posts_per_page=n.addons.nextpage?1:n.posts_per_page,n.page=n.start_page?n.start_page-1:n.page,n.addons.filters&&n.addons.filters_startpage>0&&(n.page=n.addons.filters_startpage-1,n.posts_per_page=n.listing.dataset.postsPerPage))),(0,S.default)(n),F(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,g.default)(n);case 2:case"end":return t.stop()}}),t,o)})))(),w>0){if(n.addons.paging)n.init?setTimeout((function(){n.main.classList.remove("alm-loading"),n.AjaxLoadMore.triggerAddons(n)}),n.speed):d&&((0,b.default)(d,n.speed),d.style.outline="none",n.main.classList.remove("alm-loading"),setTimeout((function(){d.style.opacity=0,d.innerHTML=n.html,R(d,(function(){n.AjaxLoadMore.triggerAddons(n),(0,y.default)(d,n.speed),setTimeout((function(){d.style.opacity="",m.default.init(d)}),parseInt(n.speed)+10),"function"==typeof almOnPagingComplete&&window.almOnPagingComplete(n)}))}),parseInt(n.speed)+25));else{if(n.addons.single_post){if(l.setAttribute("class","alm-reveal alm-single-post post-"+n.addons.single_post_id+(n.tcc?" "+n.tcc:"")),l.dataset.url=n.addons.single_post_permalink,n.addons.single_post_target?l.dataset.page=parseInt(n.page)+1:l.dataset.page=n.page,l.dataset.id=n.addons.single_post_id,l.dataset.title=n.addons.single_post_title,l.innerHTML=n.html,n.addons.single_post_preview&&n.addons.single_post_preview_data&&"function"==typeof almSinglePostCreatePreview){var P=window.almSinglePostCreatePreview(l,n.addons.single_post_id,n.addons.single_post_preview_data);l.replaceChildren(P||l)}}else if(n.transition_container){var E=void 0,L=window.location.search,C=n.addons.seo?" alm-seo":"",N=n.addons.filters?" alm-filters":"",k=n.is_preloaded?" alm-preloaded":"";if(n.init&&(n.start_page>1||n.addons.filters_startpage>0)){var D=[],z=[],B=parseInt(n.posts_per_page),U=Math.ceil(w/B);a=!0,"true"===n.addons.cta&&(B+=1,U=Math.ceil(w/B),w=U+w);for(var W=(0,u.default)((0,c.default)(n.html,"text/html")),H=0;H<w;H+=B)D.push(W.slice(H,B+H));for(var V=0;V<D.length;V++){var G="true"===n.addons.preloaded?1:0,Y=document.createElement("div");V>0||"true"===n.addons.preloaded?(E=V+1+G,n.addons.seo&&(Y=(0,I.createSEOAttributes)(n,Y,L,C,E)),n.addons.filters&&(Y.setAttribute("class","alm-reveal"+N+n.tcc),Y.dataset.url=n.canonical_url+(0,T.buildFilterURL)(n,L,E),Y.dataset.page=E)):(n.addons.seo&&(Y=(0,I.createSEOAttributes)(n,Y,L,C,1)),n.addons.filters&&(Y.setAttribute("class","alm-reveal"+N+k+n.tcc),Y.dataset.url=n.canonical_url+(0,T.buildFilterURL)(n,L,0),Y.dataset.page="1")),(0,i.default)(Y,D[V]),(0,j.default)(Y,n.ua),z.push(Y)}n.listing.style.opacity=0,n.listing.style.height=0,(0,i.default)(n.listing,z),l=n.listing,n.el=l}else{if(n.addons.seo&&n.page>0||"true"===n.addons.preloaded){var X="true"===n.addons.preloaded?1:0;E=n.page+1+X,n.addons.seo?l=(0,I.createSEOAttributes)(n,l,L,C,E):n.addons.filters?(l.setAttribute("class","alm-reveal"+N+n.tcc),l.dataset.url=n.canonical_url+(0,T.buildFilterURL)(n,L,E),l.dataset.page=E):l.setAttribute("class","alm-reveal"+n.tcc)}else n.addons.filters?(l.setAttribute("class","alm-reveal"+N+n.tcc),l.dataset.url=n.canonical_url+(0,T.buildFilterURL)(n,L,parseInt(n.page)+1),l.dataset.page=parseInt(n.page)+1):n.addons.seo?l=(0,I.createSEOAttributes)(n,l,L,C,1):l.setAttribute("class","alm-reveal"+n.tcc);l.innerHTML=n.html}}else n.el=n.html,l="table"===n.container_type?(0,s.default)(n.html):(0,u.default)((0,c.default)(n.html,"text/html"));if(n.addons.woocommerce)return F(regeneratorRuntime.mark((function t(){var r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,O.woocommerce)(l,n,e.pageTitle);case 2:r=n.page+2,n.button.dataset.page=r,o=n.addons.woocommerce_settings.paged_urls[r-1],n.button.dataset.url=o||"",n.AjaxLoadMore.transitionEnd(),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),r>parseInt(n.addons.woocommerce_settings.pages)&&n.AjaxLoadMore.triggerDone();case 9:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log(t),console.log("There was an error loading woocommerce products")})),void(n.init=!1);if(n.addons.elementor)return F(regeneratorRuntime.mark((function t(){var r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,M.elementor)(l,n,e.pageTitle);case 2:r=n.page+1,n.button.dataset.page=r,o=n.addons.elementor_next_page_url,n.button.dataset.url=o||"",n.AjaxLoadMore.transitionEnd(),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),o||n.AjaxLoadMore.triggerDone();case 9:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log(t),console.log("There was an error loading Elementor Post Widget items")})),void(n.init=!1);("masonry"!==n.transition||n.init&&!n.is_masonry_preloaded)&&(a||(n.transition_container?n.listing.appendChild(l):"true"===n.images_loaded?R(l,(function(){(0,i.default)(n.listing,l),(0,j.default)(n.listing,n.ua)})):((0,i.default)(n.listing,l),(0,j.default)(n.listing,n.ua)))),"masonry"===n.transition?(n.el=n.listing,F(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,_.default)(n,n.init,q);case 2:n.masonry_init=!1,n.AjaxLoadMore.triggerWindowResize(),n.AjaxLoadMore.transitionEnd(),"function"==typeof almComplete&&window.almComplete(n);case 6:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log("There was an error with ALM Masonry")}))):"none"===n.transition&&n.transition_container?"true"===n.images_loaded?R(l,(function(){(0,y.default)(l,0),n.AjaxLoadMore.transitionEnd()})):((0,y.default)(l,0),n.AjaxLoadMore.transitionEnd()):"true"===n.images_loaded?R(l,(function(){n.transition_container&&(0,y.default)(l,n.speed),n.AjaxLoadMore.transitionEnd()})):(n.transition_container&&(0,y.default)(l,n.speed),n.AjaxLoadMore.transitionEnd()),n.addons.tabs&&"function"==typeof almTabsSetHeight&&R(l,(function(){(0,y.default)(n.listing,n.speed),setTimeout((function(){window.almTabsSetHeight(n)}),n.speed)}))}R(l,(function(){n.AjaxLoadMore.nested(l),m.default.init(n.el),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),q&&n.addons.filters&&"function"==typeof almFiltersAddonComplete&&window.almFiltersAddonComplete(t),q=!1,n.addons.tabs&&"function"==typeof almTabsComplete&&window.almTabsComplete(),n.addons.cache?n.addons.nextpage&&n.localize?parseInt(n.localize.page)===parseInt(n.localize.total_posts)&&n.AjaxLoadMore.triggerDone():w<parseInt(n.posts_per_page)&&n.AjaxLoadMore.triggerDone():n.posts>=n.totalposts&&!n.addons.single_post&&n.AjaxLoadMore.triggerDone()})),"function"==typeof almFiltersOnload&&n.init&&window.almFiltersOnload(n)}else n.AjaxLoadMore.noresults();if(void 0!==n.destroy_after&&""!==n.destroy_after){var Q=n.page+1;(Q="true"===n.addons.preloaded?Q++:Q)==n.destroy_after&&n.AjaxLoadMore.destroyed()}(0,p.tableOfContents)(n,n.init),"masonry"!==n.transition&&(0,h.default)(n,l,w,q),n.main.classList.contains("alm-is-filtering")&&n.main.classList.remove("alm-is-filtering"),n.init=!1},n.AjaxLoadMore.noresults=function(){n.addons.paging||(setTimeout((function(){n.button.classList.remove("loading"),n.button.classList.add("done")}),n.speed),n.AjaxLoadMore.resetBtnText()),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),q&&n.addons.filters&&("function"==typeof almFiltersAddonComplete&&almFiltersAddonComplete(t),q=!1),n.addons.tabs&&"function"==typeof almTabsComplete&&almTabsComplete(),"masonry"===n.transition&&(n.content.style.height="auto"),n.AjaxLoadMore.triggerDone()},n.AjaxLoadMore.pagingPreloadedInit=function(t){t=null==t?"":t,n.AjaxLoadMore.pagingInit(t,"alm-reveal"),""===t&&("function"==typeof almPagingEmpty&&window.almPagingEmpty(n),"function"==typeof almEmpty&&window.almEmpty(n),n.no_results&&(0,x.default)(n.content,n.no_results))},n.AjaxLoadMore.pagingNextpageInit=function(t){t=null==t?"":t,n.AjaxLoadMore.pagingInit(t,"alm-reveal alm-nextpage"),"function"==typeof almSetNextPageVars&&window.almSetNextPageVars(n)},n.AjaxLoadMore.pagingInit=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"alm-reveal";t=null==t?"":t;var r=document.createElement("div");r.setAttribute("class",e);var o=document.createElement("div");o.setAttribute("class","alm-paging-content"+n.tcc),o.innerHTML=t,r.appendChild(o);var a=document.createElement("div");a.setAttribute("class","alm-paging-loading"),r.appendChild(a),n.listing.appendChild(r);var i=window.getComputedStyle(n.listing),s=parseInt(i.getPropertyValue("padding-top").replace("px","")),l=parseInt(i.getPropertyValue("padding-bottom").replace("px","")),c=r.offsetHeight;n.listing.style.height=c+s+l+"px",m.default.init(r),n.AjaxLoadMore.resetBtnText(),setTimeout((function(){"function"==typeof almFadePageControls&&window.almFadePageControls(n.btnWrap),"function"==typeof almOnWindowResize&&window.almOnWindowResize(n),n.main.classList.remove("loading")}),n.speed)},n.AjaxLoadMore.nested=function(t){if(!t||!n.transition_container)return!1;var e=t.querySelectorAll(".ajax-load-more-wrap");e&&e.forEach((function(t){window.almInit(t)}))},n.addons.single_post_id&&(n.fetchingPreviousPost=!1,n.addons.single_post_init=!0),n.AjaxLoadMore.getSinglePost=function(){if(n.fetchingPreviousPost)return!1;n.fetchingPreviousPost=!0;var t=alm_localize.ajaxurl,e={id:n.addons.single_post_id,initial_id:n.addons.single_post_init_id,order:n.addons.single_post_order,taxonomy:n.addons.single_post_taxonomy,excluded_terms:n.addons.single_post_excluded_terms,post_type:n.post_type,init:n.addons.single_post_init,action:"alm_get_single"};r.default.get(t,{params:e}).then((function(t){var e=t.data;e.has_previous_post?(n.listing.dataset.singlePostId=e.prev_id,n.addons.single_post_id=e.prev_id,n.addons.single_post_permalink=e.prev_permalink,n.addons.single_post_title=e.prev_title,n.addons.single_post_slug=e.prev_slug):e.has_previous_post||n.AjaxLoadMore.triggerDone(),"function"==typeof window.almSetSinglePost&&window.almSetSinglePost(n,e.current_id,e.permalink,e.title),n.fetchingPreviousPost=!1,n.addons.single_post_init=!1})).catch((function(t){n.AjaxLoadMore.error(t,"getSinglePost"),n.fetchingPreviousPost=!1}))},n.AjaxLoadMore.triggerAddons=function(t){"function"==typeof almSetNextPage&&t.addons.nextpage&&window.almSetNextPage(t),"function"==typeof almSEO&&t.addons.seo&&window.almSEO(t,!1),"function"==typeof almWooCommerce&&t.addons.woocommerce&&window.almWooCommerce(t),"function"==typeof almElementor&&t.addons.elementor&&window.almElementor(t)},n.AjaxLoadMore.triggerDone=function(){n.loading=!1,n.finished=!0,(0,P.hidePlaceholder)(n),n.addons.paging||(!1!==n.button_done_label&&setTimeout((function(){n.button.innerHTML=n.button_done_label}),75),n.button.classList.add("done"),n.button.disabled=!0),"function"==typeof almDone&&setTimeout((function(){window.almDone(n)}),n.speed+10)},n.AjaxLoadMore.resetBtnText=function(){!1===n.button_loading_label||n.addons.paging||(n.button.innerHTML=n.button_label)},n.AjaxLoadMore.error=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;n.loading=!1,n.addons.paging||(n.button.classList.remove("loading"),n.AjaxLoadMore.resetBtnText()),console.log("Error: ",t),t.response?console.log("Error Msg: ",t.message):t.request?console.log(t.request):console.log("Error Msg: ",t.message),e&&console.log("ALM Error started in "+e),t.config&&console.log("ALM Error Debug: ",t.config)},n.AjaxLoadMore.click=function(t){var e=t.target||t.currentTarget;"true"===n.pause&&(n.pause=!1,n.pause_override=!1,n.AjaxLoadMore.loadPosts()),n.loading||n.finished||e.classList.contains("done")||(n.loading=!0,n.page++,n.AjaxLoadMore.loadPosts()),e.blur()},n.addons.paging||n.fetchingPreviousPost||(n.button.onclick=n.AjaxLoadMore.click),n.addons.paging||n.addons.tabs||n.scroll_distance_perc||"horizontal"===n.scroll_direction){var U=void 0;n.window.onresize=function(){clearTimeout(U),U=setTimeout((function(t){n.addons.tabs&&"function"==typeof almOnTabsWindowResize&&window.almOnTabsWindowResize(n),n.addons.paging&&"function"==typeof almOnWindowResize&&window.almOnWindowResize(n),n.scroll_distance_perc&&(n.scroll_distance=(0,A.default)(n)),"horizontal"===n.scroll_direction&&n.AjaxLoadMore.horizontal()}),n.speed)}}n.AjaxLoadMore.isVisible=function(){return n.visible=n.main.clientWidth>0&&n.main.clientHeight>0,n.visible},n.AjaxLoadMore.triggerWindowResize=function(){if("function"==typeof Event)window.dispatchEvent(new Event("resize"));else{var t=window.document.createEvent("UIEvents");t.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(t)}},n.AjaxLoadMore.scroll=function(){n.timer&&clearTimeout(n.timer),n.timer=setTimeout((function(){if(n.AjaxLoadMore.isVisible()&&!n.fetchingPreviousPost){var t=n.trigger.getBoundingClientRect(),e=Math.round(t.top-n.window.innerHeight)+n.scroll_distance<=0;if(n.window!==window){var r=n.main.offsetHeight,o=n.main.offsetWidth;"horizontal"===n.scroll_direction?(n.AjaxLoadMore.horizontal(),e=o<=Math.round(n.window.scrollLeft+n.window.offsetWidth-n.scroll_distance)):e=r<=Math.round(n.window.scrollTop+n.window.offsetHeight-n.scroll_distance)}(!n.loading&&!n.finished&&e&&n.page<n.max_pages-1&&n.proceed&&"true"===n.pause&&"true"===n.pause_override||!n.loading&&!n.finished&&e&&n.page<n.max_pages-1&&n.proceed&&"true"!==n.pause)&&n.button.click()}}),25)},n.AjaxLoadMore.scrollSetup=function(){n.scroll&&!n.addons.paging&&(""!==n.scroll_container&&(n.window=document.querySelector(n.scroll_container)?document.querySelector(n.scroll_container):n.window,setTimeout((function(){n.AjaxLoadMore.horizontal()}),500)),n.window.addEventListener("scroll",n.AjaxLoadMore.scroll),n.window.addEventListener("touchstart",n.AjaxLoadMore.scroll),n.window.addEventListener("wheel",(function(t){Math.sign(t.deltaY)>0&&n.AjaxLoadMore.scroll()})),n.window.addEventListener("keyup",(function(t){switch(t.key?t.key:t.code){case 35:case 34:n.AjaxLoadMore.scroll()}})))},n.AjaxLoadMore.horizontal=function(){"horizontal"===n.scroll_direction&&(n.main.style.width=n.listing.offsetWidth+"px")},n.AjaxLoadMore.destroyed=function(){n.disable_ajax=!0,n.addons.paging||(n.button.style.display="none",n.AjaxLoadMore.triggerDone(),"function"==typeof almDestroyed&&window.almDestroyed(n))},n.AjaxLoadMore.transitionEnd=function(){setTimeout((function(){n.AjaxLoadMore.resetBtnText(),n.main.classList.remove("alm-loading"),n.button.classList.remove("loading"),n.AjaxLoadMore.triggerAddons(n),n.addons.paging||setTimeout((function(){n.loading=!1}),3*n.speed)}),50),(0,P.hidePlaceholder)(n)},n.AjaxLoadMore.setLocalizedVar=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";n.localize&&""!==t&&""!==e&&(n.localize[t]=e.toString(),window[n.master_id+"_vars"][t]=e.toString())},n.AjaxLoadMore.init=function(){if("true"===n.addons.preloaded&&1==n.destroy_after&&n.AjaxLoadMore.destroyed(),n.addons.paging||n.addons.single_post||(n.disable_ajax?(n.finished=!0,n.button.classList.add("done")):(n.button.innerHTML=n.button_label,"true"===n.pause?n.loading=!1:n.AjaxLoadMore.loadPosts())),n.addons.single_post&&(n.AjaxLoadMore.getSinglePost(),n.loading=!1,n.addons.single_post_query&&""===n.addons.single_post_order&&n.AjaxLoadMore.triggerDone(),(0,p.tableOfContents)(n,!0,!0)),"true"===n.addons.preloaded&&n.addons.seo&&!n.addons.paging&&setTimeout((function(){"function"==typeof almSEO&&n.start_page<1&&window.almSEO(n,!0)}),n.speed),"true"!==n.addons.preloaded||n.addons.paging||setTimeout((function(){n.addons.preloaded_total_posts<=parseInt(n.addons.preloaded_amount)&&n.AjaxLoadMore.triggerDone(),0==n.addons.preloaded_total_posts&&("function"==typeof almEmpty&&window.almEmpty(n),n.no_results&&(0,x.default)(n.content,n.no_results))}),n.speed),"true"===n.addons.preloaded&&(n.resultsText&&f.almInitResultsText(n,"preloaded"),(0,p.tableOfContents)(n,n.init,!0)),n.addons.nextpage){if(n.listing.querySelector(".alm-nextpage")&&!n.addons.paging){var t=n.listing.querySelectorAll(".alm-nextpage");if(t){var e=t[0],r=e.dataset.totalPosts?parseInt(e.dataset.totalPosts):n.localize.total_posts;t.length!==r&&parseInt(e.dataset.id)!==r||n.AjaxLoadMore.triggerDone()}}n.resultsText&&f.almInitResultsText(n,"nextpage"),(0,p.tableOfContents)(n,n.init,!0)}n.addons.woocommerce&&((0,O.wooInit)(n),n.addons.woocommerce_settings.paged>=parseInt(n.addons.woocommerce_settings.pages)&&n.AjaxLoadMore.triggerDone()),n.addons.elementor&&n.addons.elementor_type&&"posts"===n.addons.elementor_type&&((0,M.elementorInit)(n),""===n.addons.elementor_next_page_url&&n.AjaxLoadMore.triggerDone()),n.window.addEventListener("load",(function(){n.is_masonry_preloaded&&F(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,_.default)(n,!0,!1);case 2:n.masonry_init=!1;case 3:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log("There was an error with ALM Masonry")})),"function"==typeof almOnLoad&&window.almOnLoad(n)}))},window.almUpdateCurrentPage=function(t,e,n){n.page=t,n.page=n.addons.nextpage&&!n.addons.paging?n.page-1:n.page;var r="",o="";n.addons.paging_init&&"true"===n.addons.preloaded?((o=n.listing.querySelector(".alm-reveal")||n.listing.querySelector(".alm-nextpage"))&&(r=o.innerHTML,o.parentNode.removeChild(o),n.addons.preloaded_amount=0,n.AjaxLoadMore.pagingPreloadedInit(r)),n.addons.paging_init=!1,n.init=!1):n.addons.paging_init&&n.addons.nextpage?((o=n.listing.querySelector(".alm-reveal")||n.listing.querySelector(".alm-nextpage"))&&(r=o.innerHTML,o.parentNode.removeChild(o),n.AjaxLoadMore.pagingNextpageInit(r)),n.addons.paging_init=!1,n.init=!1):n.AjaxLoadMore.loadPosts()},window.almGetParentContainer=function(){return n.listing},window.almGetObj=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""!==t?n[t]:n},window.almTriggerClick=function(){n.button.click()},setTimeout((function(){n.proceed=!0,n.AjaxLoadMore.scrollSetup()}),500),n.AjaxLoadMore.init()};window.almInit=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;new t(e,n)};var e=document.querySelectorAll(".ajax-load-more-wrap");e.length&&[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(e)).forEach((function(e,n){new t(e,n)}))}();e.filter=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fade",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"200",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!t||!e||!n)return!1;q=!0,(0,w.default)(t,e,n,"filter")};e.reset=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={};q=!0,t&&t.target&&(e={target:target}),t&&"woocommerce"===t.type?F(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=document.querySelector('.ajax-load-more-wrap .alm-listing[data-woo="true"]'),t.next=3,(0,O.wooReset)();case 3:(r=t.sent)&&(n.dataset.wooSettings=r,(0,w.default)("fade","100",e,"filter"));case 5:case"end":return t.stop()}}),t,this)})))().catch((function(){console.warn("Ajax Load More: There was an resetting the Ajax Load More instance.")})):(0,w.default)("fade","200",e,"filter")};e.tab=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e="fade",n=alm_localize.speed?parseInt(alm_localize.speed):200;if(!t)return!1;q=!0,(0,w.default)(e,n,t,"tab")};e.tracking=function(t){"function"==typeof gtag&&(gtag("event","page_view",{page_path:t}),alm_localize.ga_debug&&console.log("Pageview sent to Google Analytics (gtag)")),"function"==typeof ga&&(ga("send","pageview",t),alm_localize.ga_debug&&console.log("Pageview sent to Google Analytics (ga)")),"function"==typeof __gaTracker&&(__gaTracker("send","pageview",t),alm_localize.ga_debug&&console.log("Pageview sent to Google Analytics (__gaTracker)")),"function"==typeof almAnalytics&&window.almAnalytics(t)};e.start=function(t){if(!t)return!1;window.almInit(t)};e.almScroll=function(t){if(!t)return!1;window.scrollTo({top:t,behavior:"smooth"})};e.getOffset=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!t)return!1;var e=t.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,r=window.pageYOffset||document.documentElement.scrollTop;return{top:e.top+r,left:e.left+n}};e.render=function(t){if(!t)return!1}},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e,n){"use strict";var r=n(11);function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var a;if(n)a=n(e);else if(r.isURLSearchParams(e))a=e.toString();else{var i=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),i.push(o(e)+"="+o(t))})))})),a=i.join("&")}if(a){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+a}return t}},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";(function(e){var r=n(11),o=n(148),a={"Content-Type":"application/x-www-form-urlencoded"};function i(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var s,l={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==e&&"[object process]"===Object.prototype.toString.call(e))&&(s=n(100)),s),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(i(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(i(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(t){l.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){l.headers[t]=r.merge(a)})),t.exports=l}).call(this,n(147))},function(t,e,n){"use strict";var r=n(11),o=n(149),a=n(151),i=n(97),s=n(152),l=n(155),c=n(156),u=n(101);t.exports=function(t){return new Promise((function(e,n){var d=t.data,f=t.headers;r.isFormData(d)&&delete f["Content-Type"];var p=new XMLHttpRequest;if(t.auth){var g=t.auth.username||"",m=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";f.Authorization="Basic "+btoa(g+":"+m)}var h=s(t.baseURL,t.url);if(p.open(t.method.toUpperCase(),i(h,t.params,t.paramsSerializer),!0),p.timeout=t.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in p?l(p.getAllResponseHeaders()):null,a={data:t.responseType&&"text"!==t.responseType?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:t,request:p};o(e,n,a),p=null}},p.onabort=function(){p&&(n(u("Request aborted",t,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(u("Network Error",t,null,p)),p=null},p.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(u(e,t,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var v=(t.withCredentials||c(h))&&t.xsrfCookieName?a.read(t.xsrfCookieName):void 0;v&&(f[t.xsrfHeaderName]=v)}if("setRequestHeader"in p&&r.forEach(f,(function(t,e){void 0===d&&"content-type"===e.toLowerCase()?delete f[e]:p.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(p.withCredentials=!!t.withCredentials),t.responseType)try{p.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&p.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){p&&(p.abort(),n(t),p=null)})),d||(d=null),p.send(d)}))}},function(t,e,n){"use strict";var r=n(150);t.exports=function(t,e,n,o,a){var i=new Error(t);return r(i,e,n,o,a)}},function(t,e,n){"use strict";var r=n(11);t.exports=function(t,e){e=e||{};var n={},o=["url","method","data"],a=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function l(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function c(o){r.isUndefined(e[o])?r.isUndefined(t[o])||(n[o]=l(void 0,t[o])):n[o]=l(t[o],e[o])}r.forEach(o,(function(t){r.isUndefined(e[t])||(n[t]=l(void 0,e[t]))})),r.forEach(a,c),r.forEach(i,(function(o){r.isUndefined(e[o])?r.isUndefined(t[o])||(n[o]=l(void 0,t[o])):n[o]=l(void 0,e[o])})),r.forEach(s,(function(r){r in e?n[r]=l(t[r],e[r]):r in t&&(n[r]=l(void 0,t[r]))}));var u=o.concat(a).concat(i).concat(s),d=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===u.indexOf(t)}));return r.forEach(d,c),n}},function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(163),a=(r=o)&&r.__esModule?r:{default:r};e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"fade";if(!t||!e)return!1;for(var r=0;r<e.length;r++){var o=e[r];(0,a.default)(t,o,n)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!t)return!1;var e=["#text","#comment"],n=t.filter((function(t){return-1===e.indexOf(t.nodeName.toLowerCase())}));return n}},function(t,e,n){"use strict";function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||!t.localize||"true"===t.nested)return!1;var n=0,r=0,a=0,i=0,s="true"===t.addons.preloaded,l=!!t.addons.paging,c=t.orginal_posts_per_page;switch(e){case"nextpage":a=n=parseInt(t.localize.page),r=parseInt(t.localize.total_posts),i=parseInt(r),o(t.resultsText,n,r,a,i);break;case"woocommerce":break;default:n=parseInt(t.page)+1,r=Math.ceil(t.localize.total_posts/c),a=parseInt(t.localize.post_count),i=parseInt(t.localize.total_posts),s&&(n=l?t.page+1:n+1),o(t.resultsText,n,r,a,i)}}Object.defineProperty(e,"__esModule",{value:!0}),e.almResultsText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||"true"===t.nested)return!1;var n="nextpage"===e||"woocommerce"===e?e:"standard";r(t,n)},e.almGetResultsText=r,e.almInitResultsText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||!t.localize||"true"===t.nested)return!1;var n=0,r=Math.ceil(t.localize.total_posts/t.orginal_posts_per_page),a=parseInt(t.localize.post_count),i=parseInt(t.localize.total_posts);switch(e){case"nextpage":n=t.addons.nextpage_startpage,a=n,r=i,o(t.resultsText,n,i,a,i);break;case"preloaded":n=t.addons.paging&&t.addons.seo?parseInt(t.start_page)+1:parseInt(t.page)+1,o(t.resultsText,n,r,a,i);break;case"woocommerce":break;default:console.log("No results to set.")}};var o=function(t,e,n,r,o){t.forEach((function(t){var a=(n=parseInt(n))>0?alm_localize.results_text:alm_localize.no_results_text;n>0?(a=(a=(a=(a=(a=(a=a.replace("{num}",'<span class="alm-results-num">'+e+"</span>")).replace("{page}",'<span class="alm-results-page">'+e+"</span>")).replace("{total}",'<span class="alm-results-total">'+n+"</span>")).replace("{pages}",'<span class="alm-results-pages">'+n+"</span>")).replace("{post_count}",'<span class="alm-results-post_count">'+r+"</span>")).replace("{total_posts}",'<span class="alm-results-total_posts">'+o+"</span>"),t.innerHTML=a):t.innerHTML=a}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tableOfContents=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.localize&&t.localize.post_count?parseInt(t.localize.post_count):0;if(0==r&&!t.addons.single_post)return!1;if(t&&t.tableofcontents&&t.transition_container&&"masonry"!==t.transition){var o=t.tableofcontents.dataset.offset?parseInt(t.tableofcontents.dataset.offset):30,a=t.start_page?parseInt(t.start_page):0,i=t.addons.filters_startpage?parseInt(t.addons.filters_startpage):0,l=t.addons.nextpage_startpage?parseInt(t.addons.nextpage_startpage):0,c=parseInt(t.page),u="true"===t.addons.preloaded;if(t.addons.paging||t.addons.nextpage)return!1;e?setTimeout((function(){if(t.addons.seo&&a>1||t.addons.filters&&i>1||t.addons.nextpage&&l>1){if(t.addons.seo&&a>1)for(var e=0;e<a;e++)s(t,e,o);if(t.addons.filters&&i>1)for(var r=0;r<i;r++)s(t,r,o);if(t.addons.nextpage&&l>1)for(var d=0;d<l;d++)s(t,d,o)}else!n&&u&&(c+=1),s(t,c,o)}),100):(u&&(t.addons.seo&&a>0||t.addons.filters&&i>0?c=c:c+=1),s(t,c,o))}},e.clearTOC=function(){var t=document.querySelector(".alm-toc");t&&(t.innerHTML="")};var r,o=n(95),a=n(49),i=(r=a)&&r.__esModule?r:{default:r};function s(t,e,n){if(!t.tableofcontents)return!1;var r=document.createElement("button");r.type="button",e=parseInt(e)+1,r.innerHTML=function(t,e){var n=e;if(t.addons.single_post){var r=e-1,o=void 0;if(t.addons.single_post_target){t.init?r=r:r+=1;var a=document.querySelectorAll(".alm-reveal.alm-single-post");a&&(o=a[r])}else o=document.querySelector(".alm-reveal.alm-single-post[data-page="+(e-1)+"]");n=o?o.dataset.title:n}var i="almTOCLabel_"+t.id;"function"==typeof window[i]&&(n=window[i](e,n));return n}(t,e),r.dataset.page=t.addons.single_post_target&&t.init?e-1:e,t.tableofcontents.appendChild(r),r.addEventListener("click",(function(e){var r=this.dataset.page,a=document.querySelector(".alm-reveal:nth-child("+r+")")||document.querySelector(".alm-nextpage:nth-child("+r+")");if(t.addons.single_post_target&&(a=document.querySelector('.alm-reveal.alm-single-post[data-page="'+r+'"]')),!a)return!1;var s="function"==typeof o.getOffset?(0,o.getOffset)(a).top:a.offsetTop;(0,o.almScroll)(s-n),setTimeout((function(){(0,i.default)(t,a,r,!1)}),1e3)}))}},function(t,e,n){"use strict";function r(t,e,n,r,o){return e.classList.add(r),e.dataset.page=o,"default"===t.addons.seo_permalink?e.dataset.url=o>1?t.canonical_url+n+"&paged="+o:t.canonical_url+n:e.dataset.url=o>1?t.canonical_url+t.addons.seo_leading_slash+"page/"+o+t.addons.seo_trailing_slash+n:t.canonical_url+n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.createMasonrySEOPage=function(t,e){if(!t.addons.seo)return e;var n=window.location.search,o=t.page+1;return o="true"===t.addons.preloaded?o+1:o,e=r(t,e,n,"alm-seo",o)},e.createMasonrySEOPages=function(t,e){if(!t.addons.seo)return e;var n=1,o=t.page,a=window.location.search;if(t.start_page>1){for(var i=parseInt(t.posts_per_page),s=[],l=0;l<e.length;l+=i)s.push(e.slice(l,i+l));for(var c=0;c<s.length;c++){var u=c>0?c*i:0;n=c+1,e[u]&&(e[u]=r(t,e[u],a,"alm-seo",n))}}else n=o,e[0]=r(t,e[0],a,"alm-seo",n);return e},e.createSEOAttributes=function(t,e,n,r,o){e.setAttribute("class","alm-reveal"+r+t.tcc),e.dataset.page=o,"default"===t.addons.seo_permalink?e.dataset.url=o>1?t.canonical_url+n+"&paged="+o:t.canonical_url+n:e.dataset.url=o>1?t.canonical_url+t.addons.seo_leading_slash+"page/"+o+t.addons.seo_trailing_slash+n:t.canonical_url+n;return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(181)),o=a(n(49));function a(t){return t&&t.__esModule?t:{default:t}}function i(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,n){return function r(o,a){try{var i=e[o](a),s=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(s).then((function(t){r("next",t)}),(function(t){r("throw",t)}));t(s)}("next")}))}}e.default=function(t,e,n,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window.location,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"";return new Promise((function(c){var u=e.length,d=0,f=1;!function p(){f<=u?i(regeneratorRuntime.mark((function o(){return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return e[d].style.opacity=0,1==f&&(e[d].classList.add(l),e[d].dataset.url=s,e[d].dataset.page=n.page+1,e[d].dataset.pageTitle=a),o.next=4,(0,r.default)(t,e[d],n.ua);case 4:f++,d++,p();case 7:case"end":return o.stop()}}),o,this)})))().catch((function(t){console.log("There was an error loading the items")})):(setTimeout((function(){e.map((function(t){t.style.opacity=1})),e[0]&&(0,o.default)(n,e[0],null,!1)}),50),c(!0))}()}))}},function(t,e,n){t.exports=!n(8)&&!n(2)((function(){return 7!=Object.defineProperty(n(69)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(1),o=n(7),a=n(31),i=n(70),s=n(9).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=a?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:i.f(t)})}},function(t,e,n){var r=n(14),o=n(16),a=n(52)(!1),i=n(71)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),l=0,c=[];for(n in s)n!=i&&r(s,n)&&c.push(n);for(;e.length>l;)r(s,n=e[l++])&&(~a(c,n)||c.push(n));return c}},function(t,e,n){var r=n(9),o=n(3),a=n(32);t.exports=n(8)?Object.defineProperties:function(t,e){o(t);for(var n,i=a(e),s=i.length,l=0;s>l;)r.f(t,n=i[l++],e[n]);return t}},function(t,e,n){var r=n(16),o=n(35).f,a={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return i&&"[object Window]"==a.call(t)?function(t){try{return o(t)}catch(t){return i.slice()}}(t):o(r(t))}},function(t,e,n){"use strict";var r=n(8),o=n(32),a=n(53),i=n(46),s=n(10),l=n(45),c=Object.assign;t.exports=!c||n(2)((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r}))?function(t,e){for(var n=s(t),c=arguments.length,u=1,d=a.f,f=i.f;c>u;)for(var p,g=l(arguments[u++]),m=d?o(g).concat(d(g)):o(g),h=m.length,v=0;h>v;)p=m[v++],r&&!f.call(g,p)||(n[p]=g[p]);return n}:c},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){"use strict";var r=n(19),o=n(4),a=n(118),i=[].slice,s={},l=function(t,e,n){if(!(e in s)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";s[e]=Function("F,a","return new F("+r.join(",")+")")}return s[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=i.call(arguments,1),s=function(){var r=n.concat(i.call(arguments));return this instanceof s?l(e,r.length,r):a(e,r,t)};return o(e.prototype)&&(s.prototype=e.prototype),s}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(1).parseInt,o=n(40).trim,a=n(75),i=/^[-+]?0[xX]/;t.exports=8!==r(a+"08")||22!==r(a+"0x16")?function(t,e){var n=o(String(t),3);return r(n,e>>>0||(i.test(n)?16:10))}:r},function(t,e,n){var r=n(1).parseFloat,o=n(40).trim;t.exports=1/r(n(75)+"-0")!=-1/0?function(t){var e=o(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},function(t,e,n){var r=n(24);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},function(t,e,n){var r=n(4),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){"use strict";var r=n(34),o=n(29),a=n(39),i={};n(15)(i,n(5)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(i,{next:o(1,n)}),a(t,e+" Iterator")}},function(t,e,n){var r=n(3);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var a=t.return;throw void 0!==a&&r(a.call(t)),e}}},function(t,e,n){var r=n(277);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var r=n(19),o=n(10),a=n(45),i=n(6);t.exports=function(t,e,n,s,l){r(e);var c=o(t),u=a(c),d=i(c.length),f=l?d-1:0,p=l?-1:1;if(n<2)for(;;){if(f in u){s=u[f],f+=p;break}if(f+=p,l?f<0:d<=f)throw TypeError("Reduce of empty array with no initial value")}for(;l?f>=0:d>f;f+=p)f in u&&(s=e(s,u[f],f,c));return s}},function(t,e,n){"use strict";var r=n(10),o=n(33),a=n(6);t.exports=[].copyWithin||function(t,e){var n=r(this),i=a(n.length),s=o(t,i),l=o(e,i),c=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===c?i:o(c,i))-l,i-s),d=1;for(l<s&&s<l+u&&(d=-1,l+=u-1,s+=u-1);u-- >0;)l in n?n[s]=n[l]:delete n[s],s+=d,l+=d;return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var r=n(90);n(0)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(t,e,n){n(8)&&"g"!=/./g.flags&&n(9).f(RegExp.prototype,"flags",{configurable:!0,get:n(56)})},function(t,e,n){"use strict";var r,o,a,i,s=n(31),l=n(1),c=n(18),u=n(47),d=n(0),f=n(4),p=n(19),g=n(43),m=n(59),h=n(48),v=n(92).set,_=n(297)(),y=n(133),b=n(298),w=n(60),x=n(134),S=l.TypeError,A=l.process,j=A&&A.versions,P=j&&j.v8||"",E=l.Promise,L="process"==u(A),O=function(){},M=o=y.f,T=!!function(){try{var t=E.resolve(1),e=(t.constructor={})[n(5)("species")]=function(t){t(O,O)};return(L||"function"==typeof PromiseRejectionEvent)&&t.then(O)instanceof e&&0!==P.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),I=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},C=function(t,e){if(!t._n){t._n=!0;var n=t._c;_((function(){for(var r=t._v,o=1==t._s,a=0,i=function(e){var n,a,i,s=o?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(o||(2==t._h&&k(t),t._h=1),!0===s?n=r:(u&&u.enter(),n=s(r),u&&(u.exit(),i=!0)),n===e.promise?c(S("Promise-chain cycle")):(a=I(n))?a.call(n,l,c):l(n)):c(r)}catch(t){u&&!i&&u.exit(),c(t)}};n.length>a;)i(n[a++]);t._c=[],t._n=!1,e&&!t._h&&N(t)}))}},N=function(t){v.call(l,(function(){var e,n,r,o=t._v,a=F(t);if(a&&(e=b((function(){L?A.emit("unhandledRejection",o,t):(n=l.onunhandledrejection)?n({promise:t,reason:o}):(r=l.console)&&r.error&&r.error("Unhandled promise rejection",o)})),t._h=L||F(t)?2:1),t._a=void 0,a&&e.e)throw e.v}))},F=function(t){return 1!==t._h&&0===(t._a||t._c).length},k=function(t){v.call(l,(function(){var e;L?A.emit("rejectionHandled",t):(e=l.onrejectionhandled)&&e({promise:t,reason:t._v})}))},R=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),C(e,!0))},q=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw S("Promise can't be resolved itself");(e=I(t))?_((function(){var r={_w:n,_d:!1};try{e.call(t,c(q,r,1),c(R,r,1))}catch(t){R.call(r,t)}})):(n._v=t,n._s=1,C(n,!1))}catch(t){R.call({_w:n,_d:!1},t)}}};T||(E=function(t){g(this,E,"Promise","_h"),p(t),r.call(this);try{t(c(q,this,1),c(R,this,1))}catch(t){R.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(44)(E.prototype,{then:function(t,e){var n=M(h(this,E));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=L?A.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&C(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),a=function(){var t=new r;this.promise=t,this.resolve=c(q,t,1),this.reject=c(R,t,1)},y.f=M=function(t){return t===E||t===i?new a(t):o(t)}),d(d.G+d.W+d.F*!T,{Promise:E}),n(39)(E,"Promise"),n(42)("Promise"),i=n(7).Promise,d(d.S+d.F*!T,"Promise",{reject:function(t){var e=M(this);return(0,e.reject)(t),e.promise}}),d(d.S+d.F*(s||!T),"Promise",{resolve:function(t){return x(s&&this===i?E:this,t)}}),d(d.S+d.F*!(T&&n(55)((function(t){E.all(t).catch(O)}))),"Promise",{all:function(t){var e=this,n=M(e),r=n.resolve,o=n.reject,a=b((function(){var n=[],a=0,i=1;m(t,!1,(function(t){var s=a++,l=!1;n.push(void 0),i++,e.resolve(t).then((function(t){l||(l=!0,n[s]=t,--i||r(n))}),o)})),--i||r(n)}));return a.e&&o(a.v),n.promise},race:function(t){var e=this,n=M(e),r=n.reject,o=b((function(){m(t,!1,(function(t){e.resolve(t).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},function(t,e,n){"use strict";var r=n(19);function o(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new o(t)}},function(t,e,n){var r=n(3),o=n(4),a=n(133);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=a.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(9).f,o=n(34),a=n(44),i=n(18),s=n(43),l=n(59),c=n(81),u=n(129),d=n(42),f=n(8),p=n(28).fastKey,g=n(38),m=f?"_s":"size",h=function(t,e){var n,r=p(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,c){var u=t((function(t,r){s(t,u,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[m]=0,null!=r&&l(r,n,t[c],t)}));return a(u.prototype,{clear:function(){for(var t=g(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[m]=0},delete:function(t){var n=g(this,e),r=h(n,t);if(r){var o=r.n,a=r.p;delete n._i[r.i],r.r=!0,a&&(a.n=o),o&&(o.p=a),n._f==r&&(n._f=o),n._l==r&&(n._l=a),n[m]--}return!!r},forEach:function(t){g(this,e);for(var n,r=i(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!h(g(this,e),t)}}),f&&r(u.prototype,"size",{get:function(){return g(this,e)[m]}}),u},def:function(t,e,n){var r,o,a=h(t,e);return a?a.v=n:(t._l=a={i:o=p(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=a),r&&(r.n=a),t[m]++,"F"!==o&&(t._i[o]=a)),t},getEntry:h,setStrong:function(t,e,n){c(t,e,(function(t,n){this._t=g(t,e),this._k=n,this._l=void 0}),(function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?u(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,u(1))}),n?"entries":"values",!n,!0),d(e)}}},function(t,e,n){"use strict";var r=n(44),o=n(28).getWeak,a=n(3),i=n(4),s=n(43),l=n(59),c=n(23),u=n(14),d=n(38),f=c(5),p=c(6),g=0,m=function(t){return t._l||(t._l=new h)},h=function(){this.a=[]},v=function(t,e){return f(t.a,(function(t){return t[0]===e}))};h.prototype={get:function(t){var e=v(this,t);if(e)return e[1]},has:function(t){return!!v(this,t)},set:function(t,e){var n=v(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=p(this.a,(function(e){return e[0]===t}));return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,a){var c=t((function(t,r){s(t,c,e,"_i"),t._t=e,t._i=g++,t._l=void 0,null!=r&&l(r,n,t[a],t)}));return r(c.prototype,{delete:function(t){if(!i(t))return!1;var n=o(t);return!0===n?m(d(this,e)).delete(t):n&&u(n,this._i)&&delete n[this._i]},has:function(t){if(!i(t))return!1;var n=o(t);return!0===n?m(d(this,e)).has(t):n&&u(n,this._i)}}),c},def:function(t,e,n){var r=o(a(e),!0);return!0===r?m(t).set(e,n):r[t._i]=n,t},ufstore:m}},function(t,e,n){var r=n(20),o=n(6);t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=o(e);if(e!==n)throw RangeError("Wrong length!");return n}},function(t,e,n){var r=n(35),o=n(53),a=n(3),i=n(1).Reflect;t.exports=i&&i.ownKeys||function(t){var e=r.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(6),o=n(77),a=n(25);t.exports=function(t,e,n,i){var s=String(a(t)),l=s.length,c=void 0===n?" ":String(n),u=r(e);if(u<=l||""==c)return s;var d=u-l,f=o.call(c,Math.ceil(d/c.length));return f.length>d&&(f=f.slice(0,d)),i?f+s:s+f}},function(t,e,n){var r=n(8),o=n(32),a=n(16),i=n(46).f;t.exports=function(t){return function(e){for(var n,s=a(e),l=o(s),c=l.length,u=0,d=[];c>u;)n=l[u++],r&&!i.call(s,n)||d.push(t?[n,s[n]]:s[n]);return d}}},function(t,e,n){"use strict";var r=n(94),o=Object.prototype.hasOwnProperty,a=Array.isArray,i=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),s=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:s,assign:function(t,e){return Object.keys(e).reduce((function(t,n){return t[n]=e[n],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var o=e[r],i=o.obj[o.prop],s=Object.keys(i),l=0;l<s.length;++l){var c=s[l],u=i[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(e.push({obj:i,prop:c}),n.push(u))}return function(t){for(;t.length>1;){var e=t.pop(),n=e.obj[e.prop];if(a(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);e.obj[e.prop]=r}}}(e),t},decode:function(t,e,n){var r=t.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(t){return r}},encode:function(t,e,n,o,a){if(0===t.length)return t;var s=t;if("symbol"==typeof t?s=Symbol.prototype.toString.call(t):"string"!=typeof t&&(s=String(t)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var l="",c=0;c<s.length;++c){var u=s.charCodeAt(c);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||a===r.RFC1738&&(40===u||41===u)?l+=s.charAt(c):u<128?l+=i[u]:u<2048?l+=i[192|u>>6]+i[128|63&u]:u<55296||u>=57344?l+=i[224|u>>12]+i[128|u>>6&63]+i[128|63&u]:(c+=1,u=65536+((1023&u)<<10|1023&s.charCodeAt(c)),l+=i[240|u>>18]+i[128|u>>12&63]+i[128|u>>6&63]+i[128|63&u])}return l},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(a(t)){for(var n=[],r=0;r<t.length;r+=1)n.push(e(t[r]));return n}return e(t)},merge:function t(e,n,r){if(!n)return e;if("object"!=typeof n){if(a(e))e.push(n);else{if(!e||"object"!=typeof e)return[e,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(e[n]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(n);var i=e;return a(e)&&!a(n)&&(i=s(e,r)),a(e)&&a(n)?(n.forEach((function(n,a){if(o.call(e,a)){var i=e[a];i&&"object"==typeof i&&n&&"object"==typeof n?e[a]=t(i,n,r):e.push(n)}else e[a]=n})),e):Object.keys(n).reduce((function(e,a){var i=n[a];return o.call(e,a)?e[a]=t(e[a],i,r):e[a]=i,e}),i)}}},function(t,e,n){"use strict";var r=n(11),o=n(96),a=n(143),i=n(102);function s(t){var e=new a(t),n=o(a.prototype.request,e);return r.extend(n,a.prototype,e),r.extend(n,e),n}var l=s(n(99));l.Axios=a,l.create=function(t){return s(i(l.defaults,t))},l.Cancel=n(103),l.CancelToken=n(157),l.isCancel=n(98),l.all=function(t){return Promise.all(t)},l.spread=n(158),l.isAxiosError=n(159),t.exports=l,t.exports.default=l},function(t,e,n){"use strict";var r=n(11),o=n(97),a=n(144),i=n(145),s=n(102);function l(t){this.defaults=t,this.interceptors={request:new a,response:new a}}l.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[i,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},l.prototype.getUri=function(t){return t=s(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){l.prototype[t]=function(e,n){return this.request(s(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){l.prototype[t]=function(e,n,r){return this.request(s(r||{},{method:t,url:e,data:n}))}})),t.exports=l},function(t,e,n){"use strict";var r=n(11);function o(){this.handlers=[]}o.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},function(t,e,n){"use strict";var r=n(11),o=n(146),a=n(98),i=n(99);function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return s(t),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||i.adapter)(t).then((function(e){return s(t),e.data=o(e.data,e.headers,t.transformResponse),e}),(function(e){return a(e)||(s(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,n){"use strict";var r=n(11);t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},function(t,e){var n,r,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(t){n=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(t){r=i}}();var l,c=[],u=!1,d=-1;function f(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&p())}function p(){if(!u){var t=s(f);u=!0;for(var e=c.length;e;){for(l=c,c=[];++d<e;)l&&l[d].run();d=-1,e=c.length}l=null,u=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function g(t,e){this.fun=t,this.array=e}function m(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new g(t,e)),1!==c.length||u||s(p)},g.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){"use strict";var r=n(11);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},function(t,e,n){"use strict";var r=n(101);t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},function(t,e,n){"use strict";var r=n(11);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,a,i){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(a)&&s.push("domain="+a),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";var r=n(153),o=n(154);t.exports=function(t,e){return t&&!r(e)?o(t,e):e}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(11),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,a,i={};return t?(r.forEach(t.split("\n"),(function(t){if(a=t.indexOf(":"),e=r.trim(t.substr(0,a)).toLowerCase(),n=r.trim(t.substr(a+1)),e){if(i[e]&&o.indexOf(e)>=0)return;i[e]="set-cookie"===e?(i[e]?i[e]:[]).concat([n]):i[e]?i[e]+", "+n:n}})),i):i}},function(t,e,n){"use strict";var r=n(11);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r=n(103);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},function(t,e,n){!function(){"use strict";t.exports={polyfill:function(){var t=window,e=document;if(!("scrollBehavior"in e.documentElement.style)||!0===t.__forceSmoothScrollPolyfill__){var n,r=t.HTMLElement||t.Element,o={scroll:t.scroll||t.scrollTo,scrollBy:t.scrollBy,elementScroll:r.prototype.scroll||s,scrollIntoView:r.prototype.scrollIntoView},a=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now,i=(n=t.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);t.scroll=t.scrollTo=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?g.call(t,e.body,void 0!==arguments[0].left?~~arguments[0].left:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:t.scrollY||t.pageYOffset):o.scroll.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:t.scrollY||t.pageYOffset))},t.scrollBy=function(){void 0!==arguments[0]&&(l(arguments[0])?o.scrollBy.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):g.call(t,e.body,~~arguments[0].left+(t.scrollX||t.pageXOffset),~~arguments[0].top+(t.scrollY||t.pageYOffset)))},r.prototype.scroll=r.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==l(arguments[0])){var t=arguments[0].left,e=arguments[0].top;g.call(this,this,void 0===t?this.scrollLeft:~~t,void 0===e?this.scrollTop:~~e)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},r.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},r.prototype.scrollIntoView=function(){if(!0!==l(arguments[0])){var n=f(this),r=n.getBoundingClientRect(),a=this.getBoundingClientRect();n!==e.body?(g.call(this,n,n.scrollLeft+a.left-r.left,n.scrollTop+a.top-r.top),"fixed"!==t.getComputedStyle(n).position&&t.scrollBy({left:r.left,top:r.top,behavior:"smooth"})):t.scrollBy({left:a.left,top:a.top,behavior:"smooth"})}else o.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function s(t,e){this.scrollLeft=t,this.scrollTop=e}function l(t){if(null===t||"object"!=typeof t||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"==typeof t&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function c(t,e){return"Y"===e?t.clientHeight+i<t.scrollHeight:"X"===e?t.clientWidth+i<t.scrollWidth:void 0}function u(e,n){var r=t.getComputedStyle(e,null)["overflow"+n];return"auto"===r||"scroll"===r}function d(t){var e=c(t,"Y")&&u(t,"Y"),n=c(t,"X")&&u(t,"X");return e||n}function f(t){for(;t!==e.body&&!1===d(t);)t=t.parentNode||t.host;return t}function p(e){var n,r,o,i,s=(a()-e.startTime)/468;i=s=s>1?1:s,n=.5*(1-Math.cos(Math.PI*i)),r=e.startX+(e.x-e.startX)*n,o=e.startY+(e.y-e.startY)*n,e.method.call(e.scrollable,r,o),r===e.x&&o===e.y||t.requestAnimationFrame(p.bind(t,e))}function g(n,r,i){var l,c,u,d,f=a();n===e.body?(l=t,c=t.scrollX||t.pageXOffset,u=t.scrollY||t.pageYOffset,d=o.scroll):(l=n,c=n.scrollLeft,u=n.scrollTop,d=s),p({scrollable:l,method:d,startTime:f,startX:c,startY:u,x:r,y:i})}}}}()},function(t,e,n){"use strict";var r,o,a,i;history,Object.entries||(Object.entries=function(t){for(var e=Object.keys(t),n=e.length,r=new Array(n);n--;)r[n]=[e[n],t[e[n]]];return r}),void 0===Array.isArray&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),Array.from||(Array.from=(r=Object.prototype.toString,o=function(t){return"function"==typeof t||"[object Function]"===r.call(t)},a=Math.pow(2,53)-1,i=function(t){var e=function(t){var e=Number(t);return isNaN(e)?0:0!==e&&isFinite(e)?(e>0?1:-1)*Math.floor(Math.abs(e)):e}(t);return Math.min(Math.max(e,0),a)},function(t){var e=this,n=Object(t);if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r,a=arguments.length>1?arguments[1]:void 0;if(void 0!==a){if(!o(a))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(r=arguments[2])}for(var s,l=i(n.length),c=o(e)?Object(new e(l)):new Array(l),u=0;u<l;)s=n[u],c[u]=a?void 0===r?a(s,u):a.call(r,s,u):s,u+=1;return c.length=l,c})),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(t,e){e=e||window;for(var n=0;n<this.length;n++)t.call(e,this[n],n,this)}),[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){e||(e=window.location.href),t=t.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=["#text","#comment"];e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"fade";if(!t||!e)return!1;-1===r.indexOf(e.nodeName.toLowerCase())&&("masonry"===n&&(e.style.opacity=0),t.appendChild(e))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!t)return!1;var e=document.createElement("tbody");e.innerHTML=t;var n=[e];return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(64);e.default=function(t){if(!t)return!1;var e="",n=".html",o=t.addons.cache_path+t.addons.cache_id;if(t.init&&t.addons.seo&&t.isPaged)e=o+"/page-1-"+t.start_page+n;else if(t.addons.filters){var a=(0,r.parseQuerystring)(o);if(t.init&&t.isPaged)e=a+"/page-1-"+t.addons.filters_startpage+n;else{var i=t.page+1;"true"===t.addons.preloaded&&(i=t.page+2),e=a+"/page-"+i+n}}else if(t.addons.nextpage){var s=void 0;t.addons.paging?s=parseInt(t.page)+1:(s=parseInt(t.page)+2,t.isPaged&&(s=parseInt(t.page)+parseInt(t.addons.nextpage_startpage)+1)),e=o+"/page-"+s+n}else e=t.addons.single_post?o+"/"+t.addons.single_post_id+n:"true"===t.addons.comments&&"true"===t.addons.preloaded?o+"/page-"+(t.page+2)+n:o+"/page-"+(t.page+1)+n;return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){for(var e=window.location.search.substring(1).split("&"),n=0;n<e.length;n++){var r=e[n].split("=");if(decodeURIComponent(r[0])==t)return decodeURIComponent(r[1])}return!1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.almGetAjaxParams=function(t,e,n){var r={id:t.id,post_id:t.post_id,slug:t.slug,canonical_url:encodeURIComponent(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};t.theme_repeater&&(r.theme_repeater=t.theme_repeater);t.addons.filters&&(r.filters=t.addons.filters,r.filters_startpage=t.addons.filters_startpage);t.addons.paging&&(r.paging=t.addons.paging);t.addons.preloaded&&(r.preloaded=t.addons.preloaded,r.preloaded_amount=t.addons.preloaded_amount);"true"===t.addons.cache&&(r.cache_id=t.addons.cache_id,r.cache_logged_in=t.addons.cache_logged_in);t.acf_array&&(r.acf=t.acf_array);t.term_query_array&&(r.term_query=t.term_query_array);t.cta_array&&(r.cta=t.cta_array);t.comments_array&&(r.comments=t.comments_array);t.nextpage_array&&(r.nextpage=t.nextpage_array);t.single_post_array&&(r.single_post=t.single_post_array);t.users_array&&(r.users=t.users_array);t.listing.dataset.lang&&(r.lang=t.listing.dataset.lang);t.listing.dataset.stickyPosts&&(r.sticky_posts=t.listing.dataset.stickyPosts);t.listing.dataset.postFormat&&(r.post_format=t.listing.dataset.postFormat);t.listing.dataset.category&&(r.category=t.listing.dataset.category);t.listing.dataset.categoryAnd&&(r.category__and=t.listing.dataset.categoryAnd);t.listing.dataset.categoryNotIn&&(r.category__not_in=t.listing.dataset.categoryNotIn);t.listing.dataset.tag&&(r.tag=t.listing.dataset.tag);t.listing.dataset.tagAnd&&(r.tag__and=t.listing.dataset.tagAnd);t.listing.dataset.tagNotIn&&(r.tag__not_in=t.listing.dataset.tagNotIn);t.listing.dataset.taxonomy&&(r.taxonomy=t.listing.dataset.taxonomy);t.listing.dataset.taxonomyTerms&&(r.taxonomy_terms=t.listing.dataset.taxonomyTerms);t.listing.dataset.taxonomyOperator&&(r.taxonomy_operator=t.listing.dataset.taxonomyOperator);t.listing.dataset.taxonomyRelation&&(r.taxonomy_relation=t.listing.dataset.taxonomyRelation);t.listing.dataset.metaKey&&(r.meta_key=t.listing.dataset.metaKey);t.listing.dataset.metaValue&&(r.meta_value=t.listing.dataset.metaValue);t.listing.dataset.metaCompare&&(r.meta_compare=t.listing.dataset.metaCompare);t.listing.dataset.metaRelation&&(r.meta_relation=t.listing.dataset.metaRelation);t.listing.dataset.metaType&&(r.meta_type=t.listing.dataset.metaType);t.listing.dataset.author&&(r.author=t.listing.dataset.author);t.listing.dataset.year&&(r.year=t.listing.dataset.year);t.listing.dataset.month&&(r.month=t.listing.dataset.month);t.listing.dataset.day&&(r.day=t.listing.dataset.day);t.listing.dataset.order&&(r.order=t.listing.dataset.order);t.listing.dataset.orderby&&(r.orderby=t.listing.dataset.orderby);t.listing.dataset.postStatus&&(r.post_status=t.listing.dataset.postStatus);t.listing.dataset.postIn&&(r.post__in=t.listing.dataset.postIn);t.listing.dataset.postNotIn&&(r.post__not_in=t.listing.dataset.postNotIn);t.listing.dataset.exclude&&(r.exclude=t.listing.dataset.exclude);t.listing.dataset.search&&(r.search=t.listing.dataset.search);t.listing.dataset.s&&(r.search=t.listing.dataset.s);t.listing.dataset.customArgs&&(r.custom_args=escape(t.listing.dataset.customArgs));t.listing.dataset.vars&&(r.vars=escape(t.listing.dataset.vars));return r.action=e,r.query_type=n,r},e.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:encodeURIComponent(t.canonical_url),post_type:t.post_type,post_format:t.listing.dataset.postFormat,category:t.listing.dataset.category,category__not_in:t.listing.dataset.categoryNotIn,tag:t.listing.dataset.tag,tag__not_in:t.listing.dataset.tagNotIn,taxonomy:t.listing.dataset.taxonomy,taxonomy_terms:t.listing.dataset.taxonomyTerms,taxonomy_operator:t.listing.dataset.taxonomyOperator,taxonomy_relation:t.listing.dataset.taxonomyRelation,meta_key:t.listing.dataset.metaKey,meta_value:t.listing.dataset.metaValue,meta_compare:t.listing.dataset.metaCompare,meta_relation:t.listing.dataset.metaRelation,meta_type:t.listing.dataset.metaType,author:t.listing.dataset.author,year:t.listing.dataset.year,month:t.listing.dataset.month,day:t.listing.dataset.day,post_status:t.listing.dataset.postStatus,order:t.listing.dataset.order,orderby:t.listing.dataset.orderby,post__in:t.listing.dataset.postIn,post__not_in:t.listing.dataset.postNotIn,search:t.listing.dataset.search,s:t.listing.dataset.s,custom_args:t.listing.dataset.customArgs,vars:t.listing.dataset.vars,lang:t.lang,preloaded:t.addons.preloaded,preloaded_amount:t.addons.preloaded_amount,seo_start_page:t.start_page}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(106));e.default=function(t){return new Promise((function(e){var n="standard";t.addons.nextpage?(n="nextpage",t.addons.paging?t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+1):t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+parseInt(t.addons.nextpage_startpage)+1)):t.addons.woocommerce?(n="woocommerce",t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+1)):t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+1),"true"===t.addons.preloaded||t.addons.nextpage||t.addons.woocommerce||t.AjaxLoadMore.setLocalizedVar("total_posts",t.totalposts),t.AjaxLoadMore.setLocalizedVar("post_count",function(t){var e=parseInt(t.posts),n=parseInt(t.addons.preloaded_amount),r=e+n;return r=t.start_page>1?r-n:r,r=t.addons.filters_startpage>1?r-n:r,r=t.addons.single_post?r+1:r,r=t.addons.nextpage?r+1:r}(t)),r.almResultsText(t,n),e(!0)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(65);(r=o)&&r.__esModule;var a={init:function(t){if(!0===this.isScript(t))t.parentNode.replaceChild(this.clone(t),t);else{var e=0,n=t.childNodes;if(void 0===n){var r=(new DOMParser).parseFromString(t,"text/html");r&&(n=r.body.childNodes)}for(;e<n.length;)this.replace(n[e++])}return t},replace:function(t){if(!0===this.isScript(t))t.parentNode.replaceChild(this.clone(t),t);else for(var e=0,n=t.childNodes;e<n.length;)this.replace(n[e++]);return t},isScript:function(t){return"SCRIPT"===t.tagName},clone:function(t){var e=document.createElement("script");e.text=t.innerHTML;for(var n=t.attributes.length-1;n>=0;n--)e.setAttribute(t.attributes[n].name,t.attributes[n].value);return e}};e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){if(!t||!t.trigger)return!1;var e=t.trigger.querySelector("button"),n=e?e.dataset.url:"";return n||""}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=d(n(50)),o=d(n(104)),a=d(n(65)),i=d(n(66)),s=d(n(105)),l=n(64),c=n(108),u=d(n(49));function d(t){return t&&t.__esModule?t:{default:t}}var f=n(67);e.default=function t(e,n,d){return new Promise((function(p){var g=e.listing,m=e.html,h=e.masonry_selector,v=e.masonry_columnwidth,_=e.masonry_animation,y=e.masonry_horizontalorder,b=e.speed,w=e.masonry_init,x=(b+100)/1e3+"s",S="scale(0.5)",A="scale(1)";if("zoom-out"===_&&(S="translateY(-20px) scale(1.25)",A="translateY(0) scale(1)"),"slide-up"===_&&(S="translateY(50px)",A="translateY(0)"),"slide-down"===_&&(S="translateY(-50px)",A="translateY(0)"),"none"===_&&(S="translateY(0)",A="translateY(0)"),v?isNaN(v)||(v=parseInt(v)):v=h,y="true"===y,d)g.parentNode.style.opacity=0,t(e,!0,!1),p(!0);else if(w&&n)(0,i.default)(g,e.ua),f(g,(function(){var t={itemSelector:h,transitionDuration:x,columnWidth:v,horizontalOrder:y,hiddenStyle:{transform:S,opacity:0},visibleStyle:{transform:A,opacity:1}},n=window.alm_masonry_vars;n&&Object.keys(n).forEach((function(e){t[e]=n[e]}));var o=g.querySelectorAll(h);e.addons.filters&&(o=(0,l.createMasonryFiltersPages)(e,Array.prototype.slice.call(o))),e.addons.seo&&(o=(0,c.createMasonrySEOPages)(e,Array.prototype.slice.call(o))),setTimeout((function(){e.msnry=new Masonry(g,t),(0,r.default)(g.parentNode,125),p(!0)}),1)}));else{var j=(0,s.default)((0,a.default)(m,"text/html"));j&&((0,o.default)(e.listing,j,"masonry"),(0,i.default)(g,e.ua),f(g,(function(){e.msnry.appended(j),(0,u.default)(e,j,j.length,!1),e.addons.filters&&(0,l.createMasonryFiltersPage)(e,j[0]),e.addons.seo&&(0,c.createMasonrySEOPage)(e,j[0]),p(!0)})))}}))}},function(t,e,n){var r,o;"undefined"!=typeof window&&window,void 0===(o="function"==typeof(r=function(){"use strict";function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var n=this._events=this._events||{},r=n[t]=n[t]||[];return-1==r.indexOf(e)&&r.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var n=this._onceEvents=this._onceEvents||{};return(n[t]=n[t]||{})[e]=!0,this}},e.off=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){var r=n.indexOf(e);return-1!=r&&n.splice(r,1),this}},e.emitEvent=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){n=n.slice(0),e=e||[];for(var r=this._onceEvents&&this._onceEvents[t],o=0;o<n.length;o++){var a=n[o];r&&r[a]&&(this.off(t,a),delete r[a]),a.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t})?r.call(e,n,e,t):r)||(t.exports=o)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){o=!0,a=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw a}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=s(n(50)),a=s(n(68)),i=n(107);function s(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"filter";if(n.target){var o=document.querySelectorAll('.ajax-load-more-wrap[data-id="'+n.target+'"]');o.forEach((function(o){l(t,e,n,o,r)}))}else{var a=document.querySelectorAll(".ajax-load-more-wrap");a.forEach((function(o){l(t,e,n,o,r)}))}(0,i.clearTOC)()};var l=function(t,e,n,r,o){if("fade"===t||"masonry"===t){switch(o){case"filter":r.classList.add("alm-is-filtering"),(0,a.default)(r,e);break;case"tab":r.classList.add("alm-loading");var i=r.querySelector(".alm-listing");r.style.height=i.offsetHeight+"px",(0,a.default)(i,e)}setTimeout((function(){c(e,n,r,o)}),e)}else r.classList.add("alm-is-filtering"),c(e,n,r,o)},c=function(t,e,n,r){var o=n.querySelector(".alm-btn-wrap"),a=n.querySelectorAll(".alm-listing");[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(a)).forEach((function(t){t.innerHTML=""}));var i=o.querySelector(".alm-load-more-btn");i&&i.classList.remove("done");var s=o.querySelector(".alm-paging");s&&(s.style.opacity=0),e.preloadedAmount=0,u(t,e,n,r)},u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,e=arguments[1],n=arguments[2],a=arguments[3],i=n.querySelector(".alm-listing")||n.querySelector(".alm-comments");if(!i)return!1;switch(a){case"filter":var s=!0,l=!1,c=void 0;try{for(var u,d=Object.entries(e)[Symbol.iterator]();!(s=(u=d.next()).done);s=!0){var f=u.value,p=r(f,2),g=p[0],m=p[1];g=g.replace(/\W+/g,"-").replace(/([a-z\d])([A-Z])/g,"$1-$2").toLowerCase(),i.setAttribute("data-"+g,m)}}catch(t){l=!0,c=t}finally{try{!s&&d.return&&d.return()}finally{if(l)throw c}}(0,o.default)(n,t);break;case"tab":i.setAttribute("data-preloaded","false"),i.setAttribute("data-pause","false"),i.setAttribute("data-tab-template",e.tabTemplate)}var h="";switch(e.target?(h=document.querySelector('.ajax-load-more-wrap[data-id="'+e.target+'"]'))&&window.almInit(h):(h=document.querySelector(".ajax-load-more-wrap"))&&window.almInit(h),a){case"filter":"function"==typeof almFilterComplete&&almFilterComplete();break;case"tab":"function"==typeof almTabsComplete&&almTabsComplete()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(""===e)return!1;e=e.replace(/(<p><\/p>)+/g,""),t.innerHTML=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){if(t&&t.debug){var e={query:t.debug,localize:t.localize};console.log("ALM Debug:",e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){if(!t)return!1;var e=-1!==t.scroll_distance_orig.toString().indexOf("-"),n=t.scroll_distance_orig.toString().replace("-","").replace("%",""),r=t.window.innerHeight,o=Math.floor(r/100*parseInt(n));return parseInt(e?"-"+o:o)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.showPlaceholder=function(t){if(!t||!t.main||t.addons.paging)return!1;t.placeholder&&(t.placeholder.style.display="block",(0,r.default)(t.placeholder,75))},e.hidePlaceholder=function(t){if(!t||!t.main||t.addons.paging)return!1;t.placeholder&&((0,o.default)(t.placeholder,75),setTimeout((function(){t.placeholder.style.display="none"}),75))};var r=a(n(50)),o=a(n(68));function a(t){return t&&t.__esModule?t:{default:t}}},function(t,e,n){"use strict";function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n={html:"",meta:{postcount:1,totalposts:1,debug:"Single Posts Query"}};if(200===t.status&&t.data&&e){var r=document.createElement("div");r.innerHTML=t.data;var a=r.querySelector(e),i=window&&window.almSinglePostsCustomElements;i&&a.appendChild(o(r,i)),a?n.html=a.innerHTML:console.warn("Ajax Load More: Unable to find "+e+" element.")}return n}function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.createElement("div");if(n.classList.add("alm-custom-elements"),!t||!e)return n;e=Array.isArray(e)?e:[e];for(var r=0;r<e.length;r++){var o=t.querySelector(e[r]);o&&n.appendChild(o)}return n}Object.defineProperty(e,"__esModule",{value:!0}),e.singlePostHTML=r,e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createCacheFile=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"standard";if("true"!==t.addons.cache||!e||""===e)return!1;var r="single"===n?t.addons.single_post_id:"page-"+(t.page+1),o=new FormData;o.append("action","alm_cache_from_html"),o.append("security",alm_localize.alm_nonce),o.append("cache_id",t.addons.cache_id),o.append("cache_logged_in",t.addons.cache_logged_in),o.append("canonical_url",t.canonical_url),o.append("name",r),o.append("html",e.trim()),a.default.post(alm_localize.ajaxurl,o).then((function(e){console.log("Cache created for: "+t.canonical_url)}))},e.wooCache=function(t,e){if("true"!==t.addons.cache||!e||""===e)return!1;var n=new FormData;n.append("action","alm_cache_from_html"),n.append("security",alm_localize.alm_nonce),n.append("cache_id",t.addons.cache_id),n.append("cache_logged_in",t.addons.cache_logged_in),n.append("canonical_url",t.canonical_url),n.append("name","page-"+t.page),n.append("html",e.trim()),a.default.post(alm_localize.ajaxurl,n).then((function(e){console.log("Cache created for post: "+t.canonical_url)}))};var r,o=n(63),a=(r=o)&&r.__esModule?r:{default:r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wooInit=function(t){if(!t||!t.addons.woocommerce)return!1;t.button.dataset.page=t.addons.woocommerce_settings.paged+1;var e=t.addons.woocommerce_settings.paged_urls[t.addons.woocommerce_settings.paged];t.button.dataset.url=e||"";var n=document.querySelector(t.addons.woocommerce_settings.container);if(n){(function(t){if(!t)return 0;var e=document.querySelectorAll(t);return e?e.length:0})(t.addons.woocommerce_settings.container)>1&&console.warn("ALM WooCommerce: Multiple containers with the same classname or ID found. The WooCommerce add-on requires a single container to be defined. Get more information -> https://connekthq.com/plugins/ajax-load-more/docs/add-ons/woocommerce/"),n.setAttribute("aria-live","polite"),n.setAttribute("aria-atomic","true"),t.listing.removeAttribute("aria-live"),t.listing.removeAttribute("aria-atomic");var r=n.querySelector(t.addons.woocommerce_settings.products);r?(r.classList.add("alm-woocommerce"),r.dataset.url=t.addons.woocommerce_settings.paged_urls[t.addons.woocommerce_settings.paged-1],r.dataset.page=t.page,r.dataset.pageTitle=document.title):console.warn("ALM WooCommerce: Unable to locate products. Get more information -> https://connekthq.com/plugins/ajax-load-more/docs/add-ons/woocommerce/#alm_woocommerce_products"),t.addons.woocommerce_settings.paged>1&&function(t){if(t&&t.addons.woocommerce_settings.results_text){var e=document.querySelectorAll(t.addons.woocommerce_settings.results);if(e.length<1)return!1;var n=t.addons.woocommerce_settings.settings.previous_page_link,r=t.addons.woocommerce_settings.settings.previous_page_label,o=t.addons.woocommerce_settings.settings.previous_page_sep;e.forEach((function(t){n&&r&&(t.innerHTML=s(t,n,r,o))}))}}(t)}else console.warn("ALM WooCommerce: Unable to locate container element. Get more information -> https://connekthq.com/plugins/ajax-load-more/docs/add-ons/woocommerce/#alm_woocommerce_container")},e.woocommerce=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.title;if(!t||!e)return!1;return new Promise((function(r){var a=document.querySelector(e.addons.woocommerce_settings.container),s=t.querySelectorAll(e.addons.woocommerce_settings.products),l=e.addons.woocommerce_settings.paged_urls[e.page];a&&s&&l&&(s=Array.prototype.slice.call(s),i(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,o.default)(a,s,e,n,l,"alm-woocommerce");case 2:r(!0);case 3:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log(t,"There was an error with WooCommerce")})))}))},e.wooReset=function(){return new Promise((function(t){var e=window.location;r.default.get(e).then((function(e){if(200===e.status&&e.data){var n=document.createElement("div");n.innerHTML=e.data;var r=n.querySelector('.ajax-load-more-wrap .alm-listing[data-woo="true"]'),o=r?r.dataset.wooSettings:"";t(o)}else t(!1)})).catch((function(e){t(!1)}))}))},e.wooGetContent=function(t,e){var n={html:"",meta:{postcount:1,totalposts:e.localize.total_posts,debug:"WooCommerce Query"}};if(200===t.status&&t.data){var r=document.createElement("div");r.innerHTML=t.data;var o=r.querySelector("title").innerHTML;n.pageTitle=o;var a=r.querySelector(e.addons.woocommerce_settings.container);n.html=a?a.innerHTML:"",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments[1];if(t&&e&&e.addons.woocommerce_settings.results_text){var n=t.querySelector(e.addons.woocommerce_settings.results),r=e.addons.woocommerce_settings.settings.previous_page_link,o=e.addons.woocommerce_settings.settings.previous_page_label,a=e.addons.woocommerce_settings.settings.previous_page_sep;e.addons.woocommerce_settings.results_text&&e.addons.woocommerce_settings.results_text.forEach((function(t){t.innerHTML=r&&o?s(n,r,o,a):n.innerHTML}))}}(r,e)}return n};var r=a(n(63)),o=a(n(109));function a(t){return t&&t.__esModule?t:{default:t}}function i(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,n){return function r(o,a){try{var i=e[o](a),s=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(s).then((function(t){r("next",t)}),(function(t){r("throw",t)}));t(s)}("next")}))}}function s(t,e,n,r){var o=" "+r+' <a href="'+e+'">'+n+"</a>";return t.innerHTML+o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(66),a=(r=o)&&r.__esModule?r:{default:r};var i=n(67);e.default=function(t,e,n){return new Promise((function(r){i(e,(function(){e.style.transition="all 0.4s ease",t.appendChild(e),(0,a.default)(e,n),r(!0)}))}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.elementorInit=function(t){if(!t.addons.elementor||!t.addons.elementor_type||"posts"===!t.addons.elementor_type)return!1;var e=t.addons.elementor_element;if(e){t.button.dataset.page=t.addons.elementor_paged;var n=t.addons.elementor_next_page_url;t.button.dataset.url=n||"",e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),t.listing.removeAttribute("aria-live"),t.listing.removeAttribute("aria-atomic");var r=e.querySelector("."+t.addons.elementor_item_class);if(r&&(r.classList.add("alm-elementor"),r.dataset.url=window.location,r.dataset.page=t.addons.elementor_paged,r.dataset.pageTitle=document.title),t.addons.elementor_paged,t.addons.elementor_masonry){var o=void 0;setTimeout((function(){window.addEventListener("resize",(function(){clearTimeout(o),o=setTimeout((function(){s(t,"."+t.addons.elementor_container_class,"."+t.addons.elementor_item_class)}),100)}))}),250)}}},e.elementor=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.title;if(!t||!e)return!1;return new Promise((function(r){var o=e.addons.elementor_element.querySelector("."+e.addons.elementor_container_class),l=t.querySelectorAll("."+e.addons.elementor_item_class),c=e.addons.elementor_current_url;o&&l&&c?(l=Array.prototype.slice.call(l),i(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.default)(o,l,e,n,c,"alm-elementor");case 2:e.addons.elementor_masonry&&setTimeout((function(){s(e,"."+e.addons.elementor_container_class,"."+e.addons.elementor_item_class)}),125),r(!0);case 4:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log(t,"There was an error with Elementor")}))):r(!1)}))},e.elementorGetContent=function(t,e){var n={html:"",meta:{postcount:1,totalposts:e.localize.total_posts,debug:"Elementor Query"}};if(200===t.status&&t.data){var r=document.createElement("div");r.innerHTML=t.data;var o=r.querySelector("title").innerHTML;n.pageTitle=o;var a=r.querySelector(e.addons.elementor_target+" ."+e.addons.elementor_container_class);n.html=a?a.innerHTML:"",e.addons.elementor_current_url=e.addons.elementor_next_page_url,e.addons.elementor_next_page_url=(i=r,s=e.addons.elementor_pagination_class,(c=i.querySelector(s))?l(c):"")}var i,s,c;return n},e.elementorCreateParams=function(t){t.addons.elementor_type="posts",t.addons.elementor_settings=JSON.parse(t.listing.dataset.elementorSettings),t.addons.elementor_target=t.addons.elementor_settings.target,t.addons.elementor_element=t.addons.elementor_settings.target?document.querySelector(".elementor-widget-wrap "+t.addons.elementor_settings.target):"",t.addons.elementor_widget=function(t){if(!t)return!1;return t.classList.contains("elementor-wc-products")?"woocommerce":"posts"}(t.addons.elementor_element),(t=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"posts";return t.addons.elementor_container_class="woocommerce"===e?t.addons.elementor_settings.woo_container_class:t.addons.elementor_settings.posts_container_class,t.addons.elementor_item_class="woocommerce"===e?t.addons.elementor_settings.woo_item_class:t.addons.elementor_settings.posts_item_class,t.addons.elementor_pagination_class="woocommerce"===e?"."+t.addons.elementor_settings.woo_pagination_class:"."+t.addons.elementor_settings.posts_pagination_class,t}(t,t.addons.elementor_widget)).addons.elementor_pagination=t.addons.elementor_element.querySelector(t.addons.elementor_pagination_class)||t.addons.elementor_element.querySelector("."+t.addons.elementor_settings.pagination_class),t.addons.elementor_pagination=!!t.addons.elementor_pagination&&t.addons.elementor_pagination,t.addons.elementor_controls=t.addons.elementor_settings.controls,t.addons.elementor_controls="true"===t.addons.elementor_controls,t.addons.elementor_scrolltop=parseInt(t.addons.elementor_settings.scrolltop),t.addons.elementor_current_url=window.location.href,t.addons.elementor_next_page_url=l(t.addons.elementor_pagination),t.addons.elementor_paged=t.addons.elementor_settings.paged?parseInt(t.addons.elementor_settings.paged):1,t.page=parseInt(t.page)+t.addons.elementor_paged,(t=function(t){if(!t.addons.elementor_element)return t;var e=t.addons.elementor_element,n=e.dataset.settings?JSON.parse(e.dataset.settings):"";if(!n)return t;t.addons.elementor_masonry=n.hasOwnProperty("cards_masonry")||n.hasOwnProperty("classic_masonry"),t.addons.elementor_masonry&&(t.addons.elementor_masonry_columns=parseInt(n.cards_columns)||parseInt(n.classic_columns),t.addons.elementor_masonry_columns_mobile=parseInt(n.cards_columns_mobile)||parseInt(n.classic_columns_mobile),t.addons.elementor_masonry_columns_tablet=parseInt(n.cards_columns_tablet)||parseInt(n.classic_columns_tablet),t.addons.elementor_masonry_gap=parseInt(n.cards_row_gap.size));return t}(t)).addons.elementor_element||console.warn("Ajax Load More: Unable to locate Elementor Widget. Are you sure you've set up your target parameter correctly?");t.addons.elementor_pagination||console.warn("Ajax Load More: Unable to locate Elementor pagination. There are either no results or p Ajax Load More is unable to locate the pagination widget?");return t};var r,o=n(109),a=(r=o)&&r.__esModule?r:{default:r};function i(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,n){return function r(o,a){try{var i=e[o](a),s=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(s).then((function(t){r("next",t)}),(function(t){r("throw",t)}));t(s)}("next")}))}}function s(t,e,n){var r=[],o=t.addons.elementor_masonry_columns,a=t.addons.elementor_masonry_columns_tablet,i=t.addons.elementor_masonry_columns_mobile,s=t.addons.elementor_masonry_gap,l=o,c=window.elementorFrontendConfig&&window.elementorFrontendConfig.breakpoints?window.elementorFrontendConfig.breakpoints:0,u=window.innerWidth;l=u>c.lg?o:u>c.md?a:i;var d=document.querySelector(e);if(!d)return!1;var f=d.querySelectorAll(n);if(!f)return!1;f.forEach((function(t,e){var n=Math.floor(e/l),o=t.getBoundingClientRect().height+s;if(n){var a=jQuery(t).position(),i=e%l,c=Math.round(a.top)-r[i];c*=-1,t.style.marginTop=Math.round(c)+"px",r[i]+=o}else r.push(o)}))}function l(t){return t&&t.querySelector("a.next")?t.querySelector("a.next").href:""}},function(t,e,n){n(184)},function(t,e,n){"use strict";n(185),n(328),n(330),n(333),n(335),n(337),n(339),n(341),n(343),n(345),n(347),n(349),n(351),n(355)},function(t,e,n){n(186),n(189),n(190),n(191),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(199),n(200),n(201),n(202),n(203),n(204),n(205),n(206),n(207),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(220),n(221),n(222),n(223),n(224),n(225),n(226),n(227),n(228),n(229),n(230),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(267),n(268),n(270),n(271),n(272),n(273),n(274),n(275),n(276),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(288),n(289),n(290),n(89),n(291),n(130),n(292),n(131),n(293),n(294),n(295),n(296),n(132),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(321),n(322),n(323),n(324),n(325),n(326),n(327),t.exports=n(7)},function(t,e,n){"use strict";var r=n(1),o=n(14),a=n(8),i=n(0),s=n(12),l=n(28).KEY,c=n(2),u=n(51),d=n(39),f=n(30),p=n(5),g=n(70),m=n(111),h=n(188),v=n(54),_=n(3),y=n(4),b=n(10),w=n(16),x=n(27),S=n(29),A=n(34),j=n(114),P=n(21),E=n(53),L=n(9),O=n(32),M=P.f,T=L.f,I=j.f,C=r.Symbol,N=r.JSON,F=N&&N.stringify,k=p("_hidden"),R=p("toPrimitive"),q={}.propertyIsEnumerable,D=u("symbol-registry"),z=u("symbols"),B=u("op-symbols"),U=Object.prototype,W="function"==typeof C&&!!E.f,H=r.QObject,V=!H||!H.prototype||!H.prototype.findChild,G=a&&c((function(){return 7!=A(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=M(U,e);r&&delete U[e],T(t,e,n),r&&t!==U&&T(U,e,r)}:T,Y=function(t){var e=z[t]=A(C.prototype);return e._k=t,e},X=W&&"symbol"==typeof C.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof C},Q=function(t,e,n){return t===U&&Q(B,e,n),_(t),e=x(e,!0),_(n),o(z,e)?(n.enumerable?(o(t,k)&&t[k][e]&&(t[k][e]=!1),n=A(n,{enumerable:S(0,!1)})):(o(t,k)||T(t,k,S(1,{})),t[k][e]=!0),G(t,e,n)):T(t,e,n)},$=function(t,e){_(t);for(var n,r=h(e=w(e)),o=0,a=r.length;a>o;)Q(t,n=r[o++],e[n]);return t},J=function(t){var e=q.call(this,t=x(t,!0));return!(this===U&&o(z,t)&&!o(B,t))&&(!(e||!o(this,t)||!o(z,t)||o(this,k)&&this[k][t])||e)},K=function(t,e){if(t=w(t),e=x(e,!0),t!==U||!o(z,e)||o(B,e)){var n=M(t,e);return!n||!o(z,e)||o(t,k)&&t[k][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=I(w(t)),r=[],a=0;n.length>a;)o(z,e=n[a++])||e==k||e==l||r.push(e);return r},tt=function(t){for(var e,n=t===U,r=I(n?B:w(t)),a=[],i=0;r.length>i;)!o(z,e=r[i++])||n&&!o(U,e)||a.push(z[e]);return a};W||(s((C=function(){if(this instanceof C)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(n){this===U&&e.call(B,n),o(this,k)&&o(this[k],t)&&(this[k][t]=!1),G(this,t,S(1,n))};return a&&V&&G(U,t,{configurable:!0,set:e}),Y(t)}).prototype,"toString",(function(){return this._k})),P.f=K,L.f=Q,n(35).f=j.f=Z,n(46).f=J,E.f=tt,a&&!n(31)&&s(U,"propertyIsEnumerable",J,!0),g.f=function(t){return Y(p(t))}),i(i.G+i.W+i.F*!W,{Symbol:C});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)p(et[nt++]);for(var rt=O(p.store),ot=0;rt.length>ot;)m(rt[ot++]);i(i.S+i.F*!W,"Symbol",{for:function(t){return o(D,t+="")?D[t]:D[t]=C(t)},keyFor:function(t){if(!X(t))throw TypeError(t+" is not a symbol!");for(var e in D)if(D[e]===t)return e},useSetter:function(){V=!0},useSimple:function(){V=!1}}),i(i.S+i.F*!W,"Object",{create:function(t,e){return void 0===e?A(t):$(A(t),e)},defineProperty:Q,defineProperties:$,getOwnPropertyDescriptor:K,getOwnPropertyNames:Z,getOwnPropertySymbols:tt});var at=c((function(){E.f(1)}));i(i.S+i.F*at,"Object",{getOwnPropertySymbols:function(t){return E.f(b(t))}}),N&&i(i.S+i.F*(!W||c((function(){var t=C();return"[null]"!=F([t])||"{}"!=F({a:t})||"{}"!=F(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(y(e)||void 0!==t)&&!X(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!X(e))return e}),r[1]=e,F.apply(N,r)}}),C.prototype[R]||n(15)(C.prototype,R,C.prototype.valueOf),d(C,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},function(t,e,n){t.exports=n(51)("native-function-to-string",Function.toString)},function(t,e,n){var r=n(32),o=n(53),a=n(46);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var i,s=n(t),l=a.f,c=0;s.length>c;)l.call(t,i=s[c++])&&e.push(i);return e}},function(t,e,n){var r=n(0);r(r.S,"Object",{create:n(34)})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(8),"Object",{defineProperty:n(9).f})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(8),"Object",{defineProperties:n(113)})},function(t,e,n){var r=n(16),o=n(21).f;n(22)("getOwnPropertyDescriptor",(function(){return function(t,e){return o(r(t),e)}}))},function(t,e,n){var r=n(10),o=n(36);n(22)("getPrototypeOf",(function(){return function(t){return o(r(t))}}))},function(t,e,n){var r=n(10),o=n(32);n(22)("keys",(function(){return function(t){return o(r(t))}}))},function(t,e,n){n(22)("getOwnPropertyNames",(function(){return n(114).f}))},function(t,e,n){var r=n(4),o=n(28).onFreeze;n(22)("freeze",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(4),o=n(28).onFreeze;n(22)("seal",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(4),o=n(28).onFreeze;n(22)("preventExtensions",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(4);n(22)("isFrozen",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(4);n(22)("isSealed",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(4);n(22)("isExtensible",(function(t){return function(e){return!!r(e)&&(!t||t(e))}}))},function(t,e,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(115)})},function(t,e,n){var r=n(0);r(r.S,"Object",{is:n(116)})},function(t,e,n){var r=n(0);r(r.S,"Object",{setPrototypeOf:n(74).set})},function(t,e,n){"use strict";var r=n(47),o={};o[n(5)("toStringTag")]="z",o+""!="[object z]"&&n(12)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(t,e,n){var r=n(0);r(r.P,"Function",{bind:n(117)})},function(t,e,n){var r=n(9).f,o=Function.prototype,a=/^\s*function ([^ (]*)/;"name"in o||n(8)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(a)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(4),o=n(36),a=n(5)("hasInstance"),i=Function.prototype;a in i||n(9).f(i,a,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(0),o=n(119);r(r.G+r.F*(parseInt!=o),{parseInt:o})},function(t,e,n){var r=n(0),o=n(120);r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},function(t,e,n){"use strict";var r=n(1),o=n(14),a=n(24),i=n(76),s=n(27),l=n(2),c=n(35).f,u=n(21).f,d=n(9).f,f=n(40).trim,p=r.Number,g=p,m=p.prototype,h="Number"==a(n(34)(m)),v="trim"in String.prototype,_=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){var n,r,o,a=(e=v?e.trim():f(e,3)).charCodeAt(0);if(43===a||45===a){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===a){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var i,l=e.slice(2),c=0,u=l.length;c<u;c++)if((i=l.charCodeAt(c))<48||i>o)return NaN;return parseInt(l,r)}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof p&&(h?l((function(){m.valueOf.call(n)})):"Number"!=a(n))?i(new g(_(e)),n,p):_(e)};for(var y,b=n(8)?c(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;b.length>w;w++)o(g,y=b[w])&&!o(p,y)&&d(p,y,u(g,y));p.prototype=m,m.constructor=p,n(12)(r,"Number",p)}},function(t,e,n){"use strict";var r=n(0),o=n(20),a=n(121),i=n(77),s=1..toFixed,l=Math.floor,c=[0,0,0,0,0,0],u="Number.toFixed: incorrect invocation!",d=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*c[n],c[n]=r%1e7,r=l(r/1e7)},f=function(t){for(var e=6,n=0;--e>=0;)n+=c[e],c[e]=l(n/t),n=n%t*1e7},p=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==c[t]){var n=String(c[t]);e=""===e?n:e+i.call("0",7-n.length)+n}return e},g=function(t,e,n){return 0===e?n:e%2==1?g(t,e-1,n*t):g(t*t,e/2,n)};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(2)((function(){s.call({})}))),"Number",{toFixed:function(t){var e,n,r,s,l=a(this,u),c=o(t),m="",h="0";if(c<0||c>20)throw RangeError(u);if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(m="-",l=-l),l>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(l*g(2,69,1))-69)<0?l*g(2,-e,1):l/g(2,e,1),n*=4503599627370496,(e=52-e)>0){for(d(0,n),r=c;r>=7;)d(1e7,0),r-=7;for(d(g(10,r,1),0),r=e-1;r>=23;)f(1<<23),r-=23;f(1<<r),d(1,1),f(2),h=p()}else d(0,n),d(1<<-e,0),h=p()+i.call("0",c);return h=c>0?m+((s=h.length)<=c?"0."+i.call("0",c-s)+h:h.slice(0,s-c)+"."+h.slice(s-c)):m+h}})},function(t,e,n){"use strict";var r=n(0),o=n(2),a=n(121),i=1..toPrecision;r(r.P+r.F*(o((function(){return"1"!==i.call(1,void 0)}))||!o((function(){i.call({})}))),"Number",{toPrecision:function(t){var e=a(this,"Number#toPrecision: incorrect invocation!");return void 0===t?i.call(e):i.call(e,t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(0),o=n(1).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{isInteger:n(122)})},function(t,e,n){var r=n(0);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(0),o=n(122),a=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return o(t)&&a(t)<=9007199254740991}})},function(t,e,n){var r=n(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(0),o=n(120);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(t,e,n){var r=n(0),o=n(119);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(t,e,n){var r=n(0),o=n(123),a=Math.sqrt,i=Math.acosh;r(r.S+r.F*!(i&&710==Math.floor(i(Number.MAX_VALUE))&&i(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+a(t-1)*a(t+1))}})},function(t,e,n){var r=n(0),o=Math.asinh;r(r.S+r.F*!(o&&1/o(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},function(t,e,n){var r=n(0),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(0),o=n(78);r(r.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(0),o=Math.exp;r(r.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,e,n){var r=n(0),o=n(79);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},function(t,e,n){var r=n(0);r(r.S,"Math",{fround:n(231)})},function(t,e,n){var r=n(78),o=Math.pow,a=o(2,-52),i=o(2,-23),s=o(2,127)*(2-i),l=o(2,-126);t.exports=Math.fround||function(t){var e,n,o=Math.abs(t),c=r(t);return o<l?c*(o/l/i+1/a-1/a)*l*i:(n=(e=(1+i/a)*o)-(e-o))>s||n!=n?c*(1/0):c*n}},function(t,e,n){var r=n(0),o=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,a=0,i=0,s=arguments.length,l=0;i<s;)l<(n=o(arguments[i++]))?(a=a*(r=l/n)*r+1,l=n):a+=n>0?(r=n/l)*r:n;return l===1/0?1/0:l*Math.sqrt(a)}})},function(t,e,n){var r=n(0),o=Math.imul;r(r.S+r.F*n(2)((function(){return-5!=o(4294967295,5)||2!=o.length})),"Math",{imul:function(t,e){var n=+t,r=+e,o=65535&n,a=65535&r;return 0|o*a+((65535&n>>>16)*a+o*(65535&r>>>16)<<16>>>0)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log1p:n(123)})},function(t,e,n){var r=n(0);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(0);r(r.S,"Math",{sign:n(78)})},function(t,e,n){var r=n(0),o=n(79),a=Math.exp;r(r.S+r.F*n(2)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(a(t-1)-a(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(0),o=n(79),a=Math.exp;r(r.S,"Math",{tanh:function(t){var e=o(t=+t),n=o(-t);return e==1/0?1:n==1/0?-1:(e-n)/(a(t)+a(-t))}})},function(t,e,n){var r=n(0);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(0),o=n(33),a=String.fromCharCode,i=String.fromCodePoint;r(r.S+r.F*(!!i&&1!=i.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,i=0;r>i;){if(e=+arguments[i++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?a(e):a(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(0),o=n(16),a=n(6);r(r.S,"String",{raw:function(t){for(var e=o(t.raw),n=a(e.length),r=arguments.length,i=[],s=0;n>s;)i.push(String(e[s++])),s<r&&i.push(String(arguments[s]));return i.join("")}})},function(t,e,n){"use strict";n(40)("trim",(function(t){return function(){return t(this,3)}}))},function(t,e,n){"use strict";var r=n(80)(!0);n(81)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";var r=n(0),o=n(80)(!1);r(r.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,e,n){"use strict";var r=n(0),o=n(6),a=n(82),i="".endsWith;r(r.P+r.F*n(84)("endsWith"),"String",{endsWith:function(t){var e=a(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=o(e.length),s=void 0===n?r:Math.min(o(n),r),l=String(t);return i?i.call(e,l,s):e.slice(s-l.length,s)===l}})},function(t,e,n){"use strict";var r=n(0),o=n(82);r(r.P+r.F*n(84)("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(0);r(r.P,"String",{repeat:n(77)})},function(t,e,n){"use strict";var r=n(0),o=n(6),a=n(82),i="".startsWith;r(r.P+r.F*n(84)("startsWith"),"String",{startsWith:function(t){var e=a(this,t,"startsWith"),n=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return i?i.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";n(13)("anchor",(function(t){return function(e){return t(this,"a","name",e)}}))},function(t,e,n){"use strict";n(13)("big",(function(t){return function(){return t(this,"big","","")}}))},function(t,e,n){"use strict";n(13)("blink",(function(t){return function(){return t(this,"blink","","")}}))},function(t,e,n){"use strict";n(13)("bold",(function(t){return function(){return t(this,"b","","")}}))},function(t,e,n){"use strict";n(13)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},function(t,e,n){"use strict";n(13)("fontcolor",(function(t){return function(e){return t(this,"font","color",e)}}))},function(t,e,n){"use strict";n(13)("fontsize",(function(t){return function(e){return t(this,"font","size",e)}}))},function(t,e,n){"use strict";n(13)("italics",(function(t){return function(){return t(this,"i","","")}}))},function(t,e,n){"use strict";n(13)("link",(function(t){return function(e){return t(this,"a","href",e)}}))},function(t,e,n){"use strict";n(13)("small",(function(t){return function(){return t(this,"small","","")}}))},function(t,e,n){"use strict";n(13)("strike",(function(t){return function(){return t(this,"strike","","")}}))},function(t,e,n){"use strict";n(13)("sub",(function(t){return function(){return t(this,"sub","","")}}))},function(t,e,n){"use strict";n(13)("sup",(function(t){return function(){return t(this,"sup","","")}}))},function(t,e,n){var r=n(0);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var r=n(0),o=n(10),a=n(27);r(r.P+r.F*n(2)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var e=o(this),n=a(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(0),o=n(266);r(r.P+r.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},function(t,e,n){"use strict";var r=n(2),o=Date.prototype.getTime,a=Date.prototype.toISOString,i=function(t){return t>9?t:"0"+t};t.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=a.call(new Date(-50000000000001))}))||!r((function(){a.call(new Date(NaN))}))?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+i(t.getUTCMonth()+1)+"-"+i(t.getUTCDate())+"T"+i(t.getUTCHours())+":"+i(t.getUTCMinutes())+":"+i(t.getUTCSeconds())+"."+(n>99?n:"0"+i(n))+"Z"}:a},function(t,e,n){var r=Date.prototype,o=r.toString,a=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(12)(r,"toString",(function(){var t=a.call(this);return t==t?o.call(this):"Invalid Date"}))},function(t,e,n){var r=n(5)("toPrimitive"),o=Date.prototype;r in o||n(15)(o,r,n(269))},function(t,e,n){"use strict";var r=n(3),o=n(27);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),"number"!=t)}},function(t,e,n){var r=n(0);r(r.S,"Array",{isArray:n(54)})},function(t,e,n){"use strict";var r=n(18),o=n(0),a=n(10),i=n(125),s=n(85),l=n(6),c=n(86),u=n(87);o(o.S+o.F*!n(55)((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,o,d,f=a(t),p="function"==typeof this?this:Array,g=arguments.length,m=g>1?arguments[1]:void 0,h=void 0!==m,v=0,_=u(f);if(h&&(m=r(m,g>2?arguments[2]:void 0,2)),null==_||p==Array&&s(_))for(n=new p(e=l(f.length));e>v;v++)c(n,v,h?m(f[v],v):f[v]);else for(d=_.call(f),n=new p;!(o=d.next()).done;v++)c(n,v,h?i(d,m,[o.value,v],!0):o.value);return n.length=v,n}})},function(t,e,n){"use strict";var r=n(0),o=n(86);r(r.S+r.F*n(2)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)o(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(0),o=n(16),a=[].join;r(r.P+r.F*(n(45)!=Object||!n(17)(a)),"Array",{join:function(t){return a.call(o(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var r=n(0),o=n(73),a=n(24),i=n(33),s=n(6),l=[].slice;r(r.P+r.F*n(2)((function(){o&&l.call(o)})),"Array",{slice:function(t,e){var n=s(this.length),r=a(this);if(e=void 0===e?n:e,"Array"==r)return l.call(this,t,e);for(var o=i(t,n),c=i(e,n),u=s(c-o),d=new Array(u),f=0;f<u;f++)d[f]="String"==r?this.charAt(o+f):this[o+f];return d}})},function(t,e,n){"use strict";var r=n(0),o=n(19),a=n(10),i=n(2),s=[].sort,l=[1,2,3];r(r.P+r.F*(i((function(){l.sort(void 0)}))||!i((function(){l.sort(null)}))||!n(17)(s)),"Array",{sort:function(t){return void 0===t?s.call(a(this)):s.call(a(this),o(t))}})},function(t,e,n){"use strict";var r=n(0),o=n(23)(0),a=n(17)([].forEach,!0);r(r.P+r.F*!a,"Array",{forEach:function(t){return o(this,t,arguments[1])}})},function(t,e,n){var r=n(4),o=n(54),a=n(5)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&null===(e=e[a])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){"use strict";var r=n(0),o=n(23)(1);r(r.P+r.F*!n(17)([].map,!0),"Array",{map:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(23)(2);r(r.P+r.F*!n(17)([].filter,!0),"Array",{filter:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(23)(3);r(r.P+r.F*!n(17)([].some,!0),"Array",{some:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(23)(4);r(r.P+r.F*!n(17)([].every,!0),"Array",{every:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(127);r(r.P+r.F*!n(17)([].reduce,!0),"Array",{reduce:function(t){return o(this,t,arguments.length,arguments[1],!1)}})},function(t,e,n){"use strict";var r=n(0),o=n(127);r(r.P+r.F*!n(17)([].reduceRight,!0),"Array",{reduceRight:function(t){return o(this,t,arguments.length,arguments[1],!0)}})},function(t,e,n){"use strict";var r=n(0),o=n(52)(!1),a=[].indexOf,i=!!a&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(i||!n(17)(a)),"Array",{indexOf:function(t){return i?a.apply(this,arguments)||0:o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(16),a=n(20),i=n(6),s=[].lastIndexOf,l=!!s&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(l||!n(17)(s)),"Array",{lastIndexOf:function(t){if(l)return s.apply(this,arguments)||0;var e=o(this),n=i(e.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,a(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},function(t,e,n){var r=n(0);r(r.P,"Array",{copyWithin:n(128)}),n(37)("copyWithin")},function(t,e,n){var r=n(0);r(r.P,"Array",{fill:n(88)}),n(37)("fill")},function(t,e,n){"use strict";var r=n(0),o=n(23)(5),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),r(r.P+r.F*a,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(37)("find")},function(t,e,n){"use strict";var r=n(0),o=n(23)(6),a="findIndex",i=!0;a in[]&&Array(1)[a]((function(){i=!1})),r(r.P+r.F*i,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(37)(a)},function(t,e,n){n(42)("Array")},function(t,e,n){var r=n(1),o=n(76),a=n(9).f,i=n(35).f,s=n(83),l=n(56),c=r.RegExp,u=c,d=c.prototype,f=/a/g,p=/a/g,g=new c(f)!==f;if(n(8)&&(!g||n(2)((function(){return p[n(5)("match")]=!1,c(f)!=f||c(p)==p||"/a/i"!=c(f,"i")})))){c=function(t,e){var n=this instanceof c,r=s(t),a=void 0===e;return!n&&r&&t.constructor===c&&a?t:o(g?new u(r&&!a?t.source:t,e):u((r=t instanceof c)?t.source:t,r&&a?l.call(t):e),n?this:d,c)};for(var m=function(t){t in c||a(c,t,{configurable:!0,get:function(){return u[t]},set:function(e){u[t]=e}})},h=i(u),v=0;h.length>v;)m(h[v++]);d.constructor=c,c.prototype=d,n(12)(r,"RegExp",c)}n(42)("RegExp")},function(t,e,n){"use strict";n(131);var r=n(3),o=n(56),a=n(8),i=/./.toString,s=function(t){n(12)(RegExp.prototype,"toString",t,!0)};n(2)((function(){return"/a/b"!=i.call({source:"a",flags:"b"})}))?s((function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!a&&t instanceof RegExp?o.call(t):void 0)})):"toString"!=i.name&&s((function(){return i.call(this)}))},function(t,e,n){"use strict";var r=n(3),o=n(6),a=n(91),i=n(57);n(58)("match",1,(function(t,e,n,s){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=s(n,t,this);if(e.done)return e.value;var l=r(t),c=String(this);if(!l.global)return i(l,c);var u=l.unicode;l.lastIndex=0;for(var d,f=[],p=0;null!==(d=i(l,c));){var g=String(d[0]);f[p]=g,""===g&&(l.lastIndex=a(c,o(l.lastIndex),u)),p++}return 0===p?null:f}]}))},function(t,e,n){"use strict";var r=n(3),o=n(10),a=n(6),i=n(20),s=n(91),l=n(57),c=Math.max,u=Math.min,d=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n(58)("replace",2,(function(t,e,n,g){return[function(r,o){var a=t(this),i=null==r?void 0:r[e];return void 0!==i?i.call(r,a,o):n.call(String(a),r,o)},function(t,e){var o=g(n,t,this,e);if(o.done)return o.value;var d=r(t),f=String(this),p="function"==typeof e;p||(e=String(e));var h=d.global;if(h){var v=d.unicode;d.lastIndex=0}for(var _=[];;){var y=l(d,f);if(null===y)break;if(_.push(y),!h)break;""===String(y[0])&&(d.lastIndex=s(f,a(d.lastIndex),v))}for(var b,w="",x=0,S=0;S<_.length;S++){y=_[S];for(var A=String(y[0]),j=c(u(i(y.index),f.length),0),P=[],E=1;E<y.length;E++)P.push(void 0===(b=y[E])?b:String(b));var L=y.groups;if(p){var O=[A].concat(P,j,f);void 0!==L&&O.push(L);var M=String(e.apply(void 0,O))}else M=m(A,f,j,P,L,e);j>=x&&(w+=f.slice(x,j)+M,x=j+A.length)}return w+f.slice(x)}];function m(t,e,r,a,i,s){var l=r+t.length,c=a.length,u=p;return void 0!==i&&(i=o(i),u=f),n.call(s,u,(function(n,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(l);case"<":s=i[o.slice(1,-1)];break;default:var u=+o;if(0===u)return n;if(u>c){var f=d(u/10);return 0===f?n:f<=c?void 0===a[f-1]?o.charAt(1):a[f-1]+o.charAt(1):n}s=a[u-1]}return void 0===s?"":s}))}}))},function(t,e,n){"use strict";var r=n(3),o=n(116),a=n(57);n(58)("search",1,(function(t,e,n,i){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=i(n,t,this);if(e.done)return e.value;var s=r(t),l=String(this),c=s.lastIndex;o(c,0)||(s.lastIndex=0);var u=a(s,l);return o(s.lastIndex,c)||(s.lastIndex=c),null===u?-1:u.index}]}))},function(t,e,n){"use strict";var r=n(83),o=n(3),a=n(48),i=n(91),s=n(6),l=n(57),c=n(90),u=n(2),d=Math.min,f=[].push,p="length",g=!u((function(){RegExp(4294967295,"y")}));n(58)("split",2,(function(t,e,n,u){var m;return m="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[p]||2!="ab".split(/(?:ab)*/)[p]||4!=".".split(/(.?)(.?)/)[p]||".".split(/()()/)[p]>1||"".split(/.?/)[p]?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(o,t,e);for(var a,i,s,l=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,g=void 0===e?4294967295:e>>>0,m=new RegExp(t.source,u+"g");(a=c.call(m,o))&&!((i=m.lastIndex)>d&&(l.push(o.slice(d,a.index)),a[p]>1&&a.index<o[p]&&f.apply(l,a.slice(1)),s=a[0][p],d=i,l[p]>=g));)m.lastIndex===a.index&&m.lastIndex++;return d===o[p]?!s&&m.test("")||l.push(""):l.push(o.slice(d)),l[p]>g?l.slice(0,g):l}:"0".split(void 0,0)[p]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,r){var o=t(this),a=null==n?void 0:n[e];return void 0!==a?a.call(n,o,r):m.call(String(o),n,r)},function(t,e){var r=u(m,t,this,e,m!==n);if(r.done)return r.value;var c=o(t),f=String(this),p=a(c,RegExp),h=c.unicode,v=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(g?"y":"g"),_=new p(g?c:"^(?:"+c.source+")",v),y=void 0===e?4294967295:e>>>0;if(0===y)return[];if(0===f.length)return null===l(_,f)?[f]:[];for(var b=0,w=0,x=[];w<f.length;){_.lastIndex=g?w:0;var S,A=l(_,g?f:f.slice(w));if(null===A||(S=d(s(_.lastIndex+(g?0:w)),f.length))===b)w=i(f,w,h);else{if(x.push(f.slice(b,w)),x.length===y)return x;for(var j=1;j<=A.length-1;j++)if(x.push(A[j]),x.length===y)return x;w=b=S}}return x.push(f.slice(b)),x}]}))},function(t,e,n){var r=n(1),o=n(92).set,a=r.MutationObserver||r.WebKitMutationObserver,i=r.process,s=r.Promise,l="process"==n(24)(i);t.exports=function(){var t,e,n,c=function(){var r,o;for(l&&(r=i.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(l)n=function(){i.nextTick(c)};else if(!a||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(c)}}else n=function(){o.call(r,c)};else{var d=!0,f=document.createTextNode("");new a(c).observe(f,{characterData:!0}),n=function(){f.data=d=!d}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){"use strict";var r=n(135),o=n(38);t.exports=n(61)("Map",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=r.getEntry(o(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(o(this,"Map"),0===t?0:t,e)}},r,!0)},function(t,e,n){"use strict";var r=n(135),o=n(38);t.exports=n(61)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(o(this,"Set"),t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r,o=n(1),a=n(23)(0),i=n(12),s=n(28),l=n(115),c=n(136),u=n(4),d=n(38),f=n(38),p=!o.ActiveXObject&&"ActiveXObject"in o,g=s.getWeak,m=Object.isExtensible,h=c.ufstore,v=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},_={get:function(t){if(u(t)){var e=g(t);return!0===e?h(d(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return c.def(d(this,"WeakMap"),t,e)}},y=t.exports=n(61)("WeakMap",v,_,c,!0,!0);f&&p&&(l((r=c.getConstructor(v,"WeakMap")).prototype,_),s.NEED=!0,a(["delete","has","get","set"],(function(t){var e=y.prototype,n=e[t];i(e,t,(function(e,o){if(u(e)&&!m(e)){this._f||(this._f=new r);var a=this._f[t](e,o);return"set"==t?this:a}return n.call(this,e,o)}))})))},function(t,e,n){"use strict";var r=n(136),o=n(38);n(61)("WeakSet",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(o(this,"WeakSet"),t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(0),o=n(62),a=n(93),i=n(3),s=n(33),l=n(6),c=n(4),u=n(1).ArrayBuffer,d=n(48),f=a.ArrayBuffer,p=a.DataView,g=o.ABV&&u.isView,m=f.prototype.slice,h=o.VIEW;r(r.G+r.W+r.F*(u!==f),{ArrayBuffer:f}),r(r.S+r.F*!o.CONSTR,"ArrayBuffer",{isView:function(t){return g&&g(t)||c(t)&&h in t}}),r(r.P+r.U+r.F*n(2)((function(){return!new f(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(t,e){if(void 0!==m&&void 0===e)return m.call(i(this),t);for(var n=i(this).byteLength,r=s(t,n),o=s(void 0===e?n:e,n),a=new(d(this,f))(l(o-r)),c=new p(this),u=new p(a),g=0;r<o;)u.setUint8(g++,c.getUint8(r++));return a}}),n(42)("ArrayBuffer")},function(t,e,n){var r=n(0);r(r.G+r.W+r.F*!n(62).ABV,{DataView:n(93).DataView})},function(t,e,n){n(26)("Int8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Uint8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Uint8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}),!0)},function(t,e,n){n(26)("Int16",2,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Uint16",2,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Int32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Uint32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Float32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Float64",8,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){var r=n(0),o=n(19),a=n(3),i=(n(1).Reflect||{}).apply,s=Function.apply;r(r.S+r.F*!n(2)((function(){i((function(){}))})),"Reflect",{apply:function(t,e,n){var r=o(t),l=a(n);return i?i(r,e,l):s.call(r,e,l)}})},function(t,e,n){var r=n(0),o=n(34),a=n(19),i=n(3),s=n(4),l=n(2),c=n(117),u=(n(1).Reflect||{}).construct,d=l((function(){function t(){}return!(u((function(){}),[],t)instanceof t)})),f=!l((function(){u((function(){}))}));r(r.S+r.F*(d||f),"Reflect",{construct:function(t,e){a(t),i(e);var n=arguments.length<3?t:a(arguments[2]);if(f&&!d)return u(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(c.apply(t,r))}var l=n.prototype,p=o(s(l)?l:Object.prototype),g=Function.apply.call(t,p,e);return s(g)?g:p}})},function(t,e,n){var r=n(9),o=n(0),a=n(3),i=n(27);o(o.S+o.F*n(2)((function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(t,e,n){a(t),e=i(e,!0),a(n);try{return r.f(t,e,n),!0}catch(t){return!1}}})},function(t,e,n){var r=n(0),o=n(21).f,a=n(3);r(r.S,"Reflect",{deleteProperty:function(t,e){var n=o(a(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){"use strict";var r=n(0),o=n(3),a=function(t){this._t=o(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)};n(124)(a,"Object",(function(){var t,e=this._k;do{if(this._i>=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}})),r(r.S,"Reflect",{enumerate:function(t){return new a(t)}})},function(t,e,n){var r=n(21),o=n(36),a=n(14),i=n(0),s=n(4),l=n(3);i(i.S,"Reflect",{get:function t(e,n){var i,c,u=arguments.length<3?e:arguments[2];return l(e)===u?e[n]:(i=r.f(e,n))?a(i,"value")?i.value:void 0!==i.get?i.get.call(u):void 0:s(c=o(e))?t(c,n,u):void 0}})},function(t,e,n){var r=n(21),o=n(0),a=n(3);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(a(t),e)}})},function(t,e,n){var r=n(0),o=n(36),a=n(3);r(r.S,"Reflect",{getPrototypeOf:function(t){return o(a(t))}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(0),o=n(3),a=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return o(t),!a||a(t)}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{ownKeys:n(138)})},function(t,e,n){var r=n(0),o=n(3),a=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){o(t);try{return a&&a(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(9),o=n(21),a=n(36),i=n(14),s=n(0),l=n(29),c=n(3),u=n(4);s(s.S,"Reflect",{set:function t(e,n,s){var d,f,p=arguments.length<4?e:arguments[3],g=o.f(c(e),n);if(!g){if(u(f=a(e)))return t(f,n,s,p);g=l(0)}if(i(g,"value")){if(!1===g.writable||!u(p))return!1;if(d=o.f(p,n)){if(d.get||d.set||!1===d.writable)return!1;d.value=s,r.f(p,n,d)}else r.f(p,n,l(0,s));return!0}return void 0!==g.set&&(g.set.call(p,s),!0)}})},function(t,e,n){var r=n(0),o=n(74);o&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){o.check(t,e);try{return o.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){n(329),t.exports=n(7).Array.includes},function(t,e,n){"use strict";var r=n(0),o=n(52)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(37)("includes")},function(t,e,n){n(331),t.exports=n(7).Array.flatMap},function(t,e,n){"use strict";var r=n(0),o=n(332),a=n(10),i=n(6),s=n(19),l=n(126);r(r.P,"Array",{flatMap:function(t){var e,n,r=a(this);return s(t),e=i(r.length),n=l(r,0),o(n,r,r,e,0,1,t,arguments[1]),n}}),n(37)("flatMap")},function(t,e,n){"use strict";var r=n(54),o=n(4),a=n(6),i=n(18),s=n(5)("isConcatSpreadable");t.exports=function t(e,n,l,c,u,d,f,p){for(var g,m,h=u,v=0,_=!!f&&i(f,p,3);v<c;){if(v in l){if(g=_?_(l[v],v,n):l[v],m=!1,o(g)&&(m=void 0!==(m=g[s])?!!m:r(g)),m&&d>0)h=t(e,n,g,a(g.length),h,d-1)-1;else{if(h>=9007199254740991)throw TypeError();e[h]=g}h++}v++}return h}},function(t,e,n){n(334),t.exports=n(7).String.padStart},function(t,e,n){"use strict";var r=n(0),o=n(139),a=n(60),i=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a);r(r.P+r.F*i,"String",{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){n(336),t.exports=n(7).String.padEnd},function(t,e,n){"use strict";var r=n(0),o=n(139),a=n(60),i=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a);r(r.P+r.F*i,"String",{padEnd:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){n(338),t.exports=n(7).String.trimLeft},function(t,e,n){"use strict";n(40)("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart")},function(t,e,n){n(340),t.exports=n(7).String.trimRight},function(t,e,n){"use strict";n(40)("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd")},function(t,e,n){n(342),t.exports=n(70).f("asyncIterator")},function(t,e,n){n(111)("asyncIterator")},function(t,e,n){n(344),t.exports=n(7).Object.getOwnPropertyDescriptors},function(t,e,n){var r=n(0),o=n(138),a=n(16),i=n(21),s=n(86);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=a(t),l=i.f,c=o(r),u={},d=0;c.length>d;)void 0!==(n=l(r,e=c[d++]))&&s(u,e,n);return u}})},function(t,e,n){n(346),t.exports=n(7).Object.values},function(t,e,n){var r=n(0),o=n(140)(!1);r(r.S,"Object",{values:function(t){return o(t)}})},function(t,e,n){n(348),t.exports=n(7).Object.entries},function(t,e,n){var r=n(0),o=n(140)(!0);r(r.S,"Object",{entries:function(t){return o(t)}})},function(t,e,n){"use strict";n(132),n(350),t.exports=n(7).Promise.finally},function(t,e,n){"use strict";var r=n(0),o=n(7),a=n(1),i=n(48),s=n(134);r(r.P+r.R,"Promise",{finally:function(t){var e=i(this,o.Promise||a.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then((function(){return n}))}:t,n?function(n){return s(e,t()).then((function(){throw n}))}:t)}})},function(t,e,n){n(352),n(353),n(354),t.exports=n(7)},function(t,e,n){var r=n(1),o=n(0),a=n(60),i=[].slice,s=/MSIE .\./.test(a),l=function(t){return function(e,n){var r=arguments.length>2,o=!!r&&i.call(arguments,2);return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,n)}};o(o.G+o.B+o.F*s,{setTimeout:l(r.setTimeout),setInterval:l(r.setInterval)})},function(t,e,n){var r=n(0),o=n(92);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},function(t,e,n){for(var r=n(89),o=n(32),a=n(12),i=n(1),s=n(15),l=n(41),c=n(5),u=c("iterator"),d=c("toStringTag"),f=l.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},g=o(p),m=0;m<g.length;m++){var h,v=g[m],_=p[v],y=i[v],b=y&&y.prototype;if(b&&(b[u]||s(b,u,f),b[d]||s(b,d,v),l[v]=f,_))for(h in r)b[h]||a(b,h,r[h],!0)}},function(t,e,n){var r=function(t){"use strict";var e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof d?e:d,a=Object.create(o.prototype),i=new S(r||[]);return a._invoke=function(t,e,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return j()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var s=b(i,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,i),a}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var u={};function d(){}function f(){}function p(){}var g={};g[o]=function(){return this};var m=Object.getPrototypeOf,h=m&&m(m(A([])));h&&h!==e&&n.call(h,o)&&(g=h);var v=p.prototype=d.prototype=Object.create(g);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function y(t,e){var r;this._invoke=function(o,a){function i(){return new e((function(r,i){!function r(o,a,i,s){var l=c(t[o],t,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==typeof d&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,i,s)}),(function(t){r("throw",t,i,s)})):e.resolve(d).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,s)}))}s(l.arg)}(o,a,r,i)}))}return r=r?r.then(i,i):i()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,u;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function A(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return a.next=a}}return{next:j}}function j(){return{value:void 0,done:!0}}return f.prototype=v.constructor=p,p.constructor=f,f.displayName=s(p,i,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,s(t,i,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},_(y.prototype),y.prototype[a]=function(){return this},t.AsyncIterator=y,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new y(l(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},_(v),s(v,i,"Generator"),v[o]=function(){return this},v.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=A,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return i.type="throw",i.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,u):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),u},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),u}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:A(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,e){!function(){if("undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof HTMLElement){var t=!1;try{var e=document.createElement("div");e.addEventListener("focus",(function(t){t.preventDefault(),t.stopPropagation()}),!0),e.focus(Object.defineProperty({},"preventScroll",{get:function(){if(navigator&&void 0!==navigator.userAgent&&navigator.userAgent&&navigator.userAgent.match(/Edge\/1[7-8]/))return t=!1;t=!0}}))}catch(t){}if(void 0===HTMLElement.prototype.nativeFocus&&!t){HTMLElement.prototype.nativeFocus=HTMLElement.prototype.focus;var n=function(t){for(var e=0;e<t.length;e++)t[e][0].scrollTop=t[e][1],t[e][0].scrollLeft=t[e][2];t=[]};HTMLElement.prototype.focus=function(t){if(t&&t.preventScroll){var e=function(t){for(var e=t.parentNode,n=[],r=document.scrollingElement||document.documentElement;e&&e!==r;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&n.push([e,e.scrollTop,e.scrollLeft]),e=e.parentNode;return e=r,n.push([e,e.scrollTop,e.scrollLeft]),n}(this);if("function"==typeof setTimeout){var r=this;setTimeout((function(){r.nativeFocus(),n(e)}),0)}else this.nativeFocus(),n(e)}else this.nativeFocus()}}}}()},function(t,e,n){"use strict";var r,o,a,i,s,l;if(Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var e=Array.prototype.slice.call(arguments,1),n=this,r=function(){},o=function(){return n.apply(this instanceof r&&t?this:t,e.concat(Array.prototype.slice.call(arguments)))};return r.prototype=this.prototype,o.prototype=new r,o}),r=Object.prototype,o=r.__defineGetter__,a=r.__defineSetter__,i=r.__lookupGetter__,s=r.__lookupSetter__,l=r.hasOwnProperty,o&&a&&i&&s&&(Object.defineProperty||(Object.defineProperty=function(t,e,n){if(arguments.length<3)throw new TypeError("Arguments not optional");if(e+="",l.call(n,"value")&&(i.call(t,e)||s.call(t,e)||(t[e]=n.value),l.call(n,"get")||l.call(n,"set")))throw new TypeError("Cannot specify an accessor and a value");if(!(n.writable&&n.enumerable&&n.configurable))throw new TypeError("This implementation of Object.defineProperty does not support false for configurable, enumerable, or writable.");return n.get&&o.call(t,e,n.get),n.set&&a.call(t,e,n.set),t}),Object.getOwnPropertyDescriptor||(Object.getOwnPropertyDescriptor=function(t,e){if(arguments.length<2)throw new TypeError("Arguments not optional.");e+="";var n={configurable:!0,enumerable:!0,writable:!0},r=i.call(t,e),o=s.call(t,e);return l.call(t,e)?r||o?(delete n.writable,n.get=n.set=void 0,r&&(n.get=r),o&&(n.set=o),n):(n.value=t[e],n):n}),Object.defineProperties||(Object.defineProperties=function(t,e){var n;for(n in e)l.call(e,n)&&Object.defineProperty(t,n,e[n])})),!(document.documentElement.dataset||Object.getOwnPropertyDescriptor(Element.prototype,"dataset")&&Object.getOwnPropertyDescriptor(Element.prototype,"dataset").get)){var c={enumerable:!0,get:function(){var t,e,n,r,o,a,i=this.attributes,s=i.length,l=function(t){return t.charAt(1).toUpperCase()},c=function(){return this},u=function(t,e){return void 0!==e?this.setAttribute(t,e):this.removeAttribute(t)};try{({}).__defineGetter__("test",(function(){})),e={}}catch(t){e=document.createElement("div")}for(t=0;t<s;t++)if((a=i[t])&&a.name&&/^data-\w[\w\-]*$/.test(a.name)){n=a.value,o=(r=a.name).substr(5).replace(/-./g,l);try{Object.defineProperty(e,o,{enumerable:this.enumerable,get:c.bind(n||""),set:u.bind(this,r)})}catch(t){e[o]=n}}return e}};try{Object.defineProperty(Element.prototype,"dataset",c)}catch(t){c.enumerable=!1,Object.defineProperty(Element.prototype,"dataset",c)}}},function(t,e,n){"use strict";var r=n(359),o=n(360),a=n(94);t.exports={formats:a,parse:o,stringify:r}},function(t,e,n){"use strict";var r=n(141),o=n(94),a=Object.prototype.hasOwnProperty,i={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},s=Array.isArray,l=Array.prototype.push,c=function(t,e){l.apply(t,s(e)?e:[e])},u=Date.prototype.toISOString,d=o.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:function(t){return u.call(t)},skipNulls:!1,strictNullHandling:!1},p=function t(e,n,o,a,i,l,u,d,p,g,m,h,v,_){var y,b=e;if("function"==typeof u?b=u(n,b):b instanceof Date?b=g(b):"comma"===o&&s(b)&&(b=r.maybeMap(b,(function(t){return t instanceof Date?g(t):t}))),null===b){if(a)return l&&!v?l(n,f.encoder,_,"key",m):n;b=""}if("string"==typeof(y=b)||"number"==typeof y||"boolean"==typeof y||"symbol"==typeof y||"bigint"==typeof y||r.isBuffer(b))return l?[h(v?n:l(n,f.encoder,_,"key",m))+"="+h(l(b,f.encoder,_,"value",m))]:[h(n)+"="+h(String(b))];var w,x=[];if(void 0===b)return x;if("comma"===o&&s(b))w=[{value:b.length>0?b.join(",")||null:void 0}];else if(s(u))w=u;else{var S=Object.keys(b);w=d?S.sort(d):S}for(var A=0;A<w.length;++A){var j=w[A],P="object"==typeof j&&void 0!==j.value?j.value:b[j];if(!i||null!==P){var E=s(b)?"function"==typeof o?o(n,j):n:n+(p?"."+j:"["+j+"]");c(x,t(P,E,o,a,i,l,u,d,p,g,m,h,v,_))}}return x};t.exports=function(t,e){var n,r=t,l=function(t){if(!t)return f;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||f.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==t.format){if(!a.call(o.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var r=o.formatters[n],i=f.filter;return("function"==typeof t.filter||s(t.filter))&&(i=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===t.allowDots?f.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:f.charsetSentinel,delimiter:void 0===t.delimiter?f.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:f.encode,encoder:"function"==typeof t.encoder?t.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:f.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:f.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:f.strictNullHandling}}(e);"function"==typeof l.filter?r=(0,l.filter)("",r):s(l.filter)&&(n=l.filter);var u,d=[];if("object"!=typeof r||null===r)return"";u=e&&e.arrayFormat in i?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var g=i[u];n||(n=Object.keys(r)),l.sort&&n.sort(l.sort);for(var m=0;m<n.length;++m){var h=n[m];l.skipNulls&&null===r[h]||c(d,p(r[h],h,g,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset))}var v=d.join(l.delimiter),_=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),v.length>0?_+v:""}},function(t,e,n){"use strict";var r=n(141),o=Object.prototype.hasOwnProperty,a=Array.isArray,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},l=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},c=function(t,e,n,r){if(t){var a=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(a),c=s?a.slice(0,s.index):a,u=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var d=0;n.depth>0&&null!==(s=i.exec(a))&&d<n.depth;){if(d+=1,!n.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+a.slice(s.index)+"]"),function(t,e,n,r){for(var o=r?e:l(e,n),a=t.length-1;a>=0;--a){var i,s=t[a];if("[]"===s&&n.parseArrays)i=[].concat(o);else{i=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(c,10);n.parseArrays||""!==c?!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(i=[])[u]=o:i[c]=o:i={0:o}}o=i}return o}(u,e,n,r)}};t.exports=function(t,e){var n=function(t){if(!t)return i;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?i.charset:t.charset;return{allowDots:void 0===t.allowDots?i.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:i.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:i.comma,decoder:"function"==typeof t.decoder?t.decoder:i.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:i.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:i.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:i.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:i.strictNullHandling}}(e);if(""===t||null==t)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof t?function(t,e){var n,c={},u=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,d=e.parameterLimit===1/0?void 0:e.parameterLimit,f=u.split(e.delimiter,d),p=-1,g=e.charset;if(e.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[n]?g="utf-8":"utf8=%26%2310003%3B"===f[n]&&(g="iso-8859-1"),p=n,n=f.length);for(n=0;n<f.length;++n)if(n!==p){var m,h,v=f[n],_=v.indexOf("]="),y=-1===_?v.indexOf("="):_+1;-1===y?(m=e.decoder(v,i.decoder,g,"key"),h=e.strictNullHandling?null:""):(m=e.decoder(v.slice(0,y),i.decoder,g,"key"),h=r.maybeMap(l(v.slice(y+1),e),(function(t){return e.decoder(t,i.decoder,g,"value")}))),h&&e.interpretNumericEntities&&"iso-8859-1"===g&&(h=s(h)),v.indexOf("[]=")>-1&&(h=a(h)?[h]:h),o.call(c,m)?c[m]=r.combine(c[m],h):c[m]=h}return c}(t,n):t,d=n.plainObjects?Object.create(null):{},f=Object.keys(u),p=0;p<f.length;++p){var g=f[p],m=c(g,u[g],n,"string"==typeof t);d=r.merge(d,m,n)}return r.compact(d)}}]);
 
 
 
 
 
 
 
core/functions.php CHANGED
@@ -2,18 +2,16 @@
2
  // @codingStandardsIgnoreStart
3
  include_once ALM_PATH . 'core/functions/addons.php';
4
  include_once ALM_PATH . 'core/functions/masonry.php';
 
5
 
6
-
7
-
8
- /*
9
- * alm_progress_css
10
- * If progress bar, add the CSS styles for the bar.
11
- *
12
- * @param $counter int
13
- * @param $progress_bar string
14
- * @param $progress_bar_color string
15
- * @since 3.1.0
16
- */
17
  function alm_progress_css($counter, $progress_bar, $progress_bar_color){
18
  if($counter == 1 && $progress_bar === 'true'){
19
  $style = '
@@ -46,7 +44,6 @@ function alm_css_disabled($setting) {
46
  /**
47
  * Load ALM CSS inline.
48
  *
49
- *
50
  * @param $setting name of the setting field
51
  * @return boolean
52
  * @since 3.3.1
@@ -69,27 +66,27 @@ function alm_do_inline_css($setting) {
69
  /**
70
  * This function will return HTML of a looped item.
71
  *
72
- * @param string $repeater
73
- * @param string $type
74
- * @param string $theme_repeater
75
- * @param string $alm_found_posts
76
- * @param string $alm_page
77
- * @param string $alm_item
78
- * @param string $alm_current
79
- * @param array $args
80
  * @param boolean $ob
81
  * @return $html
82
  * @since 3.7
83
  */
84
- function alm_loop($repeater, $type, $theme_repeater, $alm_found_posts = '', $alm_page = '', $alm_item = '', $alm_current = '', $args, $ob = true){
85
 
86
  if ( $ob ) { // If Output Buffer is true.
87
  ob_start();
88
  }
89
 
90
- // Theme Repeater.
91
  if ( $theme_repeater !== 'null' && has_filter( 'alm_get_theme_repeater' ) ) {
92
- do_action( 'alm_get_theme_repeater', $theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current );
93
  }
94
  // Standard Repeater Templates.
95
  else {
@@ -106,7 +103,7 @@ function alm_loop($repeater, $type, $theme_repeater, $alm_found_posts = '', $alm
106
 
107
 
108
  /**
109
- * Get the current repeater template file
110
  *
111
  * @param string $repeater current repater name
112
  * @param string $type Type of template *
@@ -129,10 +126,10 @@ function alm_get_current_repeater($repeater, $type) {
129
 
130
  }
131
 
132
- // Custom Repeaters v2
133
  elseif( $type == 'template_' && has_action('alm_unlimited_installed' )){
134
 
135
- // Custom Repeaters 2.5+
136
  if(ALM_UNLIMITED_VERSION >= '2.5'){
137
  // Get path to repeater (alm_templates)
138
  $base_dir = AjaxLoadMore::alm_get_repeater_path();
@@ -146,17 +143,18 @@ function alm_get_current_repeater($repeater, $type) {
146
 
147
  }
148
 
149
- if(!file_exists($include)){ //confirm file exists
150
  $include = alm_get_default_repeater();
151
  }
152
  }
153
  // Default repeater
154
  else{
155
  $include = alm_get_default_repeater();
 
156
  }
157
 
158
- // Security check
159
- // Confirm $template does NOT contains relative path
160
  if ( false !== strpos( $template, './' ) ) {
161
  $include = alm_get_default_repeater();
162
  }
@@ -164,10 +162,8 @@ function alm_get_current_repeater($repeater, $type) {
164
  return $include;
165
  }
166
 
167
-
168
-
169
  /**
170
- * Get the default repeater template for current blog
171
  *
172
  * @return $include (file path)
173
  * @since 2.5.0
@@ -206,38 +202,12 @@ function alm_get_default_repeater() {
206
  return $file;
207
  }
208
 
209
-
210
-
211
  /**
212
- * Query by custom taxonomy values.
213
  *
214
- * @return $args = array();
215
  * @since 2.5.0
216
- * @deprecated in 2.5.0
217
  */
218
- function alm_get_taxonomy($taxonomy, $taxonomy_terms, $taxonomy_operator){
219
- if(!empty($taxonomy) && !empty($taxonomy_terms) && !empty($taxonomy_operator)){
220
- $the_terms = explode(",", $taxonomy_terms);
221
- $args = array(
222
- 'taxonomy' => $taxonomy,
223
- 'field' => 'slug',
224
- 'terms' => $the_terms,
225
- 'operator' => $taxonomy_operator,
226
- );
227
- return $args;
228
- }
229
- }
230
-
231
-
232
-
233
- /*
234
- * alm_get_post_format
235
- * Query by post format
236
- *
237
- * @return $args = array();
238
- * @since 2.5.0
239
- * @updated 2.8.5
240
- */
241
  function alm_get_post_format($post_format){
242
  if(!empty($post_format)){
243
  $format = "post-format-$post_format";
@@ -266,15 +236,12 @@ function alm_get_post_format($post_format){
266
  }
267
  }
268
 
269
-
270
-
271
- /*
272
- * alm_get_taxonomy_query
273
- * Query for custom taxonomy
274
- *
275
- * @return $args = array();
276
- * @since 2.8.5
277
- */
278
  function alm_get_taxonomy_query($taxonomy, $taxonomy_terms, $taxonomy_operator){
279
  if(!empty($taxonomy) && !empty($taxonomy_terms)){
280
  $taxonomy_term_values = alm_parse_tax_terms($taxonomy_terms);
@@ -288,131 +255,44 @@ function alm_get_taxonomy_query($taxonomy, $taxonomy_terms, $taxonomy_operator){
288
  }
289
  }
290
 
291
-
292
-
293
  /**
294
  * Parse the taxonomy terms for multiple vals.
295
  *
296
- * @helper function @alm_get_taxonomy_query()
297
- * @return array;
298
  * @since 2.8.5
 
 
299
  */
300
- function alm_parse_tax_terms($taxonomy_terms){
301
- // Remove all whitespace for $taxonomy_terms because it needs to be an exact match
302
- $taxonomy_terms = preg_replace('/\s+/', ' ', $taxonomy_terms); // Trim whitespace
303
- $taxonomy_terms = str_replace(', ', ',', $taxonomy_terms); // Replace [term, term] with [term,term]
304
- $taxonomy_terms = explode(",", $taxonomy_terms);
305
- return $taxonomy_terms;
306
- }
307
-
308
-
309
-
310
- /**
311
- * Query by custom taxonomy values.
312
- *
313
- * @return $args = array();
314
- * @since 2.5.0
315
- * @deprecated in 2.8.5
316
- */
317
- function alm_get_tax_query($post_format, $taxonomy, $taxonomy_terms, $taxonomy_operator){
318
-
319
- // Taxonomy [ONLY]
320
- if(!empty($taxonomy) && !empty($taxonomy_terms) && !empty($taxonomy_operator) && empty($post_format)){
321
- $the_terms = explode(",", $taxonomy_terms);
322
- $args = array(
323
- 'taxonomy' => $taxonomy,
324
- 'field' => 'slug',
325
- 'terms' => $the_terms,
326
- 'operator' => $taxonomy_operator,
327
- );
328
- return $args;
329
- }
330
-
331
- // Post Format [ONLY]
332
- if(!empty($post_format) && empty($taxonomy)){
333
- $format = "post-format-$post_format";
334
-
335
- //If query is for standard then we need to filter by NOT IN
336
- if($format == 'post-format-standard'){
337
- if (($post_formats = get_theme_support('post-formats')) && is_array($post_formats[0]) && count($post_formats[0])) {
338
- $terms = array();
339
- foreach ($post_formats[0] as $format) {
340
- $terms[] = 'post-format-'.$format;
341
- }
342
- }
343
- $args = array(
344
- 'taxonomy' => 'post_format',
345
- 'terms' => $terms,
346
- 'field' => 'slug',
347
- 'operator' => 'NOT IN',
348
- );
349
- }else{
350
- $args = array(
351
- 'taxonomy' => 'post_format',
352
- 'field' => 'slug',
353
- 'terms' => array($format),
354
- );
355
- }
356
- return $args;
357
- }
358
-
359
- // Taxonomy && Post Format [COMBINED]
360
- if(!empty($post_format) && !empty($taxonomy) && !empty($taxonomy_terms) && !empty($taxonomy_operator)){
361
- $the_terms = explode(",", $taxonomy_terms);
362
- $args = array(
363
- 'taxonomy' => $taxonomy,
364
- 'field' => 'slug',
365
- 'terms' => $the_terms,
366
- 'operator' => $taxonomy_operator,
367
- );
368
- $format = "post-format-$post_format";
369
- //If query is for standard then we need to filter by NOT IN
370
- if($format == 'post-format-standard'){
371
- if (($post_formats = get_theme_support('post-formats')) && is_array($post_formats[0]) && count($post_formats[0])) {
372
- $terms = array();
373
- foreach ($post_formats[0] as $format) {
374
- $terms[] = 'post-format-'.$format;
375
- }
376
- }
377
- $format_args = array(
378
- 'taxonomy' => 'post_format',
379
- 'terms' => $terms,
380
- 'field' => 'slug',
381
- 'operator' => 'NOT IN',
382
- );
383
- }else{
384
- $format_args = array(
385
- 'taxonomy' => 'post_format',
386
- 'field' => 'slug',
387
- 'terms' => array($format),
388
- );
389
- }
390
- $args[] = $format_args; // Combined format and tax $args
391
- return $args;
392
- }
393
  }
394
 
395
  /**
396
  * Query by custom field values.
397
  *
398
- * @return $args = array();
399
  * @since 2.5.0
 
400
  */
401
  function alm_get_meta_query($meta_key, $meta_value, $meta_compare, $meta_type){
402
 
403
- if ( !empty( $meta_key ) ) {
404
- // do_shortcode fixes (shortcode was rendering as HTML when using < OR <==)
405
  $meta_compare = ($meta_compare === 'lessthan') ? '<' : $meta_compare;
406
  $meta_compare = ($meta_compare === 'lessthanequalto') ? '<=' : $meta_compare;
407
  $meta_compare = ($meta_compare === 'greaterthan') ? '>' : $meta_compare;
408
  $meta_compare = ($meta_compare === 'greatthanequalto') ? '>=' : $meta_compare;
409
 
410
- // Get optimized `meta_value` parameter
411
  $meta_values = alm_parse_meta_value($meta_value, $meta_compare);
412
 
413
- // Unset `$meta_values` if empty
414
- if($meta_values === ''){
415
- unset($meta_values);
416
  }
417
 
418
  if(isset($meta_values)){
@@ -422,38 +302,38 @@ function alm_get_meta_query($meta_key, $meta_value, $meta_compare, $meta_type){
422
  'compare' => $meta_compare,
423
  'type' => $meta_type
424
  );
 
425
  }else{
426
- // If $meta_values is empty, don't query for 'value'
427
  $return = array(
428
  'key' => $meta_key,
429
  'compare' => $meta_compare,
430
  'type' => $meta_type
431
  );
 
432
  }
433
  return $return;
434
  }
435
  }
436
 
 
 
 
 
 
 
 
 
 
437
 
 
 
438
 
439
- /*
440
- * alm_parse_meta_value
441
- * Parse the meta value for multiple vals
442
- *
443
- * @helper function @alm_get_meta_query()
444
- * @return array;
445
- * @since 2.6.4
446
- */
447
- function alm_parse_meta_value($meta_value, $meta_compare){
448
-
449
- // Meta Query Docs (http://codex.wordpress.org/Class_Reference/WP_Meta_Query)
450
- $meta_array = array('IN', 'NOT IN', 'BETWEEN', 'NOT BETWEEN');
451
-
452
- if(in_array($meta_compare, $meta_array)){
453
- // Remove all whitespace for meta_value because it needs to be an exact match
454
- $mv_trimmed = preg_replace('/\s+/', ' ', $meta_value); // Trim whitespace
455
- $meta_values = str_replace(', ', ',', $mv_trimmed); // Replace [term, term] with [term,term]
456
- $meta_values = ($meta_values === '') ? '' : explode(",", $meta_values);
457
  }else{
458
  $meta_values = $meta_value;
459
  }
@@ -463,8 +343,8 @@ function alm_parse_meta_value($meta_value, $meta_compare){
463
  /**
464
  * Get type of repeater.
465
  *
466
- * @return $type;
467
  * @since 2.9
 
468
  */
469
  function alm_get_repeater_type($repeater){
470
  $type = preg_split('/(?=\d)/', $repeater, 2); // split $repeater value at number to determine type
@@ -473,10 +353,10 @@ function alm_get_repeater_type($repeater){
473
  }
474
 
475
  /**
476
- * Get current page base URL
477
  *
478
- * @return $canonicalURL;
479
  * @since 2.12
 
480
  */
481
  function alm_get_canonical_url(){
482
 
@@ -552,21 +432,24 @@ function alm_get_canonical_url(){
552
  /**
553
  * Get current page slug
554
  *
555
- * @return slug;
556
  * @since 2.13.0
 
 
557
  */
558
- function alm_get_page_slug($post){
559
 
560
- // Exit if admin
561
- if(is_admin()) return false;
 
 
562
 
563
- if(!is_archive()){
564
  // If not archive, set the post slug
565
- if(is_front_page() || is_home()){
566
  $slug = 'home';
567
- }else{
568
  // Search
569
- if(is_search()){
570
  $search_query = get_search_query();
571
  if($search_query){
572
  $slug = "?s=$search_query";
@@ -577,31 +460,31 @@ function alm_get_page_slug($post){
577
  $slug = $post->post_name;
578
  }
579
  }
580
- }else{
581
  // Tax
582
- if(is_tax()){
583
  $queried_object = get_queried_object();
584
  $slug = $queried_object->slug;
585
  }
586
  // Category
587
- elseif(is_category()){
588
  $cat = get_query_var('cat');
589
  $category = get_category($cat);
590
  $slug = $category->slug;
591
  }
592
  // Tag
593
- elseif(is_tag()){
594
  $slug = get_query_var('tag');
595
  }
596
  // Author
597
- elseif(is_author()){
598
  $slug = get_the_author_meta('ID');
599
  }
600
  // Post Type Archive
601
- elseif(is_post_type_archive()){
602
  $slug = get_post_type();
603
  }
604
- elseif(is_date()){
605
  // Is archive page
606
  $archive_year = get_the_date('Y');
607
  $archive_month = get_the_date('m');
@@ -609,10 +492,10 @@ function alm_get_page_slug($post){
609
  if(is_year()){
610
  $slug = $archive_year;
611
  }
612
- if(is_month()){
613
  $slug = $archive_year.'-'.$archive_month;
614
  }
615
- if(is_day()){
616
  $slug = $archive_year.'-'.$archive_month.'-'.$archive_day;
617
  }
618
  }
@@ -626,15 +509,18 @@ function alm_get_page_slug($post){
626
 
627
 
628
  /**
629
- * Get current page ID
630
  *
631
- * @return $post_id;
632
  * @since 3.0.1
 
 
633
  */
634
  function alm_get_page_id($post){
635
 
636
- // Exit if admin
637
- if(is_admin()) return false;
 
 
638
 
639
  $post_id = '';
640
 
@@ -688,15 +574,16 @@ function alm_get_page_id($post){
688
  }
689
 
690
  /**
691
- * Get query param of start page (paged, page)
692
  *
693
  * @since 2.14.0
 
694
  */
695
- function alm_get_startpage(){
696
- if ( get_query_var('paged') ) {
697
- $start_page = get_query_var('paged');
698
- } elseif ( get_query_var('page') ) {
699
- $start_page = get_query_var('page');
700
  } else {
701
  $start_page = 1;
702
  }
@@ -707,11 +594,12 @@ function alm_get_startpage(){
707
  * Debug helper for printing variables to screen.
708
  *
709
  * @since 3.7
 
710
  */
711
- function alm_pretty_print($query){
712
- if($query){
713
  echo '<pre>';
714
- print_r($query);
715
  echo '</pre>';
716
  }
717
  }
@@ -719,7 +607,7 @@ function alm_pretty_print($query){
719
  /**
720
  * Convert dashes to underscores.
721
  *
722
- * @param $string string
723
  * @return string
724
  * @since 3.7
725
  */
@@ -730,8 +618,8 @@ function alm_convert_dashes_to_underscore($string = ''){
730
  /**
731
  * Remove posts if post__not_in is set in the ALM shortcode.
732
  *
733
- * @param $ids array
734
- * @param $not_in array
735
  * @return array
736
  * @since 3.7
737
  */
2
  // @codingStandardsIgnoreStart
3
  include_once ALM_PATH . 'core/functions/addons.php';
4
  include_once ALM_PATH . 'core/functions/masonry.php';
5
+ include_once ALM_PATH . 'core/functions/deprecated.php';
6
 
7
+ /**
8
+ * If progress bar, add the CSS styles for the bar.
9
+ *
10
+ * @param $counter int
11
+ * @param $progress_bar string
12
+ * @param $progress_bar_color string
13
+ * @since 3.1.0
14
+ */
 
 
 
15
  function alm_progress_css($counter, $progress_bar, $progress_bar_color){
16
  if($counter == 1 && $progress_bar === 'true'){
17
  $style = '
44
  /**
45
  * Load ALM CSS inline.
46
  *
 
47
  * @param $setting name of the setting field
48
  * @return boolean
49
  * @since 3.3.1
66
  /**
67
  * This function will return HTML of a looped item.
68
  *
69
+ * @param string $repeater
70
+ * @param string $type
71
+ * @param string $theme_repeater
72
+ * @param string $alm_found_posts
73
+ * @param string $alm_page
74
+ * @param string $alm_item
75
+ * @param string $alm_current
76
+ * @param array $args
77
  * @param boolean $ob
78
  * @return $html
79
  * @since 3.7
80
  */
81
+ function alm_loop($repeater, $type, $theme_repeater, $alm_found_posts = '', $alm_page = '', $alm_item = '', $alm_current = '', $args = [], $ob = true){
82
 
83
  if ( $ob ) { // If Output Buffer is true.
84
  ob_start();
85
  }
86
 
87
+ // Theme Repeaters.
88
  if ( $theme_repeater !== 'null' && has_filter( 'alm_get_theme_repeater' ) ) {
89
+ do_action( 'alm_get_theme_repeater', $theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, $args );
90
  }
91
  // Standard Repeater Templates.
92
  else {
103
 
104
 
105
  /**
106
+ * Get the current repeater template file.
107
  *
108
  * @param string $repeater current repater name
109
  * @param string $type Type of template *
126
 
127
  }
128
 
129
+ // Custom Repeaters v2.
130
  elseif( $type == 'template_' && has_action('alm_unlimited_installed' )){
131
 
132
+ // Custom Repeaters 2.5+.
133
  if(ALM_UNLIMITED_VERSION >= '2.5'){
134
  // Get path to repeater (alm_templates)
135
  $base_dir = AjaxLoadMore::alm_get_repeater_path();
143
 
144
  }
145
 
146
+ if(!file_exists($include)){ // Confirm file exists.
147
  $include = alm_get_default_repeater();
148
  }
149
  }
150
  // Default repeater
151
  else{
152
  $include = alm_get_default_repeater();
153
+
154
  }
155
 
156
+ // Security check.
157
+ // Confirm $template does NOT contains relative path.
158
  if ( false !== strpos( $template, './' ) ) {
159
  $include = alm_get_default_repeater();
160
  }
162
  return $include;
163
  }
164
 
 
 
165
  /**
166
+ * Get the default repeater template for current blog.
167
  *
168
  * @return $include (file path)
169
  * @since 2.5.0
202
  return $file;
203
  }
204
 
 
 
205
  /**
206
+ * Query by post format.
207
  *
 
208
  * @since 2.5.0
209
+ * @return array
210
  */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
211
  function alm_get_post_format($post_format){
212
  if(!empty($post_format)){
213
  $format = "post-format-$post_format";
236
  }
237
  }
238
 
239
+ /**
240
+ * Query for custom taxonomy.
241
+ *
242
+ * @since 2.8.5
243
+ * @return array
244
+ */
 
 
 
245
  function alm_get_taxonomy_query($taxonomy, $taxonomy_terms, $taxonomy_operator){
246
  if(!empty($taxonomy) && !empty($taxonomy_terms)){
247
  $taxonomy_term_values = alm_parse_tax_terms($taxonomy_terms);
255
  }
256
  }
257
 
 
 
258
  /**
259
  * Parse the taxonomy terms for multiple vals.
260
  *
 
 
261
  * @since 2.8.5
262
+ * @param string $terms The taxonomy terms.
263
+ * @return array
264
  */
265
+ function alm_parse_tax_terms($terms){
266
+ // Remove all whitespace for $taxonomy_terms because it needs to be an exact match.
267
+ $terms = preg_replace('/\s+/', ' ', $terms);
268
+ // Remove all spaces by replacing [term, term] with [term,term].
269
+ $terms = str_replace(', ', ',', $terms);
270
+ // Create array from string.
271
+ $terms = explode(",", $terms);
272
+ return $terms;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
273
  }
274
 
275
  /**
276
  * Query by custom field values.
277
  *
 
278
  * @since 2.5.0
279
+ * @return array
280
  */
281
  function alm_get_meta_query($meta_key, $meta_value, $meta_compare, $meta_type){
282
 
283
+ if ( ! empty( $meta_key ) ) {
284
+ // do_shortcode fixes (shortcode was rendering as HTML when using < OR <==).
285
  $meta_compare = ($meta_compare === 'lessthan') ? '<' : $meta_compare;
286
  $meta_compare = ($meta_compare === 'lessthanequalto') ? '<=' : $meta_compare;
287
  $meta_compare = ($meta_compare === 'greaterthan') ? '>' : $meta_compare;
288
  $meta_compare = ($meta_compare === 'greatthanequalto') ? '>=' : $meta_compare;
289
 
290
+ // Get optimized `meta_value` parameter.
291
  $meta_values = alm_parse_meta_value($meta_value, $meta_compare);
292
 
293
+ // Unset `$meta_values` if empty.
294
+ if ( $meta_values === '' ) {
295
+ unset( $meta_values );
296
  }
297
 
298
  if(isset($meta_values)){
302
  'compare' => $meta_compare,
303
  'type' => $meta_type
304
  );
305
+
306
  }else{
307
+ // If $meta_values is empty, don't query for 'value'.
308
  $return = array(
309
  'key' => $meta_key,
310
  'compare' => $meta_compare,
311
  'type' => $meta_type
312
  );
313
+
314
  }
315
  return $return;
316
  }
317
  }
318
 
319
+ /**
320
+ * Parse the meta value for multiple values.
321
+ *
322
+ * @since 2.6.4
323
+ * @param string $meta_value The meta value.
324
+ * @param string $meta_compare The compare operator.
325
+ * @return array
326
+ */
327
+ function alm_parse_meta_value( $meta_value, $meta_compare ) {
328
 
329
+ // Meta Query Docs (http://codex.wordpress.org/Class_Reference/WP_Meta_Query).
330
+ $meta_array = array( 'IN', 'NOT IN', 'BETWEEN', 'NOT BETWEEN' );
331
 
332
+ if ( in_array( $meta_compare, $meta_array ) ) {
333
+ // Remove all whitespace for meta_value because it needs to be an exact match.
334
+ $mv_trimmed = preg_replace( '/\s+/', ' ', $meta_value ); // Trim whitespace.
335
+ $meta_values = str_replace( ', ', ',', $mv_trimmed ); // Replace [term, term] with [term,term].
336
+ $meta_values = ( $meta_values === '' ) ? '' : explode( ",", $meta_values );
 
 
 
 
 
 
 
 
 
 
 
 
 
337
  }else{
338
  $meta_values = $meta_value;
339
  }
343
  /**
344
  * Get type of repeater.
345
  *
 
346
  * @since 2.9
347
+ * @return string
348
  */
349
  function alm_get_repeater_type($repeater){
350
  $type = preg_split('/(?=\d)/', $repeater, 2); // split $repeater value at number to determine type
353
  }
354
 
355
  /**
356
+ * Get current page base URL.
357
  *
 
358
  * @since 2.12
359
+ * @return string
360
  */
361
  function alm_get_canonical_url(){
362
 
432
  /**
433
  * Get current page slug
434
  *
 
435
  * @since 2.13.0
436
+ * @param array $post_id The current Post ID.
437
+ * @return string
438
  */
439
+ function alm_get_page_slug( $post ) {
440
 
441
+ // Exit if admin.
442
+ if ( is_admin() ) {
443
+ return false;
444
+ }
445
 
446
+ if ( ! is_archive() ) {
447
  // If not archive, set the post slug
448
+ if( is_front_page() || is_home() ){
449
  $slug = 'home';
450
+ } else {
451
  // Search
452
+ if ( is_search() ) {
453
  $search_query = get_search_query();
454
  if($search_query){
455
  $slug = "?s=$search_query";
460
  $slug = $post->post_name;
461
  }
462
  }
463
+ } else {
464
  // Tax
465
+ if ( is_tax() ) {
466
  $queried_object = get_queried_object();
467
  $slug = $queried_object->slug;
468
  }
469
  // Category
470
+ elseif ( is_category() ) {
471
  $cat = get_query_var('cat');
472
  $category = get_category($cat);
473
  $slug = $category->slug;
474
  }
475
  // Tag
476
+ elseif ( is_tag() ) {
477
  $slug = get_query_var('tag');
478
  }
479
  // Author
480
+ elseif ( is_author() ) {
481
  $slug = get_the_author_meta('ID');
482
  }
483
  // Post Type Archive
484
+ elseif ( is_post_type_archive() ) {
485
  $slug = get_post_type();
486
  }
487
+ elseif ( is_date() ) {
488
  // Is archive page
489
  $archive_year = get_the_date('Y');
490
  $archive_month = get_the_date('m');
492
  if(is_year()){
493
  $slug = $archive_year;
494
  }
495
+ if ( is_month() ) {
496
  $slug = $archive_year.'-'.$archive_month;
497
  }
498
+ if ( is_day() ) {
499
  $slug = $archive_year.'-'.$archive_month.'-'.$archive_day;
500
  }
501
  }
509
 
510
 
511
  /**
512
+ * Get current page ID.
513
  *
 
514
  * @since 3.0.1
515
+ * @param array $post_id The current Post ID.
516
+ * @return string
517
  */
518
  function alm_get_page_id($post){
519
 
520
+ // Exit if admin.
521
+ if(is_admin()) {
522
+ return false;
523
+ }
524
 
525
  $post_id = '';
526
 
574
  }
575
 
576
  /**
577
+ * Get query param of start page (paged, page).
578
  *
579
  * @since 2.14.0
580
+ * @return string
581
  */
582
+ function alm_get_startpage() {
583
+ if ( get_query_var( 'paged' ) ) {
584
+ $start_page = get_query_var( 'paged' );
585
+ } elseif ( get_query_var( 'page' ) ) {
586
+ $start_page = get_query_var( 'page' );
587
  } else {
588
  $start_page = 1;
589
  }
594
  * Debug helper for printing variables to screen.
595
  *
596
  * @since 3.7
597
+ * @param array $query
598
  */
599
+ function alm_pretty_print( $query ){
600
+ if ( $query ) {
601
  echo '<pre>';
602
+ print_r( $query );
603
  echo '</pre>';
604
  }
605
  }
607
  /**
608
  * Convert dashes to underscores.
609
  *
610
+ * @param string $string
611
  * @return string
612
  * @since 3.7
613
  */
618
  /**
619
  * Remove posts if post__not_in is set in the ALM shortcode.
620
  *
621
+ * @param array $ids
622
+ * @param array $not_in
623
  * @return array
624
  * @since 3.7
625
  */
core/functions/deprecated.php ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Query by custom taxonomy values.
5
+ *
6
+ * @since 2.5.0
7
+ * @deprecated in 2.5.0
8
+ * @return array
9
+ */
10
+ function alm_get_taxonomy($taxonomy, $taxonomy_terms, $taxonomy_operator){
11
+ if(!empty($taxonomy) && !empty($taxonomy_terms) && !empty($taxonomy_operator)){
12
+ $the_terms = explode(",", $taxonomy_terms);
13
+ $args = array(
14
+ 'taxonomy' => $taxonomy,
15
+ 'field' => 'slug',
16
+ 'terms' => $the_terms,
17
+ 'operator' => $taxonomy_operator,
18
+ );
19
+ return $args;
20
+ }
21
+ }
22
+
23
+ /**
24
+ * Query by custom taxonomy values.
25
+ *
26
+ * @since 2.5.0
27
+ * @deprecated in 2.8.5
28
+ * @return array
29
+ */
30
+ function alm_get_tax_query( $post_format, $taxonomy, $taxonomy_terms, $taxonomy_operator ) {
31
+
32
+ // Taxonomy.
33
+ if(!empty($taxonomy) && !empty($taxonomy_terms) && !empty($taxonomy_operator) && empty($post_format)){
34
+ $the_terms = explode(",", $taxonomy_terms);
35
+ $args = array(
36
+ 'taxonomy' => $taxonomy,
37
+ 'field' => 'slug',
38
+ 'terms' => $the_terms,
39
+ 'operator' => $taxonomy_operator,
40
+ );
41
+ return $args;
42
+ }
43
+
44
+ // Post Format.
45
+ if(!empty($post_format) && empty($taxonomy)){
46
+ $format = "post-format-$post_format";
47
+
48
+ // If query is for standard then we need to filter by NOT IN
49
+ if($format == 'post-format-standard'){
50
+ if (($post_formats = get_theme_support('post-formats')) && is_array($post_formats[0]) && count($post_formats[0])) {
51
+ $terms = array();
52
+ foreach ($post_formats[0] as $format) {
53
+ $terms[] = 'post-format-'.$format;
54
+ }
55
+ }
56
+ $args = array(
57
+ 'taxonomy' => 'post_format',
58
+ 'terms' => $terms,
59
+ 'field' => 'slug',
60
+ 'operator' => 'NOT IN',
61
+ );
62
+ }else{
63
+ $args = array(
64
+ 'taxonomy' => 'post_format',
65
+ 'field' => 'slug',
66
+ 'terms' => array($format),
67
+ );
68
+ }
69
+ return $args;
70
+ }
71
+
72
+ // Taxonomy && Post Format.
73
+ if(!empty($post_format) && !empty($taxonomy) && !empty($taxonomy_terms) && !empty($taxonomy_operator)){
74
+ $the_terms = explode(",", $taxonomy_terms);
75
+ $args = array(
76
+ 'taxonomy' => $taxonomy,
77
+ 'field' => 'slug',
78
+ 'terms' => $the_terms,
79
+ 'operator' => $taxonomy_operator,
80
+ );
81
+ $format = "post-format-$post_format";
82
+ //If query is for standard then we need to filter by NOT IN.
83
+ if($format == 'post-format-standard'){
84
+ if (($post_formats = get_theme_support('post-formats')) && is_array($post_formats[0]) && count($post_formats[0])) {
85
+ $terms = array();
86
+ foreach ($post_formats[0] as $format) {
87
+ $terms[] = 'post-format-'.$format;
88
+ }
89
+ }
90
+ $format_args = array(
91
+ 'taxonomy' => 'post_format',
92
+ 'terms' => $terms,
93
+ 'field' => 'slug',
94
+ 'operator' => 'NOT IN',
95
+ );
96
+ }else{
97
+ $format_args = array(
98
+ 'taxonomy' => 'post_format',
99
+ 'field' => 'slug',
100
+ 'terms' => array($format),
101
+ );
102
+ }
103
+ $args[] = $format_args; // Combined format and tax $args
104
+ return $args;
105
+ }
106
+ }
core/src/js/addons/singleposts.js CHANGED
@@ -1,29 +1,76 @@
1
- /**
2
- * singlePostHTML
3
- * Create the HTML for loading Single Posts
4
  *
5
  * @param {Object} response Query response
6
  * @param {HTMLElement} target The target div
7
  * @since 5.1.8.1
8
  */
9
- export function singlePostHTML(response, target = null){
10
- let data = {
11
  html: '',
12
  meta: {
13
  postcount: 1,
14
  totalposts: 1,
15
  debug: 'Single Posts Query',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  }
17
- }
18
- if(response.status === 200 && response.data && target){
19
- let div = document.createElement("div");
20
- div.innerHTML = response.data;
21
- let htmlTarget = div.querySelector(target);
22
- if(htmlTarget){
23
- data.html = htmlTarget.innerHTML;
24
  }
25
- }
26
- return data;
27
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
 
29
- export default singlePostHTML;
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Create the HTML for loading Single Posts.
 
3
  *
4
  * @param {Object} response Query response
5
  * @param {HTMLElement} target The target div
6
  * @since 5.1.8.1
7
  */
8
+ export function singlePostHTML(response, target = null) {
9
+ let data = {
10
  html: '',
11
  meta: {
12
  postcount: 1,
13
  totalposts: 1,
14
  debug: 'Single Posts Query',
15
+ },
16
+ };
17
+
18
+ if (response.status === 200 && response.data && target) {
19
+ // Create temp div to hold Ajax response data.
20
+ const div = document.createElement('div');
21
+ div.innerHTML = response.data;
22
+
23
+ // Get target element.
24
+ let html = div.querySelector(target);
25
+
26
+ // Get any custom target elements.
27
+ const customElements = window && window.almSinglePostsCustomElements;
28
+ if (customElements) {
29
+ html.appendChild(singlePostsGetCustomElements(div, customElements));
30
  }
31
+
32
+ if (html) {
33
+ data.html = html.innerHTML;
34
+ } else {
35
+ console.warn(`Ajax Load More: Unable to find ${target} element.`);
 
 
36
  }
37
+ }
38
+ return data;
39
  }
40
+ export default singlePostHTML;
41
+
42
+ /**
43
+ * Collect custom target elements and append them to the returned HTML.
44
+ *
45
+ * This function is useful to get elements from outside the ALM target and bring them into the returned HTML.
46
+ * Useful for when CSS or JS may be loaded in the <head/> and we need it brought into the HTML for Single Posts.
47
+ *
48
+ * e.g. window.almSinglePostsCustomElements = ['#woocommerce-inline-inline-css', '#wc-block-style-css'];
49
+ *
50
+ * @param {object} content The HTML element.
51
+ * @param {array|string} customElements The elements to search for in content.
52
+ * @return {object} HTML elements.
53
+ */
54
+ function singlePostsGetCustomElements(content = '', customElements = false) {
55
+ // Create container element to hold elements.
56
+ const container = document.createElement('div');
57
+ container.classList.add('alm-custom-elements');
58
+
59
+ // Exit if empty.
60
+ if (!content || !customElements) {
61
+ return container;
62
+ }
63
+
64
+ // Convert customElements to an Array.
65
+ customElements = !Array.isArray(customElements) ? [customElements] : customElements;
66
 
67
+ // Loop Array to extract elements and append to container.
68
+ for (let i = 0; i < customElements.length; i++) {
69
+ let element = content.querySelector(customElements[i]);
70
+ if (element) {
71
+ container.appendChild(element);
72
+ }
73
+ }
74
+
75
+ return container;
76
+ }
core/src/js/addons/woocommerce.js CHANGED
@@ -23,25 +23,42 @@ export function wooInit(alm) {
23
  }
24
 
25
  // Set up URL and class parameters on first item in product listing
26
- let products = document.querySelector(alm.addons.woocommerce_settings.container); // Get `ul.products`
27
- if (products) {
28
- products.setAttribute('aria-live', 'polite');
29
- products.setAttribute('aria-atomic', 'true');
 
 
 
 
 
 
 
 
 
30
 
31
  alm.listing.removeAttribute('aria-live');
32
  alm.listing.removeAttribute('aria-atomic');
33
 
34
- let product = products.querySelector(alm.addons.woocommerce_settings.products); // Get first `.product` item
35
- if (product) {
36
- product.classList.add('alm-woocommerce');
37
- product.dataset.url = alm.addons.woocommerce_settings.paged_urls[alm.addons.woocommerce_settings.paged - 1];
38
- product.dataset.page = alm.page;
39
- product.dataset.pageTitle = document.title;
 
 
 
 
40
  }
41
 
42
  if (alm.addons.woocommerce_settings.paged > 1) {
43
  almWooCommerceResultsTextInit(alm);
44
  }
 
 
 
 
45
  }
46
  }
47
 
@@ -203,3 +220,20 @@ function returnButton(text, link, label, seperator) {
203
  let button = ` ${seperator} <a href="${link}">${label}</a>`;
204
  return text.innerHTML + button;
205
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  }
24
 
25
  // Set up URL and class parameters on first item in product listing
26
+ let container = document.querySelector(alm.addons.woocommerce_settings.container); // Get `ul.products`
27
+ if (container) {
28
+ let count = getContainerCount(alm.addons.woocommerce_settings.container);
29
+
30
+ if (count > 1) {
31
+ // Display warning if multiple containers were found.
32
+ console.warn(
33
+ 'ALM WooCommerce: Multiple containers with the same classname or ID found. The WooCommerce add-on requires a single container to be defined. Get more information -> https://connekthq.com/plugins/ajax-load-more/docs/add-ons/woocommerce/'
34
+ );
35
+ }
36
+
37
+ container.setAttribute('aria-live', 'polite');
38
+ container.setAttribute('aria-atomic', 'true');
39
 
40
  alm.listing.removeAttribute('aria-live');
41
  alm.listing.removeAttribute('aria-atomic');
42
 
43
+ let products = container.querySelector(alm.addons.woocommerce_settings.products); // Get first `.product` item
44
+ if (products) {
45
+ products.classList.add('alm-woocommerce');
46
+ products.dataset.url = alm.addons.woocommerce_settings.paged_urls[alm.addons.woocommerce_settings.paged - 1];
47
+ products.dataset.page = alm.page;
48
+ products.dataset.pageTitle = document.title;
49
+ } else {
50
+ console.warn(
51
+ 'ALM WooCommerce: Unable to locate products. Get more information -> https://connekthq.com/plugins/ajax-load-more/docs/add-ons/woocommerce/#alm_woocommerce_products'
52
+ );
53
  }
54
 
55
  if (alm.addons.woocommerce_settings.paged > 1) {
56
  almWooCommerceResultsTextInit(alm);
57
  }
58
+ } else {
59
+ console.warn(
60
+ 'ALM WooCommerce: Unable to locate container element. Get more information -> https://connekthq.com/plugins/ajax-load-more/docs/add-ons/woocommerce/#alm_woocommerce_container'
61
+ );
62
  }
63
  }
64
 
220
  let button = ` ${seperator} <a href="${link}">${label}</a>`;
221
  return text.innerHTML + button;
222
  }
223
+
224
+ /**
225
+ * Get total count of WooCommerce containers
226
+ *
227
+ * @param {*} container
228
+ */
229
+ function getContainerCount(container) {
230
+ if (!container) {
231
+ return 0;
232
+ }
233
+ const containers = document.querySelectorAll(container); // Get all containers.
234
+ if (containers) {
235
+ return containers.length;
236
+ } else {
237
+ return 0;
238
+ }
239
+ }
core/src/js/ajax-load-more.js CHANGED
@@ -15,6 +15,7 @@ require('./helpers/polyfills.js');
15
  let qs = require('qs');
16
  let imagesLoaded = require('imagesloaded');
17
  import axios from 'axios';
 
18
  import smoothscroll from 'smoothscroll-polyfill'; // Smooth scrolling polyfill
19
  smoothscroll.polyfill();
20
 
@@ -201,6 +202,7 @@ let alm_is_filtering = false;
201
  alm.addons.nextpage_pageviews = alm.listing.dataset.nextpagePageviews;
202
  alm.addons.nextpage_post_id = alm.listing.dataset.nextpagePostId;
203
  alm.addons.nextpage_startpage = alm.listing.dataset.nextpageStartpage;
 
204
  }
205
 
206
  // Single Posts add-on
@@ -208,12 +210,22 @@ let alm_is_filtering = false;
208
  if (alm.addons.single_post === 'true') {
209
  alm.addons.single_post_id = alm.listing.dataset.singlePostId;
210
  alm.addons.single_post_query = alm.listing.dataset.singlePostQuery;
211
- alm.addons.single_post_order = alm.listing.dataset.singlePostOrder;
212
  alm.addons.single_post_init_id = alm.listing.dataset.singlePostId;
213
- alm.addons.single_post_taxonomy = alm.listing.dataset.singlePostTaxonomy;
214
- alm.addons.single_post_excluded_terms = alm.listing.dataset.singlePostExcludedTerms;
215
- alm.addons.single_post_progress_bar = alm.listing.dataset.singlePostProgressBar;
216
- alm.addons.single_post_target = alm.listing.dataset.singlePostTarget;
 
 
 
 
 
 
 
 
 
 
217
  }
218
 
219
  // Comments add-on
@@ -429,6 +441,7 @@ let alm_is_filtering = false;
429
  if (alm.addons.nextpage_startpage > 1) {
430
  alm.isPaged = true;
431
  }
 
432
  } else {
433
  alm.addons.nextpage = false;
434
  }
@@ -440,11 +453,6 @@ let alm_is_filtering = false;
440
  alm.addons.single_post_permalink = '';
441
  alm.addons.single_post_title = '';
442
  alm.addons.single_post_slug = '';
443
- alm.addons.single_post_order = alm.addons.single_post_order === undefined ? 'previous' : alm.addons.single_post_order;
444
- alm.addons.single_post_taxonomy = alm.addons.single_post_taxonomy === undefined ? '' : alm.addons.single_post_taxonomy;
445
- alm.addons.single_post_excluded_terms = alm.addons.single_post_excluded_terms === undefined ? '' : alm.addons.single_post_excluded_terms;
446
- alm.addons.single_post_progress_bar = alm.addons.single_post_progress_bar === undefined ? '' : alm.addons.single_post_progress_bar;
447
- alm.addons.single_post_target = alm.addons.single_post_target === undefined ? '' : alm.addons.single_post_target;
448
  alm.addons.single_post_title_template = alm.listing.dataset.singlePostTitleTemplate;
449
  alm.addons.single_post_siteTitle = alm.listing.dataset.singlePostSiteTitle;
450
  alm.addons.single_post_siteTagline = alm.listing.dataset.singlePostSiteTagline;
@@ -605,11 +613,10 @@ let alm_is_filtering = false;
605
  }
606
 
607
  /**
608
- * LoadPosts()
609
  * The function to get posts via Ajax
 
610
  * @since 2.0.0
611
  */
612
-
613
  alm.AjaxLoadMore.loadPosts = function () {
614
  if (typeof almOnChange === 'function') {
615
  window.almOnChange(alm);
@@ -654,13 +661,12 @@ let alm_is_filtering = false;
654
  }
655
  };
656
 
657
- /* ajax()
658
- * Ajax Load Moe Ajax function
659
  *
660
- * @param queryType The type of Ajax request (standard/totalposts)
661
- * @since 2.6.0
662
  */
663
-
664
  alm.AjaxLoadMore.ajax = function (queryType) {
665
  // Default ALM action
666
  let action = 'alm_get_posts';
@@ -704,6 +710,7 @@ let alm_is_filtering = false;
704
  pageviews: alm.addons.nextpage_pageviews,
705
  post_id: alm.addons.nextpage_post_id,
706
  startpage: alm.addons.nextpage_startpage,
 
707
  };
708
  }
709
 
@@ -774,7 +781,6 @@ let alm_is_filtering = false;
774
  };
775
 
776
  /**
777
- * adminajax
778
  * Send request to the admin-ajax.php
779
  *
780
  * @param {*} alm | ALm object
@@ -855,6 +861,7 @@ let alm_is_filtering = false;
855
  // Next Page and Paging
856
  if (typeof almBuildPagination === 'function') {
857
  window.almBuildPagination(data.totalpages, alm);
 
858
  }
859
  } else if (queryType === 'totalposts' && alm.addons.paging) {
860
  // Paging
@@ -870,8 +877,7 @@ let alm_is_filtering = false;
870
  };
871
 
872
  /**
873
- * tabs
874
- * Send request to the WP REST API
875
  *
876
  * @param {*} alm | ALm object
877
  * @since 5.2.0
@@ -926,7 +932,6 @@ let alm_is_filtering = false;
926
  };
927
 
928
  /**
929
- * restapi
930
  * Send request to the WP REST API
931
  *
932
  * @param {*} alm | ALm object
@@ -957,11 +962,11 @@ let alm_is_filtering = false;
957
  .then(function (response) {
958
  // Success
959
  let results = response.data; // Get data from response
960
- let data = '',
961
- html = results.html,
962
- meta = results.meta,
963
- postcount = meta.postcount,
964
- totalposts = meta.totalposts;
965
 
966
  // loop results to get data from each
967
  for (let i = 0; i < html.length; i++) {
@@ -999,11 +1004,10 @@ let alm_is_filtering = false;
999
  }
1000
 
1001
  /**
1002
- * success
1003
- * Success function after loading data
1004
  *
1005
- * @param data The results of the Ajax request
1006
- * @param is_cache Are results of the Ajax request coming from cache
1007
  * @since 2.6.0
1008
  */
1009
  alm.AjaxLoadMore.success = function (data, is_cache) {
@@ -1025,7 +1029,7 @@ let alm_is_filtering = false;
1025
  // Paging container
1026
  let pagingContent = alm.listing.querySelector('.alm-paging-content');
1027
 
1028
- var html, meta, total, totalLoaded;
1029
 
1030
  if (is_cache) {
1031
  // If Cache, do not look for json data as we won't be querying the DB.
@@ -1034,11 +1038,19 @@ let alm_is_filtering = false;
1034
  // Standard ALM query results
1035
  html = data.html;
1036
  meta = data.meta;
1037
- alm.posts = alm.addons.paging ? meta.postcount : alm.posts + meta.postcount;
1038
- total = meta.postcount;
1039
- alm.totalposts = meta.totalposts;
1040
- alm.totalposts = alm.addons.preloaded === 'true' ? alm.totalposts - alm.addons.preloaded_amount : alm.totalposts;
 
1041
  alm.debug = meta.debug ? meta.debug : '';
 
 
 
 
 
 
 
1042
  }
1043
 
1044
  // Set alm.html as plain text return
@@ -1116,9 +1128,9 @@ let alm_is_filtering = false;
1116
  // We have results!
1117
 
1118
  if (!alm.addons.paging) {
 
1119
  if (alm.addons.single_post) {
1120
- // Single Posts
1121
- reveal.setAttribute('class', 'alm-reveal alm-single-post post-' + alm.addons.single_post_id + alm.tcc);
1122
  reveal.dataset.url = alm.addons.single_post_permalink;
1123
  if (alm.addons.single_post_target) {
1124
  reveal.dataset.page = parseInt(alm.page) + 1;
@@ -1128,6 +1140,12 @@ let alm_is_filtering = false;
1128
  reveal.dataset.id = alm.addons.single_post_id;
1129
  reveal.dataset.title = alm.addons.single_post_title;
1130
  reveal.innerHTML = alm.html;
 
 
 
 
 
 
1131
  } else {
1132
  if (!alm.transition_container) {
1133
  // No transition container
@@ -1156,7 +1174,7 @@ let alm_is_filtering = false;
1156
  // Call to Actions
1157
  if (alm.addons.cta === 'true') {
1158
  posts_per_page = posts_per_page + 1; // Add 1 to posts_per_page for CTAs
1159
- pages = Math.ceil(total / posts_per_page); // Update pages var with new posts_per_page
1160
  total = pages + total; // Get new total w/ CTAs added
1161
  }
1162
 
@@ -1333,7 +1351,7 @@ let alm_is_filtering = false;
1333
  if (alm.transition !== 'masonry' || (alm.init && !alm.is_masonry_preloaded)) {
1334
  if (!isPaged) {
1335
  if (!alm.transition_container) {
1336
- // No transition container
1337
  if (alm.images_loaded === 'true') {
1338
  imagesLoaded(reveal, function () {
1339
  almAppendChildren(alm.listing, reveal);
@@ -1344,11 +1362,11 @@ let alm_is_filtering = false;
1344
  } else {
1345
  almAppendChildren(alm.listing, reveal);
1346
 
1347
- // Run srcSet polyfill
1348
  srcsetPolyfill(alm.listing, alm.ua);
1349
  }
1350
  } else {
1351
- // Standard container
1352
  alm.listing.appendChild(reveal);
1353
  }
1354
  }
@@ -1378,7 +1396,7 @@ let alm_is_filtering = false;
1378
  }
1379
 
1380
  // None
1381
- else if (alm.transition === 'none') {
1382
  if (alm.images_loaded === 'true') {
1383
  imagesLoaded(reveal, function () {
1384
  almFadeIn(reveal, 0);
@@ -1390,7 +1408,7 @@ let alm_is_filtering = false;
1390
  }
1391
  }
1392
 
1393
- // Default(Fade)
1394
  else {
1395
  if (alm.images_loaded === 'true') {
1396
  imagesLoaded(reveal, function () {
@@ -1524,7 +1542,7 @@ let alm_is_filtering = false;
1524
 
1525
  // Destroy After
1526
  if (alm.destroy_after !== undefined && alm.destroy_after !== '') {
1527
- var currentPage = alm.page + 1; // Add 1 because alm.page starts at 0
1528
  currentPage = alm.addons.preloaded === 'true' ? currentPage++ : currentPage; // Add 1 for preloaded
1529
  if (currentPage == alm.destroy_after) {
1530
  // Disable ALM if page = alm.destroy_after val
@@ -1714,7 +1732,7 @@ let alm_is_filtering = false;
1714
  if (!reveal || !alm.transition_container) {
1715
  return false; // Exit if not `transition_container`
1716
  }
1717
- let nested = reveal.querySelectorAll('.ajax-load-more-wrap'); // Get all instances from jQuery obj
1718
  if (nested) {
1719
  nested.forEach(function (element) {
1720
  window.almInit(element);
@@ -1738,10 +1756,9 @@ let alm_is_filtering = false;
1738
  if (alm.fetchingPreviousPost) {
1739
  return false;
1740
  }
1741
-
1742
  alm.fetchingPreviousPost = true;
1743
 
1744
- // Get admin-ajax.php URL
1745
  let ajaxURL = alm_localize.ajaxurl;
1746
 
1747
  // Get data params
@@ -1793,19 +1810,19 @@ let alm_is_filtering = false;
1793
  * @since 2.14.0
1794
  */
1795
  alm.AjaxLoadMore.triggerAddons = function (alm) {
1796
- if (typeof almSetNextPage === 'function') {
1797
  // Next Page
1798
  window.almSetNextPage(alm);
1799
  }
1800
- if (typeof almSEO === 'function') {
1801
  // SEO
1802
  window.almSEO(alm, false);
1803
  }
1804
- if (typeof almWooCommerce === 'function') {
1805
  // WooCommerce
1806
  window.almWooCommerce(alm);
1807
  }
1808
- if (typeof almElementor === 'function') {
1809
  // Elementor
1810
  window.almElementor(alm);
1811
  }
@@ -1977,7 +1994,7 @@ let alm_is_filtering = false;
1977
  window.dispatchEvent(new Event('resize'));
1978
  } else {
1979
  //This will be executed on old browsers and especially IE
1980
- var resizeEvent = window.document.createEvent('UIEvents');
1981
  resizeEvent.initUIEvent('resize', true, false, window, 0);
1982
  window.dispatchEvent(resizeEvent);
1983
  }
@@ -2067,7 +2084,7 @@ let alm_is_filtering = false;
2067
  });
2068
  alm.window.addEventListener('keyup', function (e) {
2069
  // End, Page Down
2070
- let code = e.keyCode ? e.keyCode : e.which;
2071
  switch (code) {
2072
  case 35:
2073
  case 34:
@@ -2155,8 +2172,10 @@ let alm_is_filtering = false;
2155
  alm.finished = true;
2156
  alm.button.classList.add('done');
2157
  } else {
 
 
 
2158
  if (alm.pause === 'true') {
2159
- alm.button.innerHTML = alm.button_label;
2160
  alm.loading = false;
2161
  } else {
2162
  alm.AjaxLoadMore.loadPosts();
@@ -2174,10 +2193,7 @@ let alm_is_filtering = false;
2174
  alm.AjaxLoadMore.triggerDone();
2175
  }
2176
 
2177
- /*
2178
- * Display tableOfContents
2179
- */
2180
-
2181
  tableOfContents(alm, true, true);
2182
  }
2183
 
@@ -2217,10 +2233,7 @@ let alm_is_filtering = false;
2217
  resultsText.almInitResultsText(alm, 'preloaded');
2218
  }
2219
 
2220
- /*
2221
- * Display tableOfContents
2222
- */
2223
-
2224
  tableOfContents(alm, alm.init, true);
2225
  }
2226
 
@@ -2232,7 +2245,7 @@ let alm_is_filtering = false;
2232
 
2233
  if (nextpage_pages) {
2234
  let nextpage_first = nextpage_pages[0];
2235
- let nextpage_total = alm.localize.total_posts ? parseInt(alm.localize.total_posts) : nextpage_first.dataset.totalPosts;
2236
 
2237
  // Disable if last page loaded
2238
  if (nextpage_pages.length === nextpage_total || parseInt(nextpage_first.dataset.id) === nextpage_total) {
@@ -2241,31 +2254,27 @@ let alm_is_filtering = false;
2241
  }
2242
  }
2243
 
 
2244
  if (alm.resultsText) {
2245
  resultsText.almInitResultsText(alm, 'nextpage');
2246
  }
2247
 
2248
- /*
2249
- * Display tableOfContents
2250
- */
2251
-
2252
  tableOfContents(alm, alm.init, true);
2253
  }
2254
 
2255
- // WooCommerce Add-on
2256
  if (alm.addons.woocommerce) {
2257
- // Initiate WooCommerce
2258
  wooInit(alm);
2259
 
2260
- // Trigger `Done` if `paged is less than `pages`
2261
  if (alm.addons.woocommerce_settings.paged >= parseInt(alm.addons.woocommerce_settings.pages)) {
2262
  alm.AjaxLoadMore.triggerDone();
2263
  }
2264
  }
2265
 
2266
- // Elementor Add-on
2267
  if (alm.addons.elementor && alm.addons.elementor_type && alm.addons.elementor_type === 'posts') {
2268
- // Initiate Elementor
2269
  elementorInit(alm);
2270
 
2271
  // Trigger `Done` if `elementor_next_page_url` is empty
@@ -2274,7 +2283,7 @@ let alm_is_filtering = false;
2274
  }
2275
  }
2276
 
2277
- // Window Load (Masonry + Preloaded)
2278
  alm.window.addEventListener('load', function () {
2279
  if (alm.is_masonry_preloaded) {
2280
  // Wrap almMasonry in anonymous async/await function
@@ -2292,7 +2301,8 @@ let alm_is_filtering = false;
2292
  };
2293
 
2294
  /**
2295
- * Update current page - triggered from paging add-on.
 
2296
  *
2297
  * @since 2.7.0
2298
  */
@@ -2440,8 +2450,8 @@ let reset = function (props = {}) {
2440
  instance.dataset.wooSettings = settings; // Update data atts
2441
  almFilter('fade', '100', data, 'filter');
2442
  }
2443
- })().catch((e) => {
2444
- console.log('There was an resetting the Ajax Load More instance.');
2445
  });
2446
  } else {
2447
  // Standard ALM
15
  let qs = require('qs');
16
  let imagesLoaded = require('imagesloaded');
17
  import axios from 'axios';
18
+ axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
19
  import smoothscroll from 'smoothscroll-polyfill'; // Smooth scrolling polyfill
20
  smoothscroll.polyfill();
21
 
202
  alm.addons.nextpage_pageviews = alm.listing.dataset.nextpagePageviews;
203
  alm.addons.nextpage_post_id = alm.listing.dataset.nextpagePostId;
204
  alm.addons.nextpage_startpage = alm.listing.dataset.nextpageStartpage;
205
+ alm.addons.nextpage_title_template = alm.listing.dataset.nextpageTitleTemplate;
206
  }
207
 
208
  // Single Posts add-on
210
  if (alm.addons.single_post === 'true') {
211
  alm.addons.single_post_id = alm.listing.dataset.singlePostId;
212
  alm.addons.single_post_query = alm.listing.dataset.singlePostQuery;
213
+ alm.addons.single_post_order = alm.listing.dataset.singlePostOrder === undefined ? 'previous' : alm.listing.dataset.singlePostOrder;
214
  alm.addons.single_post_init_id = alm.listing.dataset.singlePostId;
215
+ alm.addons.single_post_taxonomy = alm.listing.dataset.singlePostTaxonomy === undefined ? '' : alm.listing.dataset.singlePostTaxonomy;
216
+ alm.addons.single_post_excluded_terms = alm.listing.dataset.singlePostExcludedTerms === undefined ? '' : alm.listing.dataset.singlePostExcludedTerms;
217
+ alm.addons.single_post_progress_bar = alm.listing.dataset.singlePostProgressBar === undefined ? '' : alm.listing.dataset.singlePostProgressBar;
218
+ alm.addons.single_post_target = alm.listing.dataset.singlePostTarget === undefined ? '' : alm.listing.dataset.singlePostTarget;
219
+ alm.addons.single_post_preview = alm.listing.dataset.singlePostPreview === undefined ? false : true;
220
+ if (alm.addons.single_post_preview) {
221
+ const singlePostPreviewData = alm.listing.dataset.singlePostPreview.split(':');
222
+ alm.addons.single_post_preview_data = {
223
+ button_label: singlePostPreviewData[0] ? singlePostPreviewData[0] : 'Continue Reading',
224
+ height: singlePostPreviewData[1] ? singlePostPreviewData[1] : 500,
225
+ element: singlePostPreviewData[2] ? singlePostPreviewData[2] : 'default',
226
+ className: 'alm-single-post--preview',
227
+ };
228
+ }
229
  }
230
 
231
  // Comments add-on
441
  if (alm.addons.nextpage_startpage > 1) {
442
  alm.isPaged = true;
443
  }
444
+ alm.addons.nextpage_postTitle = alm.listing.dataset.nextpagePostTitle;
445
  } else {
446
  alm.addons.nextpage = false;
447
  }
453
  alm.addons.single_post_permalink = '';
454
  alm.addons.single_post_title = '';
455
  alm.addons.single_post_slug = '';
 
 
 
 
 
456
  alm.addons.single_post_title_template = alm.listing.dataset.singlePostTitleTemplate;
457
  alm.addons.single_post_siteTitle = alm.listing.dataset.singlePostSiteTitle;
458
  alm.addons.single_post_siteTagline = alm.listing.dataset.singlePostSiteTagline;
613
  }
614
 
615
  /**
 
616
  * The function to get posts via Ajax
617
+ *
618
  * @since 2.0.0
619
  */
 
620
  alm.AjaxLoadMore.loadPosts = function () {
621
  if (typeof almOnChange === 'function') {
622
  window.almOnChange(alm);
661
  }
662
  };
663
 
664
+ /**
665
+ * Ajax Load Moe Ajax function
666
  *
667
+ * @param {string} queryType The type of Ajax request (standard/totalposts).
668
+ * @since 2.6.0
669
  */
 
670
  alm.AjaxLoadMore.ajax = function (queryType) {
671
  // Default ALM action
672
  let action = 'alm_get_posts';
710
  pageviews: alm.addons.nextpage_pageviews,
711
  post_id: alm.addons.nextpage_post_id,
712
  startpage: alm.addons.nextpage_startpage,
713
+ nested: alm.nested,
714
  };
715
  }
716
 
781
  };
782
 
783
  /**
 
784
  * Send request to the admin-ajax.php
785
  *
786
  * @param {*} alm | ALm object
861
  // Next Page and Paging
862
  if (typeof almBuildPagination === 'function') {
863
  window.almBuildPagination(data.totalpages, alm);
864
+ alm.totalpages = data.totalpages;
865
  }
866
  } else if (queryType === 'totalposts' && alm.addons.paging) {
867
  // Paging
877
  };
878
 
879
  /**
880
+ * Send request to the WP REST API.
 
881
  *
882
  * @param {*} alm | ALm object
883
  * @since 5.2.0
932
  };
933
 
934
  /**
 
935
  * Send request to the WP REST API
936
  *
937
  * @param {*} alm | ALm object
962
  .then(function (response) {
963
  // Success
964
  let results = response.data; // Get data from response
965
+ let data = '';
966
+ let html = results.html;
967
+ let meta = results.meta;
968
+ let postcount = meta && meta.postcount ? meta.postcount : 0;
969
+ let totalposts = meta && meta.totalposts ? meta.totalposts : 0;
970
 
971
  // loop results to get data from each
972
  for (let i = 0; i < html.length; i++) {
1004
  }
1005
 
1006
  /**
1007
+ * Success function after loading data.
 
1008
  *
1009
+ * @param {object} data The results of the Ajax request.
1010
+ * @param {boolean} is_cache Are results of the Ajax request coming from cache?
1011
  * @since 2.6.0
1012
  */
1013
  alm.AjaxLoadMore.success = function (data, is_cache) {
1029
  // Paging container
1030
  let pagingContent = alm.listing.querySelector('.alm-paging-content');
1031
 
1032
+ let html, meta, total;
1033
 
1034
  if (is_cache) {
1035
  // If Cache, do not look for json data as we won't be querying the DB.
1038
  // Standard ALM query results
1039
  html = data.html;
1040
  meta = data.meta;
1041
+ total = meta && meta.postcount ? meta.postcount : alm.posts_per_page;
1042
+
1043
+ let totalposts = meta && meta.totalposts ? meta.totalposts : alm.posts_per_page * 5;
1044
+ alm.totalposts = alm.addons.preloaded === 'true' ? totalposts - alm.addons.preloaded_amount : totalposts;
1045
+ alm.posts = alm.addons.paging ? total : alm.posts + total;
1046
  alm.debug = meta.debug ? meta.debug : '';
1047
+
1048
+ if (!meta) {
1049
+ // Display warning if `meta` is missing.
1050
+ console.warn(
1051
+ 'Ajax Load More: Unable to access `meta` object in Ajax response. There may be an issue in your Repeater Template or another hook causing interference.'
1052
+ );
1053
+ }
1054
  }
1055
 
1056
  // Set alm.html as plain text return
1128
  // We have results!
1129
 
1130
  if (!alm.addons.paging) {
1131
+ // Single Posts.
1132
  if (alm.addons.single_post) {
1133
+ reveal.setAttribute('class', `alm-reveal alm-single-post post-${alm.addons.single_post_id}${alm.tcc ? ` ${alm.tcc}` : ''}`);
 
1134
  reveal.dataset.url = alm.addons.single_post_permalink;
1135
  if (alm.addons.single_post_target) {
1136
  reveal.dataset.page = parseInt(alm.page) + 1;
1140
  reveal.dataset.id = alm.addons.single_post_id;
1141
  reveal.dataset.title = alm.addons.single_post_title;
1142
  reveal.innerHTML = alm.html;
1143
+
1144
+ // Single Post Preview
1145
+ if (alm.addons.single_post_preview && alm.addons.single_post_preview_data && typeof almSinglePostCreatePreview === 'function') {
1146
+ const singlePreview = window.almSinglePostCreatePreview(reveal, alm.addons.single_post_id, alm.addons.single_post_preview_data);
1147
+ reveal.replaceChildren(singlePreview ? singlePreview : reveal);
1148
+ }
1149
  } else {
1150
  if (!alm.transition_container) {
1151
  // No transition container
1174
  // Call to Actions
1175
  if (alm.addons.cta === 'true') {
1176
  posts_per_page = posts_per_page + 1; // Add 1 to posts_per_page for CTAs
1177
+ pages = Math.ceil(total / posts_per_page); // Update pages let with new posts_per_page
1178
  total = pages + total; // Get new total w/ CTAs added
1179
  }
1180
 
1351
  if (alm.transition !== 'masonry' || (alm.init && !alm.is_masonry_preloaded)) {
1352
  if (!isPaged) {
1353
  if (!alm.transition_container) {
1354
+ // No transition container.
1355
  if (alm.images_loaded === 'true') {
1356
  imagesLoaded(reveal, function () {
1357
  almAppendChildren(alm.listing, reveal);
1362
  } else {
1363
  almAppendChildren(alm.listing, reveal);
1364
 
1365
+ // Run srcSet polyfill.
1366
  srcsetPolyfill(alm.listing, alm.ua);
1367
  }
1368
  } else {
1369
+ // Standard container.
1370
  alm.listing.appendChild(reveal);
1371
  }
1372
  }
1396
  }
1397
 
1398
  // None
1399
+ else if (alm.transition === 'none' && alm.transition_container) {
1400
  if (alm.images_loaded === 'true') {
1401
  imagesLoaded(reveal, function () {
1402
  almFadeIn(reveal, 0);
1408
  }
1409
  }
1410
 
1411
+ // Default (Fade)
1412
  else {
1413
  if (alm.images_loaded === 'true') {
1414
  imagesLoaded(reveal, function () {
1542
 
1543
  // Destroy After
1544
  if (alm.destroy_after !== undefined && alm.destroy_after !== '') {
1545
+ let currentPage = alm.page + 1; // Add 1 because alm.page starts at 0
1546
  currentPage = alm.addons.preloaded === 'true' ? currentPage++ : currentPage; // Add 1 for preloaded
1547
  if (currentPage == alm.destroy_after) {
1548
  // Disable ALM if page = alm.destroy_after val
1732
  if (!reveal || !alm.transition_container) {
1733
  return false; // Exit if not `transition_container`
1734
  }
1735
+ let nested = reveal.querySelectorAll('.ajax-load-more-wrap'); // Get all instances
1736
  if (nested) {
1737
  nested.forEach(function (element) {
1738
  window.almInit(element);
1756
  if (alm.fetchingPreviousPost) {
1757
  return false;
1758
  }
 
1759
  alm.fetchingPreviousPost = true;
1760
 
1761
+ // Get Ajax URL.
1762
  let ajaxURL = alm_localize.ajaxurl;
1763
 
1764
  // Get data params
1810
  * @since 2.14.0
1811
  */
1812
  alm.AjaxLoadMore.triggerAddons = function (alm) {
1813
+ if (typeof almSetNextPage === 'function' && alm.addons.nextpage) {
1814
  // Next Page
1815
  window.almSetNextPage(alm);
1816
  }
1817
+ if (typeof almSEO === 'function' && alm.addons.seo) {
1818
  // SEO
1819
  window.almSEO(alm, false);
1820
  }
1821
+ if (typeof almWooCommerce === 'function' && alm.addons.woocommerce) {
1822
  // WooCommerce
1823
  window.almWooCommerce(alm);
1824
  }
1825
+ if (typeof almElementor === 'function' && alm.addons.elementor) {
1826
  // Elementor
1827
  window.almElementor(alm);
1828
  }
1994
  window.dispatchEvent(new Event('resize'));
1995
  } else {
1996
  //This will be executed on old browsers and especially IE
1997
+ let resizeEvent = window.document.createEvent('UIEvents');
1998
  resizeEvent.initUIEvent('resize', true, false, window, 0);
1999
  window.dispatchEvent(resizeEvent);
2000
  }
2084
  });
2085
  alm.window.addEventListener('keyup', function (e) {
2086
  // End, Page Down
2087
+ let code = e.key ? e.key : e.code;
2088
  switch (code) {
2089
  case 35:
2090
  case 34:
2172
  alm.finished = true;
2173
  alm.button.classList.add('done');
2174
  } else {
2175
+ // Set button label.
2176
+ alm.button.innerHTML = alm.button_label;
2177
+ // If Pause.
2178
  if (alm.pause === 'true') {
 
2179
  alm.loading = false;
2180
  } else {
2181
  alm.AjaxLoadMore.loadPosts();
2193
  alm.AjaxLoadMore.triggerDone();
2194
  }
2195
 
2196
+ // Display Table of Contents
 
 
 
2197
  tableOfContents(alm, true, true);
2198
  }
2199
 
2233
  resultsText.almInitResultsText(alm, 'preloaded');
2234
  }
2235
 
2236
+ // Display Table of Contents
 
 
 
2237
  tableOfContents(alm, alm.init, true);
2238
  }
2239
 
2245
 
2246
  if (nextpage_pages) {
2247
  let nextpage_first = nextpage_pages[0];
2248
+ let nextpage_total = nextpage_first.dataset.totalPosts ? parseInt(nextpage_first.dataset.totalPosts) : alm.localize.total_posts;
2249
 
2250
  // Disable if last page loaded
2251
  if (nextpage_pages.length === nextpage_total || parseInt(nextpage_first.dataset.id) === nextpage_total) {
2254
  }
2255
  }
2256
 
2257
+ // Results Text.
2258
  if (alm.resultsText) {
2259
  resultsText.almInitResultsText(alm, 'nextpage');
2260
  }
2261
 
2262
+ // Display Table of Contents
 
 
 
2263
  tableOfContents(alm, alm.init, true);
2264
  }
2265
 
2266
+ // WooCommerce Add-on.
2267
  if (alm.addons.woocommerce) {
 
2268
  wooInit(alm);
2269
 
2270
+ // Trigger `Done` if `paged is less than `pages`.
2271
  if (alm.addons.woocommerce_settings.paged >= parseInt(alm.addons.woocommerce_settings.pages)) {
2272
  alm.AjaxLoadMore.triggerDone();
2273
  }
2274
  }
2275
 
2276
+ // Elementor Add-on.
2277
  if (alm.addons.elementor && alm.addons.elementor_type && alm.addons.elementor_type === 'posts') {
 
2278
  elementorInit(alm);
2279
 
2280
  // Trigger `Done` if `elementor_next_page_url` is empty
2283
  }
2284
  }
2285
 
2286
+ // Window Load (Masonry + Preloaded).
2287
  alm.window.addEventListener('load', function () {
2288
  if (alm.is_masonry_preloaded) {
2289
  // Wrap almMasonry in anonymous async/await function
2301
  };
2302
 
2303
  /**
2304
+ * Update Current Page.
2305
+ * Callback function triggered from paging add-on.
2306
  *
2307
  * @since 2.7.0
2308
  */
2450
  instance.dataset.wooSettings = settings; // Update data atts
2451
  almFilter('fade', '100', data, 'filter');
2452
  }
2453
+ })().catch(() => {
2454
+ console.warn('Ajax Load More: There was an resetting the Ajax Load More instance.');
2455
  });
2456
  } else {
2457
  // Standard ALM
core/src/js/helpers/queryParams.js CHANGED
File without changes
core/src/js/modules/fadeIn.js CHANGED
@@ -2,17 +2,16 @@
2
  * Fade element in
3
  * @param {*} element
4
  * @param {*} speed
5
- */
6
  let almFadeIn = (element, speed) => {
7
- if(speed == 0){
8
  element.style.opacity = 1;
9
  element.style.height = 'auto';
10
-
11
  } else {
12
- speed = speed/10;
13
- let op = 0; // initial opacity
14
- let timer = setInterval(function () {
15
- if (op > 0.9){
16
  element.style.opacity = 1;
17
  clearInterval(timer);
18
  }
@@ -21,5 +20,5 @@ let almFadeIn = (element, speed) => {
21
  }, speed);
22
  element.style.height = 'auto';
23
  }
24
- }
25
- export default almFadeIn;
2
  * Fade element in
3
  * @param {*} element
4
  * @param {*} speed
5
+ */
6
  let almFadeIn = (element, speed) => {
7
+ if (speed == 0) {
8
  element.style.opacity = 1;
9
  element.style.height = 'auto';
 
10
  } else {
11
+ speed = speed / 10;
12
+ let op = 0; // initial opacity
13
+ let timer = setInterval(function () {
14
+ if (op > 0.9) {
15
  element.style.opacity = 1;
16
  clearInterval(timer);
17
  }
20
  }, speed);
21
  element.style.height = 'auto';
22
  }
23
+ };
24
+ export default almFadeIn;
core/src/scss/_loaders.scss CHANGED
@@ -219,47 +219,49 @@
219
 
220
  /* Infinite */
221
  .ajax-load-more-wrap.infinite {
222
- .alm-load-more-btn {
223
- width: 100%;
224
- background-color: transparent !important;
225
- background-position: center center;
226
- background-repeat: no-repeat;
227
- background-image: url('../../img/spinner.gif');
228
- border: none !important;
229
- opacity: 0;
230
- transition: opacity 0.2s ease;
231
- box-shadow: none !important;
232
- overflow: hidden;
233
- text-indent: -9999px;
234
- cursor: default !important;
235
- outline: none !important;
236
- &:before {
237
- display: none !important;
238
- }
239
- &:focus,
240
- &:active {
241
- outline: none;
242
- }
243
- &.done {
244
  opacity: 0;
245
- }
246
- &.loading {
247
- opacity: 1;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
248
  }
249
  }
250
- &.skype .alm-load-more-btn {
251
  background-image: url('../../img/spinner-skype.gif');
252
  }
253
- &.ring .alm-load-more-btn {
254
  background-image: url('../../img/spinner-ring.gif');
255
  }
256
- &.fading-blocks .alm-load-more-btn {
257
  background-image: url('../../img/loader-fading-blocks.gif');
258
  }
259
- &.fading-circles .alm-load-more-btn {
260
  background-image: url('../../img/loader-fading-circles.gif');
261
  }
262
- &.chasing-arrows .alm-load-more-btn {
263
  background-image: url('../../img/spinner-chasing-arrows.gif');
264
  }
265
  }
219
 
220
  /* Infinite */
221
  .ajax-load-more-wrap.infinite {
222
+ > .alm-btn-wrap {
223
+ .alm-load-more-btn {
224
+ width: 100%;
225
+ background-color: transparent !important;
226
+ background-position: center center;
227
+ background-repeat: no-repeat;
228
+ background-image: url('../../img/spinner.gif');
229
+ border: none !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
230
  opacity: 0;
231
+ transition: opacity 0.2s ease;
232
+ box-shadow: none !important;
233
+ overflow: hidden;
234
+ text-indent: -9999px;
235
+ cursor: default !important;
236
+ outline: none !important;
237
+ &:before {
238
+ display: none !important;
239
+ }
240
+ &:focus,
241
+ &:active {
242
+ outline: none;
243
+ }
244
+ &.done {
245
+ opacity: 0;
246
+ }
247
+ &.loading {
248
+ opacity: 1;
249
+ }
250
  }
251
  }
252
+ &.skype > .alm-btn-wrap .alm-load-more-btn {
253
  background-image: url('../../img/spinner-skype.gif');
254
  }
255
+ &.ring > .alm-btn-wrap .alm-load-more-btn {
256
  background-image: url('../../img/spinner-ring.gif');
257
  }
258
+ &.fading-blocks > .alm-btn-wrap .alm-load-more-btn {
259
  background-image: url('../../img/loader-fading-blocks.gif');
260
  }
261
+ &.fading-circles > .alm-btn-wrap .alm-load-more-btn {
262
  background-image: url('../../img/loader-fading-circles.gif');
263
  }
264
+ &.chasing-arrows > .alm-btn-wrap .alm-load-more-btn {
265
  background-image: url('../../img/spinner-chasing-arrows.gif');
266
  }
267
  }
core/src/scss/ajax-load-more.scss CHANGED
@@ -2,7 +2,7 @@
2
  * Ajax Load More
3
  * http://wordpress.org/plugins/ajax-load-more/
4
  *
5
- * Copyright 2015-2020 Connekt Media - https://connekthq.com
6
  * Free to use under the GPLv2 license.
7
  * http://www.gnu.org/licenses/gpl-2.0.html
8
  *
@@ -11,7 +11,6 @@
11
  * Twitter: @ajaxloadmore
12
  * Twitter: @connekthq
13
  */
14
-
15
  @import './variables';
16
  @import './loaders';
17
  @import './listing';
2
  * Ajax Load More
3
  * http://wordpress.org/plugins/ajax-load-more/
4
  *
5
+ * Copyright 2015-2021 Connekt Media - https://connekthq.com
6
  * Free to use under the GPLv2 license.
7
  * http://www.gnu.org/licenses/gpl-2.0.html
8
  *
11
  * Twitter: @ajaxloadmore
12
  * Twitter: @connekthq
13
  */
 
14
  @import './variables';
15
  @import './loaders';
16
  @import './listing';
lang/ajax-load-more.pot CHANGED
@@ -2,7 +2,7 @@
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Ajax Load More\n"
5
- "POT-Creation-Date: 2021-01-03 19:25-0500\n"
6
  "PO-Revision-Date: 2018-06-20 13:05-0500\n"
7
  "Last-Translator: Darren Cooney <darren@connekthq.com>\n"
8
  "Language-Team: \n"
@@ -19,56 +19,56 @@ msgstr ""
19
  "X-Poedit-SearchPathExcluded-1: admin/src\n"
20
  "X-Poedit-SearchPathExcluded-2: node_modules\n"
21
 
22
- #: admin/admin.php:71
23
  msgid "Looks like your subscription has expired."
24
  msgstr ""
25
 
26
- #: admin/admin.php:72
27
  msgid ""
28
  "Please login to your <a href=\"https://connekthq.com/account/\" target="
29
  "\"_blank\">Account</a> to renew the license."
30
  msgstr ""
31
 
32
- #: admin/admin.php:79
33
  msgid "Looks like your license is inactive and/or invalid."
34
  msgstr ""
35
 
36
- #: admin/admin.php:80
37
  msgid ""
38
  "Please activate the <a href=\"admin.php?page=ajax-load-more-licenses\" "
39
  "target=\"_blank\">license</a> or login to your <a href=\"https://connekthq."
40
  "com/account/\" target=\"_blank\">Account</a> to renew the license."
41
  msgstr ""
42
 
43
- #: admin/admin.php:87
44
  msgid "Looks like your license has been deactivated."
45
  msgstr ""
46
 
47
- #: admin/admin.php:88
48
  msgid ""
49
  "Please activate the <a href=\"admin.php?page=ajax-load-more-licenses\" "
50
  "target=\"_blank\">license</a> to update."
51
  msgstr ""
52
 
53
- #: admin/admin.php:121
54
  #, php-format
55
  msgid ""
56
  "%sRegister%s your copy of %s to receive access to automatic upgrades and "
57
  "support. Need a license key? %sPurchase one now%s."
58
  msgstr ""
59
 
60
- #: admin/admin.php:177 admin/admin.php:1343
61
  #: vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:170
62
  #: vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:241
63
  msgid "Error - unable to verify nonce, please try again."
64
  msgstr ""
65
 
66
- #: admin/admin.php:181
67
  msgid "Transient set successfully"
68
  msgstr ""
69
 
70
- #: admin/admin.php:298 admin/admin.php:463 admin/admin.php:1204
71
- #: admin/admin.php:1250 admin/admin.php:1300
72
  msgid "You don't belong here."
73
  msgstr ""
74
 
@@ -88,261 +88,265 @@ msgid ""
88
  "php?page=ajax-load-more-licenses\">Licenses</a> section and input your keys."
89
  msgstr ""
90
 
91
- #: admin/admin.php:498 core/integration/elementor/elementor.php:13
92
  msgid "Ajax Load More"
93
  msgstr ""
94
 
95
- #: admin/admin.php:499 admin/editor/editor-build.php:69
96
  #: admin/views/licenses.php:94
97
  msgid "Active"
98
  msgstr ""
99
 
100
- #: admin/admin.php:500 admin/editor/editor-build.php:70
101
  #: admin/views/licenses.php:102
102
  msgid "Inactive"
103
  msgstr ""
104
 
105
- #: admin/admin.php:501 admin/editor/editor-build.php:71
106
  msgid "Applying layout"
107
  msgstr ""
108
 
109
- #: admin/admin.php:502 admin/editor/editor-build.php:72
110
  #: admin/views/repeater-templates.php:447
111
  msgid "Template Updated"
112
  msgstr ""
113
 
114
- #: admin/admin.php:504 admin/editor/editor-build.php:75
115
  msgid "Select Author(s)"
116
  msgstr ""
117
 
118
- #: admin/admin.php:505 admin/editor/editor-build.php:76
119
  msgid "Select Categories"
120
  msgstr ""
121
 
122
- #: admin/admin.php:506 admin/editor/editor-build.php:77
123
  msgid "Select Tags"
124
  msgstr ""
125
 
126
- #: admin/admin.php:507 admin/editor/editor-build.php:74
127
  msgid "Select"
128
  msgstr ""
129
 
130
- #: admin/admin.php:508 admin/editor/editor-build.php:41
131
  #: admin/editor/editor-build.php:78
132
  msgid "Jump to Option"
133
  msgstr ""
134
 
135
- #: admin/admin.php:509 admin/editor/editor-build.php:79
136
  msgid "Jump to Template"
137
  msgstr ""
138
 
139
- #: admin/admin.php:510
140
  msgid "Are you sure you want to install this Ajax Load More extension?"
141
  msgstr ""
142
 
143
- #: admin/admin.php:511
144
  #: vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:51
145
  #: vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:379
146
  msgid "Install Now"
147
  msgstr ""
148
 
149
- #: admin/admin.php:512
150
  #: vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:90
151
  #: vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:380
152
  msgid "Activate"
153
  msgstr ""
154
 
155
- #: admin/admin.php:513
156
  msgid "Saving Settings"
157
  msgstr ""
158
 
159
- #: admin/admin.php:514
160
  msgid "Settings Saved Successfully"
161
  msgstr ""
162
 
163
- #: admin/admin.php:515
164
  msgid "Error Saving Settings"
165
  msgstr ""
166
 
167
- #: admin/admin.php:516
168
  msgid ""
169
  "There is a maximum of 3 tax_query objects while using the shortcode builder"
170
  msgstr ""
171
 
172
- #: admin/admin.php:622
173
  msgid ""
174
  "[Ajax Load More] Error opening default repeater template - Please check your "
175
  "file path and ensure your server is configured to allow Ajax Load More to "
176
  "read and write files within the /ajax-load-more/core/repeater directory"
177
  msgstr ""
178
 
179
- #: admin/admin.php:626
180
  msgid ""
181
  "[Ajax Load More] Error updating default repeater template - Please check "
182
  "your file path and ensure your server is configured to allow Ajax Load More "
183
  "to read and write files within the /ajax-load-more/core/repeater directory."
184
  msgstr ""
185
 
186
- #: admin/admin.php:666 admin/admin.php:667 ajax-load-more.php:278
187
  msgid "Settings"
188
  msgstr ""
189
 
190
- #: admin/admin.php:675 admin/admin.php:676
191
  #: admin/views/repeater-templates.php:13
192
  msgid "Repeater Templates"
193
  msgstr ""
194
 
195
- #: admin/admin.php:684 admin/admin.php:685 admin/views/shortcode-builder.php:9
196
  msgid "Shortcode Builder"
197
  msgstr ""
198
 
199
- #: admin/admin.php:694 admin/admin.php:695 admin/views/add-ons.php:6
 
 
200
  msgid "Add-ons"
201
  msgstr ""
202
 
203
- #: admin/admin.php:704 admin/admin.php:705 admin/views/extensions.php:5
 
 
 
204
  msgid "Extensions"
205
  msgstr ""
206
 
207
- #: admin/admin.php:713 admin/admin.php:714 admin/views/help.php:18
208
  msgid "Help"
209
  msgstr ""
210
 
211
- #: admin/admin.php:720
212
  msgid "License"
213
  msgstr ""
214
 
215
- #: admin/admin.php:720 admin/views/licenses.php:2
216
  msgid "Licenses"
217
  msgstr ""
218
 
219
- #: admin/admin.php:740 admin/admin.php:741 admin/admin.php:749
220
  #: admin/views/go-pro.php:5
221
  msgid "Pro"
222
  msgstr ""
223
 
224
- #: admin/admin.php:750 admin/views/licenses.php:151
225
  msgid "Go Pro"
226
  msgstr ""
227
 
228
- #: admin/admin.php:762 admin/admin.php:763
229
- #: admin/shortcode-builder/components/cache.php:3 admin/views/settings.php:35
230
  msgid "Cache"
231
  msgstr ""
232
 
233
- #: admin/admin.php:783 admin/admin.php:784
234
- #: admin/shortcode-builder/components/filters.php:3 admin/views/settings.php:37
235
  msgid "Filters"
236
  msgstr ""
237
 
238
- #: admin/admin.php:805 admin/admin.php:806
239
- #: admin/shortcode-builder/shortcode-builder.php:1405
240
  msgid "WooCommerce"
241
  msgstr ""
242
 
243
- #: admin/admin.php:1160
244
  msgid "[Ajax Load More] Unable to open repeater template - "
245
  msgstr ""
246
 
247
- #: admin/admin.php:1164
248
  msgid "[Ajax Load More] Error saving repeater template - "
249
  msgstr ""
250
 
251
- #: admin/admin.php:1196
252
  msgid "Template Saved Successfully"
253
  msgstr ""
254
 
255
- #: admin/admin.php:1198
256
  msgid "Error Writing File"
257
  msgstr ""
258
 
259
- #: admin/admin.php:1198 admin/views/repeater-templates.php:388
260
  msgid "Something went wrong and the data could not be saved."
261
  msgstr ""
262
 
263
- #: admin/admin.php:1408 admin/shortcode-builder/shortcode-builder.php:126
264
  msgid "Container Type"
265
  msgstr ""
266
 
267
- #: admin/admin.php:1416 admin/shortcode-builder/shortcode-builder.php:156
268
  msgid "Container Classes"
269
  msgstr ""
270
 
271
- #: admin/admin.php:1424
272
  msgid "Disable CSS"
273
  msgstr ""
274
 
275
- #: admin/admin.php:1432 admin/shortcode-builder/shortcode-builder.php:84
276
  msgid "Button/Loading Style"
277
  msgstr ""
278
 
279
- #: admin/admin.php:1440
280
  msgid "Load CSS Inline"
281
  msgstr ""
282
 
283
- #: admin/admin.php:1448
284
  msgid "Button Classes"
285
  msgstr ""
286
 
287
- #: admin/admin.php:1466
288
  msgid "Legacy Callbacks"
289
  msgstr ""
290
 
291
- #: admin/admin.php:1484
292
- msgid "Delete on Uninstall"
293
- msgstr ""
294
-
295
- #: admin/admin.php:1492
296
  msgid "Dynamic Content"
297
  msgstr ""
298
 
299
- #: admin/admin.php:1508
300
  msgid "Error Notices"
301
  msgstr ""
302
 
303
- #: admin/admin.php:1592
 
 
 
 
304
  msgid ""
305
  "Customize the user experience of Ajax Load More by updating the fields below."
306
  msgstr ""
307
 
308
- #: admin/admin.php:1605
309
  msgid "The following settings affect the WordPress admin area only."
310
  msgstr ""
311
 
312
- #: admin/admin.php:1636
313
  msgid "I want to use my own CSS styles."
314
  msgstr ""
315
 
316
- #: admin/admin.php:1636
317
  msgid "View Ajax Load More CSS"
318
  msgstr ""
319
 
320
- #: admin/admin.php:1653
321
  msgid "Hide shortcode button in WYSIWYG editor."
322
  msgstr ""
323
 
324
- #: admin/admin.php:1673
325
  msgid ""
326
  "Display error messaging regarding repeater template updates in the browser "
327
  "console."
328
  msgstr ""
329
 
330
- #: admin/admin.php:1694
331
  msgid ""
332
  "Disable dynamic population of categories, tags and authors in the Shortcode "
333
  "Builder.<span style=\"display:block\">Recommended if you have a large number "
334
  "of categories, tags and/or authors."
335
  msgstr ""
336
 
337
- #: admin/admin.php:1715 admin/admin.php:1718
338
  msgid "Ajax Posts Here"
339
  msgstr ""
340
 
341
- #: admin/admin.php:1720
342
  msgid "You can modify the container type when building a shortcode."
343
  msgstr ""
344
 
345
- #: admin/admin.php:1737
346
  msgid ""
347
  "Add custom classes to the <i>.alm-listing</i> container - classes are "
348
  "applied globally and will appear with every instance of Ajax Load More. "
@@ -350,67 +354,67 @@ msgid ""
350
  "shortcode.</span>"
351
  msgstr ""
352
 
353
- #: admin/admin.php:1802
354
  msgid ""
355
  "Select an Ajax loading style - you can choose between a <strong>Button</"
356
  "strong> or <strong>Infinite Scroll</strong>"
357
  msgstr ""
358
 
359
- #: admin/admin.php:1807 admin/shortcode-builder/shortcode-builder.php:90
360
  msgid "Button Style (Dark)"
361
  msgstr ""
362
 
363
- #: admin/admin.php:1814 admin/shortcode-builder/shortcode-builder.php:97
364
  msgid "Button Style (Light)"
365
  msgstr ""
366
 
367
- #: admin/admin.php:1819 admin/shortcode-builder/shortcode-builder.php:101
368
  msgid "Infinite Scroll (No Button)"
369
  msgstr ""
370
 
371
- #: admin/admin.php:1836
372
  msgid "Click to Preview"
373
  msgstr ""
374
 
375
- #: admin/admin.php:1837 admin/shortcode-builder/shortcode-builder.php:115
376
- #: admin/shortcode-builder/shortcode-builder.php:353
377
- #: core/classes/class-alm-shortcode.php:206
378
  msgid "Load More"
379
  msgstr ""
380
 
381
- #: admin/admin.php:1860
382
  msgid "Improve site performance by loading Ajax Load More CSS inline."
383
  msgstr ""
384
 
385
- #: admin/admin.php:1880
386
  msgid "Add classes to your <strong>Load More</strong> button."
387
  msgstr ""
388
 
389
- #: admin/admin.php:1924
390
  msgid ""
391
  "On initial page load, move the user's browser window to the top of the "
392
  "screen."
393
  msgstr ""
394
 
395
- #: admin/admin.php:1925
396
  msgid "This may help prevent the loading of unnecessary posts."
397
  msgstr ""
398
 
399
- #: admin/admin.php:1948
400
  msgid "Disable REST API."
401
  msgstr ""
402
 
403
- #: admin/admin.php:1949
404
  msgid ""
405
  "Use `admin-ajax.php` in favour of the WordPress REST API for all Ajax "
406
  "requests."
407
  msgstr ""
408
 
409
- #: admin/admin.php:1972
410
  msgid "Load legacy JavaScript callback functions."
411
  msgstr ""
412
 
413
- #: admin/admin.php:1973
414
  msgid ""
415
  "Ajax Load More <a href=\"https://connekthq.com/plugins/ajax-load-more/docs/"
416
  "callback-functions/\" target=\"_blank\">callback functions</a> were updated "
@@ -418,13 +422,13 @@ msgid ""
418
  "library to maintain compatibility."
419
  msgstr ""
420
 
421
- #: admin/admin.php:1996
422
  msgid ""
423
  "Check this box if Ajax Load More should remove all of its data* when the "
424
  "plugin is deleted."
425
  msgstr ""
426
 
427
- #: admin/admin.php:1997
428
  msgid "* Database Tables, Options and Repeater Templates"
429
  msgstr ""
430
 
@@ -461,14 +465,12 @@ msgid "You are not allowed to be here"
461
  msgstr ""
462
 
463
  #: admin/includes/components/example-list.php:2
464
- #: admin/shortcode-builder/shortcode-builder.php:6
465
  #: admin/views/repeater-templates.php:134
466
  #: admin/views/repeater-templates.php:172
467
  msgid "Collapse All"
468
  msgstr ""
469
 
470
  #: admin/includes/components/example-list.php:2
471
- #: admin/shortcode-builder/shortcode-builder.php:7
472
  #: admin/views/repeater-templates.php:135
473
  #: admin/views/repeater-templates.php:173
474
  msgid "Expand All"
@@ -540,7 +542,7 @@ msgid "Get More Layouts"
540
  msgstr ""
541
 
542
  #: admin/includes/components/repeater-options.php:5
543
- #: admin/shortcode-builder/shortcode-builder.php:58
544
  msgid "Options"
545
  msgstr ""
546
 
@@ -609,38 +611,42 @@ msgstr ""
609
  msgid "Resources"
610
  msgstr ""
611
 
612
- #: admin/includes/cta/resources.php:5
613
  msgid "Ajax Load More Demo Site"
614
  msgstr ""
615
 
616
- #: admin/includes/cta/resources.php:6
 
 
 
 
617
  msgid "Documentation"
618
  msgstr ""
619
 
620
- #: admin/includes/cta/resources.php:8 admin/includes/cta/resources.php:10
621
  msgid "Support and Issues"
622
  msgstr ""
623
 
624
- #: admin/includes/cta/resources.php:12
 
 
 
 
625
  msgid "Reviews"
626
  msgstr ""
627
 
628
- #: admin/includes/cta/resources.php:13
629
  msgid "WordPress"
630
  msgstr ""
631
 
632
- #: admin/includes/cta/resources.php:14
633
  msgid "Github"
634
  msgstr ""
635
 
636
- #: admin/includes/cta/resources.php:15 admin/includes/cta/sharing.php:14
637
  msgid "Twitter"
638
  msgstr ""
639
 
640
- #: admin/includes/cta/resources.php:16 admin/includes/cta/sharing.php:17
641
- msgid "Facebook"
642
- msgstr ""
643
-
644
  #: admin/includes/cta/reviews.php:1
645
  msgid "Leave a Review"
646
  msgstr ""
@@ -655,6 +661,10 @@ msgstr ""
655
  msgid "Write Review"
656
  msgstr ""
657
 
 
 
 
 
658
  #: admin/includes/cta/sharing.php:20
659
  msgid "Review"
660
  msgstr ""
@@ -726,8 +736,8 @@ msgstr ""
726
  #: admin/shortcode-builder/components/filters.php:117
727
  #: admin/shortcode-builder/components/filters.php:158
728
  #: admin/shortcode-builder/components/filters.php:180
729
- #: admin/shortcode-builder/components/nextpage.php:15
730
- #: admin/shortcode-builder/components/nextpage.php:92
731
  #: admin/shortcode-builder/components/paging.php:15
732
  #: admin/shortcode-builder/components/paging.php:64
733
  #: admin/shortcode-builder/components/paging.php:90
@@ -736,22 +746,21 @@ msgstr ""
736
  #: admin/shortcode-builder/components/rest-api.php:105
737
  #: admin/shortcode-builder/components/seo.php:15
738
  #: admin/shortcode-builder/components/single-post.php:19
739
- #: admin/shortcode-builder/components/single-post.php:164
740
- #: admin/shortcode-builder/components/single-post.php:186
 
741
  #: admin/shortcode-builder/components/term-query.php:15
742
  #: admin/shortcode-builder/components/term-query.php:79
743
  #: admin/shortcode-builder/components/users.php:14
744
- #: admin/shortcode-builder/shortcode-builder.php:180
745
- #: admin/shortcode-builder/shortcode-builder.php:217
746
- #: admin/shortcode-builder/shortcode-builder.php:240
747
- #: admin/shortcode-builder/shortcode-builder.php:283
748
- #: admin/shortcode-builder/shortcode-builder.php:400
749
- #: admin/shortcode-builder/shortcode-builder.php:459
750
- #: admin/shortcode-builder/shortcode-builder.php:482
751
- #: admin/shortcode-builder/shortcode-builder.php:657
752
- #: admin/shortcode-builder/shortcode-builder.php:733
753
- #: admin/shortcode-builder/shortcode-builder.php:1388
754
- #: admin/shortcode-builder/shortcode-builder.php:1419
755
  msgid "True"
756
  msgstr ""
757
 
@@ -765,8 +774,8 @@ msgstr ""
765
  #: admin/shortcode-builder/components/filters.php:121
766
  #: admin/shortcode-builder/components/filters.php:162
767
  #: admin/shortcode-builder/components/filters.php:184
768
- #: admin/shortcode-builder/components/nextpage.php:19
769
- #: admin/shortcode-builder/components/nextpage.php:93
770
  #: admin/shortcode-builder/components/paging.php:19
771
  #: admin/shortcode-builder/components/paging.php:65
772
  #: admin/shortcode-builder/components/paging.php:94
@@ -775,29 +784,28 @@ msgstr ""
775
  #: admin/shortcode-builder/components/rest-api.php:109
776
  #: admin/shortcode-builder/components/seo.php:19
777
  #: admin/shortcode-builder/components/single-post.php:23
778
- #: admin/shortcode-builder/components/single-post.php:168
779
- #: admin/shortcode-builder/components/single-post.php:190
 
780
  #: admin/shortcode-builder/components/term-query.php:19
781
  #: admin/shortcode-builder/components/term-query.php:80
782
  #: admin/shortcode-builder/components/users.php:18
783
- #: admin/shortcode-builder/shortcode-builder.php:184
784
- #: admin/shortcode-builder/shortcode-builder.php:221
785
- #: admin/shortcode-builder/shortcode-builder.php:244
786
- #: admin/shortcode-builder/shortcode-builder.php:287
787
- #: admin/shortcode-builder/shortcode-builder.php:404
788
- #: admin/shortcode-builder/shortcode-builder.php:463
789
- #: admin/shortcode-builder/shortcode-builder.php:486
790
- #: admin/shortcode-builder/shortcode-builder.php:661
791
- #: admin/shortcode-builder/shortcode-builder.php:737
792
- #: admin/shortcode-builder/shortcode-builder.php:1392
793
- #: admin/shortcode-builder/shortcode-builder.php:1423
794
  msgid "False"
795
  msgstr ""
796
 
797
  #: admin/shortcode-builder/components/acf.php:31
798
  #: admin/shortcode-builder/components/comments.php:30
799
- #: admin/shortcode-builder/components/nextpage.php:31
800
- #: admin/shortcode-builder/components/single-post.php:34
801
  msgid "Post ID"
802
  msgstr ""
803
 
@@ -808,7 +816,7 @@ msgid ""
808
  msgstr ""
809
 
810
  #: admin/shortcode-builder/components/acf.php:32
811
- #: admin/shortcode-builder/components/nextpage.php:32
812
  msgid "The ID of the current page/post."
813
  msgstr ""
814
 
@@ -900,7 +908,7 @@ msgid "Enable Ajax Load More to display blog comments."
900
  msgstr ""
901
 
902
  #: admin/shortcode-builder/components/comments.php:31
903
- #: admin/shortcode-builder/components/single-post.php:35
904
  msgid "The ID of the current single post."
905
  msgstr ""
906
 
@@ -968,8 +976,8 @@ msgid ""
968
  msgstr ""
969
 
970
  #: admin/shortcode-builder/components/comments.php:105
971
- #: admin/shortcode-builder/shortcode-builder.php:552
972
- #: admin/shortcode-builder/shortcode-builder.php:638
973
  msgid "None"
974
  msgstr ""
975
 
@@ -1007,12 +1015,11 @@ msgid ""
1007
  msgstr ""
1008
 
1009
  #: admin/shortcode-builder/components/comments.php:135
1010
- #: admin/shortcode-builder/components/nextpage.php:108
1011
- #: admin/shortcode-builder/components/single-post.php:62
1012
- #: admin/shortcode-builder/components/single-post.php:277
1013
- #: admin/shortcode-builder/shortcode-builder.php:670
1014
- #: admin/shortcode-builder/shortcode-builder.php:1381
1015
- #: admin/shortcode-builder/shortcode-builder.php:1411
1016
  msgid "View Docs"
1017
  msgstr ""
1018
 
@@ -1080,7 +1087,7 @@ msgid "Enable filters with this Ajax Load More instance."
1080
  msgstr ""
1081
 
1082
  #: admin/shortcode-builder/components/filters.php:30
1083
- #: admin/shortcode-builder/components/single-post.php:46
1084
  msgid "Target"
1085
  msgstr ""
1086
 
@@ -1144,7 +1151,7 @@ msgid "Automatically scroll users to the top of list after a filter update."
1144
  msgstr ""
1145
 
1146
  #: admin/shortcode-builder/components/filters.php:131
1147
- #: admin/shortcode-builder/components/nextpage.php:98
1148
  #: admin/shortcode-builder/components/paging.php:70
1149
  msgid "Scroll Top"
1150
  msgstr ""
@@ -1187,77 +1194,115 @@ msgid ""
1187
  "Enable debugging of the Ajax Load More filter object in the browser console."
1188
  msgstr ""
1189
 
1190
- #: admin/shortcode-builder/components/nextpage.php:3
1191
  #: admin/shortcode-builder/components/paging.php:147
1192
  msgid "Next Page"
1193
  msgstr ""
1194
 
1195
- #: admin/shortcode-builder/components/nextpage.php:8
1196
  msgid "Enable the infinite scrolling of multipage WordPress content using the"
1197
  msgstr ""
1198
 
1199
- #: admin/shortcode-builder/components/nextpage.php:8
1200
  msgid "Quicktag or Page Break block."
1201
  msgstr ""
1202
 
1203
- #: admin/shortcode-builder/components/nextpage.php:43
1204
  msgid "URL Rewrite"
1205
  msgstr ""
1206
 
1207
- #: admin/shortcode-builder/components/nextpage.php:44
1208
  msgid "Update the browser address bar as pages come into view."
1209
  msgstr ""
1210
 
1211
- #: admin/shortcode-builder/components/nextpage.php:51
1212
  msgid "Yes, update the URL."
1213
  msgstr ""
1214
 
1215
  #: admin/shortcode-builder/components/nextpage.php:62
1216
- msgid "Google Analytics"
1217
  msgstr ""
1218
 
1219
  #: admin/shortcode-builder/components/nextpage.php:63
1220
  msgid ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1221
  "You must have a reference to your Google Analytics tracking code already on "
1222
  "the page."
1223
  msgstr ""
1224
 
1225
- #: admin/shortcode-builder/components/nextpage.php:65
1226
  msgid "Each time a page is loaded it will count as a pageview."
1227
  msgstr ""
1228
 
1229
- #: admin/shortcode-builder/components/nextpage.php:72
1230
  msgid "Yes, send pageviews to Google Analytics."
1231
  msgstr ""
1232
 
1233
- #: admin/shortcode-builder/components/nextpage.php:82
1234
  msgid "Scroll to Page"
1235
  msgstr ""
1236
 
1237
- #: admin/shortcode-builder/components/nextpage.php:84
1238
  msgid "Scroll users automatically to the next page on 'Load More' action."
1239
  msgstr ""
1240
 
1241
- #: admin/shortcode-builder/components/nextpage.php:90
1242
  #: admin/shortcode-builder/components/paging.php:62
1243
- #: admin/shortcode-builder/shortcode-builder.php:392
1244
  msgid "Enable Scrolling"
1245
  msgstr ""
1246
 
1247
- #: admin/shortcode-builder/components/nextpage.php:99
1248
  msgid ""
1249
  "The scrolltop position of the browser window (used with scrolling and fwd/"
1250
  "back browser buttons)."
1251
  msgstr ""
1252
 
1253
- #: admin/shortcode-builder/components/nextpage.php:108
1254
  msgid ""
1255
  "You must add the Next Page shortcode directly to your template file using "
1256
  "the <a href=\"https://developer.wordpress.org/reference/functions/"
1257
  "do_shortcode/\" target=\"_blank\">do_shortcode</a> method."
1258
  msgstr ""
1259
 
1260
- #: admin/shortcode-builder/components/paging.php:3 admin/views/settings.php:41
1261
  msgid "Paging"
1262
  msgstr ""
1263
 
@@ -1302,7 +1347,7 @@ msgid "Show first/last and next/previous buttons in the paging navigation."
1302
  msgstr ""
1303
 
1304
  #: admin/shortcode-builder/components/paging.php:105
1305
- #: core/classes/class-alm-noscript.php:168
1306
  msgid "First Page"
1307
  msgstr ""
1308
 
@@ -1316,7 +1361,7 @@ msgid "Label for the <span>First Page</span> button."
1316
  msgstr ""
1317
 
1318
  #: admin/shortcode-builder/components/paging.php:119
1319
- #: core/classes/class-alm-noscript.php:186
1320
  msgid "Last Page"
1321
  msgstr ""
1322
 
@@ -1353,7 +1398,6 @@ msgid "Enter the number of posts to preload."
1353
  msgstr ""
1354
 
1355
  #: admin/shortcode-builder/components/rest-api.php:18
1356
- #: admin/views/settings.php:43
1357
  msgid "REST API"
1358
  msgstr ""
1359
 
@@ -1414,16 +1458,18 @@ msgid ""
1414
  msgstr ""
1415
 
1416
  #: admin/shortcode-builder/components/rest-api.php:86
1417
- #: admin/shortcode-builder/shortcode-builder.php:196
1418
- #: admin/shortcode-builder/shortcode-builder.php:210
1419
- #: admin/shortcode-builder/shortcode-builder.php:233
1420
- #: admin/shortcode-builder/shortcode-builder.php:726
1421
- #: admin/shortcode-builder/shortcode-builder.php:913
1422
- #: admin/shortcode-builder/shortcode-builder.php:1007
1423
- #: admin/shortcode-builder/shortcode-builder.php:1150
1424
- #: admin/shortcode-builder/shortcode-builder.php:1191
1425
- #: admin/shortcode-builder/shortcode-builder.php:1220
1426
- #: admin/shortcode-builder/shortcode-builder.php:1251
 
 
1427
  msgid "View Example"
1428
  msgstr ""
1429
 
@@ -1441,7 +1487,7 @@ msgid ""
1441
  msgstr ""
1442
 
1443
  #: admin/shortcode-builder/components/seo.php:4
1444
- msgid "SEO (Search Engine Optimization)"
1445
  msgstr ""
1446
 
1447
  #: admin/shortcode-builder/components/seo.php:8
@@ -1450,7 +1496,6 @@ msgid ""
1450
  msgstr ""
1451
 
1452
  #: admin/shortcode-builder/components/single-post.php:7
1453
- #: admin/views/settings.php:47
1454
  msgid "Single Posts"
1455
  msgstr ""
1456
 
@@ -1458,198 +1503,221 @@ msgstr ""
1458
  msgid "Enable the infinite scrolling of single posts."
1459
  msgstr ""
1460
 
1461
- #: admin/shortcode-builder/components/single-post.php:46
1462
  msgid ""
1463
  "Repeater Templates are not required when using the Target implementation."
1464
  msgstr ""
1465
 
1466
- #: admin/shortcode-builder/components/single-post.php:47
1467
  msgid ""
1468
  "Enter the ID or classname of HTML element that wraps your single post "
1469
  "content."
1470
  msgstr ""
1471
 
1472
- #: admin/shortcode-builder/components/single-post.php:49
1473
  msgid "View Guide"
1474
  msgstr ""
1475
 
1476
- #: admin/shortcode-builder/components/single-post.php:60
1477
  msgid "Post Ordering"
1478
  msgstr ""
1479
 
1480
- #: admin/shortcode-builder/components/single-post.php:60
1481
  msgid ""
1482
  "By default, the Single Posts add-on will use the core WordPress "
1483
  "`get_previous_post` function, but you can adjust that here."
1484
  msgstr ""
1485
 
1486
- #: admin/shortcode-builder/components/single-post.php:61
1487
  msgid "Select the posts loading order."
1488
  msgstr ""
1489
 
1490
- #: admin/shortcode-builder/components/single-post.php:67
1491
  msgid "Previous Post (by date DESC)"
1492
  msgstr ""
1493
 
1494
- #: admin/shortcode-builder/components/single-post.php:68
1495
  msgid "Next Post (by date ASC)"
1496
  msgstr ""
1497
 
1498
- #: admin/shortcode-builder/components/single-post.php:69
1499
- #: admin/shortcode-builder/components/single-post.php:86
1500
  msgid "Latest Post (Start from most recent)"
1501
  msgstr ""
1502
 
1503
- #: admin/shortcode-builder/components/single-post.php:70
1504
  msgid "Post IDs (Array)"
1505
  msgstr ""
1506
 
1507
- #: admin/shortcode-builder/components/single-post.php:71
1508
  msgid "Custom Query"
1509
  msgstr ""
1510
 
1511
- #: admin/shortcode-builder/components/single-post.php:80
1512
  msgid "Custom Query Order"
1513
  msgstr ""
1514
 
1515
- #: admin/shortcode-builder/components/single-post.php:81
1516
  msgid "Select the post ordering of the custom query."
1517
  msgstr ""
1518
 
1519
- #: admin/shortcode-builder/components/single-post.php:85
1520
  msgid "Previous Post (Continue by date DESC)"
1521
  msgstr ""
1522
 
1523
- #: admin/shortcode-builder/components/single-post.php:95
1524
  msgid "Post ID Array"
1525
  msgstr ""
1526
 
1527
- #: admin/shortcode-builder/components/single-post.php:96
1528
  msgid "A comma separated list of post ID's to query by order."
1529
  msgstr ""
1530
 
1531
- #: admin/shortcode-builder/components/single-post.php:109
1532
  #: admin/shortcode-builder/components/term-query.php:39
1533
- #: admin/shortcode-builder/shortcode-builder.php:1090
1534
  msgid "Taxonomy"
1535
  msgstr ""
1536
 
1537
- #: admin/shortcode-builder/components/single-post.php:109
1538
  msgid ""
1539
  "Selecting a taxonomy means only previous posts from the same taxonomy term "
1540
  "will be returned. If a post has multiple terms attached, each term will be "
1541
  "considered using an OR relationship query."
1542
  msgstr ""
1543
 
1544
- #: admin/shortcode-builder/components/single-post.php:110
1545
  msgid "Query previous posts from the same taxonomy term(s)."
1546
  msgstr ""
1547
 
1548
- #: admin/shortcode-builder/components/single-post.php:123
1549
  #: admin/shortcode-builder/includes/tax-query-options.php:5
1550
  #: admin/shortcode-builder/includes/tax-query-options.php:62
1551
  #: admin/shortcode-builder/includes/tax-query-options.php:105
1552
  msgid "Select Taxonomy"
1553
  msgstr ""
1554
 
1555
- #: admin/shortcode-builder/components/single-post.php:124
1556
  #: admin/shortcode-builder/components/term-query.php:45
1557
- #: admin/shortcode-builder/shortcode-builder.php:906
1558
  msgid "Category"
1559
  msgstr ""
1560
 
1561
- #: admin/shortcode-builder/components/single-post.php:125
1562
  #: admin/shortcode-builder/components/term-query.php:46
1563
- #: admin/shortcode-builder/shortcode-builder.php:999
1564
  msgid "Tag"
1565
  msgstr ""
1566
 
1567
- #: admin/shortcode-builder/components/single-post.php:139
1568
  msgid "Excluded Terms "
1569
  msgstr ""
1570
 
1571
- #: admin/shortcode-builder/components/single-post.php:139
1572
  msgid "A comma-separated list of excluded terms by ID."
1573
  msgstr ""
1574
 
1575
- #: admin/shortcode-builder/components/single-post.php:140
1576
  msgid "Exclude posts by term ID from the previous post query."
1577
  msgstr ""
1578
 
1579
- #: admin/shortcode-builder/components/single-post.php:155
1580
- msgid "Elementor"
1581
  msgstr ""
1582
 
1583
- #: admin/shortcode-builder/components/single-post.php:156
1584
  msgid ""
1585
- "Set Elementor <b>true</b> if you are using Elementor templates to build "
1586
- "single posts."
1587
- msgstr ""
1588
-
1589
- #: admin/shortcode-builder/components/single-post.php:157
1590
- msgid "View Blog Post"
1591
  msgstr ""
1592
 
1593
  #: admin/shortcode-builder/components/single-post.php:178
1594
- msgid "Reading Progress Bar "
1595
  msgstr ""
1596
 
1597
  #: admin/shortcode-builder/components/single-post.php:179
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1598
  msgid ""
1599
  "Display a reading progress bar indicator at the top or bottom of the browser "
1600
  "window."
1601
  msgstr ""
1602
 
1603
- #: admin/shortcode-builder/components/single-post.php:206
1604
  msgid "Position"
1605
  msgstr ""
1606
 
1607
- #: admin/shortcode-builder/components/single-post.php:207
1608
  msgid "Select the window position of the progress bar."
1609
  msgstr ""
1610
 
1611
- #: admin/shortcode-builder/components/single-post.php:214
1612
  msgid "Top"
1613
  msgstr ""
1614
 
1615
- #: admin/shortcode-builder/components/single-post.php:218
1616
  msgid "Bottom"
1617
  msgstr ""
1618
 
1619
- #: admin/shortcode-builder/components/single-post.php:227
1620
- msgid "Height"
1621
- msgstr ""
1622
-
1623
- #: admin/shortcode-builder/components/single-post.php:228
1624
  msgid "Select the height of the progress bar in pixels."
1625
  msgstr ""
1626
 
1627
- #: admin/shortcode-builder/components/single-post.php:239
1628
  msgid "Colors"
1629
  msgstr ""
1630
 
1631
- #: admin/shortcode-builder/components/single-post.php:240
1632
  msgid "Enter the hex color values of the reading progress bar"
1633
  msgstr ""
1634
 
1635
- #: admin/shortcode-builder/components/single-post.php:241
1636
- #: admin/shortcode-builder/shortcode-builder.php:752
1637
  msgid "Default:"
1638
  msgstr ""
1639
 
1640
- #: admin/shortcode-builder/components/single-post.php:248
1641
  msgid "Foreground Color:"
1642
  msgstr ""
1643
 
1644
- #: admin/shortcode-builder/components/single-post.php:255
1645
  msgid "Background Color:"
1646
  msgstr ""
1647
 
1648
- #: admin/shortcode-builder/components/single-post.php:255
1649
  msgid "Leave empty for a transparent background"
1650
  msgstr ""
1651
 
1652
- #: admin/shortcode-builder/components/single-post.php:277
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1653
  msgid ""
1654
  "You must add the Single Post shortcode directly to your single template file "
1655
  "using the <a href=\"https://developer.wordpress.org/reference/functions/"
@@ -1709,9 +1777,9 @@ msgid "All Roles"
1709
  msgstr ""
1710
 
1711
  #: admin/shortcode-builder/components/users.php:56
1712
- #: admin/shortcode-builder/shortcode-builder.php:910
1713
- #: admin/shortcode-builder/shortcode-builder.php:1003
1714
- #: admin/shortcode-builder/shortcode-builder.php:1238
1715
  msgid "Include"
1716
  msgstr ""
1717
 
@@ -1720,9 +1788,9 @@ msgid "A comma separated list of users to be included by ID"
1720
  msgstr ""
1721
 
1722
  #: admin/shortcode-builder/components/users.php:70
1723
- #: admin/shortcode-builder/shortcode-builder.php:957
1724
- #: admin/shortcode-builder/shortcode-builder.php:1052
1725
- #: admin/shortcode-builder/shortcode-builder.php:1249
1726
  msgid "Exclude"
1727
  msgstr ""
1728
 
@@ -1747,12 +1815,12 @@ msgid "Sort users by Order and Orderby parameters"
1747
  msgstr ""
1748
 
1749
  #: admin/shortcode-builder/components/users.php:102
1750
- #: admin/shortcode-builder/shortcode-builder.php:1294
1751
  msgid "Order"
1752
  msgstr ""
1753
 
1754
  #: admin/shortcode-builder/components/users.php:109
1755
- #: admin/shortcode-builder/shortcode-builder.php:1301
1756
  msgid "Order By"
1757
  msgstr ""
1758
 
@@ -1764,25 +1832,25 @@ msgstr ""
1764
  msgid "Enter custom field key(name)"
1765
  msgstr ""
1766
 
1767
- #: admin/shortcode-builder/includes/meta-query-options.php:9
1768
  msgid "Value:"
1769
  msgstr ""
1770
 
1771
- #: admin/shortcode-builder/includes/meta-query-options.php:9
1772
  msgid ""
1773
  "Query multiple values by splitting each value with a comma - e.g. value, "
1774
  "value2, value3 etc."
1775
  msgstr ""
1776
 
1777
- #: admin/shortcode-builder/includes/meta-query-options.php:10
1778
  msgid "Enter custom field value(s)"
1779
  msgstr ""
1780
 
1781
- #: admin/shortcode-builder/includes/meta-query-options.php:15
1782
  msgid "Operator:"
1783
  msgstr ""
1784
 
1785
- #: admin/shortcode-builder/includes/meta-query-options.php:35
1786
  msgid "Type:"
1787
  msgstr ""
1788
 
@@ -1805,7 +1873,7 @@ msgid "Taxonomy Operator:"
1805
  msgstr ""
1806
 
1807
  #: admin/shortcode-builder/includes/tax-query-options.php:48
1808
- #: admin/shortcode-builder/shortcode-builder.php:1125
1809
  msgid "Relation:"
1810
  msgstr ""
1811
 
@@ -1814,764 +1882,755 @@ msgid ""
1814
  "The logical relationship between each taxonomy when there is more than one."
1815
  msgstr ""
1816
 
1817
- #: admin/shortcode-builder/shortcode-builder.php:27
1818
- msgid "Add-ons & Extensions"
 
1819
  msgstr ""
1820
 
1821
- #: admin/shortcode-builder/shortcode-builder.php:51
1822
- msgid "Display Settings"
 
 
 
 
 
 
 
 
 
 
1823
  msgstr ""
1824
 
1825
- #: admin/shortcode-builder/shortcode-builder.php:54
 
 
 
 
1826
  msgid ""
1827
  "Display Settings allow you create a custom Ajax Load More experience for "
1828
  "your visitors."
1829
  msgstr ""
1830
 
1831
- #: admin/shortcode-builder/shortcode-builder.php:64
1832
  msgid "ID"
1833
  msgstr ""
1834
 
1835
- #: admin/shortcode-builder/shortcode-builder.php:64
1836
  msgid ""
1837
  "Adding a unique ID will allow you target this specific Ajax Load More "
1838
  "instance with the alm_query_args_id() filter"
1839
  msgstr ""
1840
 
1841
- #: admin/shortcode-builder/shortcode-builder.php:65
1842
  msgid "Set a unique ID for this Ajax Load More instance."
1843
  msgstr ""
1844
 
1845
- #: admin/shortcode-builder/shortcode-builder.php:66
1846
  #: admin/views/repeater-templates.php:151
1847
  #: admin/views/repeater-templates.php:502
1848
  msgid "Learn More"
1849
  msgstr ""
1850
 
1851
- #: admin/shortcode-builder/shortcode-builder.php:72
1852
  msgid "Generate Unique ID"
1853
  msgstr ""
1854
 
1855
- #: admin/shortcode-builder/shortcode-builder.php:84
1856
  msgid ""
1857
  "You can define a global button/loading style on the Ajax Load More settings "
1858
  "screen"
1859
  msgstr ""
1860
 
1861
- #: admin/shortcode-builder/shortcode-builder.php:85
1862
  msgid ""
1863
  "Select an Ajax loading style - you can choose between a Button or Infinite "
1864
  "Scroll."
1865
  msgstr ""
1866
 
1867
- #: admin/shortcode-builder/shortcode-builder.php:113
1868
  msgid "CLICK TO PREVIEW"
1869
  msgstr ""
1870
 
1871
- #: admin/shortcode-builder/shortcode-builder.php:126
1872
  msgid ""
1873
  "You can define a global container type on the Ajax Load More settings screen"
1874
  msgstr ""
1875
 
1876
- #: admin/shortcode-builder/shortcode-builder.php:127
1877
  msgid ""
1878
  "Override the global Container Type set in <a href=\"admin.php?page=ajax-load-"
1879
  "more\">ALM Settings</a>."
1880
  msgstr ""
1881
 
1882
- #: admin/shortcode-builder/shortcode-builder.php:156
1883
  msgid ""
1884
  "You can define global container classes on the Ajax Load More settings screen"
1885
  msgstr ""
1886
 
1887
- #: admin/shortcode-builder/shortcode-builder.php:158
1888
  msgid "Add custom CSS classes to the <span>.alm-listing</span> container."
1889
  msgstr ""
1890
 
1891
- #: admin/shortcode-builder/shortcode-builder.php:172
1892
  msgid "Pause"
1893
  msgstr ""
1894
 
1895
- #: admin/shortcode-builder/shortcode-builder.php:173
1896
  msgid ""
1897
  "Do not load Ajax content until the user clicks or interacts with the "
1898
  "<em>Load More</em> button."
1899
  msgstr ""
1900
 
1901
- #: admin/shortcode-builder/shortcode-builder.php:194
1902
  msgid "Destroy After"
1903
  msgstr ""
1904
 
1905
- #: admin/shortcode-builder/shortcode-builder.php:195
1906
  msgid ""
1907
  "Remove Ajax Load More functionality after {<em>n</em>} number of pages have "
1908
  "been loaded."
1909
  msgstr ""
1910
 
1911
- #: admin/shortcode-builder/shortcode-builder.php:208
1912
  msgid "Images Loaded"
1913
  msgstr ""
1914
 
1915
- #: admin/shortcode-builder/shortcode-builder.php:208
1916
  msgid "Background images are not supported."
1917
  msgstr ""
1918
 
1919
- #: admin/shortcode-builder/shortcode-builder.php:209
1920
  msgid "Wait for all images to load before displaying ajax loaded content."
1921
  msgstr ""
1922
 
1923
- #: admin/shortcode-builder/shortcode-builder.php:231
1924
  msgid "Loading Placeholder"
1925
  msgstr ""
1926
 
1927
- #: admin/shortcode-builder/shortcode-builder.php:231
1928
  msgid ""
1929
  "A loading placeholder can help the understand content is about to rendered."
1930
  msgstr ""
1931
 
1932
- #: admin/shortcode-builder/shortcode-builder.php:232
1933
  msgid "Display a placeholder image while Ajax content is being loaded."
1934
  msgstr ""
1935
 
1936
- #: admin/shortcode-builder/shortcode-builder.php:250
1937
  msgid "URL:"
1938
  msgstr ""
1939
 
1940
- #: admin/shortcode-builder/shortcode-builder.php:262
1941
  msgid "No Results Text"
1942
  msgstr ""
1943
 
1944
- #: admin/shortcode-builder/shortcode-builder.php:262
1945
  msgid ""
1946
  "HTML is allowed, however when adding quote marks in classnames or IDs you "
1947
  "must single quotes as shown in the example."
1948
  msgstr ""
1949
 
1950
- #: admin/shortcode-builder/shortcode-builder.php:263
1951
  msgid ""
1952
  "Add text/html to be displayed when no results are returned in the Ajax query."
1953
  msgstr ""
1954
 
1955
- #: admin/shortcode-builder/shortcode-builder.php:263
1956
  msgid ""
1957
  "e.g. &lt;div class='no-results'>Sorry, nothing found in this query&lt;/div>"
1958
  msgstr ""
1959
 
1960
- #: admin/shortcode-builder/shortcode-builder.php:275
1961
- msgid "Nested Instance"
1962
- msgstr ""
1963
-
1964
- #: admin/shortcode-builder/shortcode-builder.php:275
1965
- msgid ""
1966
- "When nesting ALM instances it's important to set this to true as it removes "
1967
- "any problematic JavaScript functionality."
1968
- msgstr ""
1969
-
1970
- #: admin/shortcode-builder/shortcode-builder.php:276
1971
- msgid ""
1972
- "Is this instance of Ajax Load More nested inside another instance of Ajax "
1973
- "Load More?"
1974
- msgstr ""
1975
-
1976
- #: admin/shortcode-builder/shortcode-builder.php:302
1977
  msgid "Template Selection"
1978
  msgstr ""
1979
 
1980
- #: admin/shortcode-builder/shortcode-builder.php:307
1981
  msgid "Repeater Template"
1982
  msgstr ""
1983
 
1984
- #: admin/shortcode-builder/shortcode-builder.php:309
1985
  msgid ""
1986
  "Select which <a href=\"admin.php?page=ajax-load-more-repeaters\" target="
1987
  "\"_parent\">Repeater Template</a> you would like to use."
1988
  msgstr ""
1989
 
1990
- #: admin/shortcode-builder/shortcode-builder.php:343
1991
  msgid "Button Labels"
1992
  msgstr ""
1993
 
1994
- #: admin/shortcode-builder/shortcode-builder.php:348
1995
  msgid "Label"
1996
  msgstr ""
1997
 
1998
- #: admin/shortcode-builder/shortcode-builder.php:349
1999
  msgid "Customize the text of the <em>Load More</em> button."
2000
  msgstr ""
2001
 
2002
- #: admin/shortcode-builder/shortcode-builder.php:360
2003
  msgid "Loading Label"
2004
  msgstr ""
2005
 
2006
- #: admin/shortcode-builder/shortcode-builder.php:360
2007
  msgid "Leave field empty to not update button text while loading content"
2008
  msgstr ""
2009
 
2010
- #: admin/shortcode-builder/shortcode-builder.php:361
2011
  msgid ""
2012
  "Update the text of the <em>Load More</em> button while content is loading."
2013
  msgstr ""
2014
 
2015
- #: admin/shortcode-builder/shortcode-builder.php:365
2016
  msgid "Loading Posts..."
2017
  msgstr ""
2018
 
2019
- #: admin/shortcode-builder/shortcode-builder.php:372
2020
  msgid "Done Label"
2021
  msgstr ""
2022
 
2023
- #: admin/shortcode-builder/shortcode-builder.php:372
2024
  msgid "Leave field empty to not update button text"
2025
  msgstr ""
2026
 
2027
- #: admin/shortcode-builder/shortcode-builder.php:373
2028
  msgid ""
2029
  "Update the text of the <em>Load More</em> button when no content remains to "
2030
  "be loaded."
2031
  msgstr ""
2032
 
2033
- #: admin/shortcode-builder/shortcode-builder.php:377
2034
  msgid "No Posts Remain..."
2035
  msgstr ""
2036
 
2037
- #: admin/shortcode-builder/shortcode-builder.php:388
2038
  msgid "Scrolling"
2039
  msgstr ""
2040
 
2041
- #: admin/shortcode-builder/shortcode-builder.php:393
2042
  msgid "Load more posts as the user scrolls the page."
2043
  msgstr ""
2044
 
2045
- #: admin/shortcode-builder/shortcode-builder.php:419
2046
  msgid "Scroll Distance"
2047
  msgstr ""
2048
 
2049
- #: admin/shortcode-builder/shortcode-builder.php:419
2050
  msgid ""
2051
  "Distance is based on the position of the loading button from the bottom of "
2052
  "the screen"
2053
  msgstr ""
2054
 
2055
- #: admin/shortcode-builder/shortcode-builder.php:420
2056
  msgid ""
2057
  "The distance from the bottom of the screen to trigger loading of posts. "
2058
  "(Default = 100)"
2059
  msgstr ""
2060
 
2061
- #: admin/shortcode-builder/shortcode-builder.php:421
2062
  msgid "Pro-tip"
2063
  msgstr ""
2064
 
2065
- #: admin/shortcode-builder/shortcode-builder.php:421
2066
  msgid ""
2067
  "Use a negative number (-200) to trigger a post load before the button is in "
2068
  "view"
2069
  msgstr ""
2070
 
2071
- #: admin/shortcode-builder/shortcode-builder.php:439
2072
  msgid "Maximum Pages"
2073
  msgstr ""
2074
 
2075
- #: admin/shortcode-builder/shortcode-builder.php:439
2076
  msgid "If using an Infinite Scroll button style you should set this to 0"
2077
  msgstr ""
2078
 
2079
- #: admin/shortcode-builder/shortcode-builder.php:440
2080
  msgid "Maximum number of pages to load while scrolling. (0 = unlimited)"
2081
  msgstr ""
2082
 
2083
- #: admin/shortcode-builder/shortcode-builder.php:452
2084
  msgid "Pause Override"
2085
  msgstr ""
2086
 
2087
- #: admin/shortcode-builder/shortcode-builder.php:453
2088
  msgid ""
2089
  "Override the <em>Pause</em> parameter and trigger the initial loading of "
2090
  "posts on scroll."
2091
  msgstr ""
2092
 
2093
- #: admin/shortcode-builder/shortcode-builder.php:475
2094
  msgid "Scroll Container"
2095
  msgstr ""
2096
 
2097
- #: admin/shortcode-builder/shortcode-builder.php:476
2098
  msgid "Confine Ajax Load More scrolling to a parent container element."
2099
  msgstr ""
2100
 
2101
- #: admin/shortcode-builder/shortcode-builder.php:500
2102
  msgid "Container Element"
2103
  msgstr ""
2104
 
2105
- #: admin/shortcode-builder/shortcode-builder.php:501
2106
  msgid ""
2107
  "Enter the ID or classname of the parent container element to be used as the "
2108
  "scrolling container."
2109
  msgstr ""
2110
 
2111
- #: admin/shortcode-builder/shortcode-builder.php:513
2112
  msgid "Scroll Direction"
2113
  msgstr ""
2114
 
2115
- #: admin/shortcode-builder/shortcode-builder.php:513
2116
  msgid "Scroll Direction only works when using a Scroll Container."
2117
  msgstr ""
2118
 
2119
- #: admin/shortcode-builder/shortcode-builder.php:514
2120
  msgid "Select the direction Ajax Load More should scroll to load posts."
2121
  msgstr ""
2122
 
2123
- #: admin/shortcode-builder/shortcode-builder.php:520
2124
  msgid "Vertical"
2125
  msgstr ""
2126
 
2127
- #: admin/shortcode-builder/shortcode-builder.php:524
2128
  msgid "Horizontal"
2129
  msgstr ""
2130
 
2131
- #: admin/shortcode-builder/shortcode-builder.php:539
2132
  msgid "Transition"
2133
  msgstr ""
2134
 
2135
- #: admin/shortcode-builder/shortcode-builder.php:544
2136
  msgid "Type"
2137
  msgstr ""
2138
 
2139
- #: admin/shortcode-builder/shortcode-builder.php:545
2140
  msgid "Select a loading transition style."
2141
  msgstr ""
2142
 
2143
- #: admin/shortcode-builder/shortcode-builder.php:550
2144
  msgid "Fade In"
2145
  msgstr ""
2146
 
2147
- #: admin/shortcode-builder/shortcode-builder.php:551
2148
  msgid "Masonry"
2149
  msgstr ""
2150
 
2151
- #: admin/shortcode-builder/shortcode-builder.php:565
2152
  msgid "Masonry Options"
2153
  msgstr ""
2154
 
2155
- #: admin/shortcode-builder/shortcode-builder.php:565
2156
  msgid "Ajax Load More does not support all available Masonry options"
2157
  msgstr ""
2158
 
2159
- #: admin/shortcode-builder/shortcode-builder.php:566
2160
  msgid ""
2161
  "The following Masonry <a href=\"https://masonry.desandro.com/options.html\" "
2162
  "target=\"_blank\">options</a> are supported by Ajax Load More."
2163
  msgstr ""
2164
 
2165
- #: admin/shortcode-builder/shortcode-builder.php:572
2166
  msgid "Item Selector"
2167
  msgstr ""
2168
 
2169
- #: admin/shortcode-builder/shortcode-builder.php:572
2170
  msgid ""
2171
  "Item Selector is required for Masonry to target each element loaded with "
2172
  "Ajax."
2173
  msgstr ""
2174
 
2175
- #: admin/shortcode-builder/shortcode-builder.php:573
2176
  msgid "Enter the target classname of each masonry item."
2177
  msgstr ""
2178
 
2179
- #: admin/shortcode-builder/shortcode-builder.php:587
2180
  msgid "Column Width"
2181
  msgstr ""
2182
 
2183
- #: admin/shortcode-builder/shortcode-builder.php:587
2184
  msgid ""
2185
  "If columnWidth is not set, Masonry will use the outer width of the first "
2186
  "Item Selector."
2187
  msgstr ""
2188
 
2189
- #: admin/shortcode-builder/shortcode-builder.php:588
2190
  msgid ""
2191
  "Enter the <a href=\"https://masonry.desandro.com/options.html#columnwidth\" "
2192
  "target=\"_blank\">columnWidth</a> of the masonry items."
2193
  msgstr ""
2194
 
2195
- #: admin/shortcode-builder/shortcode-builder.php:601
2196
  msgid "Animation Type"
2197
  msgstr ""
2198
 
2199
- #: admin/shortcode-builder/shortcode-builder.php:601
2200
  msgid "All Masonry animations include a fade-in effect as items are loaded."
2201
  msgstr ""
2202
 
2203
- #: admin/shortcode-builder/shortcode-builder.php:602
2204
  msgid "Select a loading transition for Masonry items."
2205
  msgstr ""
2206
 
2207
- #: admin/shortcode-builder/shortcode-builder.php:610
2208
  msgid "Default (Zoom)"
2209
  msgstr ""
2210
 
2211
- #: admin/shortcode-builder/shortcode-builder.php:611
2212
  msgid "Items scale up from 50% to 100% size on load."
2213
  msgstr ""
2214
 
2215
- #: admin/shortcode-builder/shortcode-builder.php:617
2216
  msgid "Zoom Out"
2217
  msgstr ""
2218
 
2219
- #: admin/shortcode-builder/shortcode-builder.php:618
2220
  msgid "Items scale down from 125% to 100% size on load."
2221
  msgstr ""
2222
 
2223
- #: admin/shortcode-builder/shortcode-builder.php:624
2224
  msgid "Slide Up"
2225
  msgstr ""
2226
 
2227
- #: admin/shortcode-builder/shortcode-builder.php:625
2228
  msgid "Items animate up as they are loaded into view."
2229
  msgstr ""
2230
 
2231
- #: admin/shortcode-builder/shortcode-builder.php:631
2232
  msgid "Slide Down"
2233
  msgstr ""
2234
 
2235
- #: admin/shortcode-builder/shortcode-builder.php:632
2236
  msgid "Items animate down when loaded into view."
2237
  msgstr ""
2238
 
2239
- #: admin/shortcode-builder/shortcode-builder.php:648
2240
  msgid "Horizontal Order"
2241
  msgstr ""
2242
 
2243
- #: admin/shortcode-builder/shortcode-builder.php:649
2244
  msgid "Lays out items to maintain left-to-right order."
2245
  msgstr ""
2246
 
2247
- #: admin/shortcode-builder/shortcode-builder.php:669
2248
  msgid ""
2249
  "Don't see your favorite Masonry option listed? You can always add your own!"
2250
  msgstr ""
2251
 
2252
- #: admin/shortcode-builder/shortcode-builder.php:684
2253
  msgid "Transition Container Classes"
2254
  msgstr ""
2255
 
2256
- #: admin/shortcode-builder/shortcode-builder.php:684
2257
  msgid "This setting is not available with the Single Post or Next Page add-ons"
2258
  msgstr ""
2259
 
2260
- #: admin/shortcode-builder/shortcode-builder.php:685
2261
  msgid "Add custom classes to the <span>.alm-reveal</span> loading container"
2262
  msgstr ""
2263
 
2264
- #: admin/shortcode-builder/shortcode-builder.php:697
2265
  msgid "Transition Container"
2266
  msgstr ""
2267
 
2268
- #: admin/shortcode-builder/shortcode-builder.php:697
2269
  msgid ""
2270
  "Removing the transition container may have undesired results and is not "
2271
  "recommended"
2272
  msgstr ""
2273
 
2274
- #: admin/shortcode-builder/shortcode-builder.php:698
2275
  msgid ""
2276
  "Remove the <span>.alm-reveal</span> loading container from Ajax Load More"
2277
  msgstr ""
2278
 
2279
- #: admin/shortcode-builder/shortcode-builder.php:705
2280
  msgid "Remove Container"
2281
  msgstr ""
2282
 
2283
- #: admin/shortcode-builder/shortcode-builder.php:721
2284
  msgid "Progress Bar"
2285
  msgstr ""
2286
 
2287
- #: admin/shortcode-builder/shortcode-builder.php:725
2288
  msgid ""
2289
  "Display progress bar indicator at the top of the window while loading Ajax "
2290
  "content."
2291
  msgstr ""
2292
 
2293
- #: admin/shortcode-builder/shortcode-builder.php:750
2294
  msgid "Color"
2295
  msgstr ""
2296
 
2297
- #: admin/shortcode-builder/shortcode-builder.php:751
2298
  msgid "Enter the hex color of the progress bar"
2299
  msgstr ""
2300
 
2301
- #: admin/shortcode-builder/shortcode-builder.php:778
2302
- msgid "Query Parameters"
 
 
2303
  msgstr ""
2304
 
2305
- #: admin/shortcode-builder/shortcode-builder.php:781
2306
  msgid ""
2307
  "Query Parameters allow you build a custom <b>WP_Query</b> based on Ajax Load "
2308
  "More shortcode values."
2309
  msgstr ""
2310
 
2311
- #: admin/shortcode-builder/shortcode-builder.php:781
2312
- msgid ""
2313
- "When using Ajax Load More add-ons or extensions not all Query Parameters "
2314
- "will be available in the query."
2315
- msgstr ""
2316
-
2317
- #: admin/shortcode-builder/shortcode-builder.php:785
2318
  msgid "Posts Per Page"
2319
  msgstr ""
2320
 
2321
- #: admin/shortcode-builder/shortcode-builder.php:789
2322
  msgid "Select the number of posts to load with each Ajax request."
2323
  msgstr ""
2324
 
2325
- #: admin/shortcode-builder/shortcode-builder.php:809
2326
  msgid "Post Type"
2327
  msgstr ""
2328
 
2329
- #: admin/shortcode-builder/shortcode-builder.php:814
2330
  msgid "Select the Post Types to include in this Ajax Load More query."
2331
  msgstr ""
2332
 
2333
- #: admin/shortcode-builder/shortcode-builder.php:828
2334
  msgid "Any"
2335
  msgstr ""
2336
 
2337
- #: admin/shortcode-builder/shortcode-builder.php:839
2338
  msgid "Sticky Posts"
2339
  msgstr ""
2340
 
2341
- #: admin/shortcode-builder/shortcode-builder.php:839
2342
  msgid "Sticky posts are only available for Posts"
2343
  msgstr ""
2344
 
2345
- #: admin/shortcode-builder/shortcode-builder.php:840
2346
  msgid ""
2347
  "Preserve the ordering of sticky posts by having them appear first in the "
2348
  "Ajax listing."
2349
  msgstr ""
2350
 
2351
- #: admin/shortcode-builder/shortcode-builder.php:847
2352
  msgid "Enable Sticky Posts"
2353
  msgstr ""
2354
 
2355
- #: admin/shortcode-builder/shortcode-builder.php:870
2356
  msgid "Post Format"
2357
  msgstr ""
2358
 
2359
- #: admin/shortcode-builder/shortcode-builder.php:874
2360
  msgid "Select a Post Format to query."
2361
  msgstr ""
2362
 
2363
- #: admin/shortcode-builder/shortcode-builder.php:877
2364
  msgid "Select Post Format"
2365
  msgstr ""
2366
 
2367
- #: admin/shortcode-builder/shortcode-builder.php:878
2368
  msgid "Standard"
2369
  msgstr ""
2370
 
2371
- #: admin/shortcode-builder/shortcode-builder.php:910
2372
  msgid "Get posts by category using a category_name or category__and query"
2373
  msgstr ""
2374
 
2375
- #: admin/shortcode-builder/shortcode-builder.php:911
2376
  msgid "Comma separated list of categories to include by"
2377
  msgstr ""
2378
 
2379
- #: admin/shortcode-builder/shortcode-builder.php:911
2380
- #: admin/shortcode-builder/shortcode-builder.php:1004
2381
  msgid "slug"
2382
  msgstr ""
2383
 
2384
- #: admin/shortcode-builder/shortcode-builder.php:947
2385
- #: admin/shortcode-builder/shortcode-builder.php:1042
2386
  msgid "What's this"
2387
  msgstr ""
2388
 
2389
- #: admin/shortcode-builder/shortcode-builder.php:959
2390
  msgid "Comma separated list of categories to exclude by ID."
2391
  msgstr ""
2392
 
2393
- #: admin/shortcode-builder/shortcode-builder.php:1003
2394
  msgid "Get posts by tags using a tag or tag__and query"
2395
  msgstr ""
2396
 
2397
- #: admin/shortcode-builder/shortcode-builder.php:1004
2398
  msgid "Comma separated list of tags to include by"
2399
  msgstr ""
2400
 
2401
- #: admin/shortcode-builder/shortcode-builder.php:1054
2402
  msgid "Comma separated list of tags to exclude by ID"
2403
  msgstr ""
2404
 
2405
- #: admin/shortcode-builder/shortcode-builder.php:1094
2406
- msgid "Select a taxonomy then select the terms and an operator."
2407
  msgstr ""
2408
 
2409
- #: admin/shortcode-builder/shortcode-builder.php:1099
2410
- #: admin/shortcode-builder/shortcode-builder.php:1135
2411
  msgid "Add Another"
2412
  msgstr ""
2413
 
2414
- #: admin/shortcode-builder/shortcode-builder.php:1110
2415
  msgid "Custom Fields (Meta_Query)"
2416
  msgstr ""
2417
 
2418
- #: admin/shortcode-builder/shortcode-builder.php:1114
2419
  msgid ""
2420
  "Query for <a href=\"https://developer.wordpress.org/reference/classes/"
2421
  "wp_query/#custom-field-post-meta-parameters\" target=\"_blank\">custom "
2422
- "field</a> by entering a custom field key, value and operator."
2423
  msgstr ""
2424
 
2425
- #: admin/shortcode-builder/shortcode-builder.php:1125
2426
  msgid ""
2427
  "The logical relationship between each custom field when there is more than "
2428
  "one"
2429
  msgstr ""
2430
 
2431
- #: admin/shortcode-builder/shortcode-builder.php:1145
2432
  msgid "Date"
2433
  msgstr ""
2434
 
2435
- #: admin/shortcode-builder/shortcode-builder.php:1149
2436
  msgid "Enter a year, month(number) and day to query by date archive."
2437
  msgstr ""
2438
 
2439
- #: admin/shortcode-builder/shortcode-builder.php:1156
2440
  msgid "Year:"
2441
  msgstr ""
2442
 
2443
- #: admin/shortcode-builder/shortcode-builder.php:1160
2444
  msgid "Month:"
2445
  msgstr ""
2446
 
2447
- #: admin/shortcode-builder/shortcode-builder.php:1164
2448
  msgid "Day:"
2449
  msgstr ""
2450
 
2451
- #: admin/shortcode-builder/shortcode-builder.php:1185
2452
  msgid "Author"
2453
  msgstr ""
2454
 
2455
- #: admin/shortcode-builder/shortcode-builder.php:1189
2456
  msgid "Select an Author to query(by ID)."
2457
  msgstr ""
2458
 
2459
- #: admin/shortcode-builder/shortcode-builder.php:1214
2460
  msgid "Search"
2461
  msgstr ""
2462
 
2463
- #: admin/shortcode-builder/shortcode-builder.php:1218
2464
  msgid "Enter a search term to query."
2465
  msgstr ""
2466
 
2467
- #: admin/shortcode-builder/shortcode-builder.php:1219
2468
  msgid ""
2469
  "Search uses the default WordPress search, however Ajax Load More does offer "
2470
  "integrations with SearchWP and Relevanssi."
2471
  msgstr ""
2472
 
2473
- #: admin/shortcode-builder/shortcode-builder.php:1224
2474
  msgid "Enter search term"
2475
  msgstr ""
2476
 
2477
- #: admin/shortcode-builder/shortcode-builder.php:1234
2478
  msgid "Post Parameters"
2479
  msgstr ""
2480
 
2481
- #: admin/shortcode-builder/shortcode-builder.php:1239
2482
  msgid "A comma separated list of post ID's to query."
2483
  msgstr ""
2484
 
2485
- #: admin/shortcode-builder/shortcode-builder.php:1243
2486
  msgid "225, 340, 818, etc..."
2487
  msgstr ""
2488
 
2489
- #: admin/shortcode-builder/shortcode-builder.php:1250
2490
  msgid "A comma separated list of post ID's to exclude from query."
2491
  msgstr ""
2492
 
2493
- #: admin/shortcode-builder/shortcode-builder.php:1261
2494
  msgid "Post Status"
2495
  msgstr ""
2496
 
2497
- #: admin/shortcode-builder/shortcode-builder.php:1261
2498
  msgid ""
2499
  "Post Status parameters are only available for logged in (admin) users. Non "
2500
  "logged in users will only have access to view content in a 'publish' or "
2501
  "'inherit' state."
2502
  msgstr ""
2503
 
2504
- #: admin/shortcode-builder/shortcode-builder.php:1262
2505
  msgid "Select status of the post."
2506
  msgstr ""
2507
 
2508
- #: admin/shortcode-builder/shortcode-builder.php:1267
2509
  msgid "Published"
2510
  msgstr ""
2511
 
2512
- #: admin/shortcode-builder/shortcode-builder.php:1285
2513
  msgid "Ordering"
2514
  msgstr ""
2515
 
2516
- #: admin/shortcode-builder/shortcode-builder.php:1289
2517
  msgid "Sort posts by Order and Orderby parameters."
2518
  msgstr ""
2519
 
2520
- #: admin/shortcode-builder/shortcode-builder.php:1324
2521
  msgid "Offset"
2522
  msgstr ""
2523
 
2524
- #: admin/shortcode-builder/shortcode-builder.php:1328
2525
  msgid "Offset the initial query by <em>'x'</em> number of posts"
2526
  msgstr ""
2527
 
2528
- #: admin/shortcode-builder/shortcode-builder.php:1342
2529
  msgid "Custom Arguments"
2530
  msgstr ""
2531
 
2532
- #: admin/shortcode-builder/shortcode-builder.php:1346
2533
  msgid "A semicolon separated list of custom value:pair arguments."
2534
  msgstr ""
2535
 
2536
- #: admin/shortcode-builder/shortcode-builder.php:1346
2537
  msgid ""
2538
  "Custom Arguments can be used to query by parameters not available in the "
2539
  "Shortcode Builder"
2540
  msgstr ""
2541
 
2542
- #: admin/shortcode-builder/shortcode-builder.php:1350
2543
  msgid "event_display:upcoming"
2544
  msgstr ""
2545
 
2546
- #: admin/shortcode-builder/shortcode-builder.php:1367
2547
- msgid "Integrations"
2548
- msgstr ""
2549
-
2550
- #: admin/shortcode-builder/shortcode-builder.php:1371
2551
  msgid ""
2552
- "Ajax Load More provides integration solutions for popular plugins and core "
2553
- "WP functionality - when selecting an integration, Ajax Load More will "
2554
  "automatically set various parameters on the server side to provide the best "
2555
  "experience for users based on the selected integration."
2556
  msgstr ""
2557
 
2558
- #: admin/shortcode-builder/shortcode-builder.php:1375
2559
  msgid "Archives"
2560
  msgstr ""
2561
 
2562
- #: admin/shortcode-builder/shortcode-builder.php:1379
2563
  msgid ""
2564
  "Ajax Load More will automatically create an archive query while viewing site "
2565
  "archives."
2566
  msgstr ""
2567
 
2568
- #: admin/shortcode-builder/shortcode-builder.php:1380
2569
  msgid ""
2570
  "Taxonomy, category, tag, date (year, month, day), post type and author "
2571
  "archives are currently supported."
2572
  msgstr ""
2573
 
2574
- #: admin/shortcode-builder/shortcode-builder.php:1398
2575
  msgid ""
2576
  "<b>Note</b>: Do not select Query Parameters other than <b>Posts Per Page</b> "
2577
  "and/or <b>Post Type</b> when using the Archives integration. Ajax Load More "
@@ -2579,18 +2638,6 @@ msgid ""
2579
  "archive page."
2580
  msgstr ""
2581
 
2582
- #: admin/shortcode-builder/shortcode-builder.php:1409
2583
- msgid ""
2584
- "Ajax Load More will automatically set WooCommerce configuration options."
2585
- msgstr ""
2586
-
2587
- #: admin/shortcode-builder/shortcode-builder.php:1410
2588
- msgid ""
2589
- "Post type, products per page, container classes, sort order and taxonomy/tag "
2590
- "archive queries will be set on the server side based on your sites "
2591
- "WooCommerce configuration."
2592
- msgstr ""
2593
-
2594
  #: admin/views/add-ons.php:7
2595
  msgid ""
2596
  "Add-ons are available to extend and enhance the core functionality of Ajax "
@@ -2666,10 +2713,6 @@ msgstr ""
2666
  msgid "A collection of everyday shortcode usages and implementation examples"
2667
  msgstr ""
2668
 
2669
- #: admin/views/help.php:31
2670
- msgid "Implementation Guide"
2671
- msgstr ""
2672
-
2673
  #: admin/views/help.php:36
2674
  msgid "Examples"
2675
  msgstr ""
@@ -2680,7 +2723,7 @@ msgstr ""
2680
 
2681
  #: admin/views/help.php:71
2682
  msgid ""
2683
- "We have a collection of over 20 real world Ajax Load More <a href=\"https://"
2684
  "connekthq.com/plugins/ajax-load-more/examples/\" target=\"_blank\">examples</"
2685
  "a> available on the plugin website"
2686
  msgstr ""
@@ -2875,36 +2918,12 @@ msgid ""
2875
  "org/The_Loop\" target=\"_blank\">WordPress loop</a>"
2876
  msgstr ""
2877
 
2878
- #: admin/views/settings.php:10
2879
  msgid "A powerful plugin to add infinite scroll functionality to your website."
2880
  msgstr ""
2881
 
2882
- #: admin/views/settings.php:27 admin/views/settings.php:30
2883
- msgid "Jump to Setting"
2884
- msgstr ""
2885
-
2886
- #: admin/views/settings.php:31
2887
- msgid "Global Settings"
2888
- msgstr ""
2889
-
2890
- #: admin/views/settings.php:32
2891
- msgid "Admin"
2892
- msgstr ""
2893
-
2894
- #: admin/views/settings.php:39
2895
- msgid "Layouts"
2896
- msgstr ""
2897
-
2898
- #: admin/views/settings.php:45
2899
- msgid "SEO"
2900
- msgstr ""
2901
-
2902
- #: admin/views/settings.php:49
2903
- msgid "Tabs"
2904
- msgstr ""
2905
-
2906
- #: admin/views/settings.php:51
2907
- msgid "Theme Repeaters"
2908
  msgstr ""
2909
 
2910
  #: admin/views/shortcode-builder.php:10
@@ -2913,41 +2932,37 @@ msgid ""
2913
  "shortcodes/\" target=\"_blank\">shortcode</a> by adjusting the values below"
2914
  msgstr ""
2915
 
2916
- #: admin/views/shortcode-builder.php:21
2917
- msgid "Back to Top"
2918
- msgstr ""
2919
-
2920
- #: admin/views/shortcode-builder.php:33
2921
  msgid "Shortcode Output"
2922
  msgstr ""
2923
 
2924
- #: admin/views/shortcode-builder.php:35
2925
  msgid ""
2926
  "Place the following shortcode into the content editor or widget area of your "
2927
  "theme."
2928
  msgstr ""
2929
 
2930
- #: admin/views/shortcode-builder.php:41
2931
  msgid "Copied!"
2932
  msgstr ""
2933
 
2934
- #: admin/views/shortcode-builder.php:41
2935
  msgid "Copy Shortcode"
2936
  msgstr ""
2937
 
2938
- #: admin/views/shortcode-builder.php:42
2939
  msgid "Reset"
2940
  msgstr ""
2941
 
2942
- #: ajax-load-more.php:352
2943
  msgid "Viewing {post_count} of {total_posts} results."
2944
  msgstr ""
2945
 
2946
- #: ajax-load-more.php:353
2947
  msgid "No results found."
2948
  msgstr ""
2949
 
2950
- #: core/classes/class-alm-noscript.php:164
2951
  msgid "Pages: "
2952
  msgstr ""
2953
 
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Ajax Load More\n"
5
+ "POT-Creation-Date: 2021-03-31 08:10-0400\n"
6
  "PO-Revision-Date: 2018-06-20 13:05-0500\n"
7
  "Last-Translator: Darren Cooney <darren@connekthq.com>\n"
8
  "Language-Team: \n"
19
  "X-Poedit-SearchPathExcluded-1: admin/src\n"
20
  "X-Poedit-SearchPathExcluded-2: node_modules\n"
21
 
22
+ #: admin/admin.php:73
23
  msgid "Looks like your subscription has expired."
24
  msgstr ""
25
 
26
+ #: admin/admin.php:74
27
  msgid ""
28
  "Please login to your <a href=\"https://connekthq.com/account/\" target="
29
  "\"_blank\">Account</a> to renew the license."
30
  msgstr ""
31
 
32
+ #: admin/admin.php:81
33
  msgid "Looks like your license is inactive and/or invalid."
34
  msgstr ""
35
 
36
+ #: admin/admin.php:82
37
  msgid ""
38
  "Please activate the <a href=\"admin.php?page=ajax-load-more-licenses\" "
39
  "target=\"_blank\">license</a> or login to your <a href=\"https://connekthq."
40
  "com/account/\" target=\"_blank\">Account</a> to renew the license."
41
  msgstr ""
42
 
43
+ #: admin/admin.php:89
44
  msgid "Looks like your license has been deactivated."
45
  msgstr ""
46
 
47
+ #: admin/admin.php:90
48
  msgid ""
49
  "Please activate the <a href=\"admin.php?page=ajax-load-more-licenses\" "
50
  "target=\"_blank\">license</a> to update."
51
  msgstr ""
52
 
53
+ #: admin/admin.php:123
54
  #, php-format
55
  msgid ""
56
  "%sRegister%s your copy of %s to receive access to automatic upgrades and "
57
  "support. Need a license key? %sPurchase one now%s."
58
  msgstr ""
59
 
60
+ #: admin/admin.php:179 admin/admin.php:1260
61
  #: vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:170
62
  #: vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:241
63
  msgid "Error - unable to verify nonce, please try again."
64
  msgstr ""
65
 
66
+ #: admin/admin.php:183
67
  msgid "Transient set successfully"
68
  msgstr ""
69
 
70
+ #: admin/admin.php:301 admin/admin.php:461 admin/admin.php:1125
71
+ #: admin/admin.php:1171 admin/admin.php:1221
72
  msgid "You don't belong here."
73
  msgstr ""
74
 
88
  "php?page=ajax-load-more-licenses\">Licenses</a> section and input your keys."
89
  msgstr ""
90
 
91
+ #: admin/admin.php:485 core/integration/elementor/elementor.php:13
92
  msgid "Ajax Load More"
93
  msgstr ""
94
 
95
+ #: admin/admin.php:486 admin/editor/editor-build.php:69
96
  #: admin/views/licenses.php:94
97
  msgid "Active"
98
  msgstr ""
99
 
100
+ #: admin/admin.php:487 admin/editor/editor-build.php:70
101
  #: admin/views/licenses.php:102
102
  msgid "Inactive"
103
  msgstr ""
104
 
105
+ #: admin/admin.php:488 admin/editor/editor-build.php:71
106
  msgid "Applying layout"
107
  msgstr ""
108
 
109
+ #: admin/admin.php:489 admin/editor/editor-build.php:72
110
  #: admin/views/repeater-templates.php:447
111
  msgid "Template Updated"
112
  msgstr ""
113
 
114
+ #: admin/admin.php:491 admin/editor/editor-build.php:75
115
  msgid "Select Author(s)"
116
  msgstr ""
117
 
118
+ #: admin/admin.php:492 admin/editor/editor-build.php:76
119
  msgid "Select Categories"
120
  msgstr ""
121
 
122
+ #: admin/admin.php:493 admin/editor/editor-build.php:77
123
  msgid "Select Tags"
124
  msgstr ""
125
 
126
+ #: admin/admin.php:494 admin/editor/editor-build.php:74
127
  msgid "Select"
128
  msgstr ""
129
 
130
+ #: admin/admin.php:495 admin/editor/editor-build.php:41
131
  #: admin/editor/editor-build.php:78
132
  msgid "Jump to Option"
133
  msgstr ""
134
 
135
+ #: admin/admin.php:496 admin/editor/editor-build.php:79
136
  msgid "Jump to Template"
137
  msgstr ""
138
 
139
+ #: admin/admin.php:497
140
  msgid "Are you sure you want to install this Ajax Load More extension?"
141
  msgstr ""
142
 
143
+ #: admin/admin.php:498
144
  #: vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:51
145
  #: vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:379
146
  msgid "Install Now"
147
  msgstr ""
148
 
149
+ #: admin/admin.php:499
150
  #: vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:90
151
  #: vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:380
152
  msgid "Activate"
153
  msgstr ""
154
 
155
+ #: admin/admin.php:500
156
  msgid "Saving Settings"
157
  msgstr ""
158
 
159
+ #: admin/admin.php:501
160
  msgid "Settings Saved Successfully"
161
  msgstr ""
162
 
163
+ #: admin/admin.php:502
164
  msgid "Error Saving Settings"
165
  msgstr ""
166
 
167
+ #: admin/admin.php:503
168
  msgid ""
169
  "There is a maximum of 3 tax_query objects while using the shortcode builder"
170
  msgstr ""
171
 
172
+ #: admin/admin.php:600
173
  msgid ""
174
  "[Ajax Load More] Error opening default repeater template - Please check your "
175
  "file path and ensure your server is configured to allow Ajax Load More to "
176
  "read and write files within the /ajax-load-more/core/repeater directory"
177
  msgstr ""
178
 
179
+ #: admin/admin.php:604
180
  msgid ""
181
  "[Ajax Load More] Error updating default repeater template - Please check "
182
  "your file path and ensure your server is configured to allow Ajax Load More "
183
  "to read and write files within the /ajax-load-more/core/repeater directory."
184
  msgstr ""
185
 
186
+ #: admin/admin.php:640 admin/admin.php:641 ajax-load-more.php:294
187
  msgid "Settings"
188
  msgstr ""
189
 
190
+ #: admin/admin.php:649 admin/admin.php:650
191
  #: admin/views/repeater-templates.php:13
192
  msgid "Repeater Templates"
193
  msgstr ""
194
 
195
+ #: admin/admin.php:658 admin/admin.php:659 admin/views/shortcode-builder.php:9
196
  msgid "Shortcode Builder"
197
  msgstr ""
198
 
199
+ #: admin/admin.php:668 admin/admin.php:669
200
+ #: admin/shortcode-builder/shortcode-builder.php:18
201
+ #: admin/shortcode-builder/shortcode-builder.php:38 admin/views/add-ons.php:6
202
  msgid "Add-ons"
203
  msgstr ""
204
 
205
+ #: admin/admin.php:678 admin/admin.php:679
206
+ #: admin/shortcode-builder/shortcode-builder.php:21
207
+ #: admin/shortcode-builder/shortcode-builder.php:68
208
+ #: admin/views/extensions.php:5
209
  msgid "Extensions"
210
  msgstr ""
211
 
212
+ #: admin/admin.php:687 admin/admin.php:688 admin/views/help.php:18
213
  msgid "Help"
214
  msgstr ""
215
 
216
+ #: admin/admin.php:694
217
  msgid "License"
218
  msgstr ""
219
 
220
+ #: admin/admin.php:694 admin/views/licenses.php:2
221
  msgid "Licenses"
222
  msgstr ""
223
 
224
+ #: admin/admin.php:712 admin/admin.php:713 admin/admin.php:721
225
  #: admin/views/go-pro.php:5
226
  msgid "Pro"
227
  msgstr ""
228
 
229
+ #: admin/admin.php:722 admin/views/licenses.php:151
230
  msgid "Go Pro"
231
  msgstr ""
232
 
233
+ #: admin/admin.php:733 admin/admin.php:734
234
+ #: admin/shortcode-builder/components/cache.php:3
235
  msgid "Cache"
236
  msgstr ""
237
 
238
+ #: admin/admin.php:753 admin/admin.php:754
239
+ #: admin/shortcode-builder/components/filters.php:3
240
  msgid "Filters"
241
  msgstr ""
242
 
243
+ #: admin/admin.php:774 admin/admin.php:775
 
244
  msgid "WooCommerce"
245
  msgstr ""
246
 
247
+ #: admin/admin.php:1081
248
  msgid "[Ajax Load More] Unable to open repeater template - "
249
  msgstr ""
250
 
251
+ #: admin/admin.php:1085
252
  msgid "[Ajax Load More] Error saving repeater template - "
253
  msgstr ""
254
 
255
+ #: admin/admin.php:1117
256
  msgid "Template Saved Successfully"
257
  msgstr ""
258
 
259
+ #: admin/admin.php:1119
260
  msgid "Error Writing File"
261
  msgstr ""
262
 
263
+ #: admin/admin.php:1119 admin/views/repeater-templates.php:388
264
  msgid "Something went wrong and the data could not be saved."
265
  msgstr ""
266
 
267
+ #: admin/admin.php:1321 admin/shortcode-builder/shortcode-builder.php:166
268
  msgid "Container Type"
269
  msgstr ""
270
 
271
+ #: admin/admin.php:1329 admin/shortcode-builder/shortcode-builder.php:196
272
  msgid "Container Classes"
273
  msgstr ""
274
 
275
+ #: admin/admin.php:1337
276
  msgid "Disable CSS"
277
  msgstr ""
278
 
279
+ #: admin/admin.php:1345 admin/shortcode-builder/shortcode-builder.php:124
280
  msgid "Button/Loading Style"
281
  msgstr ""
282
 
283
+ #: admin/admin.php:1353
284
  msgid "Load CSS Inline"
285
  msgstr ""
286
 
287
+ #: admin/admin.php:1361
288
  msgid "Button Classes"
289
  msgstr ""
290
 
291
+ #: admin/admin.php:1379
292
  msgid "Legacy Callbacks"
293
  msgstr ""
294
 
295
+ #: admin/admin.php:1387
 
 
 
 
296
  msgid "Dynamic Content"
297
  msgstr ""
298
 
299
+ #: admin/admin.php:1395
300
  msgid "Error Notices"
301
  msgstr ""
302
 
303
+ #: admin/admin.php:1403
304
+ msgid "Delete on Uninstall"
305
+ msgstr ""
306
+
307
+ #: admin/admin.php:1472
308
  msgid ""
309
  "Customize the user experience of Ajax Load More by updating the fields below."
310
  msgstr ""
311
 
312
+ #: admin/admin.php:1481
313
  msgid "The following settings affect the WordPress admin area only."
314
  msgstr ""
315
 
316
+ #: admin/admin.php:1505
317
  msgid "I want to use my own CSS styles."
318
  msgstr ""
319
 
320
+ #: admin/admin.php:1505
321
  msgid "View Ajax Load More CSS"
322
  msgstr ""
323
 
324
+ #: admin/admin.php:1522
325
  msgid "Hide shortcode button in WYSIWYG editor."
326
  msgstr ""
327
 
328
+ #: admin/admin.php:1539
329
  msgid ""
330
  "Display error messaging regarding repeater template updates in the browser "
331
  "console."
332
  msgstr ""
333
 
334
+ #: admin/admin.php:1556
335
  msgid ""
336
  "Disable dynamic population of categories, tags and authors in the Shortcode "
337
  "Builder.<span style=\"display:block\">Recommended if you have a large number "
338
  "of categories, tags and/or authors."
339
  msgstr ""
340
 
341
+ #: admin/admin.php:1574 admin/admin.php:1577
342
  msgid "Ajax Posts Here"
343
  msgstr ""
344
 
345
+ #: admin/admin.php:1579
346
  msgid "You can modify the container type when building a shortcode."
347
  msgstr ""
348
 
349
+ #: admin/admin.php:1593
350
  msgid ""
351
  "Add custom classes to the <i>.alm-listing</i> container - classes are "
352
  "applied globally and will appear with every instance of Ajax Load More. "
354
  "shortcode.</span>"
355
  msgstr ""
356
 
357
+ #: admin/admin.php:1654
358
  msgid ""
359
  "Select an Ajax loading style - you can choose between a <strong>Button</"
360
  "strong> or <strong>Infinite Scroll</strong>"
361
  msgstr ""
362
 
363
+ #: admin/admin.php:1659 admin/shortcode-builder/shortcode-builder.php:130
364
  msgid "Button Style (Dark)"
365
  msgstr ""
366
 
367
+ #: admin/admin.php:1666 admin/shortcode-builder/shortcode-builder.php:137
368
  msgid "Button Style (Light)"
369
  msgstr ""
370
 
371
+ #: admin/admin.php:1671 admin/shortcode-builder/shortcode-builder.php:141
372
  msgid "Infinite Scroll (No Button)"
373
  msgstr ""
374
 
375
+ #: admin/admin.php:1687
376
  msgid "Click to Preview"
377
  msgstr ""
378
 
379
+ #: admin/admin.php:1689 admin/shortcode-builder/shortcode-builder.php:155
380
+ #: admin/shortcode-builder/shortcode-builder.php:371
381
+ #: core/classes/class-alm-shortcode.php:208
382
  msgid "Load More"
383
  msgstr ""
384
 
385
+ #: admin/admin.php:1708
386
  msgid "Improve site performance by loading Ajax Load More CSS inline."
387
  msgstr ""
388
 
389
+ #: admin/admin.php:1724
390
  msgid "Add classes to your <strong>Load More</strong> button."
391
  msgstr ""
392
 
393
+ #: admin/admin.php:1764
394
  msgid ""
395
  "On initial page load, move the user's browser window to the top of the "
396
  "screen."
397
  msgstr ""
398
 
399
+ #: admin/admin.php:1765
400
  msgid "This may help prevent the loading of unnecessary posts."
401
  msgstr ""
402
 
403
+ #: admin/admin.php:1784
404
  msgid "Disable REST API."
405
  msgstr ""
406
 
407
+ #: admin/admin.php:1785
408
  msgid ""
409
  "Use `admin-ajax.php` in favour of the WordPress REST API for all Ajax "
410
  "requests."
411
  msgstr ""
412
 
413
+ #: admin/admin.php:1804
414
  msgid "Load legacy JavaScript callback functions."
415
  msgstr ""
416
 
417
+ #: admin/admin.php:1805
418
  msgid ""
419
  "Ajax Load More <a href=\"https://connekthq.com/plugins/ajax-load-more/docs/"
420
  "callback-functions/\" target=\"_blank\">callback functions</a> were updated "
422
  "library to maintain compatibility."
423
  msgstr ""
424
 
425
+ #: admin/admin.php:1824
426
  msgid ""
427
  "Check this box if Ajax Load More should remove all of its data* when the "
428
  "plugin is deleted."
429
  msgstr ""
430
 
431
+ #: admin/admin.php:1825
432
  msgid "* Database Tables, Options and Repeater Templates"
433
  msgstr ""
434
 
465
  msgstr ""
466
 
467
  #: admin/includes/components/example-list.php:2
 
468
  #: admin/views/repeater-templates.php:134
469
  #: admin/views/repeater-templates.php:172
470
  msgid "Collapse All"
471
  msgstr ""
472
 
473
  #: admin/includes/components/example-list.php:2
 
474
  #: admin/views/repeater-templates.php:135
475
  #: admin/views/repeater-templates.php:173
476
  msgid "Expand All"
542
  msgstr ""
543
 
544
  #: admin/includes/components/repeater-options.php:5
545
+ #: admin/shortcode-builder/shortcode-builder.php:98
546
  msgid "Options"
547
  msgstr ""
548
 
611
  msgid "Resources"
612
  msgstr ""
613
 
614
+ #: admin/includes/cta/resources.php:6
615
  msgid "Ajax Load More Demo Site"
616
  msgstr ""
617
 
618
+ #: admin/includes/cta/resources.php:10 admin/views/help.php:31
619
+ msgid "Implementation Guide"
620
+ msgstr ""
621
+
622
+ #: admin/includes/cta/resources.php:13
623
  msgid "Documentation"
624
  msgstr ""
625
 
626
+ #: admin/includes/cta/resources.php:17
627
  msgid "Support and Issues"
628
  msgstr ""
629
 
630
+ #: admin/includes/cta/resources.php:21
631
+ msgid "Get Support"
632
+ msgstr ""
633
+
634
+ #: admin/includes/cta/resources.php:25
635
  msgid "Reviews"
636
  msgstr ""
637
 
638
+ #: admin/includes/cta/resources.php:28
639
  msgid "WordPress"
640
  msgstr ""
641
 
642
+ #: admin/includes/cta/resources.php:31
643
  msgid "Github"
644
  msgstr ""
645
 
646
+ #: admin/includes/cta/resources.php:34 admin/includes/cta/sharing.php:14
647
  msgid "Twitter"
648
  msgstr ""
649
 
 
 
 
 
650
  #: admin/includes/cta/reviews.php:1
651
  msgid "Leave a Review"
652
  msgstr ""
661
  msgid "Write Review"
662
  msgstr ""
663
 
664
+ #: admin/includes/cta/sharing.php:17
665
+ msgid "Facebook"
666
+ msgstr ""
667
+
668
  #: admin/includes/cta/sharing.php:20
669
  msgid "Review"
670
  msgstr ""
736
  #: admin/shortcode-builder/components/filters.php:117
737
  #: admin/shortcode-builder/components/filters.php:158
738
  #: admin/shortcode-builder/components/filters.php:180
739
+ #: admin/shortcode-builder/components/nextpage.php:17
740
+ #: admin/shortcode-builder/components/nextpage.php:118
741
  #: admin/shortcode-builder/components/paging.php:15
742
  #: admin/shortcode-builder/components/paging.php:64
743
  #: admin/shortcode-builder/components/paging.php:90
746
  #: admin/shortcode-builder/components/rest-api.php:105
747
  #: admin/shortcode-builder/components/seo.php:15
748
  #: admin/shortcode-builder/components/single-post.php:19
749
+ #: admin/shortcode-builder/components/single-post.php:162
750
+ #: admin/shortcode-builder/components/single-post.php:211
751
+ #: admin/shortcode-builder/components/single-post.php:311
752
  #: admin/shortcode-builder/components/term-query.php:15
753
  #: admin/shortcode-builder/components/term-query.php:79
754
  #: admin/shortcode-builder/components/users.php:14
755
+ #: admin/shortcode-builder/shortcode-builder.php:220
756
+ #: admin/shortcode-builder/shortcode-builder.php:257
757
+ #: admin/shortcode-builder/shortcode-builder.php:280
758
+ #: admin/shortcode-builder/shortcode-builder.php:418
759
+ #: admin/shortcode-builder/shortcode-builder.php:477
760
+ #: admin/shortcode-builder/shortcode-builder.php:500
761
+ #: admin/shortcode-builder/shortcode-builder.php:675
762
+ #: admin/shortcode-builder/shortcode-builder.php:751
763
+ #: admin/shortcode-builder/shortcode-builder.php:1412
 
 
764
  msgid "True"
765
  msgstr ""
766
 
774
  #: admin/shortcode-builder/components/filters.php:121
775
  #: admin/shortcode-builder/components/filters.php:162
776
  #: admin/shortcode-builder/components/filters.php:184
777
+ #: admin/shortcode-builder/components/nextpage.php:21
778
+ #: admin/shortcode-builder/components/nextpage.php:119
779
  #: admin/shortcode-builder/components/paging.php:19
780
  #: admin/shortcode-builder/components/paging.php:65
781
  #: admin/shortcode-builder/components/paging.php:94
784
  #: admin/shortcode-builder/components/rest-api.php:109
785
  #: admin/shortcode-builder/components/seo.php:19
786
  #: admin/shortcode-builder/components/single-post.php:23
787
+ #: admin/shortcode-builder/components/single-post.php:166
788
+ #: admin/shortcode-builder/components/single-post.php:215
789
+ #: admin/shortcode-builder/components/single-post.php:315
790
  #: admin/shortcode-builder/components/term-query.php:19
791
  #: admin/shortcode-builder/components/term-query.php:80
792
  #: admin/shortcode-builder/components/users.php:18
793
+ #: admin/shortcode-builder/shortcode-builder.php:224
794
+ #: admin/shortcode-builder/shortcode-builder.php:261
795
+ #: admin/shortcode-builder/shortcode-builder.php:284
796
+ #: admin/shortcode-builder/shortcode-builder.php:422
797
+ #: admin/shortcode-builder/shortcode-builder.php:481
798
+ #: admin/shortcode-builder/shortcode-builder.php:504
799
+ #: admin/shortcode-builder/shortcode-builder.php:679
800
+ #: admin/shortcode-builder/shortcode-builder.php:755
801
+ #: admin/shortcode-builder/shortcode-builder.php:1416
 
 
802
  msgid "False"
803
  msgstr ""
804
 
805
  #: admin/shortcode-builder/components/acf.php:31
806
  #: admin/shortcode-builder/components/comments.php:30
807
+ #: admin/shortcode-builder/components/nextpage.php:33
808
+ #: admin/shortcode-builder/components/single-post.php:35
809
  msgid "Post ID"
810
  msgstr ""
811
 
816
  msgstr ""
817
 
818
  #: admin/shortcode-builder/components/acf.php:32
819
+ #: admin/shortcode-builder/components/nextpage.php:34
820
  msgid "The ID of the current page/post."
821
  msgstr ""
822
 
908
  msgstr ""
909
 
910
  #: admin/shortcode-builder/components/comments.php:31
911
+ #: admin/shortcode-builder/components/single-post.php:36
912
  msgid "The ID of the current single post."
913
  msgstr ""
914
 
976
  msgstr ""
977
 
978
  #: admin/shortcode-builder/components/comments.php:105
979
+ #: admin/shortcode-builder/shortcode-builder.php:570
980
+ #: admin/shortcode-builder/shortcode-builder.php:656
981
  msgid "None"
982
  msgstr ""
983
 
1015
  msgstr ""
1016
 
1017
  #: admin/shortcode-builder/components/comments.php:135
1018
+ #: admin/shortcode-builder/components/nextpage.php:134
1019
+ #: admin/shortcode-builder/components/single-post.php:63
1020
+ #: admin/shortcode-builder/components/single-post.php:326
1021
+ #: admin/shortcode-builder/shortcode-builder.php:688
1022
+ #: admin/shortcode-builder/shortcode-builder.php:1405
 
1023
  msgid "View Docs"
1024
  msgstr ""
1025
 
1087
  msgstr ""
1088
 
1089
  #: admin/shortcode-builder/components/filters.php:30
1090
+ #: admin/shortcode-builder/components/single-post.php:47
1091
  msgid "Target"
1092
  msgstr ""
1093
 
1151
  msgstr ""
1152
 
1153
  #: admin/shortcode-builder/components/filters.php:131
1154
+ #: admin/shortcode-builder/components/nextpage.php:124
1155
  #: admin/shortcode-builder/components/paging.php:70
1156
  msgid "Scroll Top"
1157
  msgstr ""
1194
  "Enable debugging of the Ajax Load More filter object in the browser console."
1195
  msgstr ""
1196
 
1197
+ #: admin/shortcode-builder/components/nextpage.php:5
1198
  #: admin/shortcode-builder/components/paging.php:147
1199
  msgid "Next Page"
1200
  msgstr ""
1201
 
1202
+ #: admin/shortcode-builder/components/nextpage.php:10
1203
  msgid "Enable the infinite scrolling of multipage WordPress content using the"
1204
  msgstr ""
1205
 
1206
+ #: admin/shortcode-builder/components/nextpage.php:10
1207
  msgid "Quicktag or Page Break block."
1208
  msgstr ""
1209
 
1210
+ #: admin/shortcode-builder/components/nextpage.php:45
1211
  msgid "URL Rewrite"
1212
  msgstr ""
1213
 
1214
+ #: admin/shortcode-builder/components/nextpage.php:46
1215
  msgid "Update the browser address bar as pages come into view."
1216
  msgstr ""
1217
 
1218
+ #: admin/shortcode-builder/components/nextpage.php:53
1219
  msgid "Yes, update the URL."
1220
  msgstr ""
1221
 
1222
  #: admin/shortcode-builder/components/nextpage.php:62
1223
+ msgid "Page Title Template"
1224
  msgstr ""
1225
 
1226
  #: admin/shortcode-builder/components/nextpage.php:63
1227
  msgid ""
1228
+ "The page title template is used to update the browser title each time a new "
1229
+ "page is loaded."
1230
+ msgstr ""
1231
+
1232
+ #: admin/shortcode-builder/components/nextpage.php:64
1233
+ msgid "Page title will NOT be updated if this field remains empty."
1234
+ msgstr ""
1235
+
1236
+ #: admin/shortcode-builder/components/nextpage.php:72
1237
+ msgid "Template Tags"
1238
+ msgstr ""
1239
+
1240
+ #: admin/shortcode-builder/components/nextpage.php:74
1241
+ msgid "Current Page Number"
1242
+ msgstr ""
1243
+
1244
+ #: admin/shortcode-builder/components/nextpage.php:75
1245
+ msgid "Total Number of Pages"
1246
+ msgstr ""
1247
+
1248
+ #: admin/shortcode-builder/components/nextpage.php:76
1249
+ msgid "Title of Post"
1250
+ msgstr ""
1251
+
1252
+ #: admin/shortcode-builder/components/nextpage.php:77
1253
+ msgid "Site Title"
1254
+ msgstr ""
1255
+
1256
+ #: admin/shortcode-builder/components/nextpage.php:78
1257
+ msgid "Site Tagline"
1258
+ msgstr ""
1259
+
1260
+ #: admin/shortcode-builder/components/nextpage.php:89
1261
+ msgid "Google Analytics"
1262
+ msgstr ""
1263
+
1264
+ #: admin/shortcode-builder/components/nextpage.php:90
1265
+ msgid ""
1266
  "You must have a reference to your Google Analytics tracking code already on "
1267
  "the page."
1268
  msgstr ""
1269
 
1270
+ #: admin/shortcode-builder/components/nextpage.php:92
1271
  msgid "Each time a page is loaded it will count as a pageview."
1272
  msgstr ""
1273
 
1274
+ #: admin/shortcode-builder/components/nextpage.php:99
1275
  msgid "Yes, send pageviews to Google Analytics."
1276
  msgstr ""
1277
 
1278
+ #: admin/shortcode-builder/components/nextpage.php:108
1279
  msgid "Scroll to Page"
1280
  msgstr ""
1281
 
1282
+ #: admin/shortcode-builder/components/nextpage.php:110
1283
  msgid "Scroll users automatically to the next page on 'Load More' action."
1284
  msgstr ""
1285
 
1286
+ #: admin/shortcode-builder/components/nextpage.php:116
1287
  #: admin/shortcode-builder/components/paging.php:62
1288
+ #: admin/shortcode-builder/shortcode-builder.php:410
1289
  msgid "Enable Scrolling"
1290
  msgstr ""
1291
 
1292
+ #: admin/shortcode-builder/components/nextpage.php:125
1293
  msgid ""
1294
  "The scrolltop position of the browser window (used with scrolling and fwd/"
1295
  "back browser buttons)."
1296
  msgstr ""
1297
 
1298
+ #: admin/shortcode-builder/components/nextpage.php:134
1299
  msgid ""
1300
  "You must add the Next Page shortcode directly to your template file using "
1301
  "the <a href=\"https://developer.wordpress.org/reference/functions/"
1302
  "do_shortcode/\" target=\"_blank\">do_shortcode</a> method."
1303
  msgstr ""
1304
 
1305
+ #: admin/shortcode-builder/components/paging.php:3
1306
  msgid "Paging"
1307
  msgstr ""
1308
 
1347
  msgstr ""
1348
 
1349
  #: admin/shortcode-builder/components/paging.php:105
1350
+ #: core/classes/class-alm-noscript.php:159
1351
  msgid "First Page"
1352
  msgstr ""
1353
 
1361
  msgstr ""
1362
 
1363
  #: admin/shortcode-builder/components/paging.php:119
1364
+ #: core/classes/class-alm-noscript.php:177
1365
  msgid "Last Page"
1366
  msgstr ""
1367
 
1398
  msgstr ""
1399
 
1400
  #: admin/shortcode-builder/components/rest-api.php:18
 
1401
  msgid "REST API"
1402
  msgstr ""
1403
 
1458
  msgstr ""
1459
 
1460
  #: admin/shortcode-builder/components/rest-api.php:86
1461
+ #: admin/shortcode-builder/components/single-post.php:155
1462
+ #: admin/shortcode-builder/components/single-post.php:204
1463
+ #: admin/shortcode-builder/shortcode-builder.php:236
1464
+ #: admin/shortcode-builder/shortcode-builder.php:250
1465
+ #: admin/shortcode-builder/shortcode-builder.php:273
1466
+ #: admin/shortcode-builder/shortcode-builder.php:744
1467
+ #: admin/shortcode-builder/shortcode-builder.php:937
1468
+ #: admin/shortcode-builder/shortcode-builder.php:1031
1469
+ #: admin/shortcode-builder/shortcode-builder.php:1172
1470
+ #: admin/shortcode-builder/shortcode-builder.php:1213
1471
+ #: admin/shortcode-builder/shortcode-builder.php:1242
1472
+ #: admin/shortcode-builder/shortcode-builder.php:1273
1473
  msgid "View Example"
1474
  msgstr ""
1475
 
1487
  msgstr ""
1488
 
1489
  #: admin/shortcode-builder/components/seo.php:4
1490
+ msgid "Search Engine Optimization"
1491
  msgstr ""
1492
 
1493
  #: admin/shortcode-builder/components/seo.php:8
1496
  msgstr ""
1497
 
1498
  #: admin/shortcode-builder/components/single-post.php:7
 
1499
  msgid "Single Posts"
1500
  msgstr ""
1501
 
1503
  msgid "Enable the infinite scrolling of single posts."
1504
  msgstr ""
1505
 
1506
+ #: admin/shortcode-builder/components/single-post.php:47
1507
  msgid ""
1508
  "Repeater Templates are not required when using the Target implementation."
1509
  msgstr ""
1510
 
1511
+ #: admin/shortcode-builder/components/single-post.php:48
1512
  msgid ""
1513
  "Enter the ID or classname of HTML element that wraps your single post "
1514
  "content."
1515
  msgstr ""
1516
 
1517
+ #: admin/shortcode-builder/components/single-post.php:50
1518
  msgid "View Guide"
1519
  msgstr ""
1520
 
1521
+ #: admin/shortcode-builder/components/single-post.php:61
1522
  msgid "Post Ordering"
1523
  msgstr ""
1524
 
1525
+ #: admin/shortcode-builder/components/single-post.php:61
1526
  msgid ""
1527
  "By default, the Single Posts add-on will use the core WordPress "
1528
  "`get_previous_post` function, but you can adjust that here."
1529
  msgstr ""
1530
 
1531
+ #: admin/shortcode-builder/components/single-post.php:62
1532
  msgid "Select the posts loading order."
1533
  msgstr ""
1534
 
1535
+ #: admin/shortcode-builder/components/single-post.php:68
1536
  msgid "Previous Post (by date DESC)"
1537
  msgstr ""
1538
 
1539
+ #: admin/shortcode-builder/components/single-post.php:69
1540
  msgid "Next Post (by date ASC)"
1541
  msgstr ""
1542
 
1543
+ #: admin/shortcode-builder/components/single-post.php:70
1544
+ #: admin/shortcode-builder/components/single-post.php:87
1545
  msgid "Latest Post (Start from most recent)"
1546
  msgstr ""
1547
 
1548
+ #: admin/shortcode-builder/components/single-post.php:71
1549
  msgid "Post IDs (Array)"
1550
  msgstr ""
1551
 
1552
+ #: admin/shortcode-builder/components/single-post.php:72
1553
  msgid "Custom Query"
1554
  msgstr ""
1555
 
1556
+ #: admin/shortcode-builder/components/single-post.php:81
1557
  msgid "Custom Query Order"
1558
  msgstr ""
1559
 
1560
+ #: admin/shortcode-builder/components/single-post.php:82
1561
  msgid "Select the post ordering of the custom query."
1562
  msgstr ""
1563
 
1564
+ #: admin/shortcode-builder/components/single-post.php:86
1565
  msgid "Previous Post (Continue by date DESC)"
1566
  msgstr ""
1567
 
1568
+ #: admin/shortcode-builder/components/single-post.php:96
1569
  msgid "Post ID Array"
1570
  msgstr ""
1571
 
1572
+ #: admin/shortcode-builder/components/single-post.php:97
1573
  msgid "A comma separated list of post ID's to query by order."
1574
  msgstr ""
1575
 
1576
+ #: admin/shortcode-builder/components/single-post.php:110
1577
  #: admin/shortcode-builder/components/term-query.php:39
1578
+ #: admin/shortcode-builder/shortcode-builder.php:1114
1579
  msgid "Taxonomy"
1580
  msgstr ""
1581
 
1582
+ #: admin/shortcode-builder/components/single-post.php:110
1583
  msgid ""
1584
  "Selecting a taxonomy means only previous posts from the same taxonomy term "
1585
  "will be returned. If a post has multiple terms attached, each term will be "
1586
  "considered using an OR relationship query."
1587
  msgstr ""
1588
 
1589
+ #: admin/shortcode-builder/components/single-post.php:111
1590
  msgid "Query previous posts from the same taxonomy term(s)."
1591
  msgstr ""
1592
 
1593
+ #: admin/shortcode-builder/components/single-post.php:124
1594
  #: admin/shortcode-builder/includes/tax-query-options.php:5
1595
  #: admin/shortcode-builder/includes/tax-query-options.php:62
1596
  #: admin/shortcode-builder/includes/tax-query-options.php:105
1597
  msgid "Select Taxonomy"
1598
  msgstr ""
1599
 
1600
+ #: admin/shortcode-builder/components/single-post.php:125
1601
  #: admin/shortcode-builder/components/term-query.php:45
1602
+ #: admin/shortcode-builder/shortcode-builder.php:930
1603
  msgid "Category"
1604
  msgstr ""
1605
 
1606
+ #: admin/shortcode-builder/components/single-post.php:126
1607
  #: admin/shortcode-builder/components/term-query.php:46
1608
+ #: admin/shortcode-builder/shortcode-builder.php:1023
1609
  msgid "Tag"
1610
  msgstr ""
1611
 
1612
+ #: admin/shortcode-builder/components/single-post.php:140
1613
  msgid "Excluded Terms "
1614
  msgstr ""
1615
 
1616
+ #: admin/shortcode-builder/components/single-post.php:140
1617
  msgid "A comma-separated list of excluded terms by ID."
1618
  msgstr ""
1619
 
1620
+ #: admin/shortcode-builder/components/single-post.php:141
1621
  msgid "Exclude posts by term ID from the previous post query."
1622
  msgstr ""
1623
 
1624
+ #: admin/shortcode-builder/components/single-post.php:153
1625
+ msgid "Post Preview"
1626
  msgstr ""
1627
 
1628
+ #: admin/shortcode-builder/components/single-post.php:154
1629
  msgid ""
1630
+ "Show a preview of Ajax loaded posts and have the user click to load the "
1631
+ "remainder of the post."
 
 
 
 
1632
  msgstr ""
1633
 
1634
  #: admin/shortcode-builder/components/single-post.php:178
1635
+ msgid "Button Label"
1636
  msgstr ""
1637
 
1638
  #: admin/shortcode-builder/components/single-post.php:179
1639
+ msgid "Enter a label for the preview button."
1640
+ msgstr ""
1641
+
1642
+ #: admin/shortcode-builder/components/single-post.php:189
1643
+ #: admin/shortcode-builder/components/single-post.php:251
1644
+ msgid "Height"
1645
+ msgstr ""
1646
+
1647
+ #: admin/shortcode-builder/components/single-post.php:190
1648
+ msgid "Set the initial height of the preview in pixels."
1649
+ msgstr ""
1650
+
1651
+ #: admin/shortcode-builder/components/single-post.php:202
1652
+ msgid "Reading Progress Bar"
1653
+ msgstr ""
1654
+
1655
+ #: admin/shortcode-builder/components/single-post.php:203
1656
  msgid ""
1657
  "Display a reading progress bar indicator at the top or bottom of the browser "
1658
  "window."
1659
  msgstr ""
1660
 
1661
+ #: admin/shortcode-builder/components/single-post.php:230
1662
  msgid "Position"
1663
  msgstr ""
1664
 
1665
+ #: admin/shortcode-builder/components/single-post.php:231
1666
  msgid "Select the window position of the progress bar."
1667
  msgstr ""
1668
 
1669
+ #: admin/shortcode-builder/components/single-post.php:238
1670
  msgid "Top"
1671
  msgstr ""
1672
 
1673
+ #: admin/shortcode-builder/components/single-post.php:242
1674
  msgid "Bottom"
1675
  msgstr ""
1676
 
1677
+ #: admin/shortcode-builder/components/single-post.php:252
 
 
 
 
1678
  msgid "Select the height of the progress bar in pixels."
1679
  msgstr ""
1680
 
1681
+ #: admin/shortcode-builder/components/single-post.php:263
1682
  msgid "Colors"
1683
  msgstr ""
1684
 
1685
+ #: admin/shortcode-builder/components/single-post.php:264
1686
  msgid "Enter the hex color values of the reading progress bar"
1687
  msgstr ""
1688
 
1689
+ #: admin/shortcode-builder/components/single-post.php:265
1690
+ #: admin/shortcode-builder/shortcode-builder.php:770
1691
  msgid "Default:"
1692
  msgstr ""
1693
 
1694
+ #: admin/shortcode-builder/components/single-post.php:272
1695
  msgid "Foreground Color:"
1696
  msgstr ""
1697
 
1698
+ #: admin/shortcode-builder/components/single-post.php:279
1699
  msgid "Background Color:"
1700
  msgstr ""
1701
 
1702
+ #: admin/shortcode-builder/components/single-post.php:279
1703
  msgid "Leave empty for a transparent background"
1704
  msgstr ""
1705
 
1706
+ #: admin/shortcode-builder/components/single-post.php:302
1707
+ msgid "Elementor"
1708
+ msgstr ""
1709
+
1710
+ #: admin/shortcode-builder/components/single-post.php:303
1711
+ msgid ""
1712
+ "Set Elementor <b>true</b> if you are using Elementor templates to build "
1713
+ "single posts."
1714
+ msgstr ""
1715
+
1716
+ #: admin/shortcode-builder/components/single-post.php:304
1717
+ msgid "View Blog Post"
1718
+ msgstr ""
1719
+
1720
+ #: admin/shortcode-builder/components/single-post.php:326
1721
  msgid ""
1722
  "You must add the Single Post shortcode directly to your single template file "
1723
  "using the <a href=\"https://developer.wordpress.org/reference/functions/"
1777
  msgstr ""
1778
 
1779
  #: admin/shortcode-builder/components/users.php:56
1780
+ #: admin/shortcode-builder/shortcode-builder.php:934
1781
+ #: admin/shortcode-builder/shortcode-builder.php:1027
1782
+ #: admin/shortcode-builder/shortcode-builder.php:1260
1783
  msgid "Include"
1784
  msgstr ""
1785
 
1788
  msgstr ""
1789
 
1790
  #: admin/shortcode-builder/components/users.php:70
1791
+ #: admin/shortcode-builder/shortcode-builder.php:981
1792
+ #: admin/shortcode-builder/shortcode-builder.php:1076
1793
+ #: admin/shortcode-builder/shortcode-builder.php:1271
1794
  msgid "Exclude"
1795
  msgstr ""
1796
 
1815
  msgstr ""
1816
 
1817
  #: admin/shortcode-builder/components/users.php:102
1818
+ #: admin/shortcode-builder/shortcode-builder.php:1316
1819
  msgid "Order"
1820
  msgstr ""
1821
 
1822
  #: admin/shortcode-builder/components/users.php:109
1823
+ #: admin/shortcode-builder/shortcode-builder.php:1323
1824
  msgid "Order By"
1825
  msgstr ""
1826
 
1832
  msgid "Enter custom field key(name)"
1833
  msgstr ""
1834
 
1835
+ #: admin/shortcode-builder/includes/meta-query-options.php:8
1836
  msgid "Value:"
1837
  msgstr ""
1838
 
1839
+ #: admin/shortcode-builder/includes/meta-query-options.php:8
1840
  msgid ""
1841
  "Query multiple values by splitting each value with a comma - e.g. value, "
1842
  "value2, value3 etc."
1843
  msgstr ""
1844
 
1845
+ #: admin/shortcode-builder/includes/meta-query-options.php:9
1846
  msgid "Enter custom field value(s)"
1847
  msgstr ""
1848
 
1849
+ #: admin/shortcode-builder/includes/meta-query-options.php:13
1850
  msgid "Operator:"
1851
  msgstr ""
1852
 
1853
+ #: admin/shortcode-builder/includes/meta-query-options.php:33
1854
  msgid "Type:"
1855
  msgstr ""
1856
 
1873
  msgstr ""
1874
 
1875
  #: admin/shortcode-builder/includes/tax-query-options.php:48
1876
+ #: admin/shortcode-builder/shortcode-builder.php:1148
1877
  msgid "Relation:"
1878
  msgstr ""
1879
 
1882
  "The logical relationship between each taxonomy when there is more than one."
1883
  msgstr ""
1884
 
1885
+ #: admin/shortcode-builder/shortcode-builder.php:23
1886
+ #: admin/shortcode-builder/shortcode-builder.php:88
1887
+ msgid "Display Settings"
1888
  msgstr ""
1889
 
1890
+ #: admin/shortcode-builder/shortcode-builder.php:24
1891
+ #: admin/shortcode-builder/shortcode-builder.php:798
1892
+ msgid "Query Parameters"
1893
+ msgstr ""
1894
+
1895
+ #: admin/shortcode-builder/shortcode-builder.php:25
1896
+ #: admin/shortcode-builder/shortcode-builder.php:1390
1897
+ msgid "Integrations"
1898
+ msgstr ""
1899
+
1900
+ #: admin/shortcode-builder/shortcode-builder.php:40
1901
+ msgid "Configure your Ajax Load More add-ons."
1902
  msgstr ""
1903
 
1904
+ #: admin/shortcode-builder/shortcode-builder.php:70
1905
+ msgid "Configure your Ajax Load More extensions."
1906
+ msgstr ""
1907
+
1908
+ #: admin/shortcode-builder/shortcode-builder.php:90
1909
  msgid ""
1910
  "Display Settings allow you create a custom Ajax Load More experience for "
1911
  "your visitors."
1912
  msgstr ""
1913
 
1914
+ #: admin/shortcode-builder/shortcode-builder.php:104
1915
  msgid "ID"
1916
  msgstr ""
1917
 
1918
+ #: admin/shortcode-builder/shortcode-builder.php:104
1919
  msgid ""
1920
  "Adding a unique ID will allow you target this specific Ajax Load More "
1921
  "instance with the alm_query_args_id() filter"
1922
  msgstr ""
1923
 
1924
+ #: admin/shortcode-builder/shortcode-builder.php:105
1925
  msgid "Set a unique ID for this Ajax Load More instance."
1926
  msgstr ""
1927
 
1928
+ #: admin/shortcode-builder/shortcode-builder.php:106
1929
  #: admin/views/repeater-templates.php:151
1930
  #: admin/views/repeater-templates.php:502
1931
  msgid "Learn More"
1932
  msgstr ""
1933
 
1934
+ #: admin/shortcode-builder/shortcode-builder.php:112
1935
  msgid "Generate Unique ID"
1936
  msgstr ""
1937
 
1938
+ #: admin/shortcode-builder/shortcode-builder.php:124
1939
  msgid ""
1940
  "You can define a global button/loading style on the Ajax Load More settings "
1941
  "screen"
1942
  msgstr ""
1943
 
1944
+ #: admin/shortcode-builder/shortcode-builder.php:125
1945
  msgid ""
1946
  "Select an Ajax loading style - you can choose between a Button or Infinite "
1947
  "Scroll."
1948
  msgstr ""
1949
 
1950
+ #: admin/shortcode-builder/shortcode-builder.php:153
1951
  msgid "CLICK TO PREVIEW"
1952
  msgstr ""
1953
 
1954
+ #: admin/shortcode-builder/shortcode-builder.php:166
1955
  msgid ""
1956
  "You can define a global container type on the Ajax Load More settings screen"
1957
  msgstr ""
1958
 
1959
+ #: admin/shortcode-builder/shortcode-builder.php:167
1960
  msgid ""
1961
  "Override the global Container Type set in <a href=\"admin.php?page=ajax-load-"
1962
  "more\">ALM Settings</a>."
1963
  msgstr ""
1964
 
1965
+ #: admin/shortcode-builder/shortcode-builder.php:196
1966
  msgid ""
1967
  "You can define global container classes on the Ajax Load More settings screen"
1968
  msgstr ""
1969
 
1970
+ #: admin/shortcode-builder/shortcode-builder.php:198
1971
  msgid "Add custom CSS classes to the <span>.alm-listing</span> container."
1972
  msgstr ""
1973
 
1974
+ #: admin/shortcode-builder/shortcode-builder.php:212
1975
  msgid "Pause"
1976
  msgstr ""
1977
 
1978
+ #: admin/shortcode-builder/shortcode-builder.php:213
1979
  msgid ""
1980
  "Do not load Ajax content until the user clicks or interacts with the "
1981
  "<em>Load More</em> button."
1982
  msgstr ""
1983
 
1984
+ #: admin/shortcode-builder/shortcode-builder.php:234
1985
  msgid "Destroy After"
1986
  msgstr ""
1987
 
1988
+ #: admin/shortcode-builder/shortcode-builder.php:235
1989
  msgid ""
1990
  "Remove Ajax Load More functionality after {<em>n</em>} number of pages have "
1991
  "been loaded."
1992
  msgstr ""
1993
 
1994
+ #: admin/shortcode-builder/shortcode-builder.php:248
1995
  msgid "Images Loaded"
1996
  msgstr ""
1997
 
1998
+ #: admin/shortcode-builder/shortcode-builder.php:248
1999
  msgid "Background images are not supported."
2000
  msgstr ""
2001
 
2002
+ #: admin/shortcode-builder/shortcode-builder.php:249
2003
  msgid "Wait for all images to load before displaying ajax loaded content."
2004
  msgstr ""
2005
 
2006
+ #: admin/shortcode-builder/shortcode-builder.php:271
2007
  msgid "Loading Placeholder"
2008
  msgstr ""
2009
 
2010
+ #: admin/shortcode-builder/shortcode-builder.php:271
2011
  msgid ""
2012
  "A loading placeholder can help the understand content is about to rendered."
2013
  msgstr ""
2014
 
2015
+ #: admin/shortcode-builder/shortcode-builder.php:272
2016
  msgid "Display a placeholder image while Ajax content is being loaded."
2017
  msgstr ""
2018
 
2019
+ #: admin/shortcode-builder/shortcode-builder.php:290
2020
  msgid "URL:"
2021
  msgstr ""
2022
 
2023
+ #: admin/shortcode-builder/shortcode-builder.php:302
2024
  msgid "No Results Text"
2025
  msgstr ""
2026
 
2027
+ #: admin/shortcode-builder/shortcode-builder.php:302
2028
  msgid ""
2029
  "HTML is allowed, however when adding quote marks in classnames or IDs you "
2030
  "must single quotes as shown in the example."
2031
  msgstr ""
2032
 
2033
+ #: admin/shortcode-builder/shortcode-builder.php:303
2034
  msgid ""
2035
  "Add text/html to be displayed when no results are returned in the Ajax query."
2036
  msgstr ""
2037
 
2038
+ #: admin/shortcode-builder/shortcode-builder.php:303
2039
  msgid ""
2040
  "e.g. &lt;div class='no-results'>Sorry, nothing found in this query&lt;/div>"
2041
  msgstr ""
2042
 
2043
+ #: admin/shortcode-builder/shortcode-builder.php:320
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2044
  msgid "Template Selection"
2045
  msgstr ""
2046
 
2047
+ #: admin/shortcode-builder/shortcode-builder.php:325
2048
  msgid "Repeater Template"
2049
  msgstr ""
2050
 
2051
+ #: admin/shortcode-builder/shortcode-builder.php:327
2052
  msgid ""
2053
  "Select which <a href=\"admin.php?page=ajax-load-more-repeaters\" target="
2054
  "\"_parent\">Repeater Template</a> you would like to use."
2055
  msgstr ""
2056
 
2057
+ #: admin/shortcode-builder/shortcode-builder.php:361
2058
  msgid "Button Labels"
2059
  msgstr ""
2060
 
2061
+ #: admin/shortcode-builder/shortcode-builder.php:366
2062
  msgid "Label"
2063
  msgstr ""
2064
 
2065
+ #: admin/shortcode-builder/shortcode-builder.php:367
2066
  msgid "Customize the text of the <em>Load More</em> button."
2067
  msgstr ""
2068
 
2069
+ #: admin/shortcode-builder/shortcode-builder.php:378
2070
  msgid "Loading Label"
2071
  msgstr ""
2072
 
2073
+ #: admin/shortcode-builder/shortcode-builder.php:378
2074
  msgid "Leave field empty to not update button text while loading content"
2075
  msgstr ""
2076
 
2077
+ #: admin/shortcode-builder/shortcode-builder.php:379
2078
  msgid ""
2079
  "Update the text of the <em>Load More</em> button while content is loading."
2080
  msgstr ""
2081
 
2082
+ #: admin/shortcode-builder/shortcode-builder.php:383
2083
  msgid "Loading Posts..."
2084
  msgstr ""
2085
 
2086
+ #: admin/shortcode-builder/shortcode-builder.php:390
2087
  msgid "Done Label"
2088
  msgstr ""
2089
 
2090
+ #: admin/shortcode-builder/shortcode-builder.php:390
2091
  msgid "Leave field empty to not update button text"
2092
  msgstr ""
2093
 
2094
+ #: admin/shortcode-builder/shortcode-builder.php:391
2095
  msgid ""
2096
  "Update the text of the <em>Load More</em> button when no content remains to "
2097
  "be loaded."
2098
  msgstr ""
2099
 
2100
+ #: admin/shortcode-builder/shortcode-builder.php:395
2101
  msgid "No Posts Remain..."
2102
  msgstr ""
2103
 
2104
+ #: admin/shortcode-builder/shortcode-builder.php:406
2105
  msgid "Scrolling"
2106
  msgstr ""
2107
 
2108
+ #: admin/shortcode-builder/shortcode-builder.php:411
2109
  msgid "Load more posts as the user scrolls the page."
2110
  msgstr ""
2111
 
2112
+ #: admin/shortcode-builder/shortcode-builder.php:437
2113
  msgid "Scroll Distance"
2114
  msgstr ""
2115
 
2116
+ #: admin/shortcode-builder/shortcode-builder.php:437
2117
  msgid ""
2118
  "Distance is based on the position of the loading button from the bottom of "
2119
  "the screen"
2120
  msgstr ""
2121
 
2122
+ #: admin/shortcode-builder/shortcode-builder.php:438
2123
  msgid ""
2124
  "The distance from the bottom of the screen to trigger loading of posts. "
2125
  "(Default = 100)"
2126
  msgstr ""
2127
 
2128
+ #: admin/shortcode-builder/shortcode-builder.php:439
2129
  msgid "Pro-tip"
2130
  msgstr ""
2131
 
2132
+ #: admin/shortcode-builder/shortcode-builder.php:439
2133
  msgid ""
2134
  "Use a negative number (-200) to trigger a post load before the button is in "
2135
  "view"
2136
  msgstr ""
2137
 
2138
+ #: admin/shortcode-builder/shortcode-builder.php:457
2139
  msgid "Maximum Pages"
2140
  msgstr ""
2141
 
2142
+ #: admin/shortcode-builder/shortcode-builder.php:457
2143
  msgid "If using an Infinite Scroll button style you should set this to 0"
2144
  msgstr ""
2145
 
2146
+ #: admin/shortcode-builder/shortcode-builder.php:458
2147
  msgid "Maximum number of pages to load while scrolling. (0 = unlimited)"
2148
  msgstr ""
2149
 
2150
+ #: admin/shortcode-builder/shortcode-builder.php:470
2151
  msgid "Pause Override"
2152
  msgstr ""
2153
 
2154
+ #: admin/shortcode-builder/shortcode-builder.php:471
2155
  msgid ""
2156
  "Override the <em>Pause</em> parameter and trigger the initial loading of "
2157
  "posts on scroll."
2158
  msgstr ""
2159
 
2160
+ #: admin/shortcode-builder/shortcode-builder.php:493
2161
  msgid "Scroll Container"
2162
  msgstr ""
2163
 
2164
+ #: admin/shortcode-builder/shortcode-builder.php:494
2165
  msgid "Confine Ajax Load More scrolling to a parent container element."
2166
  msgstr ""
2167
 
2168
+ #: admin/shortcode-builder/shortcode-builder.php:518
2169
  msgid "Container Element"
2170
  msgstr ""
2171
 
2172
+ #: admin/shortcode-builder/shortcode-builder.php:519
2173
  msgid ""
2174
  "Enter the ID or classname of the parent container element to be used as the "
2175
  "scrolling container."
2176
  msgstr ""
2177
 
2178
+ #: admin/shortcode-builder/shortcode-builder.php:531
2179
  msgid "Scroll Direction"
2180
  msgstr ""
2181
 
2182
+ #: admin/shortcode-builder/shortcode-builder.php:531
2183
  msgid "Scroll Direction only works when using a Scroll Container."
2184
  msgstr ""
2185
 
2186
+ #: admin/shortcode-builder/shortcode-builder.php:532
2187
  msgid "Select the direction Ajax Load More should scroll to load posts."
2188
  msgstr ""
2189
 
2190
+ #: admin/shortcode-builder/shortcode-builder.php:538
2191
  msgid "Vertical"
2192
  msgstr ""
2193
 
2194
+ #: admin/shortcode-builder/shortcode-builder.php:542
2195
  msgid "Horizontal"
2196
  msgstr ""
2197
 
2198
+ #: admin/shortcode-builder/shortcode-builder.php:557
2199
  msgid "Transition"
2200
  msgstr ""
2201
 
2202
+ #: admin/shortcode-builder/shortcode-builder.php:562
2203
  msgid "Type"
2204
  msgstr ""
2205
 
2206
+ #: admin/shortcode-builder/shortcode-builder.php:563
2207
  msgid "Select a loading transition style."
2208
  msgstr ""
2209
 
2210
+ #: admin/shortcode-builder/shortcode-builder.php:568
2211
  msgid "Fade In"
2212
  msgstr ""
2213
 
2214
+ #: admin/shortcode-builder/shortcode-builder.php:569
2215
  msgid "Masonry"
2216
  msgstr ""
2217
 
2218
+ #: admin/shortcode-builder/shortcode-builder.php:583
2219
  msgid "Masonry Options"
2220
  msgstr ""
2221
 
2222
+ #: admin/shortcode-builder/shortcode-builder.php:583
2223
  msgid "Ajax Load More does not support all available Masonry options"
2224
  msgstr ""
2225
 
2226
+ #: admin/shortcode-builder/shortcode-builder.php:584
2227
  msgid ""
2228
  "The following Masonry <a href=\"https://masonry.desandro.com/options.html\" "
2229
  "target=\"_blank\">options</a> are supported by Ajax Load More."
2230
  msgstr ""
2231
 
2232
+ #: admin/shortcode-builder/shortcode-builder.php:590
2233
  msgid "Item Selector"
2234
  msgstr ""
2235
 
2236
+ #: admin/shortcode-builder/shortcode-builder.php:590
2237
  msgid ""
2238
  "Item Selector is required for Masonry to target each element loaded with "
2239
  "Ajax."
2240
  msgstr ""
2241
 
2242
+ #: admin/shortcode-builder/shortcode-builder.php:591
2243
  msgid "Enter the target classname of each masonry item."
2244
  msgstr ""
2245
 
2246
+ #: admin/shortcode-builder/shortcode-builder.php:605
2247
  msgid "Column Width"
2248
  msgstr ""
2249
 
2250
+ #: admin/shortcode-builder/shortcode-builder.php:605
2251
  msgid ""
2252
  "If columnWidth is not set, Masonry will use the outer width of the first "
2253
  "Item Selector."
2254
  msgstr ""
2255
 
2256
+ #: admin/shortcode-builder/shortcode-builder.php:606
2257
  msgid ""
2258
  "Enter the <a href=\"https://masonry.desandro.com/options.html#columnwidth\" "
2259
  "target=\"_blank\">columnWidth</a> of the masonry items."
2260
  msgstr ""
2261
 
2262
+ #: admin/shortcode-builder/shortcode-builder.php:619
2263
  msgid "Animation Type"
2264
  msgstr ""
2265
 
2266
+ #: admin/shortcode-builder/shortcode-builder.php:619
2267
  msgid "All Masonry animations include a fade-in effect as items are loaded."
2268
  msgstr ""
2269
 
2270
+ #: admin/shortcode-builder/shortcode-builder.php:620
2271
  msgid "Select a loading transition for Masonry items."
2272
  msgstr ""
2273
 
2274
+ #: admin/shortcode-builder/shortcode-builder.php:628
2275
  msgid "Default (Zoom)"
2276
  msgstr ""
2277
 
2278
+ #: admin/shortcode-builder/shortcode-builder.php:629
2279
  msgid "Items scale up from 50% to 100% size on load."
2280
  msgstr ""
2281
 
2282
+ #: admin/shortcode-builder/shortcode-builder.php:635
2283
  msgid "Zoom Out"
2284
  msgstr ""
2285
 
2286
+ #: admin/shortcode-builder/shortcode-builder.php:636
2287
  msgid "Items scale down from 125% to 100% size on load."
2288
  msgstr ""
2289
 
2290
+ #: admin/shortcode-builder/shortcode-builder.php:642
2291
  msgid "Slide Up"
2292
  msgstr ""
2293
 
2294
+ #: admin/shortcode-builder/shortcode-builder.php:643
2295
  msgid "Items animate up as they are loaded into view."
2296
  msgstr ""
2297
 
2298
+ #: admin/shortcode-builder/shortcode-builder.php:649
2299
  msgid "Slide Down"
2300
  msgstr ""
2301
 
2302
+ #: admin/shortcode-builder/shortcode-builder.php:650
2303
  msgid "Items animate down when loaded into view."
2304
  msgstr ""
2305
 
2306
+ #: admin/shortcode-builder/shortcode-builder.php:666
2307
  msgid "Horizontal Order"
2308
  msgstr ""
2309
 
2310
+ #: admin/shortcode-builder/shortcode-builder.php:667
2311
  msgid "Lays out items to maintain left-to-right order."
2312
  msgstr ""
2313
 
2314
+ #: admin/shortcode-builder/shortcode-builder.php:687
2315
  msgid ""
2316
  "Don't see your favorite Masonry option listed? You can always add your own!"
2317
  msgstr ""
2318
 
2319
+ #: admin/shortcode-builder/shortcode-builder.php:702
2320
  msgid "Transition Container Classes"
2321
  msgstr ""
2322
 
2323
+ #: admin/shortcode-builder/shortcode-builder.php:702
2324
  msgid "This setting is not available with the Single Post or Next Page add-ons"
2325
  msgstr ""
2326
 
2327
+ #: admin/shortcode-builder/shortcode-builder.php:703
2328
  msgid "Add custom classes to the <span>.alm-reveal</span> loading container"
2329
  msgstr ""
2330
 
2331
+ #: admin/shortcode-builder/shortcode-builder.php:715
2332
  msgid "Transition Container"
2333
  msgstr ""
2334
 
2335
+ #: admin/shortcode-builder/shortcode-builder.php:715
2336
  msgid ""
2337
  "Removing the transition container may have undesired results and is not "
2338
  "recommended"
2339
  msgstr ""
2340
 
2341
+ #: admin/shortcode-builder/shortcode-builder.php:716
2342
  msgid ""
2343
  "Remove the <span>.alm-reveal</span> loading container from Ajax Load More"
2344
  msgstr ""
2345
 
2346
+ #: admin/shortcode-builder/shortcode-builder.php:723
2347
  msgid "Remove Container"
2348
  msgstr ""
2349
 
2350
+ #: admin/shortcode-builder/shortcode-builder.php:739
2351
  msgid "Progress Bar"
2352
  msgstr ""
2353
 
2354
+ #: admin/shortcode-builder/shortcode-builder.php:743
2355
  msgid ""
2356
  "Display progress bar indicator at the top of the window while loading Ajax "
2357
  "content."
2358
  msgstr ""
2359
 
2360
+ #: admin/shortcode-builder/shortcode-builder.php:768
2361
  msgid "Color"
2362
  msgstr ""
2363
 
2364
+ #: admin/shortcode-builder/shortcode-builder.php:769
2365
  msgid "Enter the hex color of the progress bar"
2366
  msgstr ""
2367
 
2368
+ #: admin/shortcode-builder/shortcode-builder.php:799
2369
+ msgid ""
2370
+ "When using Ajax Load More add-ons or extensions not all Query Parameters "
2371
+ "will be available in the query."
2372
  msgstr ""
2373
 
2374
+ #: admin/shortcode-builder/shortcode-builder.php:802
2375
  msgid ""
2376
  "Query Parameters allow you build a custom <b>WP_Query</b> based on Ajax Load "
2377
  "More shortcode values."
2378
  msgstr ""
2379
 
2380
+ #: admin/shortcode-builder/shortcode-builder.php:809
 
 
 
 
 
 
2381
  msgid "Posts Per Page"
2382
  msgstr ""
2383
 
2384
+ #: admin/shortcode-builder/shortcode-builder.php:813
2385
  msgid "Select the number of posts to load with each Ajax request."
2386
  msgstr ""
2387
 
2388
+ #: admin/shortcode-builder/shortcode-builder.php:833
2389
  msgid "Post Type"
2390
  msgstr ""
2391
 
2392
+ #: admin/shortcode-builder/shortcode-builder.php:838
2393
  msgid "Select the Post Types to include in this Ajax Load More query."
2394
  msgstr ""
2395
 
2396
+ #: admin/shortcode-builder/shortcode-builder.php:852
2397
  msgid "Any"
2398
  msgstr ""
2399
 
2400
+ #: admin/shortcode-builder/shortcode-builder.php:863
2401
  msgid "Sticky Posts"
2402
  msgstr ""
2403
 
2404
+ #: admin/shortcode-builder/shortcode-builder.php:863
2405
  msgid "Sticky posts are only available for Posts"
2406
  msgstr ""
2407
 
2408
+ #: admin/shortcode-builder/shortcode-builder.php:864
2409
  msgid ""
2410
  "Preserve the ordering of sticky posts by having them appear first in the "
2411
  "Ajax listing."
2412
  msgstr ""
2413
 
2414
+ #: admin/shortcode-builder/shortcode-builder.php:871
2415
  msgid "Enable Sticky Posts"
2416
  msgstr ""
2417
 
2418
+ #: admin/shortcode-builder/shortcode-builder.php:894
2419
  msgid "Post Format"
2420
  msgstr ""
2421
 
2422
+ #: admin/shortcode-builder/shortcode-builder.php:898
2423
  msgid "Select a Post Format to query."
2424
  msgstr ""
2425
 
2426
+ #: admin/shortcode-builder/shortcode-builder.php:901
2427
  msgid "Select Post Format"
2428
  msgstr ""
2429
 
2430
+ #: admin/shortcode-builder/shortcode-builder.php:902
2431
  msgid "Standard"
2432
  msgstr ""
2433
 
2434
+ #: admin/shortcode-builder/shortcode-builder.php:934
2435
  msgid "Get posts by category using a category_name or category__and query"
2436
  msgstr ""
2437
 
2438
+ #: admin/shortcode-builder/shortcode-builder.php:935
2439
  msgid "Comma separated list of categories to include by"
2440
  msgstr ""
2441
 
2442
+ #: admin/shortcode-builder/shortcode-builder.php:935
2443
+ #: admin/shortcode-builder/shortcode-builder.php:1028
2444
  msgid "slug"
2445
  msgstr ""
2446
 
2447
+ #: admin/shortcode-builder/shortcode-builder.php:971
2448
+ #: admin/shortcode-builder/shortcode-builder.php:1066
2449
  msgid "What's this"
2450
  msgstr ""
2451
 
2452
+ #: admin/shortcode-builder/shortcode-builder.php:983
2453
  msgid "Comma separated list of categories to exclude by ID."
2454
  msgstr ""
2455
 
2456
+ #: admin/shortcode-builder/shortcode-builder.php:1027
2457
  msgid "Get posts by tags using a tag or tag__and query"
2458
  msgstr ""
2459
 
2460
+ #: admin/shortcode-builder/shortcode-builder.php:1028
2461
  msgid "Comma separated list of tags to include by"
2462
  msgstr ""
2463
 
2464
+ #: admin/shortcode-builder/shortcode-builder.php:1078
2465
  msgid "Comma separated list of tags to exclude by ID"
2466
  msgstr ""
2467
 
2468
+ #: admin/shortcode-builder/shortcode-builder.php:1118
2469
+ msgid "Select a taxonomy to query and then select the terms and operator."
2470
  msgstr ""
2471
 
2472
+ #: admin/shortcode-builder/shortcode-builder.php:1123
2473
+ #: admin/shortcode-builder/shortcode-builder.php:1157
2474
  msgid "Add Another"
2475
  msgstr ""
2476
 
2477
+ #: admin/shortcode-builder/shortcode-builder.php:1134
2478
  msgid "Custom Fields (Meta_Query)"
2479
  msgstr ""
2480
 
2481
+ #: admin/shortcode-builder/shortcode-builder.php:1138
2482
  msgid ""
2483
  "Query for <a href=\"https://developer.wordpress.org/reference/classes/"
2484
  "wp_query/#custom-field-post-meta-parameters\" target=\"_blank\">custom "
2485
+ "fields</a> by entering a key, value and operator."
2486
  msgstr ""
2487
 
2488
+ #: admin/shortcode-builder/shortcode-builder.php:1148
2489
  msgid ""
2490
  "The logical relationship between each custom field when there is more than "
2491
  "one"
2492
  msgstr ""
2493
 
2494
+ #: admin/shortcode-builder/shortcode-builder.php:1167
2495
  msgid "Date"
2496
  msgstr ""
2497
 
2498
+ #: admin/shortcode-builder/shortcode-builder.php:1171
2499
  msgid "Enter a year, month(number) and day to query by date archive."
2500
  msgstr ""
2501
 
2502
+ #: admin/shortcode-builder/shortcode-builder.php:1178
2503
  msgid "Year:"
2504
  msgstr ""
2505
 
2506
+ #: admin/shortcode-builder/shortcode-builder.php:1182
2507
  msgid "Month:"
2508
  msgstr ""
2509
 
2510
+ #: admin/shortcode-builder/shortcode-builder.php:1186
2511
  msgid "Day:"
2512
  msgstr ""
2513
 
2514
+ #: admin/shortcode-builder/shortcode-builder.php:1207
2515
  msgid "Author"
2516
  msgstr ""
2517
 
2518
+ #: admin/shortcode-builder/shortcode-builder.php:1211
2519
  msgid "Select an Author to query(by ID)."
2520
  msgstr ""
2521
 
2522
+ #: admin/shortcode-builder/shortcode-builder.php:1236
2523
  msgid "Search"
2524
  msgstr ""
2525
 
2526
+ #: admin/shortcode-builder/shortcode-builder.php:1240
2527
  msgid "Enter a search term to query."
2528
  msgstr ""
2529
 
2530
+ #: admin/shortcode-builder/shortcode-builder.php:1241
2531
  msgid ""
2532
  "Search uses the default WordPress search, however Ajax Load More does offer "
2533
  "integrations with SearchWP and Relevanssi."
2534
  msgstr ""
2535
 
2536
+ #: admin/shortcode-builder/shortcode-builder.php:1246
2537
  msgid "Enter search term"
2538
  msgstr ""
2539
 
2540
+ #: admin/shortcode-builder/shortcode-builder.php:1256
2541
  msgid "Post Parameters"
2542
  msgstr ""
2543
 
2544
+ #: admin/shortcode-builder/shortcode-builder.php:1261
2545
  msgid "A comma separated list of post ID's to query."
2546
  msgstr ""
2547
 
2548
+ #: admin/shortcode-builder/shortcode-builder.php:1265
2549
  msgid "225, 340, 818, etc..."
2550
  msgstr ""
2551
 
2552
+ #: admin/shortcode-builder/shortcode-builder.php:1272
2553
  msgid "A comma separated list of post ID's to exclude from query."
2554
  msgstr ""
2555
 
2556
+ #: admin/shortcode-builder/shortcode-builder.php:1283
2557
  msgid "Post Status"
2558
  msgstr ""
2559
 
2560
+ #: admin/shortcode-builder/shortcode-builder.php:1283
2561
  msgid ""
2562
  "Post Status parameters are only available for logged in (admin) users. Non "
2563
  "logged in users will only have access to view content in a 'publish' or "
2564
  "'inherit' state."
2565
  msgstr ""
2566
 
2567
+ #: admin/shortcode-builder/shortcode-builder.php:1284
2568
  msgid "Select status of the post."
2569
  msgstr ""
2570
 
2571
+ #: admin/shortcode-builder/shortcode-builder.php:1289
2572
  msgid "Published"
2573
  msgstr ""
2574
 
2575
+ #: admin/shortcode-builder/shortcode-builder.php:1307
2576
  msgid "Ordering"
2577
  msgstr ""
2578
 
2579
+ #: admin/shortcode-builder/shortcode-builder.php:1311
2580
  msgid "Sort posts by Order and Orderby parameters."
2581
  msgstr ""
2582
 
2583
+ #: admin/shortcode-builder/shortcode-builder.php:1346
2584
  msgid "Offset"
2585
  msgstr ""
2586
 
2587
+ #: admin/shortcode-builder/shortcode-builder.php:1350
2588
  msgid "Offset the initial query by <em>'x'</em> number of posts"
2589
  msgstr ""
2590
 
2591
+ #: admin/shortcode-builder/shortcode-builder.php:1364
2592
  msgid "Custom Arguments"
2593
  msgstr ""
2594
 
2595
+ #: admin/shortcode-builder/shortcode-builder.php:1368
2596
  msgid "A semicolon separated list of custom value:pair arguments."
2597
  msgstr ""
2598
 
2599
+ #: admin/shortcode-builder/shortcode-builder.php:1368
2600
  msgid ""
2601
  "Custom Arguments can be used to query by parameters not available in the "
2602
  "Shortcode Builder"
2603
  msgstr ""
2604
 
2605
+ #: admin/shortcode-builder/shortcode-builder.php:1372
2606
  msgid "event_display:upcoming"
2607
  msgstr ""
2608
 
2609
+ #: admin/shortcode-builder/shortcode-builder.php:1392
 
 
 
 
2610
  msgid ""
2611
+ "Ajax Load More provides integrations for popular plugins and core WP "
2612
+ "functionality - when selecting an integration, Ajax Load More will "
2613
  "automatically set various parameters on the server side to provide the best "
2614
  "experience for users based on the selected integration."
2615
  msgstr ""
2616
 
2617
+ #: admin/shortcode-builder/shortcode-builder.php:1399
2618
  msgid "Archives"
2619
  msgstr ""
2620
 
2621
+ #: admin/shortcode-builder/shortcode-builder.php:1403
2622
  msgid ""
2623
  "Ajax Load More will automatically create an archive query while viewing site "
2624
  "archives."
2625
  msgstr ""
2626
 
2627
+ #: admin/shortcode-builder/shortcode-builder.php:1404
2628
  msgid ""
2629
  "Taxonomy, category, tag, date (year, month, day), post type and author "
2630
  "archives are currently supported."
2631
  msgstr ""
2632
 
2633
+ #: admin/shortcode-builder/shortcode-builder.php:1422
2634
  msgid ""
2635
  "<b>Note</b>: Do not select Query Parameters other than <b>Posts Per Page</b> "
2636
  "and/or <b>Post Type</b> when using the Archives integration. Ajax Load More "
2638
  "archive page."
2639
  msgstr ""
2640
 
 
 
 
 
 
 
 
 
 
 
 
 
2641
  #: admin/views/add-ons.php:7
2642
  msgid ""
2643
  "Add-ons are available to extend and enhance the core functionality of Ajax "
2713
  msgid "A collection of everyday shortcode usages and implementation examples"
2714
  msgstr ""
2715
 
 
 
 
 
2716
  #: admin/views/help.php:36
2717
  msgid "Examples"
2718
  msgstr ""
2723
 
2724
  #: admin/views/help.php:71
2725
  msgid ""
2726
+ "View the collection of over 30 real world Ajax Load More <a href=\"https://"
2727
  "connekthq.com/plugins/ajax-load-more/examples/\" target=\"_blank\">examples</"
2728
  "a> available on the plugin website"
2729
  msgstr ""
2918
  "org/The_Loop\" target=\"_blank\">WordPress loop</a>"
2919
  msgstr ""
2920
 
2921
+ #: admin/views/settings.php:13
2922
  msgid "A powerful plugin to add infinite scroll functionality to your website."
2923
  msgstr ""
2924
 
2925
+ #: admin/views/settings.php:91 admin/views/shortcode-builder.php:21
2926
+ msgid "Back to Top"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2927
  msgstr ""
2928
 
2929
  #: admin/views/shortcode-builder.php:10
2932
  "shortcodes/\" target=\"_blank\">shortcode</a> by adjusting the values below"
2933
  msgstr ""
2934
 
2935
+ #: admin/views/shortcode-builder.php:28
 
 
 
 
2936
  msgid "Shortcode Output"
2937
  msgstr ""
2938
 
2939
+ #: admin/views/shortcode-builder.php:30
2940
  msgid ""
2941
  "Place the following shortcode into the content editor or widget area of your "
2942
  "theme."
2943
  msgstr ""
2944
 
2945
+ #: admin/views/shortcode-builder.php:36
2946
  msgid "Copied!"
2947
  msgstr ""
2948
 
2949
+ #: admin/views/shortcode-builder.php:36
2950
  msgid "Copy Shortcode"
2951
  msgstr ""
2952
 
2953
+ #: admin/views/shortcode-builder.php:37
2954
  msgid "Reset"
2955
  msgstr ""
2956
 
2957
+ #: ajax-load-more.php:368
2958
  msgid "Viewing {post_count} of {total_posts} results."
2959
  msgstr ""
2960
 
2961
+ #: ajax-load-more.php:369
2962
  msgid "No results found."
2963
  msgstr ""
2964
 
2965
+ #: core/classes/class-alm-noscript.php:155
2966
  msgid "Pages: "
2967
  msgstr ""
2968