WordPress Infinite Scroll – Ajax Load More - Version 3.1.0

Version Description

  • May 30, 2017 =

  • UPGRADE NOTICE - Ajax Load More has changed the directory from which the core CSS and JS are loaded. Core CSS and JS is now loaded from the /ajax-load-more/core/dist/ directory - you may need to clear your browser and site cache after update.

  • NEW - Adding built-in support for Masonry. Set transition="masonry" masonry_selector=".{selector_name}" in your shortcode to enable a custom Masonry callback and automatically enqueue Masonry and ImagesLoaded from core WordPress.

  • NEW - Adding built-in support progress bar loaders using Pace.js.

  • UPDATE - Core ALM CSS and JS is now loaded from core/dist/ directory.

  • UPDATE - Added modules, libs and vendor directories to core/js/ for splitting of JS files.

  • UPDATE - Added gulp config for compiling Ajax Load More JS and Sass locally.

  • FIX - Fixed issues with shortcode building providing incorrect values.

Download this release

Release Info

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

Code changes from version 3.0.1 to 3.1.0

.editorconfig CHANGED
@@ -2,14 +2,11 @@
2
  # coding styles between different editors and IDEs
3
  # editorconfig.org
4
 
5
- # PHP PSR-2 Coding Standards
6
- # http://www.php-fig.org/psr/psr-2/
7
-
8
  root = true
9
 
10
  [*]
11
  charset = utf-8
12
- end_of_line = lf
13
  insert_final_newline = true
14
  trim_trailing_whitespace = true
15
  indent_style = tab
2
  # coding styles between different editors and IDEs
3
  # editorconfig.org
4
 
 
 
 
5
  root = true
6
 
7
  [*]
8
  charset = utf-8
9
+ end_of_line = lf
10
  insert_final_newline = true
11
  trim_trailing_whitespace = true
12
  indent_style = tab
.jshintrc ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ {
2
+ "esversion": 6
3
+ }
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, infinite scrolling, scroll, infinite, lazy load, lazy loading, pagination, ajax pagination, ajax, ajax posts, ajax load posts, search, tags, category, post types, taxonomy, meta_query, woocommerce, ajax load more
5
  Requires at least: 3.6
6
- Tested up to: 4.7.5
7
- Stable tag: 3.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -14,26 +14,41 @@ The ultimate infinite scroll and lazy load solution for your WordPress powered w
14
 
15
  Ajax Load More is a powerful solution for infinite scrolling and lazy loading WordPress posts, custom post types, single posts, pages and comments with Ajax powered queries.
16
 
17
- Create custom WordPress queries using the Ajax Load More shortcode builder then add the shortcode to your page via the content editor or directly into theme templates in the location you want infinite scroll content to appear.
18
 
19
- Ajax Load More is fully compatible for infinite 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
  * **Shortcode Builder** - Easily create your own Ajax Load More shortcode by adjusting the various WordPress query parameters in our easy-to-use shortcode builder (see Shortcode Parameters).
25
- * **Query Parameters** - Ajax Load More allows you to query WordPress by many different content types. Query by Post Type, Post Format, Date, Category, Tags, Custom Taxonomies, Search Term, Authors and more!!
26
- * **Customizable Repeater Templates** - Edit and extend the functionality of Ajax Load More by creating your own repeater template to match the look and feel of your website (see screenshots).
27
- * **Setting Panel** - Customize your version of Ajax Load More by updating various plugin settings (see screenshots).
28
  * **Multiple Instances** - You can include multiple instances of Ajax Load More on a single page, post or template.
29
- * **Multisite Compatibility** - As of Ajax Load More 2.7.2 you can now manage repeater templates across all sites in your network.
 
30
 
31
  Check out the **[demo site](https://connekthq.com/plugins/ajax-load-more/)** for more information!
32
 
33
- ***
34
 
35
- = Content Types =
36
- 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.
 
 
 
 
 
 
 
 
 
 
 
 
37
 
38
  * [Standard Posts](https://connekthq.com/plugins/ajax-load-more/examples/default/)
39
  * [Custom Post Types](https://connekthq.com/plugins/ajax-load-more/examples/masonry/)
@@ -45,192 +60,163 @@ Ajax Load More can infinite scroll any content type WordPress offers - from blog
45
  ** Add-on required
46
 
47
 
48
- = Shortcode Parameters =
49
-
50
- 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 your custom shortcode is simple with the intuitive [Shortcode Builder](https://connekthq.com/plugins/ajax-load-more/screenshots/#shortcode-builder)
51
-
52
- * `repeater` - Choose a repeater template (<a href="https://connekthq.com/plugins/ajax-load-more/custom-repeaters/">Add-on available</a>). Default = ‘default’
53
- * `post_type` - Comma separated list of post types. Default = ‘post’
54
- * `sticky_posts` - Preserve sticky post ordering in Ajax listing. Default = false
55
- * `post_format` - Query by post format. Default = null
56
- * `category` - A comma separated list of categories to include by slug. Default = null
57
- * `category__not_in` - A comma separated list of categories to exclude by ID. Default = null
58
- * `tag` - A comma separated list of tags to include by slug. Default = null
59
- * `tag__not_in` - A comma separated list of tags to exclude by ID. Default = null
60
- * `taxonomy` - Query by custom taxonomy name. Default = null
61
- * `taxonomy_terms` - Comma separated list of custom taxonomy terms(slug). Default = null
62
- * `taxonomy_operator` - Operator to compare Taxonomy Terms against (IN/NOT IN). Default = ‘IN’
63
- * `taxonomy_relation` - The logical relationship between each taxonomy when there is more than one. (AND/OR). Default = ‘AND’
64
- * `day` - Day of the week. Default = null
65
- * `month` - Month of the year. Default = null
66
- * `year` - Year of post. Default = null
67
- * `taxonomy_operator` - Operator to compare Taxonomy Terms against (IN/NOT IN). Default = ‘IN’
68
- * `meta_key` - Custom field key(name). Default = null
69
- * `meta_value` - Custom field value. Default = null
70
- * `meta_compare` - Operator to compare meta_key and meta_value against. Default = ‘IN’
71
- * `meta_type` - Custom field type. Default = ‘CHAR’
72
- * `meta_relation` - Used with multiple custom field entries (AND/OR). Default = ‘AND’
73
- * `author` - Comma separated list of authors by id. Default = null
74
- * `post__in` - Comma separated list of post ID’s to include in query. Default = null
75
- * `post__not_in` - Comma separated list of post ID’s to exclude from query. Default = null
76
- * `search` - Query search term (‘s’). Default = null
77
- * `custom_args` - A semicolon separated list of value:pair arguments. e.g. tag_slug__and:design,development; event_display:upcoming. Default = null
78
- * `post_status` - Select status of the post. Default = 'publish'
79
- * `order` - Display posts in ASC(ascending) or DESC(descending) order. Default = ‘DESC’
80
- * `orderby` - Order posts by date, title, name, menu order, author, post ID or comment count. Default = ‘date’
81
- * `offset` - Offset the initial query (number). Default = ’0′
82
- * `posts_per_page` - Number of posts to load with each Ajax request. Default = ’5′
83
- * `scroll` - Load more posts as the user scrolls the page (true/false). Default = ‘true’
84
- * `scroll_distance` - The distance from the bottom of the screen to trigger the loading of posts while scrolling. Default = '150'
85
- * `max_pages` - Maximum number of pages to load while user is scrolling (activated on when scroll = true). Default = '0'
86
- * `pause_override` - Allow scrolling to override the Pause parameter and trigger the loading of posts on scroll. Default = null
87
- * `pause` - Do not load posts until user clicks the Load More button (true/false). Default = 'false'
88
- * `transition` - Choose a posts reveal transition (slide/fade/none). Default = 'slide'
89
- * `transition_speed` - The speed of the loading transition in milliseconds. (slide/fade/none). Default = '250'
90
- * `transition_container` - Display the Ajax Load More (.alm-reveal) loading container. Default = 'true'
91
- * `images_loaded` - Wait for all images to load before displaying ajax loaded content (true/false). Default = 'false'
92
- * `destroy_after` - Remove ajax load more functionality after 'n' number of pages have been loaded. Default = null
93
- * `button_label` - The label text for Load More button. Default = 'Older Posts'
94
- * `button_loading_label` - Update the text of the Load More button while content is loading. Default = null
95
- * `container_type` - Override the global Container Type that was set on ALM Settings page. Default = null
96
- * `css_classes` - Add custom CSS classes to the Ajax Load More container. Default = null
97
- * `id` - A unique ID for the Ajax Load More instance.
98
- ***
99
 
100
- = Example Shortcode =
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
101
 
102
  [ajax_load_more post_type="post, portfolio" repeater="default" posts_per_page="5" transition="fade" button_label="Older Posts"]
103
 
104
- ***
105
 
106
- = Demos =
 
107
  * **[Default](https://connekthq.com/plugins/ajax-load-more/examples/default/)** - Out of the box functionality and styling.
108
- * **[Advanced Custom Fields](https://connekthq.com/plugins/ajax-load-more/examples/advanced-custom-fields//)** - Infinite scroll Advanced Custom Fields data.
109
- * **[Attachments](https://connekthq.com/plugins/ajax-load-more/examples/attachments/)** - Infinite scroll post attachments.
110
  * **[Destroy After](https://connekthq.com/plugins/ajax-load-more/examples/destroy-after/)** - Remove Ajax Load More functionality after 'n' number of pages.
 
111
  * **[Fade Transition](https://connekthq.com/plugins/ajax-load-more/examples/fade-transition/)** - Elements fade in as posts are loaded.
112
  * **[Filtering](https://connekthq.com/plugins/ajax-load-more/examples/filtering/)** - Reset and filter an Ajax Load More instance.
113
- * **[Infinite Scroll](https://connekthq.com/plugins/ajax-load-more/examples/infinite-scroll/)** - A look at the new loading functionality and style.
 
114
  * **[Images Loaded](https://connekthq.com/plugins/ajax-load-more/examples/images-loaded/)** - Download images before displaying ajax loaded content.
115
  * **[Masonry](https://connekthq.com/plugins/ajax-load-more/examples/masonry/)** - Creating a flexible grid layout with Masonry JS.
116
  * **[Multiple Instances](https://connekthq.com/plugins/ajax-load-more/examples/multiple-instances/)** - Include multiple Ajax Load More' on a single page.
117
  * **[Paging URLs](https://connekthq.com/plugins/ajax-load-more/examples/paging-urls/)** - Generate unique paging URLs for every Ajax Load More query with the SEO add-on.
118
  * **[Pause Loading](https://connekthq.com/plugins/ajax-load-more/examples/pause-loading/)** - Posts will not load until initiated by the user.
119
  * **[Preloaded Posts](https://connekthq.com/plugins/ajax-load-more/examples/pause-loading/)** - Easily preload an initial set of posts before completing any Ajax requests to the server.
 
120
  * **[Search Results](https://connekthq.com/plugins/ajax-load-more/examples/search-results/)** - Returning results based on search terms.
121
  * **[SEO & Paging](https://connekthq.com/plugins/ajax-load-more/examples/seo-paging-add-ons/)** - Combine these two add-ons to create one powerful navigation system.
122
  * **[Slideshow Gallery](https://connekthq.com/plugins/ajax-load-more/examples/slideshow-gallery/)** - Create a gallery of posts with Ajax Load More and the Paging add-on.
123
  * **[Table Layout](https://connekthq.com/plugins/ajax-load-more/examples/table/)** - Ajax Load More will display query results in a table format.
124
- * **[Woocommerce](https://connekthq.com/plugins/ajax-load-more/examples/woocommerce/)** - Infinite scrolling WooCommerce products with Ajax Load More
125
 
126
- [&rarr; View All Examples](https://connekthq.com/plugins/ajax-load-more/examples/)
127
 
128
- *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*
129
 
130
  [youtube https://www.youtube.com/watch?v=EQ57i6dkOew]
131
 
132
- ***
133
 
134
- = Add-ons =
 
 
135
  The following [add-ons](https://connekthq.com/plugins/ajax-load-more/add-ons/) are available to increase the functionality of Ajax Load More.
136
 
137
- > #### Cache
138
- > The **[Cache](https://connekthq.com/plugins/ajax-load-more/add-ons/cache/)** add-on creates static HTML files of Ajax Load More requests then serves those static pages to your visitors without querying the database.
139
- > [Get More Information](https://connekthq.com/plugins/ajax-load-more/add-ons/cache/)
140
- >
141
- > #### Call to Actions
142
- > The **[Call to Actions](https://connekthq.com/plugins/ajax-load-more/add-ons/call-to-actions/)** add-on will provide functionality to inject a custom CTA template within an Ajax Load More query.
143
- > [Get More Information](https://connekthq.com/plugins/ajax-load-more/add-ons/call-to-actions/)
144
- >
145
- > #### Comments
146
- > The **[Comments](https://connekthq.com/plugins/ajax-load-more/add-ons/comments/)** add-on will load and display blog comments using the core Ajax Load More infinite scroll functionality.
147
- > [Get More Information](https://connekthq.com/plugins/ajax-load-more/add-ons/comments/)
148
- >
149
- > #### Custom Repeaters
150
- > The **[Custom Repeaters](https://connekthq.com/plugins/ajax-load-more/add-ons/custom-repeaters/)** add-on will allow for **unlimited repeater templates** and provide the ability to create unique templates for different content types throughout your theme.
151
- > [Get More Information](https://connekthq.com/plugins/ajax-load-more/add-ons/custom-repeaters/)
152
- >
153
- > #### Layouts
154
- > The **[Layouts](https://connekthq.com/plugins/ajax-load-more/add-ons/layouts/)** add-on will provide a library of fully responsive layout templates ready for use on your website.
155
- > [Get More Information](https://connekthq.com/plugins/ajax-load-more/add-ons/layouts/)
156
- >
157
- > #### Next Page
158
- > The **[Next Page](https://connekthq.com/plugins/ajax-load-more/add-ons/next-page/)** add-on Load and display paginated WordPress content on demand using the `<!–-nextpage–->` Quicktag.
159
- > [Get More Information](https://connekthq.com/plugins/ajax-load-more/add-ons/next-page/)
160
- >
161
- > #### Paging
162
- > The **[Paging](https://connekthq.com/plugins/ajax-load-more/add-ons/paging/)** add-on will transform Ajax Load More’s lazy load/infinite scroll functionality into a robust ajax powered navigation system.
163
- > [Get More Information](https://connekthq.com/plugins/ajax-load-more/add-ons/paging/)
164
- >
165
- > #### Preloaded
166
- > The **[Preloaded](https://connekthq.com/plugins/ajax-load-more/add-ons/preloaded/)** add-on will allow you to quickly and easily preload an initial set of posts before completing any Ajax requests to the server.
167
- > [Get More Information](https://connekthq.com/plugins/ajax-load-more/add-ons/preloaded/)
168
- >
169
- > #### Previous Post
170
- > The **[Previous Post](https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/)** add-on will allow you to navigate single posts with Ajax Load More.
171
- > [Get More Information](https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/)
172
- >
173
- > #### Search Engine Optimization
174
- > The **[SEO](https://connekthq.com/plugins/ajax-load-more/add-ons/search-engine-optimization/)** add-on will optimize your ajax loaded content for search engines and site visitors by generating standard WordPress paging URLs with each Ajax Load More query.
175
- > [Get More Information](https://connekthq.com/plugins/ajax-load-more/add-ons/search-engine-optimization/)
176
- >
177
- > #### Theme Repeaters
178
- > The **[Theme Repeaters](https://connekthq.com/plugins/ajax-load-more/add-ons/theme-repeaters/)** add-on will allow you load, edit and maintain templates from your current theme directory.
179
- > [Get More Information](https://connekthq.com/plugins/ajax-load-more/add-ons/theme-repeaters/)
180
 
181
 
182
- ***
183
 
184
- = Extensions =
185
- The following free [extensions](https://connekthq.com/plugins/ajax-load-more/extensions/) are available to provide compatibility with popular WordPress plugins and core features.
186
 
187
- > #### Advanced Custom Fields
188
- > The [Advanced Custom Fields](https://connekthq.com/plugins/ajax-load-more/extensions/advanced-custom-fields/) extension provides additional functionality for infinite scrolling Repeater and Relationship field data with Ajax Load More.
189
- >
190
- > #### Relvanssi
191
- > The **[Relevanssi](https://connekthq.com/plugins/ajax-load-more/extensions/relevanssi/)** extension provides the functionality for returning Relevanssi query results to Ajax Load More.
192
- >
193
- > #### REST API
194
- > The **[REST API](https://connekthq.com/plugins/ajax-load-more/extensions/rest-api/)** extension will enable compatibility between Ajax Load More and the WordPress REST API.
195
- >
196
- > #### SearchWP
197
- > The **[SearchWP](https://connekthq.com/plugins/ajax-load-more/extensions/searchwp/)** extension provides the functionality for returning SearchWP query results to Ajax Load More.
198
- >
199
 
200
 
201
- ***
202
 
203
- = Callback Functions =
204
  The following [functions](https://connekthq.com/plugins/ajax-load-more/docs/callback-functions/) are available to be dispatched by Ajax Load More.
205
 
206
 
207
- **ALM Complete** - The almComplete() function is triggered after every *successful* ajax call made by Ajax Load More.
208
 
209
  $.fn.almComplete = function(alm){
210
  // Your on complete code goes here
211
  };
212
 
213
 
214
- **ALM Done** - The almDone() function is triggered after all posts have been loaded..
215
 
216
  $.fn.almDone = function(alm){
217
  console.log('All posts have been loaded!');
218
  };
219
 
220
- **ALM Empty** - The almEmpty() function is triggered if there are zero results returned in the initial query.
221
 
222
  $.fn.almEmpty = function(alm){
223
  console.log('Sorry, but we could not locate any posts that matched your criteria.');
224
  };
225
 
226
- **ALM Filter Complete** - The almFilterComplete() function is triggered after a successful call to the public function almFilter().
227
 
228
  $.fn.almFilterComplete = function(){
229
  console.log('Ajax Load More filter has completed!');
230
  };
231
 
232
 
233
- **ALM URL Update** - The almUrlUpdate() function is triggered after a successful URL update (pushState) from the Previous Post or the Search Engine Optimization add-on
234
 
235
  $.fn.almUrlUpdate = function(permalink, type){
236
  console.log("URL updated to " + permalink + '- dispatched from the '+ type + ' add-on.');
@@ -238,41 +224,48 @@ The following [functions](https://connekthq.com/plugins/ajax-load-more/docs/call
238
 
239
  ***
240
 
241
- = Filter Hooks =
242
 
243
- Ajax Load More has a variety of [filters](https://connekthq.com/plugins/ajax-load-more/docs/filter-hooks/) in place that enable users to hook into Ajax Load More to insert or modify data.
244
 
245
 
246
- = Variables =
247
 
248
- 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.
249
 
250
- * **$alm_current** - Returns the current item number in the current Ajax Load More loop and will reset to zero with every 'Load More' action.. 'echo $alm_current;'
251
- * **$alm_page** - Returns the current page number. 'echo $alm_page;'
252
- * **$alm_item** - Returns the current item number within your loop. 'echo $alm_item;'
253
- * **$alm_found_posts** - Returns the total number of posts found within the entire WordPress query. 'echo $alm_found_posts;'
254
 
255
- ***
256
 
257
- = Tested Browsers =
258
 
259
- * Firefox (Mac, PC)
260
- * Chrome (Mac, PC, iOS, Android)
261
- * Safari (Mac, iOS)
262
- * Opera
263
- * Android
264
- * IE8+
265
 
266
- ***
267
 
268
- = Website =
269
- https://connekthq.com/ajax-load-more/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
270
 
271
- ***
272
 
273
- = Please Rate Ajax Load More! =
 
 
 
 
274
 
275
- Your ratings make a big difference! If you like and use Ajax Load More, please consider taking the time to [rate my plugin](https://wordpress.org/support/view/plugin-reviews/ajax-load-more). Your ratings and reviews will help this plugin grow and provide the motivation needed to keep pushing it forward.
276
 
277
 
278
 
@@ -310,6 +303,15 @@ Repeater template data is saved into your WordPress database as well as written
310
  Yes, but you will need to define $post at the top of the repeater before requesting your custom fields. Like so:
311
  global $post;
312
 
 
 
 
 
 
 
 
 
 
313
 
314
  == Installation ==
315
 
@@ -351,6 +353,17 @@ How to install Ajax Load More.
351
 
352
  == Changelog ==
353
 
 
 
 
 
 
 
 
 
 
 
 
354
  = 3.0.1 - May 22, 2017 =
355
 
356
  * NEW - Added support for caching single posts with the Previous Post and Cache add-ons.
1
  === WordPress Infinite Scroll - Ajax Load More ===
2
  Contributors: dcooney, connekthq
3
  Donate link: https://connekthq.com/donate/
4
+ Tags: infinite scroll, infinite scrolling, scroll, infinite, lazy load, lazy loading, endless scroll, pagination, ajax pagination, ajax, ajax posts, ajax load posts, woocommerce, ajax load more
5
  Requires at least: 3.6
6
+ Tested up to: 4.8
7
+ Stable tag: 3.1.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
14
 
15
  Ajax Load More is a powerful solution for infinite scrolling and lazy loading WordPress posts, custom post types, single posts, pages and comments with Ajax powered queries.
16
 
17
+ Build complex custom WordPress queries using the Ajax Load More shortcode builder then add the generated shortcode to your page via the content editor or directly into your template files.
18
 
19
+ Ajax Load More is fully 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
+
24
+
25
+
26
+ ### Features
27
  * **Shortcode Builder** - Easily create your own Ajax Load More shortcode by adjusting the various WordPress query parameters in our easy-to-use shortcode builder (see Shortcode Parameters).
28
+ * **Query Parameters** - Ajax Load More allows you to query WordPress by many different content types. Query by Post Type, Post Format, Date, Category, Tags, Custom Taxonomies, Search Term, Authors and more!
29
+ * **Repeater Templates** - Edit and extend the functionality of Ajax Load More by creating your own repeater template to match the look and feel of your website (see screenshots).
30
+ * **Setting Panel** - Customize your version of Ajax Load More by updating various plugin settings.
31
  * **Multiple Instances** - You can include multiple instances of Ajax Load More on a single page, post or template.
32
+ * **Ajax Filtering** - The Ajax Load More [custom filtering](https://connekthq.com/plugins/ajax-load-more/examples/filtering/) method will allow you to filter and update your Ajax query results.
33
+ * **Multisite Compatibility** - Manage repeater templates across all sites in your network.
34
 
35
  Check out the **[demo site](https://connekthq.com/plugins/ajax-load-more/)** for more information!
36
 
 
37
 
38
+
39
+
40
+ #### What's New 3.0
41
+ * **[Advanced Custom Fields](https://connekthq.com/plugins/ajax-load-more/examples/advanced-custom-fields/)** - Compatibility and integration added for infinite scrolling Flexible Content, Gallery, Relationship and Repeater fields for Advanced Custom Fields.
42
+ * **[Masonry](https://connekthq.com/plugins/ajax-load-more/examples/masonry/)** - Built-in support and functionality for Masonry layouts.
43
+ * **[Progress Bars](https://connekthq.com/plugins/ajax-load-more/examples/progress-bar/)** - Display a Progress Bar load indicator with each Ajax request.
44
+
45
+
46
+
47
+
48
+ ### Content Types
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
 
53
  * [Standard Posts](https://connekthq.com/plugins/ajax-load-more/examples/default/)
54
  * [Custom Post Types](https://connekthq.com/plugins/ajax-load-more/examples/masonry/)
60
  ** Add-on required
61
 
62
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63
 
64
+
65
+ ### Shortcode Parameters
66
+
67
+ 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)
68
+
69
+ * **repeater** - Choose a repeater template (<a href="https://connekthq.com/plugins/ajax-load-more/custom-repeaters/">Add-on available</a>). Default = ‘default’
70
+ * **post_type** - Comma separated list of post types. Default = ‘post’
71
+ * **sticky_posts** - Preserve sticky post ordering in Ajax listing. Default = false
72
+ * **post_format** - Query by post format. Default = null
73
+ * **category** - A comma separated list of categories to include by slug. Default = null
74
+ * **category__not_in** - A comma separated list of categories to exclude by ID. Default = null
75
+ * **tag** - A comma separated list of tags to include by slug. 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
+ * **max_pages** - Maximum number of pages to load while user is scrolling (activated on when scroll = true). Default = '0'
103
+ * **pause_override** - Allow scrolling to override the Pause parameter and trigger the loading of posts on scroll. Default = null
104
+ * **pause** - Do not load posts until user clicks the Load More button (true/false). Default = 'false'
105
+ * **transition** - Choose a posts reveal transition (slide/fade/masonry/none). Default = 'slide'
106
+ * **transition_speed** - The speed of the loading transition in milliseconds. (slide/fade/none). Default = '250'
107
+ * **transition_container** - Display the Ajax Load More (.alm-reveal) loading container. Default = 'true'
108
+ * **masonry_selector** - The target classname of each masonry item. Default = null
109
+ * **images_loaded** - Wait for all images to load before displaying ajax loaded content (true/false). Default = 'false'
110
+ * **destroy_after** - Remove ajax load more functionality after 'n' number of pages have been loaded. Default = null
111
+ * **progress_bar** - Display progress bar indicator at the top of the window while loading Ajax content. Default = 'false'
112
+ * **progress_bar_color** - Enter the hex color of the progress bar.
113
+ . Default = 'ed7070'
114
+ * **button_label** - The label text for Load More button. Default = 'Older Posts'
115
+ * **button_loading_label** - Update the text of the Load More button while content is loading. Default = null
116
+ * **container_type** - Override the global Container Type that was set on ALM Settings page. Default = null
117
+ * **css_classes** - Add custom CSS classes to the Ajax Load More container. Default = null
118
+ * **id** - A unique ID for the Ajax Load More instance.
119
+
120
+ [&rarr; See All Parameters](https://connekthq.com/plugins/ajax-load-more/docs/shortcode-parameters/)
121
+
122
+
123
+ #### Example Ajax Load More Shortcode
124
 
125
  [ajax_load_more post_type="post, portfolio" repeater="default" posts_per_page="5" transition="fade" button_label="Older Posts"]
126
 
 
127
 
128
+ #### Example Demos
129
+
130
  * **[Default](https://connekthq.com/plugins/ajax-load-more/examples/default/)** - Out of the box functionality and styling.
131
+ * **[Advanced Custom Fields](https://connekthq.com/plugins/ajax-load-more/examples/advanced-custom-fields/)** - Infinite scroll Advanced Custom Fields data with Ajax Load More.
132
+ * **[Attachments](https://connekthq.com/plugins/ajax-load-more/examples/attachments/)** - Endless scroll post attachments.
133
  * **[Destroy After](https://connekthq.com/plugins/ajax-load-more/examples/destroy-after/)** - Remove Ajax Load More functionality after 'n' number of pages.
134
+ * **[Event Listing](https://connekthq.com/plugins/ajax-load-more/examples/event-listing/)** - Ordering and listing events by custom field date.
135
  * **[Fade Transition](https://connekthq.com/plugins/ajax-load-more/examples/fade-transition/)** - Elements fade in as posts are loaded.
136
  * **[Filtering](https://connekthq.com/plugins/ajax-load-more/examples/filtering/)** - Reset and filter an Ajax Load More instance.
137
+ * **[Flexbox](https://connekthq.com/plugins/ajax-load-more/examples/flexbox/)** - Creating a responsive Ajax Load More grid with Flexbox.
138
+ * **[Infinite Scroll](https://connekthq.com/plugins/ajax-load-more/examples/infinite-scroll/)** - A look at the new loading functionality and styles.
139
  * **[Images Loaded](https://connekthq.com/plugins/ajax-load-more/examples/images-loaded/)** - Download images before displaying ajax loaded content.
140
  * **[Masonry](https://connekthq.com/plugins/ajax-load-more/examples/masonry/)** - Creating a flexible grid layout with Masonry JS.
141
  * **[Multiple Instances](https://connekthq.com/plugins/ajax-load-more/examples/multiple-instances/)** - Include multiple Ajax Load More' on a single page.
142
  * **[Paging URLs](https://connekthq.com/plugins/ajax-load-more/examples/paging-urls/)** - Generate unique paging URLs for every Ajax Load More query with the SEO add-on.
143
  * **[Pause Loading](https://connekthq.com/plugins/ajax-load-more/examples/pause-loading/)** - Posts will not load until initiated by the user.
144
  * **[Preloaded Posts](https://connekthq.com/plugins/ajax-load-more/examples/pause-loading/)** - Easily preload an initial set of posts before completing any Ajax requests to the server.
145
+ * **[Progress Bar](https://connekthq.com/plugins/ajax-load-more/examples/progress-bar/)** - Display a progress bar load indicator with each Ajax request.
146
  * **[Search Results](https://connekthq.com/plugins/ajax-load-more/examples/search-results/)** - Returning results based on search terms.
147
  * **[SEO & Paging](https://connekthq.com/plugins/ajax-load-more/examples/seo-paging-add-ons/)** - Combine these two add-ons to create one powerful navigation system.
148
  * **[Slideshow Gallery](https://connekthq.com/plugins/ajax-load-more/examples/slideshow-gallery/)** - Create a gallery of posts with Ajax Load More and the Paging add-on.
149
  * **[Table Layout](https://connekthq.com/plugins/ajax-load-more/examples/table/)** - Ajax Load More will display query results in a table format.
 
150
 
151
+ [&rarr; See All Examples](https://connekthq.com/plugins/ajax-load-more/examples/)
152
 
153
+ 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.
154
 
155
  [youtube https://www.youtube.com/watch?v=EQ57i6dkOew]
156
 
 
157
 
158
+
159
+
160
+ ### Add-ons
161
  The following [add-ons](https://connekthq.com/plugins/ajax-load-more/add-ons/) are available to increase the functionality of Ajax Load More.
162
 
163
+ * **[Cache](https://connekthq.com/plugins/ajax-load-more/add-ons/cache/)**: Improve website performance by caching the results of Ajax server requests.
164
+ * **[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.
165
+ * **[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.
166
+ * **[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.
167
+ * **[Layouts](https://connekthq.com/plugins/ajax-load-more/add-ons/layouts/)**: Predefined responsive layouts for Ajax Load More repeater templates.
168
+ * **[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.
169
+ * **[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.
170
+ * **[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.
171
+ * **[Previous Post](https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/)**: Enable infinite scrolling of older(previous) posts on your WordPress single post templates.
172
+ * **[SEO](https://connekthq.com/plugins/ajax-load-more/add-ons/search-engine-optimization/)**: Generate unique paging URLs with each Ajax Load More query.
173
+ * **[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.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
174
 
175
 
 
176
 
 
 
177
 
178
+ ### Extensions
179
+ The following [extensions](https://connekthq.com/plugins/ajax-load-more/extensions/) are available to provide compatibility with popular WordPress plugins and core features.
180
+
181
+ * **[Advanced Custom Fields](https://connekthq.com/plugins/ajax-load-more/extensions/advanced-custom-fields/)**: Display field type data with Ajax Load More.
182
+ * **[Relevanssi](https://connekthq.com/plugins/ajax-load-more/extensions/relevanssi/)**: Display Relevanssi search results with Ajax Load More.
183
+ * **[REST API](https://connekthq.com/plugins/ajax-load-more/extensions/rest-api/)**: Enable compatibility with the WordPress REST API.
184
+ * **[SearchWP](https://connekthq.com/plugins/ajax-load-more/extensions/searchwp/)**: Display SearchWP query results with Ajax Load More.
185
+
 
 
 
 
186
 
187
 
 
188
 
189
+ ### Callback Functions
190
  The following [functions](https://connekthq.com/plugins/ajax-load-more/docs/callback-functions/) are available to be dispatched by Ajax Load More.
191
 
192
 
193
+ **Complete** - The almComplete() function is triggered after every *successful* ajax call made by Ajax Load More.
194
 
195
  $.fn.almComplete = function(alm){
196
  // Your on complete code goes here
197
  };
198
 
199
 
200
+ **Done** - The almDone() function is triggered after all posts have been loaded..
201
 
202
  $.fn.almDone = function(alm){
203
  console.log('All posts have been loaded!');
204
  };
205
 
206
+ **Empty** - The almEmpty() function is triggered if there are zero results returned in the initial query.
207
 
208
  $.fn.almEmpty = function(alm){
209
  console.log('Sorry, but we could not locate any posts that matched your criteria.');
210
  };
211
 
212
+ **Filter Complete** - The almFilterComplete() function is triggered after a successful call to the public function almFilter().
213
 
214
  $.fn.almFilterComplete = function(){
215
  console.log('Ajax Load More filter has completed!');
216
  };
217
 
218
 
219
+ **URL Update** - The almUrlUpdate() function is triggered after a successful URL update (pushState) from the Previous Post or the Search Engine Optimization add-on
220
 
221
  $.fn.almUrlUpdate = function(permalink, type){
222
  console.log("URL updated to " + permalink + '- dispatched from the '+ type + ' add-on.');
224
 
225
  ***
226
 
227
+ [&rarr; View All Callback Functions](https://connekthq.com/plugins/ajax-load-more/docs/callback-functions/)
228
 
 
229
 
230
 
 
231
 
232
+ ### Filter Hooks
233
 
234
+ Ajax Load More has a variety of WordPress [filters](https://connekthq.com/plugins/ajax-load-more/docs/filter-hooks/) in place that enable users to hook into Ajax Load More to insert or modify data.
 
 
 
235
 
236
+ [&rarr; See All Filters](https://connekthq.com/plugins/ajax-load-more/docs/filter-hooks/)
237
 
 
238
 
 
 
 
 
 
 
239
 
 
240
 
241
+ ### Variables
242
+
243
+ 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.
244
+
245
+ * **$alm_current** - Returns the current item number in the current Ajax Load More loop and will reset to zero with every 'Load More' action.
246
+ * **$alm_page** - Returns the current page number.
247
+ * **$alm_item** - Returns the current item number within your loop.
248
+ * **$alm_found_posts** - Returns the total number of posts found within the entire WordPress query.
249
+
250
+
251
+
252
+
253
+ ### Plugin Links
254
+ * [Official Website](https://connekthq.com/ajax-load-more/)
255
+ * [Documetation](https://connekthq.com/plugins/ajax-load-more/docs/)
256
+ * [Premium Add-ons](https://connekthq.com/plugins/ajax-load-more/add-ons/)
257
+ * [Free Extensions](https://connekthq.com/plugins/ajax-load-more/extensions/)
258
+ * [Github](https://github.com/dcooney/wordpress-ajax-load-more/)
259
+
260
+
261
 
 
262
 
263
+ ### Please Review Ajax Load More!
264
+
265
+ Your reviews make a big difference! If you like and use Ajax Load More, please consider taking the time to [review my plugin](https://wordpress.org/support/view/plugin-reviews/ajax-load-more). Your ratings and reviews help the plugin grow and provide the motivation needed to keep pushing it forward.
266
+
267
+ [&rarr; Leave a Review](https://wordpress.org/support/plugin/ajax-load-more/reviews/#new-post)
268
 
 
269
 
270
 
271
 
303
  Yes, but you will need to define $post at the top of the repeater before requesting your custom fields. Like so:
304
  global $post;
305
 
306
+ = Which browsers are supported? =
307
+
308
+ * Firefox (Mac, PC, iOS)
309
+ * Chrome (Mac, PC, iOS, Android)
310
+ * Safari (Mac, iOS)
311
+ * Opera
312
+ * Android
313
+ * IE8+
314
+
315
 
316
  == Installation ==
317
 
353
 
354
  == Changelog ==
355
 
356
+ = 3.1.0 - May 30, 2017 =
357
+
358
+ * UPGRADE NOTICE - Ajax Load More has changed the directory from which the core CSS and JS are loaded. Core CSS and JS is now loaded from the `/ajax-load-more/core/dist/` directory - you may need to clear your browser and site cache after update.
359
+ * NEW - Adding built-in support for [Masonry](https://connekthq.com/plugins/ajax-load-more/examples/masonry/). Set `transition="masonry" masonry_selector=".{selector_name}"` in your shortcode to enable a custom Masonry callback and automatically enqueue Masonry and ImagesLoaded from core WordPress.
360
+ * NEW - Adding built-in support progress bar loaders using [Pace.js](https://connekthq.com/plugins/ajax-load-more/examples/progress-bar/).
361
+ * UPDATE - Core ALM CSS and JS is now loaded from `core/dist/` directory.
362
+ * UPDATE - Added `modules`, `libs` and `vendor` directories to `core/js/` for splitting of JS files.
363
+ * UPDATE - Added gulp config for compiling Ajax Load More JS and Sass locally.
364
+ * FIX - Fixed issues with shortcode building providing incorrect values.
365
+
366
+
367
  = 3.0.1 - May 22, 2017 =
368
 
369
  * NEW - Added support for caching single posts with the Previous Post and Cache add-ons.
admin/admin.php CHANGED
@@ -586,16 +586,17 @@ function alm_load_cache_admin_js(){
586
 
587
  function alm_enqueue_admin_scripts(){
588
 
589
- //Load Admin CSS
590
  wp_enqueue_style( 'alm-admin', ALM_ADMIN_URL. 'css/admin.css');
591
  wp_enqueue_style( 'alm-select2', ALM_ADMIN_URL. 'css/select2.css');
592
  wp_enqueue_style( 'alm-tooltipster', ALM_ADMIN_URL. 'css/tooltipster/tooltipster.css');
593
- wp_enqueue_style( 'alm-core', ALM_URL. '/core/css/ajax-load-more.css');
594
  wp_enqueue_style( 'alm-font-awesome', '//netdna.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css');
595
 
596
- wp_dequeue_style( 'acf-input' );
 
597
 
598
- //Load CodeMirror Syntax Highlighting if on Repater Template page
599
  $screen = get_current_screen();
600
  if ( in_array( $screen->id, array( 'ajax-load-more_page_ajax-load-more-repeaters') ) ){
601
 
@@ -614,13 +615,14 @@ function alm_enqueue_admin_scripts(){
614
 
615
  }
616
 
617
- //Load JS
618
  wp_enqueue_script( 'jquery-form' );
619
  wp_enqueue_script( 'alm-select2', ALM_ADMIN_URL. 'js/libs/select2.min.js', array( 'jquery' ));
620
  wp_enqueue_script( 'alm-drops', ALM_ADMIN_URL. 'js/libs/jquery.drops.js', array( 'jquery' ));
621
  wp_enqueue_script( 'alm-tipster', ALM_ADMIN_URL. 'js/libs/jquery.tooltipster.min.js', array( 'jquery' ));
622
  wp_enqueue_script( 'alm-admin', ALM_ADMIN_URL. 'js/admin.js', array( 'jquery' ));
623
  wp_enqueue_script( 'alm-shortcode-builder', ALM_ADMIN_URL. 'shortcode-builder/js/shortcode-builder.js', array( 'jquery' ));
 
624
  }
625
 
626
 
586
 
587
  function alm_enqueue_admin_scripts(){
588
 
589
+ // Admin CSS
590
  wp_enqueue_style( 'alm-admin', ALM_ADMIN_URL. 'css/admin.css');
591
  wp_enqueue_style( 'alm-select2', ALM_ADMIN_URL. 'css/select2.css');
592
  wp_enqueue_style( 'alm-tooltipster', ALM_ADMIN_URL. 'css/tooltipster/tooltipster.css');
593
+ wp_enqueue_style( 'alm-core', ALM_URL. '/core/dist/css/ajax-load-more.css');
594
  wp_enqueue_style( 'alm-font-awesome', '//netdna.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css');
595
 
596
+ // disable ACF select2 on ALM pages
597
+ wp_dequeue_style( 'acf-input' );
598
 
599
+ // CodeMirror Syntax Highlighting if on Repater Template page
600
  $screen = get_current_screen();
601
  if ( in_array( $screen->id, array( 'ajax-load-more_page_ajax-load-more-repeaters') ) ){
602
 
615
 
616
  }
617
 
618
+ // Admin JS
619
  wp_enqueue_script( 'jquery-form' );
620
  wp_enqueue_script( 'alm-select2', ALM_ADMIN_URL. 'js/libs/select2.min.js', array( 'jquery' ));
621
  wp_enqueue_script( 'alm-drops', ALM_ADMIN_URL. 'js/libs/jquery.drops.js', array( 'jquery' ));
622
  wp_enqueue_script( 'alm-tipster', ALM_ADMIN_URL. 'js/libs/jquery.tooltipster.min.js', array( 'jquery' ));
623
  wp_enqueue_script( 'alm-admin', ALM_ADMIN_URL. 'js/admin.js', array( 'jquery' ));
624
  wp_enqueue_script( 'alm-shortcode-builder', ALM_ADMIN_URL. 'shortcode-builder/js/shortcode-builder.js', array( 'jquery' ));
625
+
626
  }
627
 
628
 
admin/css/admin.css CHANGED
@@ -1,7 +1,7 @@
1
 
2
  /* Custom buttom/loading styles */
3
  .select2-results .select2-result.alm-color .select2-result-label{
4
- position: relative;
5
  }
6
  .select2-results .select2-result.alm-color .select2-result-label:after{
7
  width: 10px;
@@ -12,9 +12,9 @@
12
  position: absolute;
13
  right: 20px;
14
  top: 50%;
15
- margin-top: -5px;
16
  z-index: 1;
17
- }
18
  .select2-results .select2-result.alm-color.default .select2-result-label:after{
19
  background-color: #ed7070;
20
  }
@@ -122,12 +122,12 @@
122
  min-width: 48%;
123
  display: inline-block;
124
  vertical-align: top;
125
- }
126
  #alm-settings .row.alm-save-settings{
127
  padding-bottom: 5px !important;
128
  }
129
-
130
- #alm-settings form h2{
131
  background: #f7f7f7;
132
  border: 1px solid #efefef;
133
  border-bottom: none;
@@ -138,8 +138,8 @@
138
  border-radius: 2px 2px 0 0;
139
  }
140
  #alm-settings form h2:first-of-type{
141
- margin: 0;
142
- }
143
  #alm-settings form h2 + p{
144
  color: #999;
145
  padding: 0 20px 17px;
@@ -166,7 +166,7 @@
166
  display: block;
167
  color:#777;
168
  width: 100%;
169
- display: block;
170
  clear: both;
171
  text-transform: none;
172
  padding: 0;
@@ -196,7 +196,7 @@ a.layout-hover{
196
  top: 0;
197
  z-index: 999;
198
  opacity: 0;
199
- filter: alpha(opacity=0);
200
  }
201
  a.layout-hover:hover img{
202
  position: absolute;
@@ -204,7 +204,7 @@ a.layout-hover{
204
  top: 0;
205
  z-index: 999;
206
  opacity: 1;
207
- filter: alpha(opacity=100);
208
  }
209
 
210
 
@@ -259,12 +259,12 @@ a.layout-hover{
259
  }
260
  .ajax-load-more h3.heading:hover:after,
261
  .ajax-load-more .add-on h3.heading:hover:after{
262
- color: #f05452;
263
  }
264
  .ajax-load-more h3.heading:hover{
265
  color: #222;
266
- }
267
-
268
  .ajax-load-more h3.heading:after{
269
  font-family: 'FontAwesome';
270
  content: '\f056';
@@ -282,14 +282,14 @@ a.layout-hover{
282
  .ajax-load-more h3.heading.open{
283
  border-bottom-color: transparent;
284
  }
285
-
286
  .ajax-load-more .add-on h3.heading:after{
287
  color: #999;
288
  }
289
  .ajax-load-more .add-on h3.heading{
290
  background-color: #fefeed;
291
  }
292
-
293
  /* Expand/Collapse all rows */
294
  .ajax-load-more .toggle-all{
295
  position: absolute;
@@ -319,25 +319,25 @@ a.layout-hover{
319
  position: relative;
320
  padding-left: 16px;
321
  line-height: 24px;
322
- }
323
-
324
  .ajax-load-more .toggle-all .expand{
325
  display: none;
326
- }
327
  .ajax-load-more .toggle-all .collapse{
328
  display: inline-block;
329
  }
330
  .ajax-load-more .toggle-all em{
331
  font-style: normal;
332
  }
333
-
334
  .ajax-load-more .toggle-all.closed .expand{
335
  display: inline-block;
336
- }
337
  .ajax-load-more .toggle-all.closed .collapse{
338
  display: none;
339
  }
340
-
341
  .ajax-load-more .toggle-all .inner-wrap:before{
342
  font-family: 'FontAwesome';
343
  content: '\f068';
@@ -366,7 +366,7 @@ a.layout-hover{
366
  vertical-align: top;
367
  overflow: visible;
368
  }
369
-
370
  .ajax-load-more label.full{
371
  display: block;
372
  clear: both;
@@ -392,7 +392,7 @@ a.layout-hover{
392
  padding: 0 !important;
393
  }
394
  .ajax-load-more .border-top.controls button{
395
- margin-top: 20px !important;
396
  }
397
 
398
  .ajax-load-more .border-top.highlighted{
@@ -430,7 +430,7 @@ a.layout-hover{
430
  }
431
  .alm-settings-nav a:hover{
432
  color: #fff;
433
- background-color: #ff5a58;
434
  }
435
  .alm-settings-nav li:first-of-type a{
436
  border: none;
@@ -466,16 +466,16 @@ a.layout-hover{
466
  .row .controls{
467
  display: block;
468
  clear: both;
469
- padding: 20px 0 0;
470
  overflow: hidden;
471
  }
472
  .row.taxonomy .controls{
473
- padding-bottom: 20px;
474
  }
475
  .row.taxonomy .highlighted{
476
  margin-bottom: 0 !important;
477
  }
478
-
479
  .meta-query-wrap .remove-meta-query,
480
  .taxonomy-wrap .remove-tax-query{
481
  position: absolute;
@@ -499,7 +499,7 @@ a.layout-hover{
499
  background-color: #cb2222;
500
  color: #fff;
501
  }
502
-
503
  .ajax-load-more .meta-query-wrap .border-top:first-of-type{
504
  padding: 0 0 0 !important;
505
  border: none;
@@ -553,23 +553,23 @@ a.layout-hover{
553
  .ajax-load-more p.warning-callout strong{
554
  display: inline-block;
555
  font-weight: normal;
556
- font-family: Consolas, monaco, monospace;
557
- background-color: #edfbff;
558
  color:#525c5f;
559
  padding: 0 6px;
560
  border-radius: 2px;
561
- }
562
  .ajax-load-more p.warning-callout.notify{
563
  background-color: #ad4141;
564
  border-color: #903030;
565
  color: #fff;
566
  }
567
-
568
  .ajax-load-more p.warning-callout.notify strong{
569
  background-color: #cb5858;
570
  color: #fff;
571
  }
572
-
573
 
574
  .ajax-load-more label,
575
  .ajax-load-more input,
@@ -579,10 +579,10 @@ a.layout-hover{
579
  padding: 5px 8px;
580
  width: auto;
581
  margin-top: 0;
582
- display: inline-block;
583
  clear: both;
584
  border-radius: 3px;
585
- color: #444;
586
  -webkit-box-shadow: none;
587
  -moz-box-shadow: none;
588
  box-shadow: none;
@@ -591,9 +591,9 @@ a.layout-hover{
591
  .controls button.disabled{
592
  opacity: 0.5;
593
  }
594
-
595
  .ajax-load-more textarea._alm_repeater{
596
- font-family: Consolas, monaco, monospace;
597
  font-size: 13px;
598
  line-height: 19px;
599
  padding: 10px;
@@ -601,7 +601,7 @@ a.layout-hover{
601
  .ajax-load-more textarea._alm_repeater:focus{
602
  color: #222;
603
  }
604
-
605
  .ajax-load-more label{
606
  padding: 5px 0;
607
  -webkit-border-radius: 0;
@@ -633,7 +633,7 @@ a.layout-hover{
633
  padding: 10px 12px;
634
  line-height: 1.3;
635
  border: 1px solid #e1e1e1;
636
- width: 60%;
637
  }
638
  .ajax-load-more input[type=text].full{
639
  width: 100%;
@@ -667,24 +667,24 @@ a.layout-hover{
667
  }
668
 
669
  .ajax-load-more :-moz-placeholder { /* Firefox 18- */
670
- color: #999;
671
  font-style: italic;
672
  }
673
 
674
  .ajax-load-more ::-moz-placeholder { /* Firefox 19+ */
675
- color: #999;
676
- font-style: italic;
677
  }
678
 
679
- .ajax-load-more :-ms-input-placeholder {
680
- color: #999;
681
  font-style: italic;
682
  }
683
 
684
  .ajax-load-more input[type=text],
685
  .ajax-load-more input[type=number],
686
  .ajax-load-more textarea{
687
- background: #f7f7f7;
688
  }
689
  .ajax-load-more .repeaters input[type=text]{
690
  padding: 9px 10px;
@@ -692,12 +692,12 @@ a.layout-hover{
692
  .ajax-load-more input[type=number]{
693
  height: auto;
694
  }
695
-
696
  .ajax-load-more input.disabled-input{
697
  opacity: 0.5;
698
  filter: alpha(opacity=50);
699
  cursor: not-allowed;
700
- background: #f7f7f7 !important;
701
  border-color: #ccc !important;
702
  box-shadow: none !important;
703
  }
@@ -708,7 +708,7 @@ a.layout-hover{
708
  background: #efefef;
709
  }
710
 
711
-
712
  .checkboxes label{
713
  margin-right: 5px;
714
  }
@@ -718,19 +718,19 @@ a.layout-hover{
718
  width: 47.333%;
719
  margin: 0 0 1% 2%;
720
  vertical-align: top;
721
- }
722
  .ajax-load-more .one_half:first-of-type{
723
- margin: 0 2% 1% 0;
724
  }
725
 
726
  /* --------------------------------------------------------------------------- */
727
  /* Row */
728
  /* --------------------------------------------------------------------------- */
729
 
730
- .ajax-load-more .row{
731
- padding: 0 !important;
732
- margin: 15px 0 0;
733
- height: auto;
734
  width: 100%;
735
  display: block;
736
  overflow: hidden;
@@ -745,10 +745,10 @@ a.layout-hover{
745
  }
746
  .ajax-load-more .row.no-brd{
747
  border: none !important;
748
- padding: 0 !important;
749
- }
750
 
751
- .admin.ajax-load-more .row{
752
  border-color: #efefef;
753
  }
754
  .admin.ajax-load-more .repeaters .row:hover,
@@ -761,18 +761,18 @@ a.layout-hover{
761
  .admin.ajax-load-more .row:first-of-type{
762
  margin: 0;
763
  padding-top: 0;
764
- }
765
  .ajax-load-more .intro{
766
- height: auto;
767
  width: 100%;
768
  display: block;
769
- overflow: hidden;
770
  }
771
 
772
  /* Jump Menu */
773
 
774
  .pop-up-jump{
775
- display: block;
776
  width: 100%;
777
  }
778
  .pop-up-jump .jump-menu-wrap{
@@ -781,7 +781,7 @@ a.layout-hover{
781
  width: 30%;
782
  }
783
  .pop-up-jump .jump-menu-wrap .select2-container{
784
- width: 100% !important;
785
  margin-bottom: 15px;
786
  position: relative;
787
  top: -5px;
@@ -791,7 +791,7 @@ a.layout-hover{
791
  float: left;
792
  width: 65%;
793
  padding-right: 5%;
794
- }
795
  .admin.ajax-load-more .jump-menu{
796
  display: none;
797
  }
@@ -815,20 +815,20 @@ a.layout-hover{
815
  vertical-align: top;
816
  padding: 0;
817
  margin: 5px 5px 5px 0;
818
- }
819
-
820
-
821
  .ajax-load-more .expand-wrap{
822
  display: block;
823
  }
824
  #alm-examples.ajax-load-more .expand-wrap{
825
  padding: 10px 10px 0;
826
  }
827
- .ajax-load-more .expand-wrap hr{
828
- border: 0;
829
- height: 0;
830
- border-top: 1px solid rgba(0, 0, 0, 0.1);
831
- border-bottom: 1px solid rgba(255, 255, 255, 0.3);
832
  }
833
 
834
  .ajax-load-more .section-title {
@@ -842,16 +842,16 @@ a.layout-hover{
842
  float: none;
843
  }
844
  .ajax-load-more .section-title h4{
845
- font-size: 15px;
846
  margin-bottom: 13px;
847
  }
848
  .ajax-load-more .section-title p,
849
- .ajax-load-more .wrap p.descriptor{
850
  font-size: 13px;
851
  line-height: 20px;
852
  color: #999;
853
  }
854
- .ajax-load-more .wrap p.descriptor{
855
  margin: 0;
856
  font-style: italic;
857
  }
@@ -873,7 +873,7 @@ a.layout-hover{
873
  position: relative;
874
  top: -1px;
875
  }
876
-
877
  .ajax-load-more .section-title p span,
878
  .admin.ajax-load-more.settings .form-table p.notify span{
879
  display: inline-block;
@@ -884,9 +884,9 @@ a.layout-hover{
884
  color: #666;
885
  }
886
  .ajax-load-more .section-title h4{
887
- margin: 0 0 10px;
888
  }
889
-
890
  .ajax-load-more .repeaters .section-title,
891
  .ajax-load-more .repeaters .row .wrap{
892
  width: 100%;
@@ -902,23 +902,25 @@ a.layout-hover{
902
  font-size: 13px;
903
  color: #888;
904
  }
905
-
906
  .ajax-load-more label input._alm_repeater_alias{
907
  height: auto;
908
  line-height: normal !important;
909
  }
910
-
911
  .preload_amount,
912
  .cache_id,
913
  .alternate_template_wrap,
914
  .cta_template_wrap,
915
  .restapi_options,
916
  .next-page-content,
917
- .acf-options{
 
 
918
  display: none;
919
  }
920
-
921
-
922
 
923
  .ajax-load-more .row .wrap{
924
  padding: 20px 0 0 5%;
@@ -930,13 +932,13 @@ a.layout-hover{
930
  }
931
  .ajax-load-more .row .wrap.full{
932
  float: none;
933
- width: 100%;
934
  padding: 0 15px 15px 36px;
935
  }
936
-
937
-
938
- /* ***********************************
939
- -- Shortcode Output
940
  **************************************/
941
  .ajax-load-more .output-wrap{
942
  padding: 0 50px 0 15px;
@@ -959,7 +961,7 @@ a.layout-hover{
959
  margin-top: 20px;
960
  border-radius: 2px;
961
  border: none;
962
- padding: 0;
963
  -webkit-box-shadow: none;
964
  -moz-box-shadow: none;
965
  box-shadow: none;
@@ -975,7 +977,7 @@ a.layout-hover{
975
  width: 49.333%;
976
  display: inline-block;
977
  }
978
-
979
  .output-wrap .copy{
980
  background: #fff;
981
  color: #FF5A58;
@@ -994,7 +996,7 @@ a.layout-hover{
994
  opacity: 0.6;
995
  filter: alpha(opacity = 60);
996
  }
997
- .admin.ajax-load-more .output-wrap .copy{
998
  float: right;
999
  position: relative;
1000
  top: -10px;
@@ -1007,8 +1009,8 @@ a.layout-hover{
1007
  .output-wrap .copy:active{
1008
  box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.1);
1009
  }
1010
-
1011
-
1012
  .shortcode-display{
1013
  float: right;
1014
  width: 75%;
@@ -1017,7 +1019,7 @@ a.layout-hover{
1017
  float: none;
1018
  width: 100%;
1019
  }
1020
-
1021
  #shortcode_output{
1022
  border-left: 1px solid #ca5252;
1023
  padding: 26px 10px 26px 30px;
@@ -1027,25 +1029,25 @@ a.layout-hover{
1027
  cursor: pointer;
1028
  word-wrap: break-word;
1029
  }
1030
-
1031
  .admin.ajax-load-more #shortcode_output{
1032
  border: none;
1033
  padding: 12px 12px 24px;
1034
  }
1035
-
1036
-
1037
- #shortcode_output::-moz-selection{
1038
- background:#fff;
1039
- color:#ca5252;
1040
- text-shadow: none;
1041
- }
1042
- #shortcode_output::selection {
1043
- background:#fff;
1044
- color:#ca5252;
1045
- text-shadow: none;
1046
- }
1047
-
1048
-
1049
 
1050
  /*
1051
  * Insert Shortcode Button
@@ -1061,8 +1063,8 @@ a.layout-hover{
1061
  font-weight: 600;
1062
  padding: 8px 13px;
1063
  display: inline-block;
1064
- text-align: center;
1065
- margin: 15px 0;
1066
  float: left;
1067
  line-height: normal !important;
1068
  height: auto !important;
@@ -1074,7 +1076,7 @@ a.layout-hover{
1074
  .admin.ajax-load-more #insert.insert_alm{
1075
  display: none;
1076
  }
1077
-
1078
  #insert.insert_alm:hover{
1079
  box-shadow: inset 0 -15px 15px rgba(0, 0, 0, 0.1), 0 0 3px rgba(255, 255, 255, 1);
1080
  }
@@ -1082,7 +1084,7 @@ a.layout-hover{
1082
  background: #d0413f !important;
1083
  box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.1);
1084
  color:#fff !important;
1085
- }
1086
 
1087
  .ajax-load-more .clear{
1088
  clear:both;
@@ -1104,7 +1106,7 @@ a.layout-hover{
1104
  .form-table label{
1105
  display: inline-block;
1106
  clear: both;
1107
- float: none;
1108
  vertical-align: top;
1109
  padding: 0 0 10px;
1110
  max-width: 90%;
@@ -1113,7 +1115,7 @@ a.layout-hover{
1113
  }
1114
  .form-table input[type=radio],
1115
  .form-table input[type=checkbox]{
1116
- vertical-align: top;
1117
  margin-top: 0 !important;
1118
  max-width: 8%;
1119
  }
@@ -1126,7 +1128,7 @@ a.layout-hover{
1126
  padding-top: 5px;
1127
  font-style: italic;
1128
  }
1129
-
1130
  .form-table .template-tags{
1131
  overflow: hidden;
1132
  border-left: 5px solid #dfd8c2;
@@ -1137,20 +1139,20 @@ a.layout-hover{
1137
  }
1138
  .form-table .template-tags h4,
1139
  .form-table .template-tags li{
1140
- margin: 0 0 8px;
1141
  padding:0;
1142
  font-size: 13px;
1143
  }
1144
- .form-table .template-tags li{
1145
  margin: 2px 0;
1146
  }
1147
  .form-table .template-tags ul{
1148
- margin: 0;
1149
  padding: 0;
1150
  }
1151
  .form-table .template-tags pre{
1152
  display: inline-block;
1153
- min-width: 120px;
1154
  padding: 0;
1155
  margin: 0;
1156
  color: #888;
@@ -1171,7 +1173,7 @@ a.layout-hover{
1171
  background: #efefef;
1172
  color: #666;
1173
  text-shadow: 1px 1px 0 #fff;
1174
- resize: none;
1175
  }
1176
 
1177
  .admin.ajax-load-more .form-table input[type=radio],
@@ -1208,13 +1210,13 @@ a.layout-hover{
1208
  padding: 0 0 8px;
1209
  text-transform: uppercase;
1210
  }
1211
-
1212
- .admin.ajax-load-more.settings .ajax-load-more-wrap.pages{}
1213
  .admin.ajax-load-more.settings .ajax-load-more-wrap.pages li{
1214
- font-size: 14px;
1215
  }
1216
  .admin.ajax-load-more.settings .ajax-load-more-wrap.pages li a{
1217
- text-decoration: none;
1218
  }
1219
 
1220
 
@@ -1228,7 +1230,7 @@ a.layout-hover{
1228
  padding-right: 20px;
1229
  }
1230
  .admin.ajax-load-more.settings .form-table th{
1231
- padding-left: 20px;
1232
  }
1233
  .admin.ajax-load-more.settings .form-table p{
1234
  margin-top: 0;
@@ -1247,7 +1249,7 @@ a.layout-hover{
1247
  .ajax-load-more .header-wrap h1{
1248
  padding-left: 60px;
1249
  min-height: 48px;
1250
- padding-top: 0;
1251
  background: url(../img/alm-logo-48x48.png) no-repeat left 0;
1252
  background: url(../img/alm-logo-48x48.svg) no-repeat left 0;
1253
  }
@@ -1275,7 +1277,7 @@ a.layout-hover{
1275
  top: -2px;
1276
  left: 5px;
1277
  }
1278
- .ajax-load-more h2.addon-title{
1279
  font-size: 19px !important;
1280
  line-height: 24px;
1281
  font-weight: 600 !important;
@@ -1299,7 +1301,7 @@ a.layout-hover{
1299
  }
1300
  .ajax-load-more h3.add-on-title,
1301
  .ajax-load-more .cnkt-sidebar h3{
1302
- padding: 0 0 10px;
1303
  margin: 0 0 20px;
1304
  border-bottom: 1px solid #efefef;
1305
  }
@@ -1330,7 +1332,7 @@ a.layout-hover{
1330
  text-decoration: none;
1331
  display: block;
1332
  }
1333
-
1334
  .saved-response,
1335
  p.loading{
1336
  font-size: 12px;
@@ -1338,7 +1340,7 @@ p.loading{
1338
  color:#999;
1339
  background: none;
1340
  transition: padding 0.2s ease;
1341
- display: inline-block;
1342
  width: auto;
1343
  position: relative;
1344
  top: 12px;
@@ -1367,27 +1369,27 @@ p.loading{
1367
  .alm-dropdown ul li a.updating{
1368
  background: url("../img/loader.gif") no-repeat left center;
1369
  padding-left: 24px;
1370
- }
1371
-
1372
  .alm-dropdown ul li a.updating{
1373
- background-position: 6px center;
1374
  padding-left: 42px;
1375
  }
1376
-
1377
  input.save-repeater{
1378
  margin-bottom: 5px !important;
1379
  }
1380
  .restore-default{
1381
  float: right;
1382
  margin: 19px 20px 0 0;
1383
- font-size: 12px;
1384
  }
1385
  .restore-default a{
1386
  text-decoration: none;
1387
  }
1388
-
1389
 
1390
-
 
1391
  .alm-save-settings{}
1392
  .alm-save-settings p.submit{
1393
  float: left;
@@ -1400,7 +1402,7 @@ input.save-repeater{
1400
  visibility: visible !important;
1401
  }
1402
 
1403
-
1404
  table.highlight{
1405
  background: #fff !important;
1406
  }
@@ -1419,16 +1421,16 @@ table.highlight{
1419
  margin: 0 0 20px;
1420
  position: relative;
1421
  display: block;
1422
- clear: both;
1423
  }
1424
 
1425
  .ajax-load-more .cnkt-main .group,
1426
  .ajax-load-more .cnkt-sidebar .cta,
1427
  .call-out.light{
1428
  border: 1px solid #e1e1e1;
1429
- -webkit-border-radius: 3px;
1430
- -moz-border-radius: 3px;
1431
- border-radius: 3px;
1432
  }
1433
  .ajax-load-more .cnkt-main.full{
1434
  width: 100%;
@@ -1443,20 +1445,20 @@ table.highlight{
1443
  border-top: 1px solid #efefef;
1444
  }
1445
  .form-table {
1446
- border: 1px solid #efefef;
1447
  margin: 0 0 25px;
1448
  }
1449
 
1450
  .ajax-load-more .cnkt-main .group a.dismiss{
1451
  position: absolute;
1452
  right: 0;
1453
- top: 0;
1454
  text-decoration: none;
1455
  width: 40px;
1456
  height: 40px;
1457
  line-height: 38px;
1458
  padding: 0;
1459
- text-align: center;
1460
  background: #f7f7f7;
1461
  color: #777;
1462
  border: 1px solid #e1e1e1;
@@ -1485,7 +1487,7 @@ table.highlight{
1485
  clear: none;
1486
  max-width: 25%;
1487
  }
1488
- .repeater-wrap textarea,
1489
  .repeater-wrap input[type=text]{
1490
  width: 100%;
1491
  }
@@ -1497,8 +1499,8 @@ table.highlight{
1497
  max-width: 72%;
1498
  opacity: 0;
1499
  }
1500
-
1501
-
1502
  /* Add-ons & Extensions */
1503
 
1504
  .flexbox-wrap{
@@ -1506,8 +1508,8 @@ table.highlight{
1506
  display: -moz-box;
1507
  display: -ms-flexbox;
1508
  display: -webkit-flex;
1509
- display: flex;
1510
- flex-wrap: wrap;
1511
  }
1512
 
1513
  #alm-add-ons {}
@@ -1537,7 +1539,7 @@ table.highlight{
1537
  padding: 10px 14px;
1538
  transition: all 0.15s ease;
1539
  }
1540
- .ajax-load-more .cnkt-main .group.installed{
1541
  opacity: 0.85;
1542
  filter: grayscale(0.85);
1543
  }
@@ -1545,17 +1547,17 @@ table.highlight{
1545
  display: none !important;
1546
  }
1547
  #alm-add-ons .group img{
1548
- padding: 12px 18px 12px;
1549
  }
1550
  #alm-add-ons .group a{
1551
  text-decoration: none;
1552
  display: block;
1553
  padding: 15px;
1554
  }
1555
- #alm-add-ons .group:hover{
1556
  border-color: #ccc;
1557
  }
1558
- #alm-add-ons .group a h2{
1559
  transition: all 0.15s ease;
1560
  }
1561
  #alm-add-ons .group a:hover h2{
@@ -1593,8 +1595,8 @@ table.highlight{
1593
  color: #ff5a58 !important;
1594
  }
1595
  .call-out.light p a:hover{
1596
- text-decoration: underline;
1597
- }
1598
  #alm-builder .call-out,
1599
  .forceColors .call-out{ /* Shortcode builder */
1600
  width: 90%;
@@ -1644,7 +1646,7 @@ table.highlight{
1644
  color:#fff !important;
1645
  box-shadow: none;
1646
  }
1647
- a.cnkt-button:focus,
1648
  .group:focus span.cnkt-button{
1649
  background-color: #83519d;
1650
  border-color: #935eaf;
@@ -1675,13 +1677,13 @@ table.highlight{
1675
  color: #5da592 !important;
1676
  top: 0;
1677
  }
1678
-
1679
  /*
1680
  * Licenses
1681
  *
1682
  * @since 2.7.0
1683
- */
1684
-
1685
  .license{
1686
  overflow: hidden;
1687
  margin: 0;
@@ -1689,15 +1691,15 @@ table.highlight{
1689
  padding: 20px 0 0;
1690
  position: relative;
1691
  }
1692
-
1693
  .license:first-of-type{
1694
  padding: 10px 0 0;
1695
  }
1696
  .license-title{
1697
  border-radius: 3px 3px 0 0;
1698
  border: 1px solid #ccc;
1699
- background-color: #efefef;
1700
- position: relative;
1701
  }
1702
  .license-title .status{
1703
  width: 12px;
@@ -1713,13 +1715,13 @@ table.highlight{
1713
  box-shadow: inset 0 -6px 6px rgba(0, 0, 0, 0.05), 0 1px 0 #fff;
1714
  }
1715
  .license-title .status.valid{
1716
- background-color: #acd481;
1717
  }
1718
  .license h2{
1719
  margin: 0;
1720
  padding: 15px 15px 15px 35px;
1721
- font-size: 16px;
1722
- font-weight: 600;
1723
  line-height: 1.2;
1724
  }
1725
  .license p,
@@ -1740,7 +1742,7 @@ table.highlight{
1740
  box-shadow: none !important;
1741
  border-color: transparent !important;
1742
  }
1743
-
1744
  .license .no-license{
1745
  display: block;
1746
  padding: 12px 10px 12px 20px;
@@ -1751,15 +1753,15 @@ table.highlight{
1751
  border-radius: 3px;
1752
  }
1753
  .license .no-license h4{
1754
- margin: 0 0 3px;
1755
  }
1756
  .license .no-license p{
1757
  margin: 5px 0 0;
1758
- padding: 0;
1759
  }
1760
-
1761
-
1762
-
1763
  .license .loading{
1764
  position: absolute;
1765
  left: 0;
@@ -1774,22 +1776,22 @@ table.highlight{
1774
  display: none;
1775
  }
1776
  .license-btn-wrap{
1777
- display: block;
1778
  }
1779
  .license-btn-wrap .msg{
1780
  display: block;
1781
  padding: 10px 0 0;
1782
  font-size: 14px;
1783
- line-height: 18px;
1784
  }
1785
  .license-btn-wrap .msg strong{
1786
- display: block;
1787
  }
1788
  .license-btn-wrap .msg em{
1789
  opacity: 0.7;
1790
- font-style: normal;
1791
  }
1792
-
1793
  .license-wrap,
1794
  .license-no-addons{
1795
  overflow: hidden;
@@ -1802,6 +1804,7 @@ table.highlight{
1802
  }
1803
  .license-wrap label{
1804
  font-weight: 600;
 
1805
  top:-3px;
1806
  }
1807
  .license-wrap input[type=text]{
@@ -1812,7 +1815,7 @@ table.highlight{
1812
  padding: 14px;
1813
  }
1814
  .license-wrap input[type=text]:focus{
1815
- background-color: #fff;
1816
  }
1817
  .license-wrap .button-primary{
1818
  margin-right: 5px;
@@ -1838,7 +1841,7 @@ table.highlight{
1838
  .license-key-field .status.inactive{
1839
  background-color: #d45656;
1840
  }
1841
-
1842
  .ajax-load-more .alm-nav{
1843
  font-size: 600;
1844
  font-size: 14px;
@@ -1848,8 +1851,8 @@ table.highlight{
1848
  .ajax-load-more .alm-nav a{
1849
  display: inline-block;
1850
  }
1851
-
1852
-
1853
  .license-no-addons{
1854
  border: 1px solid #bad0da;
1855
  border-radius: 3px;
@@ -1876,21 +1879,21 @@ table.highlight{
1876
  padding: 0;
1877
  margin: 0 0 20px;
1878
  overflow: visible;
1879
- position: relative;
1880
  }
1881
  .ajax-load-more .cnkt-sidebar .cta-inner{
1882
  padding: 20px;
1883
  display: block;
1884
  }
1885
  .ajax-load-more .cnkt-sidebar .cta-inner.padding-bottom{
1886
- padding-bottom: 80px;
1887
  }
1888
  .ajax-load-more .cnkt-sidebar .cta.mailing-list{
1889
  padding: 0;
1890
  }
1891
  .ajax-load-more .cnkt-sidebar .cta.mailing-list .head-wrap{
1892
  display: block;
1893
- padding: 20px;
1894
  }
1895
  .ajax-load-more .cnkt-sidebar .cta.padding-bottom{
1896
  padding-bottom: 50px;
@@ -1898,7 +1901,7 @@ table.highlight{
1898
  .ajax-load-more .cnkt-sidebar h3,
1899
  .ajax-load-more .cnkt-sidebar h4{
1900
  margin-top: 0;
1901
- }
1902
  .ajax-load-more .cnkt-sidebar h3{
1903
  padding: 15px 20px;
1904
  border-bottom: 1px solid #e1e1e1;
@@ -1911,8 +1914,8 @@ table.highlight{
1911
  -moz-border-radius: 2px 2px 0 0;
1912
  border-radius: 2px 2px 0 0;
1913
  }
1914
-
1915
-
1916
  .ajax-load-more .cnkt-sidebar .item{
1917
  overflow: hidden;
1918
  }
@@ -1948,7 +1951,7 @@ table.highlight{
1948
  margin: 0 0 10px;
1949
  line-height: 1.5;
1950
  }
1951
-
1952
  .ajax-load-more .cnkt-sidebar .cta.resources li{
1953
  display: block;
1954
  width: 100%;
@@ -1959,10 +1962,10 @@ table.highlight{
1959
  text-decoration: none;
1960
  padding: 10px 0;
1961
  display: block;
1962
- border-top: 1px solid #efefef;
1963
  }
1964
  .ajax-load-more .cnkt-sidebar .cta.resources li:first-of-type a{
1965
- border: none;
1966
  padding-top: 0;
1967
  }
1968
  .ajax-load-more .cnkt-sidebar .cta.resources li i{
@@ -1985,7 +1988,7 @@ table.highlight{
1985
  margin: 2px 7px 0 0;
1986
  position: relative;
1987
  }
1988
-
1989
  .ajax-load-more .cnkt-sidebar .item i.fa-check{
1990
  background: #90be59;
1991
  color: #fff;
@@ -1994,8 +1997,8 @@ table.highlight{
1994
  background: #c43a3a;
1995
  color: #fff;
1996
  }
1997
-
1998
-
1999
  .ajax-load-more .cnkt-sidebar a.visit{
2000
  background: #5795da;
2001
  padding: 16px 20px 17px 44px;
@@ -2028,9 +2031,9 @@ table.highlight{
2028
  .ajax-load-more .cnkt-sidebar a.visit:hover i{
2029
  opacity: 1;
2030
  }
2031
-
2032
  .ajax-load-more .cnkt-sidebar .project-listing {
2033
- padding: 0;
2034
  }
2035
  .ajax-load-more .cnkt-sidebar .project-listing li{
2036
  margin: 20px 0 0;
@@ -2046,7 +2049,7 @@ table.highlight{
2046
  text-decoration: none;
2047
  }
2048
  .ajax-load-more .cnkt-sidebar .project-listing li:first-of-type{
2049
- margin-top: 0;
2050
  }
2051
  .ajax-load-more .cnkt-sidebar .project-listing img {
2052
  height: 48px;
@@ -2059,11 +2062,11 @@ table.highlight{
2059
  display: block;
2060
  }
2061
  .ajax-load-more .cnkt-sidebar .project-listing li span{
2062
- color: #777;
2063
  }
2064
-
2065
-
2066
-
2067
  /*
2068
  * CodeMirror Syntax Highlighting
2069
  *
@@ -2095,10 +2098,10 @@ table.highlight{
2095
  margin: 0 0 10px;
2096
  }
2097
  .ajax-load-more .CodeMirror.loading {
2098
- background: #f7f7f7 url("../img/loader-unlimited.gif") no-repeat center center;
2099
  opacity: 0.6;
2100
  }
2101
-
2102
  .ajax-load-more .cm-s-pastel-on-dark.CodeMirror{ /* Bkg color */
2103
  background: #333;
2104
  }
@@ -2116,12 +2119,12 @@ table.highlight{
2116
  overflow-y: hidden;
2117
  overflow-x: auto;
2118
  }
2119
-
2120
-
2121
- .ajax-load-more .cm-tag{ /* <li> <h2> html elements */
2122
  color: #0a4b83 !important;
2123
  }
2124
- .ajax-load-more .cm-string{ /* Elements in " " */
2125
  color: #c75050 !important;
2126
  }
2127
  .ajax-load-more .cm-attribute{ /* class names */
@@ -2144,10 +2147,10 @@ table.highlight{
2144
  .ajax-load-more .CodeMirror span.cm-number{ /* Numbers */
2145
  color: #009999 !important;
2146
  }
2147
-
2148
 
2149
 
2150
-
 
2151
  /*
2152
  * Delete Template (Unlimited Repeaters
2153
  *
@@ -2162,12 +2165,12 @@ table.highlight{
2162
  .admin.ajax-load-more .row.unlimited:first-of-type{
2163
  margin-top: 15px;
2164
  }
2165
-
2166
  .repeaters .row,
2167
  .shortcode-builder .row{
2168
- -webkit-transition: background-color 0.3s ease;
2169
- -moz-transition: background-color 0.3s ease;
2170
- transition: background-color 0.3s ease;
2171
  }
2172
  .repeaters .row.no-brd:hover,
2173
  .shortcode-builder .row.no-brd:hover{
@@ -2177,9 +2180,9 @@ table.highlight{
2177
  .unlimited-wrap{
2178
  display: none;
2179
  }
2180
-
2181
  .admin.ajax-load-more .row.unlimited.deleting{ /* Deleting Row */
2182
- background: #fff url("../img/loader-unlimited.gif") no-repeat center center;
2183
  border-color: #fff;
2184
  opacity: 0.4;
2185
  }
@@ -2194,12 +2197,12 @@ table.highlight{
2194
  }
2195
  .admin.ajax-load-more .row.unlimited.new.done{
2196
  background-image: none !important;
2197
- }
2198
  .admin.ajax-load-more .row.unlimited.loaded{ /* Loading complete */
2199
  background-color: #64e49d;
2200
  border-color: #64e49d;
2201
  }
2202
-
2203
  .admin.ajax-load-more .row.unlimited.deleting .expand-wrap,
2204
  .row.unlimited.deleting h3.heading{
2205
  opacity: 0.6;
@@ -2211,11 +2214,11 @@ table.highlight{
2211
  opacity: 0;
2212
  cursor: default;
2213
  }
2214
-
2215
  .ajax-load-more .row.unlimited input[type=text]{
2216
  width: 100.75%;
2217
  }
2218
-
2219
  .repeaters .alm-delete{
2220
  clear: none;
2221
  display: inline-block;
@@ -2227,19 +2230,19 @@ table.highlight{
2227
  position: absolute;
2228
  right: 15px;
2229
  bottom: 17px;
2230
- }
2231
  .repeaters .alm-delete a{
2232
  border-radius: 2px;
2233
  background: none;
2234
- color: #c94141;
2235
  font-size: 14px;
2236
- text-decoration: none;
2237
  display: block;
2238
  padding: 5px 10px;
2239
  }
2240
  .repeaters .alm-delete a:hover{
2241
  background-color: #c94141;
2242
- color: #fff;
2243
  }
2244
  .repeaters .alm-delete a:focus{
2245
  -webkit-box-shadow: none;
@@ -2252,11 +2255,11 @@ table.highlight{
2252
  box-shadow: inset 0 1px 1px #ccc !important;
2253
  background-color: #b93636;
2254
  }
2255
-
2256
  .repeaters .row:hover .alm-delete{
2257
  opacity: 1;
2258
  }
2259
-
2260
  .alm-add-template{
2261
  text-align: center;
2262
  margin: 15px 0 0 !important;
@@ -2292,14 +2295,14 @@ table.highlight{
2292
  .alm-add-template a:hover{
2293
  background: #ff5a58;
2294
  border-color: #ff5a58;
2295
- color: #fff;
2296
  -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 1px 0 rgba(0, 0, 0, 0.07);
2297
  -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 1px 0 rgba(0, 0, 0, 0.07);
2298
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 1px 0 rgba(0, 0, 0, 0.07);
2299
  text-shadow: none;
2300
- }
2301
  .alm-add-template a:focus{
2302
- -webkit-box-shadow: none;
2303
  -moz-box-shadow: none;
2304
  box-shadow: none;
2305
  text-shadow: none;
@@ -2313,7 +2316,7 @@ table.highlight{
2313
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
2314
  text-shadow: none;
2315
  }
2316
-
2317
  .alm-add-template a i {
2318
  font-size: 20px;
2319
  color: #ec4745;
@@ -2321,18 +2324,18 @@ table.highlight{
2321
  position: relative;
2322
  top: 2px;
2323
  left: -1px;
2324
- }
2325
  .alm-add-template a:hover i,
2326
  .alm-add-template a:active i{
2327
  color: #fff;
2328
  }
2329
- .spacer{
2330
  height:10px;
2331
- clear:both;
2332
  display:block;
2333
  }
2334
 
2335
-
2336
  /*
2337
  * Cache
2338
  *
@@ -2383,7 +2386,7 @@ table.highlight{
2383
  margin: 0;
2384
  }
2385
  .alm-dir-listing.theme-repeaters ul{
2386
- border: none;
2387
  padding: 0;
2388
  margin: 0;
2389
  }
@@ -2400,7 +2403,7 @@ table.highlight{
2400
 
2401
  .alm-dir-listing.deleting{
2402
  opacity: 0.5;
2403
- background: #fff url("../img/loader-unlimited.gif") no-repeat center center;
2404
  }
2405
 
2406
  .alm-dir-listing .dir-title{
@@ -2432,12 +2435,12 @@ table.highlight{
2432
  }
2433
  .alm-dir-listing:hover .dir-title .delete{
2434
  border-color: #ccc;
2435
- color: #666;
2436
  }
2437
  .alm-dir-listing .dir-title .delete:hover{
2438
  background-color: #c94141;
2439
  border-color: #c94141;
2440
- color: #fff;
2441
  -webkit-box-shadow: 0 0 3px #ccc;
2442
  -moz-box-shadow: 0 0 3px #ccc;
2443
  box-shadow: 0 0 3px #ccc;
@@ -2445,7 +2448,7 @@ table.highlight{
2445
  .alm-dir-listing .dir-title .delete:active{
2446
  -webkit-box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.2);
2447
  -moz-box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.2);
2448
- box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.2);
2449
  }
2450
  .alm-dir-listing ul{
2451
  padding: 10px;
@@ -2459,11 +2462,11 @@ table.highlight{
2459
  vertical-align: top;
2460
  overflow: hidden;
2461
  width: 47%;
2462
- font-size: 14px;
2463
  background: transparent url(../img/directory-list.gif) no-repeat left center;
2464
  }
2465
  .alm-dir-listing.theme-repeaters ul li{
2466
- display: block;
2467
  width: 100%;
2468
  padding-top: 12px;
2469
  }
@@ -2471,7 +2474,7 @@ table.highlight{
2471
  display: block;
2472
  width: 100%;
2473
  }
2474
-
2475
  .alm-dir-listing ul li:last-child,
2476
  .alm-dir-listing ul li:nth-last-child(2){
2477
  background-image: url(../img/directory-list-btm.gif);
@@ -2485,41 +2488,41 @@ table.highlight{
2485
  .alm-dir-listing li i{
2486
  color: #999;
2487
  padding: 0 5px 0 0;
2488
- }
2489
-
2490
- .cache-page-title{
2491
- font-size: 14px;
2492
  display: block;
2493
  width: 100%;
2494
  padding: 0 0 10px 12px;
2495
  font-weight: 600;
2496
  }
2497
-
2498
  .cache-page-wrap{
2499
  padding: 0 15px 15px;
2500
- }
2501
-
2502
  .alm-dir-listing ul.cache-details{
2503
  display: block;
2504
  padding: 6px 10px 12px;
2505
  margin: 0;
2506
  border: none;
2507
- }
2508
  .alm-dir-listing ul.cache-details li{
2509
  display: block;
2510
  width: 100%;
2511
  background: none;
2512
  padding: 6px 4px 6px;
2513
- color: #333;
2514
  }
2515
  .alm-dir-listing ul.cache-details li i{
2516
- color: #ccc;
2517
  font-size: 18px;
2518
  position: relative;
2519
  top:1px;
2520
  }
2521
-
2522
-
2523
 
2524
  .dir-empty,
2525
  .cache-cleared{
@@ -2545,7 +2548,7 @@ table.highlight{
2545
  font-size: 12px;
2546
  font-weight: 600;
2547
  }
2548
-
2549
  #alm-cache.ajax-load-more .cnkt-sidebar .item{
2550
  padding: 20px;
2551
  display: block;
@@ -2556,7 +2559,7 @@ p.cache-stats{
2556
  margin: 0;
2557
  display: block;
2558
  padding: 20px 20px 0 20px;
2559
- }
2560
  p.cache-stats span{
2561
  display: inline-block;
2562
  width: 38px;
@@ -2568,7 +2571,7 @@ p.cache-stats{
2568
  font-size: 15px;
2569
  -webkit-border-radius: 2px;
2570
  -moz-border-radius:2px;
2571
- border-radius: 2px;
2572
  background: #a4a5e2;
2573
  background: -moz-linear-gradient(top, #a4a5e2 0%, #9ea0d9 50%, #8d8fce 51%, #a4a5e2 100%);
2574
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#a4a5e2), color-stop(50%,#9ea0d9), color-stop(51%,#8d8fce), color-stop(100%,#a4a5e2));
@@ -2578,19 +2581,19 @@ p.cache-stats{
2578
  background: linear-gradient(to bottom, #a4a5e2 0%,#9ea0d9 50%,#8d8fce 51%,#a4a5e2 100%);
2579
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a4a5e2', endColorstr='#a4a5e2',GradientType=0 );
2580
  border: 1px solid #8586be;
2581
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
2582
  color: #fff;
2583
  text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.1);
2584
  }
2585
-
2586
  form#delete-all-cache{
2587
  display: block;
2588
  padding: 20px;
2589
  border-top: 1px solid #efefef;
2590
  margin-top: 10px;
2591
  }
2592
-
2593
-
2594
  /*
2595
  * Error Handling
2596
  *
@@ -2604,7 +2607,7 @@ form#delete-all-cache{
2604
  padding: 10px;
2605
  }
2606
 
2607
-
2608
  /*
2609
  * Form Replacements
2610
  *
@@ -2617,8 +2620,8 @@ form#delete-all-cache{
2617
  .ajax-load-more .form-table input[type=radio]{
2618
  display:none;
2619
  }
2620
-
2621
- .shortcode-builder input[type=checkbox] + label,
2622
  .ajax-load-more .form-table input[type=checkbox] + label,
2623
  .shortcode-builder input[type=radio] + label,
2624
  .ajax-load-more .form-table input[type=radio] + label{
@@ -2637,42 +2640,42 @@ form#delete-all-cache{
2637
  .ajax-load-more .form-table input[type=radio] + label{
2638
  background: #fff url('../img/bkg-radio_off.png') no-repeat left 1px;
2639
  }
2640
-
2641
  .shortcode-builder input[type=checkbox]:hover + label,
2642
  .ajax-load-more .form-table input[type=checkbox]:hover + label{ /* hover */
2643
  background-image: url('../img/bkg-chkbox_on.png');
2644
- }
2645
-
2646
  .shortcode-builder input[type=radio]:hover + label,
2647
- .ajax-load-more .form-table input[type=radio]:hover + label{ /* hover */
2648
  background-image: url('../img/bkg-radio_on.png');
2649
- }
2650
-
2651
  .shortcode-builder input[type=checkbox]:checked + label,
2652
- .ajax-load-more .form-table input[type=checkbox]:checked + label{ /* selected */
2653
  background-image: url('../img/bkg-chkbox_selected.png');
2654
  color: #000;
2655
- }
2656
-
2657
  .shortcode-builder input[type=radio]:checked + label,
2658
- .ajax-load-more .form-table input[type=radio]:checked + label{ /* selected */
2659
  background-image: url('../img/bkg-radio_selected.png');
2660
  color: #000;
2661
- }
2662
-
2663
  .shortcode-builder input[type=checkbox] + label:hover,
2664
  .ajax-load-more .form-table input[type=checkbox] + label:hover,
2665
  .shortcode-builder input[type=radio] + label:hover,
2666
  .ajax-load-more .form-table input[type=radio] + label:hover{
2667
  color: #000;
2668
  }
2669
-
2670
-
2671
  /*
2672
  * Shortcode Builder
2673
  *
2674
  * @since 2.13.0
2675
- */
2676
  #alm-shortcode-builder-form{
2677
  position: relative;
2678
  }
@@ -2681,9 +2684,9 @@ form#delete-all-cache{
2681
  display: block;
2682
  background: #fff;
2683
  border: 1px solid #e1e1e1;
2684
- -webkit-border-radius: 3px;
2685
- -moz-border-radius: 3px;
2686
- border-radius: 3px;
2687
  margin-bottom: 20px;
2688
  }
2689
  #alm-shortcode-builder-form .shortcode-parameter-wrap h2{
@@ -2694,9 +2697,9 @@ form#delete-all-cache{
2694
  width: calc(100% + 40px);
2695
  border-bottom: 1px solid #efefef;
2696
  background-color: #f7f7f7;
2697
- -webkit-border-radius: 2px 2px 0 0;
2698
- -moz-border-radius: 2px 2px 0 0;
2699
- border-radius: 2px 2px 0 0;
2700
  color: #23282d;
2701
  }
2702
  .forceColors #alm-shortcode-builder-form .shortcode-parameter-wrap h2{
@@ -2706,29 +2709,29 @@ form#delete-all-cache{
2706
  #alm-shortcode-builder-form .shortcode-parameter-wrap:first-of-type{
2707
  margin-top: 0;
2708
  }
2709
-
2710
-
2711
  /*
2712
  * Repeater Template options dropdown
2713
  *
2714
  * @since 2.4.1
2715
- */
2716
 
2717
  .ajax-load-more .row.template{
2718
  position: relative;
2719
  }
2720
  .ajax-load-more .row.template:hover .alm-repeater-options{
2721
- opacity: 1;
2722
  }
2723
-
2724
  .alm-drop-btn.alm-repeater-options{
2725
  position: absolute;
2726
  top: -43px;
2727
  right: 11px;
2728
  z-index:99;
2729
  }
2730
- .alm-drop-btn a.target{
2731
- font-weight: 500;
2732
  position: relative;
2733
  color: #999;
2734
  text-decoration: none !important;
@@ -2762,8 +2765,8 @@ form#delete-all-cache{
2762
  .alm-repeater-options a.target:hover i.fa-cog{
2763
  color: #444;
2764
  }
2765
-
2766
- /* Active state */
2767
  .alm-repeater-options a.target:active,
2768
  .alm-repeater-options.active a.target{
2769
  background-color: #fff;
@@ -2776,8 +2779,8 @@ form#delete-all-cache{
2776
  .alm-repeater-options.active a.target i.fa-cog{
2777
  color: #444;
2778
  }
2779
-
2780
-
2781
  /* Layout Dropdown */
2782
  .alm-drop-btn.alm-layout-selection{
2783
  display: inline-block;
@@ -2792,8 +2795,8 @@ form#delete-all-cache{
2792
  }
2793
  .alm-drop-btn.alm-layout-selection > a > i{
2794
  left: 12px;
2795
- }
2796
-
2797
  .alm-drop-btn.alm-layout-selection li.type{
2798
  height: 36px;
2799
  line-height: 36px;
@@ -2801,7 +2804,7 @@ form#delete-all-cache{
2801
  position: relative;
2802
  }
2803
  .alm-dropdown ul li.layout i {
2804
- top: 11px;
2805
  }
2806
  .alm-drop-btn.alm-layout-selection li.type .col-select{
2807
  float: right;
@@ -2813,28 +2816,28 @@ form#delete-all-cache{
2813
  .alm-drop-btn.alm-layout-selection li.type .col-select a{
2814
  width: 32px;
2815
  height: 30px;
2816
- margin: 3px 3px 0 0;
2817
  padding: 0;
2818
  float: left;
2819
  text-align: center;
2820
- background-position: center center;
2821
  background-repeat: no-repeat;
2822
  vertical-align: top;
2823
  text-indent: -99999px;
2824
- overflow: hidden;
2825
  opacity: 1;
2826
  border-radius: 2px;
2827
  border: 1px solid transparent;
2828
  }
2829
  .alm-drop-btn.alm-layout-selection li.type .col-select a.column-1{
2830
- background-image: url('../img/column-1.png');
2831
  }
2832
  .alm-drop-btn.alm-layout-selection li.type .col-select a.column-2{
2833
- background-image: url('../img/column-2.png');
2834
  }
2835
  .alm-drop-btn.alm-layout-selection li.type .col-select a.column-3{
2836
- background-image: url('../img/column-3.png');
2837
- width: 36px;
2838
  }
2839
  .alm-drop-btn.alm-layout-selection li.type .col-select a.column-1.updating,
2840
  .alm-drop-btn.alm-layout-selection li.type .col-select a.column-2.updating,
@@ -2844,23 +2847,23 @@ form#delete-all-cache{
2844
  }
2845
  .alm-drop-btn.alm-layout-selection li.type .col-select a:hover,
2846
  .alm-drop-btn.alm-layout-selection li.type .col-select a.updating{
2847
- opacity: 1;
2848
  background-color: #fff;
2849
  border-color: #ccc;
2850
  }
2851
  .alm-drop-btn.alm-layout-selection li.type:hover{
2852
  background-color: #faf8e6;
2853
  }
2854
-
2855
- /* External Link + Add-on */
2856
  .alm-drop-btn.alm-layout-selection a.external,
2857
- .alm-drop-btn.alm-layout-selection a.add-on{
2858
- background-color: #f7f7f7;
2859
  padding: 13px 10px 13px 42px;
2860
  display: block;
2861
- }
2862
- .alm-drop-btn.alm-layout-selection a.external{
2863
- padding: 0 10px 0 42px;
2864
  }
2865
  .alm-drop-btn.alm-layout-selection a.external i{
2866
  color: #999;
@@ -2876,32 +2879,32 @@ form#delete-all-cache{
2876
  border: none;
2877
  color: #fff;
2878
  font-weight: 400;
2879
- text-overflow: inherit;
2880
  height: auto;
2881
  white-space: normal;
2882
  }
2883
  .alm-drop-btn.alm-layout-selection a.add-on:hover{
2884
  background-color: #935eaf;
2885
- }
2886
  .alm-drop-btn.alm-layout-selection a.add-on:hover i{
2887
- opacity: 1;
2888
  }
2889
  .alm-drop-btn.alm-layout-selection a.add-on:hover strong{
2890
  color: #fff;
2891
  opacity: 0.7;
2892
  }
2893
  .alm-drop-btn.alm-layout-selection a.add-on strong{
2894
- color: #387061;
2895
  font-weight: 600;
2896
  }
2897
  .alm-drop-btn.alm-layout-selection a.add-on i{
2898
- top: 14px;
2899
- }
2900
  .alm-drop-btn.alm-layout-selection a.add-on i{
2901
  color: #fff !important;
2902
  border-color: rgba(255, 255, 255, 0.3);
2903
  }
2904
-
2905
  .alm-drop-btn.alm-layout-selection a.target:hover,
2906
  .alm-drop-btn.alm-layout-selection a.target:active,
2907
  .alm-drop-btn.alm-layout-selection.active a.target{
@@ -2910,17 +2913,17 @@ form#delete-all-cache{
2910
  border-color: #ccc;
2911
  -webkit-box-shadow: 0 0 3px #efefef;
2912
  -moz-box-shadow: 0 0 3px #efefef;
2913
- box-shadow: 0 0 3px #efefef;
2914
- opacity: 1;
2915
- }
2916
  .alm-drop-btn.alm-layout-selection.active a.target,
2917
- .alm-drop-btn.alm-layout-selection a.target:active{
2918
  -webkit-box-shadow: inset 0 1px 1px #ccc !important;
2919
  -moz-box-shadow: inset 0 1px 1px #ccc !important;
2920
- box-shadow: inset 0 1px 1px #ccc !important;
2921
  }
2922
-
2923
-
2924
  .alm-drop-btn.alm-layout-selection .alm-dropdown {
2925
  display: none;
2926
  position: absolute;
@@ -2936,7 +2939,7 @@ form#delete-all-cache{
2936
  .alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:before {
2937
  right: auto;
2938
  left: 36px;
2939
- }
2940
  .alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner::after{
2941
  margin-left: 0;
2942
  }
@@ -2944,7 +2947,7 @@ form#delete-all-cache{
2944
  right: auto;
2945
  left: 35px;
2946
  }
2947
-
2948
  .add-layout-cta{
2949
  border-radius: 2px;
2950
  border: 1px solid #e1e1e1;
@@ -2958,7 +2961,7 @@ form#delete-all-cache{
2958
  .add-layout-cta p{
2959
  margin: 0;
2960
  font-size: 13px;
2961
- }
2962
  span.dismiss{
2963
  position: absolute;
2964
  right: 10px;
@@ -2966,9 +2969,9 @@ form#delete-all-cache{
2966
  font-size: 13px;
2967
  }
2968
  span.dismiss a{
2969
- text-decoration: none;
2970
- }
2971
-
2972
  /* Dropwbown */
2973
  .alm-drop-btn{
2974
  position: relative;
@@ -2983,7 +2986,7 @@ form#delete-all-cache{
2983
  }
2984
  .alm-dropdown .alm-drop-inner{
2985
  display: block;
2986
- position: relative;
2987
  background: #fff;
2988
  -webkit-border-radius: 3px;
2989
  -moz-border-radius: 3px;
@@ -3007,21 +3010,21 @@ form#delete-all-cache{
3007
  position:absolute;
3008
  pointer-events:none;
3009
  }
3010
-
3011
  .alm-drop-inner:after {
3012
  border-color:rgba(247,247,247,0);
3013
  border-bottom-color:#fff;
3014
  border-width:7px;
3015
  margin-left:-7px;
3016
  }
3017
-
3018
  .alm-drop-inner:before {
3019
  border-color:rgba(204,204,204,0);
3020
  border-bottom-color:#ccc;
3021
  border-width:8px;
3022
  right: 35px;
3023
  }
3024
-
3025
  .alm-dropdown.active{
3026
  display: block !important;
3027
  }
@@ -3055,8 +3058,8 @@ form#delete-all-cache{
3055
  height: 36px;
3056
  display: block;
3057
  text-decoration: none;
3058
- background-position: 4px center;
3059
- color: #666;
3060
  -webkit-box-shadow: none !important;
3061
  -moz-box-shadow: none !important;
3062
  box-shadow: none !important;
@@ -3066,7 +3069,7 @@ form#delete-all-cache{
3066
  overflow: hidden;
3067
  text-overflow: ellipsis;
3068
  }
3069
-
3070
  .alm-dropdown ul li a i{
3071
  margin: 0;
3072
  color: #ccc;
@@ -3080,8 +3083,8 @@ form#delete-all-cache{
3080
  border-right: 1px solid #e1e1e1;
3081
  display: inline-block;
3082
  text-align: center;
3083
- }
3084
-
3085
  .alm-dropdown ul li a:hover{
3086
  color: #111;
3087
  background-color: #f7f7f7;
@@ -3089,16 +3092,16 @@ form#delete-all-cache{
3089
  .alm-dropdown ul li a:hover i{
3090
  color: #999;
3091
  }
3092
-
3093
 
3094
 
3095
  /*
3096
  * Mailchimp Sign-up
3097
  *
3098
  * @since 2.7.2
3099
- */
3100
 
3101
- #alm-mailing-list{}
3102
  #alm-mailing-list .center{
3103
  text-align: center;
3104
  display: block;
@@ -3113,7 +3116,7 @@ form#delete-all-cache{
3113
  text-align: center;
3114
  }
3115
  #alm-mailing-list .center p{
3116
- margin-bottom: 15px;
3117
  }
3118
  .ajax-load-more .cnkt-sidebar .cta.social .follow-btn{
3119
  display: inline-block;
@@ -3130,14 +3133,14 @@ form#delete-all-cache{
3130
  margin: 0 1px 0 0;
3131
  opacity: 0.8;
3132
  }
3133
-
3134
  .ajax-load-more .cnkt-sidebar .cta.social .follow-btn.facebook{
3135
  background-color: #3b5998;
3136
- color: #fff;
3137
  }
3138
  .ajax-load-more .cnkt-sidebar .cta.social .follow-btn.twitter{
3139
  background-color: #00aced;
3140
- color: #fff;
3141
  }
3142
  .ajax-load-more .cnkt-sidebar .cta.social .follow-btn:hover{
3143
  opacity: 1;
@@ -3153,7 +3156,7 @@ form#delete-all-cache{
3153
  }
3154
  #alm-mailing-list .form-wrap .inner-wrap{
3155
  position: relative;
3156
- display: block;
3157
  }
3158
  #alm-mailing-list .form-wrap input{
3159
  width: 100%;
@@ -3182,7 +3185,7 @@ form#delete-all-cache{
3182
  -moz-border-radius: 2px 0 0 2px;
3183
  border-radius: 2px 0 0 2px;
3184
  }
3185
- #alm-mailing-list .form-wrap button{
3186
  padding: 0;
3187
  margin: 0;
3188
  height: auto;
@@ -3194,34 +3197,34 @@ form#delete-all-cache{
3194
  z-index: 1;
3195
  height: 100%;
3196
  font-size: 13px;
3197
- border-radius: 0;
3198
  width: 40px;
3199
  height: 40px;
3200
  color: #ff5a58;
3201
  background: none !important;
3202
  cursor: pointer;
3203
  }
3204
-
3205
  #alm-mailing-list .form-wrap button i{
3206
- color: #ccc;
3207
  line-height: 40px;
3208
  width: 20px;
3209
  text-align: center;
3210
  position: absolute;
3211
  right: 5px;
3212
- top:0;
3213
- font-size: 19px;
3214
- }
3215
  #alm-mailing-list .form-wrap button:hover i{
3216
  color: #999;
3217
  }
3218
-
3219
  #alm-mailing-list .form-wrap button span{
3220
  position: absolute;
3221
  left: -9999px;
3222
- top: -9999px;
3223
- }
3224
-
3225
  #alm-mailing-list .form-wrap label{
3226
  font-size: 11px;
3227
  text-transform: uppercase;
@@ -3233,7 +3236,7 @@ form#delete-all-cache{
3233
  top:-9999px;
3234
  }
3235
  #alm-mailing-list .form-wrap #response{
3236
- padding-top: 11px;
3237
  font-size: 13px;
3238
  display: none;
3239
  text-align: center;
@@ -3244,10 +3247,10 @@ form#delete-all-cache{
3244
  height: 100%;
3245
  background: #fff;
3246
  z-index: 1;
3247
- }
3248
  #alm-mailing-list .form-wrap #response p{
3249
- font-style: normal !important;
3250
- }
3251
 
3252
 
3253
 
@@ -3259,7 +3262,7 @@ form#delete-all-cache{
3259
  padding: 20px 20px 25px;
3260
  }
3261
  .share-alm .dotted{
3262
- border: none;
3263
  border-bottom: 1px dashed #ccc;
3264
  background: none;
3265
  margin: 0 0 20px;
@@ -3285,14 +3288,14 @@ form#delete-all-cache{
3285
  padding-right: 20px;
3286
  width: 46%;
3287
  margin-right: 0 !important;
3288
- }
3289
  .share-alm .mailing{
3290
  width: 52%;
3291
  margin-left: 0 !important;
3292
  padding-left: 40px;
3293
  padding-right: 30px;
3294
  border-left: 1px dashed #ccc;
3295
- }
3296
  ul.share{
3297
  margin: 0;
3298
  padding: 0 0 0;
@@ -3300,7 +3303,7 @@ ul.share{
3300
  clear: both;
3301
  display: inline-block;
3302
  overflow: hidden;
3303
- text-align: center;
3304
  width: 100%;
3305
  margin: 0;
3306
  padding: 0;
@@ -3329,9 +3332,9 @@ ul.share{
3329
  ul.share li i{
3330
  height: 36px;
3331
  line-height: 36px;
3332
- left: 0;
3333
  width: 36px;
3334
- }
3335
  ul.share li a{
3336
  display: block;
3337
  line-height: 40px;
@@ -3345,10 +3348,10 @@ ul.share{
3345
  position: relative;
3346
  font-weight: 600;
3347
  background: #33cf92;
3348
- }
3349
  ul.share li a:hover{
3350
  background-color: #45dfa3;
3351
- }
3352
  ul.share li i{
3353
  font-size: 17px;
3354
  line-height: 41px;
@@ -3361,7 +3364,7 @@ ul.share{
3361
  border-right: 1px solid rgba(0, 0, 0, 0.1);
3362
  background-color: rgba(0, 0, 0, 0.1);
3363
  border-radius: 2px 0 0 2px;
3364
- }
3365
  ul.share li a:hover,
3366
  ul.share li a:hover i{
3367
  text-decoration: none;
@@ -3370,27 +3373,27 @@ ul.share{
3370
  ul.share li a:hover span{
3371
  text-decoration: none;
3372
  }
3373
-
3374
- ul.share li.twitter a{
3375
  background: #00aced;
3376
- }
3377
- ul.share li.twitter a:hover{
3378
  background: #13beff !important;
3379
- }
3380
  ul.share li.facebook a{
3381
  background: #3b5998;
3382
- }
3383
  ul.share li.facebook a:hover{
3384
  background: #466cbc !important;
3385
- }
 
3386
 
3387
 
3388
-
3389
  /*
3390
  * Local templates Add-on
3391
  *
3392
  * @since 2.7.3
3393
- */
3394
 
3395
  .select-theme-repeater{
3396
  display: block;
@@ -3410,12 +3413,12 @@ ul.share li.facebook a:hover{
3410
  font-weight: 700;
3411
  -webkit-border-radius: 100%;
3412
  -moz-border-radius: 100%;
3413
- border-radius: 100%;
3414
  text-transform: uppercase;
3415
- border: 1px solid #e1e1e1;
3416
  font-size: 13px;
3417
  }
3418
-
3419
  .alm-template-section-nav{
3420
  display: block;
3421
  margin: 0 0;
@@ -3427,17 +3430,17 @@ ul.share li.facebook a:hover{
3427
  }
3428
  .alm-template-section-nav li a{
3429
  padding: 5px;
3430
- display: block;
3431
  }
3432
  .alm-template-section-nav li.active a{
3433
  background: #ff0000;
3434
  }
3435
-
3436
  /*
3437
  * Toggle Switch
3438
  *
3439
  * @since 2.14.0
3440
- */
3441
  .ajax-load-more .alm-toggle-switch{
3442
  display: block;
3443
  clear: both;
@@ -3453,7 +3456,7 @@ ul.share li.facebook a:hover{
3453
  margin: 0 2px 0 0;
3454
  padding: 0;
3455
  background: none;
3456
- list-style: none;
3457
  }
3458
  .ajax-load-more .alm-toggle-switch li a{
3459
  display: block;
@@ -3468,7 +3471,7 @@ ul.share li.facebook a:hover{
3468
  }
3469
  .ajax-load-more .alm-toggle-switch li a:hover{
3470
  color: #222;
3471
- background-color: #fff;
3472
  }
3473
  .ajax-load-more .alm-toggle-switch li a.active{
3474
  background: #fff;
@@ -3476,22 +3479,22 @@ ul.share li.facebook a:hover{
3476
  border-bottom-color: #fff;
3477
  color: #111;
3478
  }
3479
-
3480
-
3481
  /*
3482
  * Admin screen media queries
3483
  *
3484
  * @since 1.0
3485
  */
3486
 
3487
- @media screen and (max-width: 1200px){
3488
- .ajax-load-more input[type=text],
3489
  .ajax-load-more input[type=number],
3490
  .select2-container,
3491
  #alm-builder .select2-container-multi{
3492
  width: 95%;
3493
  }
3494
-
3495
  #alm-builder .select2-container-multi{
3496
  width: 95% !important;
3497
  }
@@ -3502,8 +3505,8 @@ ul.share li.facebook a:hover{
3502
  .table-of-contents{
3503
  position: static !important;
3504
  width: 100% !important;
3505
- }
3506
-
3507
  .ajax-load-more .cnkt-main,
3508
  .ajax-load-more .cnkt-sidebar,
3509
  .ajax-load-more .cnkt-main.full {
@@ -3512,9 +3515,9 @@ ul.share li.facebook a:hover{
3512
  margin: 10px 0 20px;
3513
  width: 100%;
3514
  }
3515
-
3516
  .admin.ajax-load-more.settings .form-table th{
3517
- /* padding-left: 0; */
3518
  }
3519
  .admin.ajax-load-more.settings .form-table td{
3520
  padding: 24px 17px 20px
@@ -3525,25 +3528,25 @@ ul.share li.facebook a:hover{
3525
  .call-out.light {
3526
  padding: 15px !important;
3527
  }
3528
-
3529
  .repeaters input.save-repeater{
3530
- max-width: 50%;
3531
  }
3532
  }
3533
 
3534
- @media screen and (max-width: 768px){
3535
  .share-alm .sharing{
3536
  padding-right: 0;
3537
  width: 100%;
3538
  margin-right: 0 !important;
3539
- }
3540
  .share-alm .mailing{
3541
  width: 100%;
3542
  margin-left: 0 !important;
3543
  padding-left: 0;
3544
  padding-top: 40px;
3545
  border-left: none;
3546
- }
3547
  }
3548
 
3549
  @media screen and (max-width: 480px){
@@ -3561,7 +3564,7 @@ ul.share li.facebook a:hover{
3561
  .ajax-load-more .row .wrap{
3562
  padding: 10px 20px;
3563
  }
3564
- .ajax-load-more input[type=text],
3565
  .ajax-load-more input[type=number],
3566
  .select2-container,
3567
  #alm-builder .select2-container-multi{
@@ -3583,11 +3586,11 @@ ul.share li.facebook a:hover{
3583
  #alm-add-ons .section-title{
3584
  width: 100%;
3585
  }
3586
-
3587
  .alm-repeater-options{
3588
- display: none !important;
3589
  }
3590
-
3591
  .ajax-load-more .wrap-30{
3592
  width: 100%;
3593
  display: block;
@@ -3596,7 +3599,7 @@ ul.share li.facebook a:hover{
3596
  .ajax-load-more .row .wrap.full{
3597
  padding: 10px;
3598
  }
3599
-
3600
  #alm-add-ons .group{
3601
  width: 100%;
3602
  display: block;
@@ -3607,9 +3610,9 @@ ul.share li.facebook a:hover{
3607
  width: 100%;
3608
  }
3609
  .call-out.light p{
3610
- padding: 0;
3611
  }
3612
-
3613
  .ajax-load-more .one_half{
3614
  width: 100%;
3615
  margin: 0 0 2%;
@@ -3623,5 +3626,5 @@ ul.share li.facebook a:hover{
3623
  padding-top: 20px;
3624
  display: block;
3625
  font-size: 12px;
3626
- }
3627
- }
1
 
2
  /* Custom buttom/loading styles */
3
  .select2-results .select2-result.alm-color .select2-result-label{
4
+ position: relative;
5
  }
6
  .select2-results .select2-result.alm-color .select2-result-label:after{
7
  width: 10px;
12
  position: absolute;
13
  right: 20px;
14
  top: 50%;
15
+ margin-top: -5px;
16
  z-index: 1;
17
+ }
18
  .select2-results .select2-result.alm-color.default .select2-result-label:after{
19
  background-color: #ed7070;
20
  }
122
  min-width: 48%;
123
  display: inline-block;
124
  vertical-align: top;
125
+ }
126
  #alm-settings .row.alm-save-settings{
127
  padding-bottom: 5px !important;
128
  }
129
+
130
+ #alm-settings form h2{
131
  background: #f7f7f7;
132
  border: 1px solid #efefef;
133
  border-bottom: none;
138
  border-radius: 2px 2px 0 0;
139
  }
140
  #alm-settings form h2:first-of-type{
141
+ margin: 0;
142
+ }
143
  #alm-settings form h2 + p{
144
  color: #999;
145
  padding: 0 20px 17px;
166
  display: block;
167
  color:#777;
168
  width: 100%;
169
+ display: block;
170
  clear: both;
171
  text-transform: none;
172
  padding: 0;
196
  top: 0;
197
  z-index: 999;
198
  opacity: 0;
199
+ filter: alpha(opacity=0);
200
  }
201
  a.layout-hover:hover img{
202
  position: absolute;
204
  top: 0;
205
  z-index: 999;
206
  opacity: 1;
207
+ filter: alpha(opacity=100);
208
  }
209
 
210
 
259
  }
260
  .ajax-load-more h3.heading:hover:after,
261
  .ajax-load-more .add-on h3.heading:hover:after{
262
+ color: #f05452;
263
  }
264
  .ajax-load-more h3.heading:hover{
265
  color: #222;
266
+ }
267
+
268
  .ajax-load-more h3.heading:after{
269
  font-family: 'FontAwesome';
270
  content: '\f056';
282
  .ajax-load-more h3.heading.open{
283
  border-bottom-color: transparent;
284
  }
285
+
286
  .ajax-load-more .add-on h3.heading:after{
287
  color: #999;
288
  }
289
  .ajax-load-more .add-on h3.heading{
290
  background-color: #fefeed;
291
  }
292
+
293
  /* Expand/Collapse all rows */
294
  .ajax-load-more .toggle-all{
295
  position: absolute;
319
  position: relative;
320
  padding-left: 16px;
321
  line-height: 24px;
322
+ }
323
+
324
  .ajax-load-more .toggle-all .expand{
325
  display: none;
326
+ }
327
  .ajax-load-more .toggle-all .collapse{
328
  display: inline-block;
329
  }
330
  .ajax-load-more .toggle-all em{
331
  font-style: normal;
332
  }
333
+
334
  .ajax-load-more .toggle-all.closed .expand{
335
  display: inline-block;
336
+ }
337
  .ajax-load-more .toggle-all.closed .collapse{
338
  display: none;
339
  }
340
+
341
  .ajax-load-more .toggle-all .inner-wrap:before{
342
  font-family: 'FontAwesome';
343
  content: '\f068';
366
  vertical-align: top;
367
  overflow: visible;
368
  }
369
+
370
  .ajax-load-more label.full{
371
  display: block;
372
  clear: both;
392
  padding: 0 !important;
393
  }
394
  .ajax-load-more .border-top.controls button{
395
+ margin-top: 20px !important;
396
  }
397
 
398
  .ajax-load-more .border-top.highlighted{
430
  }
431
  .alm-settings-nav a:hover{
432
  color: #fff;
433
+ background-color: #ff5a58;
434
  }
435
  .alm-settings-nav li:first-of-type a{
436
  border: none;
466
  .row .controls{
467
  display: block;
468
  clear: both;
469
+ padding: 20px 0 10px;
470
  overflow: hidden;
471
  }
472
  .row.taxonomy .controls{
473
+ padding-bottom: 20px;
474
  }
475
  .row.taxonomy .highlighted{
476
  margin-bottom: 0 !important;
477
  }
478
+
479
  .meta-query-wrap .remove-meta-query,
480
  .taxonomy-wrap .remove-tax-query{
481
  position: absolute;
499
  background-color: #cb2222;
500
  color: #fff;
501
  }
502
+
503
  .ajax-load-more .meta-query-wrap .border-top:first-of-type{
504
  padding: 0 0 0 !important;
505
  border: none;
553
  .ajax-load-more p.warning-callout strong{
554
  display: inline-block;
555
  font-weight: normal;
556
+ font-family: Consolas, monaco, monospace;
557
+ background-color: #edfbff;
558
  color:#525c5f;
559
  padding: 0 6px;
560
  border-radius: 2px;
561
+ }
562
  .ajax-load-more p.warning-callout.notify{
563
  background-color: #ad4141;
564
  border-color: #903030;
565
  color: #fff;
566
  }
567
+
568
  .ajax-load-more p.warning-callout.notify strong{
569
  background-color: #cb5858;
570
  color: #fff;
571
  }
572
+
573
 
574
  .ajax-load-more label,
575
  .ajax-load-more input,
579
  padding: 5px 8px;
580
  width: auto;
581
  margin-top: 0;
582
+ display: inline-block;
583
  clear: both;
584
  border-radius: 3px;
585
+ color: #444;
586
  -webkit-box-shadow: none;
587
  -moz-box-shadow: none;
588
  box-shadow: none;
591
  .controls button.disabled{
592
  opacity: 0.5;
593
  }
594
+
595
  .ajax-load-more textarea._alm_repeater{
596
+ font-family: Consolas, monaco, monospace;
597
  font-size: 13px;
598
  line-height: 19px;
599
  padding: 10px;
601
  .ajax-load-more textarea._alm_repeater:focus{
602
  color: #222;
603
  }
604
+
605
  .ajax-load-more label{
606
  padding: 5px 0;
607
  -webkit-border-radius: 0;
633
  padding: 10px 12px;
634
  line-height: 1.3;
635
  border: 1px solid #e1e1e1;
636
+ width: 60%;
637
  }
638
  .ajax-load-more input[type=text].full{
639
  width: 100%;
667
  }
668
 
669
  .ajax-load-more :-moz-placeholder { /* Firefox 18- */
670
+ color: #999;
671
  font-style: italic;
672
  }
673
 
674
  .ajax-load-more ::-moz-placeholder { /* Firefox 19+ */
675
+ color: #999;
676
+ font-style: italic;
677
  }
678
 
679
+ .ajax-load-more :-ms-input-placeholder {
680
+ color: #999;
681
  font-style: italic;
682
  }
683
 
684
  .ajax-load-more input[type=text],
685
  .ajax-load-more input[type=number],
686
  .ajax-load-more textarea{
687
+ background: #f7f7f7;
688
  }
689
  .ajax-load-more .repeaters input[type=text]{
690
  padding: 9px 10px;
692
  .ajax-load-more input[type=number]{
693
  height: auto;
694
  }
695
+
696
  .ajax-load-more input.disabled-input{
697
  opacity: 0.5;
698
  filter: alpha(opacity=50);
699
  cursor: not-allowed;
700
+ background: #f7f7f7 !important;
701
  border-color: #ccc !important;
702
  box-shadow: none !important;
703
  }
708
  background: #efefef;
709
  }
710
 
711
+
712
  .checkboxes label{
713
  margin-right: 5px;
714
  }
718
  width: 47.333%;
719
  margin: 0 0 1% 2%;
720
  vertical-align: top;
721
+ }
722
  .ajax-load-more .one_half:first-of-type{
723
+ margin: 0 2% 1% 0;
724
  }
725
 
726
  /* --------------------------------------------------------------------------- */
727
  /* Row */
728
  /* --------------------------------------------------------------------------- */
729
 
730
+ .ajax-load-more .row{
731
+ padding: 0 !important;
732
+ margin: 20px 0 0;
733
+ height: auto;
734
  width: 100%;
735
  display: block;
736
  overflow: hidden;
745
  }
746
  .ajax-load-more .row.no-brd{
747
  border: none !important;
748
+ padding: 0 !important;
749
+ }
750
 
751
+ .admin.ajax-load-more .row{
752
  border-color: #efefef;
753
  }
754
  .admin.ajax-load-more .repeaters .row:hover,
761
  .admin.ajax-load-more .row:first-of-type{
762
  margin: 0;
763
  padding-top: 0;
764
+ }
765
  .ajax-load-more .intro{
766
+ height: auto;
767
  width: 100%;
768
  display: block;
769
+ overflow: hidden;
770
  }
771
 
772
  /* Jump Menu */
773
 
774
  .pop-up-jump{
775
+ display: block;
776
  width: 100%;
777
  }
778
  .pop-up-jump .jump-menu-wrap{
781
  width: 30%;
782
  }
783
  .pop-up-jump .jump-menu-wrap .select2-container{
784
+ width: 100% !important;
785
  margin-bottom: 15px;
786
  position: relative;
787
  top: -5px;
791
  float: left;
792
  width: 65%;
793
  padding-right: 5%;
794
+ }
795
  .admin.ajax-load-more .jump-menu{
796
  display: none;
797
  }
815
  vertical-align: top;
816
  padding: 0;
817
  margin: 5px 5px 5px 0;
818
+ }
819
+
820
+
821
  .ajax-load-more .expand-wrap{
822
  display: block;
823
  }
824
  #alm-examples.ajax-load-more .expand-wrap{
825
  padding: 10px 10px 0;
826
  }
827
+ .ajax-load-more .expand-wrap hr{
828
+ border: 0;
829
+ height: 0;
830
+ border-top: 1px solid rgba(0, 0, 0, 0.1);
831
+ border-bottom: 1px solid rgba(255, 255, 255, 0.3);
832
  }
833
 
834
  .ajax-load-more .section-title {
842
  float: none;
843
  }
844
  .ajax-load-more .section-title h4{
845
+ font-size: 15px;
846
  margin-bottom: 13px;
847
  }
848
  .ajax-load-more .section-title p,
849
+ .ajax-load-more .wrap p.descriptor{
850
  font-size: 13px;
851
  line-height: 20px;
852
  color: #999;
853
  }
854
+ .ajax-load-more .wrap p.descriptor{
855
  margin: 0;
856
  font-style: italic;
857
  }
873
  position: relative;
874
  top: -1px;
875
  }
876
+
877
  .ajax-load-more .section-title p span,
878
  .admin.ajax-load-more.settings .form-table p.notify span{
879
  display: inline-block;
884
  color: #666;
885
  }
886
  .ajax-load-more .section-title h4{
887
+ margin: 0 0 10px;
888
  }
889
+
890
  .ajax-load-more .repeaters .section-title,
891
  .ajax-load-more .repeaters .row .wrap{
892
  width: 100%;
902
  font-size: 13px;
903
  color: #888;
904
  }
905
+
906
  .ajax-load-more label input._alm_repeater_alias{
907
  height: auto;
908
  line-height: normal !important;
909
  }
910
+
911
  .preload_amount,
912
  .cache_id,
913
  .alternate_template_wrap,
914
  .cta_template_wrap,
915
  .restapi_options,
916
  .next-page-content,
917
+ .acf-options,
918
+ .masonry-options,
919
+ .progress-bar-options{
920
  display: none;
921
  }
922
+
923
+
924
 
925
  .ajax-load-more .row .wrap{
926
  padding: 20px 0 0 5%;
932
  }
933
  .ajax-load-more .row .wrap.full{
934
  float: none;
935
+ width: 100%;
936
  padding: 0 15px 15px 36px;
937
  }
938
+
939
+
940
+ /* ***********************************
941
+ -- Shortcode Output
942
  **************************************/
943
  .ajax-load-more .output-wrap{
944
  padding: 0 50px 0 15px;
961
  margin-top: 20px;
962
  border-radius: 2px;
963
  border: none;
964
+ padding: 0;
965
  -webkit-box-shadow: none;
966
  -moz-box-shadow: none;
967
  box-shadow: none;
977
  width: 49.333%;
978
  display: inline-block;
979
  }
980
+
981
  .output-wrap .copy{
982
  background: #fff;
983
  color: #FF5A58;
996
  opacity: 0.6;
997
  filter: alpha(opacity = 60);
998
  }
999
+ .admin.ajax-load-more .output-wrap .copy{
1000
  float: right;
1001
  position: relative;
1002
  top: -10px;
1009
  .output-wrap .copy:active{
1010
  box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.1);
1011
  }
1012
+
1013
+
1014
  .shortcode-display{
1015
  float: right;
1016
  width: 75%;
1019
  float: none;
1020
  width: 100%;
1021
  }
1022
+
1023
  #shortcode_output{
1024
  border-left: 1px solid #ca5252;
1025
  padding: 26px 10px 26px 30px;
1029
  cursor: pointer;
1030
  word-wrap: break-word;
1031
  }
1032
+
1033
  .admin.ajax-load-more #shortcode_output{
1034
  border: none;
1035
  padding: 12px 12px 24px;
1036
  }
1037
+
1038
+
1039
+ #shortcode_output::-moz-selection{
1040
+ background:#fff;
1041
+ color:#ca5252;
1042
+ text-shadow: none;
1043
+ }
1044
+ #shortcode_output::selection {
1045
+ background:#fff;
1046
+ color:#ca5252;
1047
+ text-shadow: none;
1048
+ }
1049
+
1050
+
1051
 
1052
  /*
1053
  * Insert Shortcode Button
1063
  font-weight: 600;
1064
  padding: 8px 13px;
1065
  display: inline-block;
1066
+ text-align: center;
1067
+ margin: 15px 0;
1068
  float: left;
1069
  line-height: normal !important;
1070
  height: auto !important;
1076
  .admin.ajax-load-more #insert.insert_alm{
1077
  display: none;
1078
  }
1079
+
1080
  #insert.insert_alm:hover{
1081
  box-shadow: inset 0 -15px 15px rgba(0, 0, 0, 0.1), 0 0 3px rgba(255, 255, 255, 1);
1082
  }
1084
  background: #d0413f !important;
1085
  box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.1);
1086
  color:#fff !important;
1087
+ }
1088
 
1089
  .ajax-load-more .clear{
1090
  clear:both;
1106
  .form-table label{
1107
  display: inline-block;
1108
  clear: both;
1109
+ float: none;
1110
  vertical-align: top;
1111
  padding: 0 0 10px;
1112
  max-width: 90%;
1115
  }
1116
  .form-table input[type=radio],
1117
  .form-table input[type=checkbox]{
1118
+ vertical-align: top;
1119
  margin-top: 0 !important;
1120
  max-width: 8%;
1121
  }
1128
  padding-top: 5px;
1129
  font-style: italic;
1130
  }
1131
+
1132
  .form-table .template-tags{
1133
  overflow: hidden;
1134
  border-left: 5px solid #dfd8c2;
1139
  }
1140
  .form-table .template-tags h4,
1141
  .form-table .template-tags li{
1142
+ margin: 0 0 8px;
1143
  padding:0;
1144
  font-size: 13px;
1145
  }
1146
+ .form-table .template-tags li{
1147
  margin: 2px 0;
1148
  }
1149
  .form-table .template-tags ul{
1150
+ margin: 0;
1151
  padding: 0;
1152
  }
1153
  .form-table .template-tags pre{
1154
  display: inline-block;
1155
+ min-width: 120px;
1156
  padding: 0;
1157
  margin: 0;
1158
  color: #888;
1173
  background: #efefef;
1174
  color: #666;
1175
  text-shadow: 1px 1px 0 #fff;
1176
+ resize: none;
1177
  }
1178
 
1179
  .admin.ajax-load-more .form-table input[type=radio],
1210
  padding: 0 0 8px;
1211
  text-transform: uppercase;
1212
  }
1213
+
1214
+ .admin.ajax-load-more.settings .ajax-load-more-wrap.pages{}
1215
  .admin.ajax-load-more.settings .ajax-load-more-wrap.pages li{
1216
+ font-size: 14px;
1217
  }
1218
  .admin.ajax-load-more.settings .ajax-load-more-wrap.pages li a{
1219
+ text-decoration: none;
1220
  }
1221
 
1222
 
1230
  padding-right: 20px;
1231
  }
1232
  .admin.ajax-load-more.settings .form-table th{
1233
+ padding-left: 20px;
1234
  }
1235
  .admin.ajax-load-more.settings .form-table p{
1236
  margin-top: 0;
1249
  .ajax-load-more .header-wrap h1{
1250
  padding-left: 60px;
1251
  min-height: 48px;
1252
+ padding-top: 0;
1253
  background: url(../img/alm-logo-48x48.png) no-repeat left 0;
1254
  background: url(../img/alm-logo-48x48.svg) no-repeat left 0;
1255
  }
1277
  top: -2px;
1278
  left: 5px;
1279
  }
1280
+ .ajax-load-more h2.addon-title{
1281
  font-size: 19px !important;
1282
  line-height: 24px;
1283
  font-weight: 600 !important;
1301
  }
1302
  .ajax-load-more h3.add-on-title,
1303
  .ajax-load-more .cnkt-sidebar h3{
1304
+ padding: 0 0 10px;
1305
  margin: 0 0 20px;
1306
  border-bottom: 1px solid #efefef;
1307
  }
1332
  text-decoration: none;
1333
  display: block;
1334
  }
1335
+
1336
  .saved-response,
1337
  p.loading{
1338
  font-size: 12px;
1340
  color:#999;
1341
  background: none;
1342
  transition: padding 0.2s ease;
1343
+ display: inline-block;
1344
  width: auto;
1345
  position: relative;
1346
  top: 12px;
1369
  .alm-dropdown ul li a.updating{
1370
  background: url("../img/loader.gif") no-repeat left center;
1371
  padding-left: 24px;
1372
+ }
1373
+
1374
  .alm-dropdown ul li a.updating{
1375
+ background-position: 6px center;
1376
  padding-left: 42px;
1377
  }
1378
+
1379
  input.save-repeater{
1380
  margin-bottom: 5px !important;
1381
  }
1382
  .restore-default{
1383
  float: right;
1384
  margin: 19px 20px 0 0;
1385
+ font-size: 12px;
1386
  }
1387
  .restore-default a{
1388
  text-decoration: none;
1389
  }
 
1390
 
1391
+
1392
+
1393
  .alm-save-settings{}
1394
  .alm-save-settings p.submit{
1395
  float: left;
1402
  visibility: visible !important;
1403
  }
1404
 
1405
+
1406
  table.highlight{
1407
  background: #fff !important;
1408
  }
1421
  margin: 0 0 20px;
1422
  position: relative;
1423
  display: block;
1424
+ clear: both;
1425
  }
1426
 
1427
  .ajax-load-more .cnkt-main .group,
1428
  .ajax-load-more .cnkt-sidebar .cta,
1429
  .call-out.light{
1430
  border: 1px solid #e1e1e1;
1431
+ -webkit-border-radius: 3px;
1432
+ -moz-border-radius: 3px;
1433
+ border-radius: 3px;
1434
  }
1435
  .ajax-load-more .cnkt-main.full{
1436
  width: 100%;
1445
  border-top: 1px solid #efefef;
1446
  }
1447
  .form-table {
1448
+ border: 1px solid #efefef;
1449
  margin: 0 0 25px;
1450
  }
1451
 
1452
  .ajax-load-more .cnkt-main .group a.dismiss{
1453
  position: absolute;
1454
  right: 0;
1455
+ top: 0;
1456
  text-decoration: none;
1457
  width: 40px;
1458
  height: 40px;
1459
  line-height: 38px;
1460
  padding: 0;
1461
+ text-align: center;
1462
  background: #f7f7f7;
1463
  color: #777;
1464
  border: 1px solid #e1e1e1;
1487
  clear: none;
1488
  max-width: 25%;
1489
  }
1490
+ .repeater-wrap textarea,
1491
  .repeater-wrap input[type=text]{
1492
  width: 100%;
1493
  }
1499
  max-width: 72%;
1500
  opacity: 0;
1501
  }
1502
+
1503
+
1504
  /* Add-ons & Extensions */
1505
 
1506
  .flexbox-wrap{
1508
  display: -moz-box;
1509
  display: -ms-flexbox;
1510
  display: -webkit-flex;
1511
+ display: flex;
1512
+ flex-wrap: wrap;
1513
  }
1514
 
1515
  #alm-add-ons {}
1539
  padding: 10px 14px;
1540
  transition: all 0.15s ease;
1541
  }
1542
+ .ajax-load-more .cnkt-main .group.installed{
1543
  opacity: 0.85;
1544
  filter: grayscale(0.85);
1545
  }
1547
  display: none !important;
1548
  }
1549
  #alm-add-ons .group img{
1550
+ padding: 12px 18px 12px;
1551
  }
1552
  #alm-add-ons .group a{
1553
  text-decoration: none;
1554
  display: block;
1555
  padding: 15px;
1556
  }
1557
+ #alm-add-ons .group:hover{
1558
  border-color: #ccc;
1559
  }
1560
+ #alm-add-ons .group a h2{
1561
  transition: all 0.15s ease;
1562
  }
1563
  #alm-add-ons .group a:hover h2{
1595
  color: #ff5a58 !important;
1596
  }
1597
  .call-out.light p a:hover{
1598
+ text-decoration: underline;
1599
+ }
1600
  #alm-builder .call-out,
1601
  .forceColors .call-out{ /* Shortcode builder */
1602
  width: 90%;
1646
  color:#fff !important;
1647
  box-shadow: none;
1648
  }
1649
+ a.cnkt-button:focus,
1650
  .group:focus span.cnkt-button{
1651
  background-color: #83519d;
1652
  border-color: #935eaf;
1677
  color: #5da592 !important;
1678
  top: 0;
1679
  }
1680
+
1681
  /*
1682
  * Licenses
1683
  *
1684
  * @since 2.7.0
1685
+ */
1686
+
1687
  .license{
1688
  overflow: hidden;
1689
  margin: 0;
1691
  padding: 20px 0 0;
1692
  position: relative;
1693
  }
1694
+
1695
  .license:first-of-type{
1696
  padding: 10px 0 0;
1697
  }
1698
  .license-title{
1699
  border-radius: 3px 3px 0 0;
1700
  border: 1px solid #ccc;
1701
+ background-color: #efefef;
1702
+ position: relative;
1703
  }
1704
  .license-title .status{
1705
  width: 12px;
1715
  box-shadow: inset 0 -6px 6px rgba(0, 0, 0, 0.05), 0 1px 0 #fff;
1716
  }
1717
  .license-title .status.valid{
1718
+ background-color: #acd481;
1719
  }
1720
  .license h2{
1721
  margin: 0;
1722
  padding: 15px 15px 15px 35px;
1723
+ font-size: 16px;
1724
+ font-weight: 600;
1725
  line-height: 1.2;
1726
  }
1727
  .license p,
1742
  box-shadow: none !important;
1743
  border-color: transparent !important;
1744
  }
1745
+
1746
  .license .no-license{
1747
  display: block;
1748
  padding: 12px 10px 12px 20px;
1753
  border-radius: 3px;
1754
  }
1755
  .license .no-license h4{
1756
+ margin: 0 0 3px;
1757
  }
1758
  .license .no-license p{
1759
  margin: 5px 0 0;
1760
+ padding: 0;
1761
  }
1762
+
1763
+
1764
+
1765
  .license .loading{
1766
  position: absolute;
1767
  left: 0;
1776
  display: none;
1777
  }
1778
  .license-btn-wrap{
1779
+ display: block;
1780
  }
1781
  .license-btn-wrap .msg{
1782
  display: block;
1783
  padding: 10px 0 0;
1784
  font-size: 14px;
1785
+ line-height: 18px;
1786
  }
1787
  .license-btn-wrap .msg strong{
1788
+ display: block;
1789
  }
1790
  .license-btn-wrap .msg em{
1791
  opacity: 0.7;
1792
+ font-style: normal;
1793
  }
1794
+
1795
  .license-wrap,
1796
  .license-no-addons{
1797
  overflow: hidden;
1804
  }
1805
  .license-wrap label{
1806
  font-weight: 600;
1807
+ /* position: relative; */
1808
  top:-3px;
1809
  }
1810
  .license-wrap input[type=text]{
1815
  padding: 14px;
1816
  }
1817
  .license-wrap input[type=text]:focus{
1818
+ background-color: #fff;
1819
  }
1820
  .license-wrap .button-primary{
1821
  margin-right: 5px;
1841
  .license-key-field .status.inactive{
1842
  background-color: #d45656;
1843
  }
1844
+
1845
  .ajax-load-more .alm-nav{
1846
  font-size: 600;
1847
  font-size: 14px;
1851
  .ajax-load-more .alm-nav a{
1852
  display: inline-block;
1853
  }
1854
+
1855
+
1856
  .license-no-addons{
1857
  border: 1px solid #bad0da;
1858
  border-radius: 3px;
1879
  padding: 0;
1880
  margin: 0 0 20px;
1881
  overflow: visible;
1882
+ position: relative;
1883
  }
1884
  .ajax-load-more .cnkt-sidebar .cta-inner{
1885
  padding: 20px;
1886
  display: block;
1887
  }
1888
  .ajax-load-more .cnkt-sidebar .cta-inner.padding-bottom{
1889
+ padding-bottom: 80px;
1890
  }
1891
  .ajax-load-more .cnkt-sidebar .cta.mailing-list{
1892
  padding: 0;
1893
  }
1894
  .ajax-load-more .cnkt-sidebar .cta.mailing-list .head-wrap{
1895
  display: block;
1896
+ padding: 20px;
1897
  }
1898
  .ajax-load-more .cnkt-sidebar .cta.padding-bottom{
1899
  padding-bottom: 50px;
1901
  .ajax-load-more .cnkt-sidebar h3,
1902
  .ajax-load-more .cnkt-sidebar h4{
1903
  margin-top: 0;
1904
+ }
1905
  .ajax-load-more .cnkt-sidebar h3{
1906
  padding: 15px 20px;
1907
  border-bottom: 1px solid #e1e1e1;
1914
  -moz-border-radius: 2px 2px 0 0;
1915
  border-radius: 2px 2px 0 0;
1916
  }
1917
+
1918
+
1919
  .ajax-load-more .cnkt-sidebar .item{
1920
  overflow: hidden;
1921
  }
1951
  margin: 0 0 10px;
1952
  line-height: 1.5;
1953
  }
1954
+
1955
  .ajax-load-more .cnkt-sidebar .cta.resources li{
1956
  display: block;
1957
  width: 100%;
1962
  text-decoration: none;
1963
  padding: 10px 0;
1964
  display: block;
1965
+ border-top: 1px solid #efefef;
1966
  }
1967
  .ajax-load-more .cnkt-sidebar .cta.resources li:first-of-type a{
1968
+ border: none;
1969
  padding-top: 0;
1970
  }
1971
  .ajax-load-more .cnkt-sidebar .cta.resources li i{
1988
  margin: 2px 7px 0 0;
1989
  position: relative;
1990
  }
1991
+
1992
  .ajax-load-more .cnkt-sidebar .item i.fa-check{
1993
  background: #90be59;
1994
  color: #fff;
1997
  background: #c43a3a;
1998
  color: #fff;
1999
  }
2000
+
2001
+
2002
  .ajax-load-more .cnkt-sidebar a.visit{
2003
  background: #5795da;
2004
  padding: 16px 20px 17px 44px;
2031
  .ajax-load-more .cnkt-sidebar a.visit:hover i{
2032
  opacity: 1;
2033
  }
2034
+
2035
  .ajax-load-more .cnkt-sidebar .project-listing {
2036
+ padding: 0;
2037
  }
2038
  .ajax-load-more .cnkt-sidebar .project-listing li{
2039
  margin: 20px 0 0;
2049
  text-decoration: none;
2050
  }
2051
  .ajax-load-more .cnkt-sidebar .project-listing li:first-of-type{
2052
+ margin-top: 0;
2053
  }
2054
  .ajax-load-more .cnkt-sidebar .project-listing img {
2055
  height: 48px;
2062
  display: block;
2063
  }
2064
  .ajax-load-more .cnkt-sidebar .project-listing li span{
2065
+ color: #777;
2066
  }
2067
+
2068
+
2069
+
2070
  /*
2071
  * CodeMirror Syntax Highlighting
2072
  *
2098
  margin: 0 0 10px;
2099
  }
2100
  .ajax-load-more .CodeMirror.loading {
2101
+ background: #f7f7f7 url("../img/loader-unlimited.gif") no-repeat center center;
2102
  opacity: 0.6;
2103
  }
2104
+
2105
  .ajax-load-more .cm-s-pastel-on-dark.CodeMirror{ /* Bkg color */
2106
  background: #333;
2107
  }
2119
  overflow-y: hidden;
2120
  overflow-x: auto;
2121
  }
2122
+
2123
+
2124
+ .ajax-load-more .cm-tag{ /* <li> <h2> html elements */
2125
  color: #0a4b83 !important;
2126
  }
2127
+ .ajax-load-more .cm-string{ /* Elements in " " */
2128
  color: #c75050 !important;
2129
  }
2130
  .ajax-load-more .cm-attribute{ /* class names */
2147
  .ajax-load-more .CodeMirror span.cm-number{ /* Numbers */
2148
  color: #009999 !important;
2149
  }
 
2150
 
2151
 
2152
+
2153
+
2154
  /*
2155
  * Delete Template (Unlimited Repeaters
2156
  *
2165
  .admin.ajax-load-more .row.unlimited:first-of-type{
2166
  margin-top: 15px;
2167
  }
2168
+
2169
  .repeaters .row,
2170
  .shortcode-builder .row{
2171
+ -webkit-transition: background-color 0.3s ease;
2172
+ -moz-transition: background-color 0.3s ease;
2173
+ transition: background-color 0.3s ease;
2174
  }
2175
  .repeaters .row.no-brd:hover,
2176
  .shortcode-builder .row.no-brd:hover{
2180
  .unlimited-wrap{
2181
  display: none;
2182
  }
2183
+
2184
  .admin.ajax-load-more .row.unlimited.deleting{ /* Deleting Row */
2185
+ background: #fff url("../img/loader-unlimited.gif") no-repeat center center;
2186
  border-color: #fff;
2187
  opacity: 0.4;
2188
  }
2197
  }
2198
  .admin.ajax-load-more .row.unlimited.new.done{
2199
  background-image: none !important;
2200
+ }
2201
  .admin.ajax-load-more .row.unlimited.loaded{ /* Loading complete */
2202
  background-color: #64e49d;
2203
  border-color: #64e49d;
2204
  }
2205
+
2206
  .admin.ajax-load-more .row.unlimited.deleting .expand-wrap,
2207
  .row.unlimited.deleting h3.heading{
2208
  opacity: 0.6;
2214
  opacity: 0;
2215
  cursor: default;
2216
  }
2217
+
2218
  .ajax-load-more .row.unlimited input[type=text]{
2219
  width: 100.75%;
2220
  }
2221
+
2222
  .repeaters .alm-delete{
2223
  clear: none;
2224
  display: inline-block;
2230
  position: absolute;
2231
  right: 15px;
2232
  bottom: 17px;
2233
+ }
2234
  .repeaters .alm-delete a{
2235
  border-radius: 2px;
2236
  background: none;
2237
+ color: #c94141;
2238
  font-size: 14px;
2239
+ text-decoration: none;
2240
  display: block;
2241
  padding: 5px 10px;
2242
  }
2243
  .repeaters .alm-delete a:hover{
2244
  background-color: #c94141;
2245
+ color: #fff;
2246
  }
2247
  .repeaters .alm-delete a:focus{
2248
  -webkit-box-shadow: none;
2255
  box-shadow: inset 0 1px 1px #ccc !important;
2256
  background-color: #b93636;
2257
  }
2258
+
2259
  .repeaters .row:hover .alm-delete{
2260
  opacity: 1;
2261
  }
2262
+
2263
  .alm-add-template{
2264
  text-align: center;
2265
  margin: 15px 0 0 !important;
2295
  .alm-add-template a:hover{
2296
  background: #ff5a58;
2297
  border-color: #ff5a58;
2298
+ color: #fff;
2299
  -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 1px 0 rgba(0, 0, 0, 0.07);
2300
  -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 1px 0 rgba(0, 0, 0, 0.07);
2301
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 1px 0 rgba(0, 0, 0, 0.07);
2302
  text-shadow: none;
2303
+ }
2304
  .alm-add-template a:focus{
2305
+ -webkit-box-shadow: none;
2306
  -moz-box-shadow: none;
2307
  box-shadow: none;
2308
  text-shadow: none;
2316
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
2317
  text-shadow: none;
2318
  }
2319
+
2320
  .alm-add-template a i {
2321
  font-size: 20px;
2322
  color: #ec4745;
2324
  position: relative;
2325
  top: 2px;
2326
  left: -1px;
2327
+ }
2328
  .alm-add-template a:hover i,
2329
  .alm-add-template a:active i{
2330
  color: #fff;
2331
  }
2332
+ .spacer{
2333
  height:10px;
2334
+ clear:both;
2335
  display:block;
2336
  }
2337
 
2338
+
2339
  /*
2340
  * Cache
2341
  *
2386
  margin: 0;
2387
  }
2388
  .alm-dir-listing.theme-repeaters ul{
2389
+ border: none;
2390
  padding: 0;
2391
  margin: 0;
2392
  }
2403
 
2404
  .alm-dir-listing.deleting{
2405
  opacity: 0.5;
2406
+ background: #fff url("../img/loader-unlimited.gif") no-repeat center center;
2407
  }
2408
 
2409
  .alm-dir-listing .dir-title{
2435
  }
2436
  .alm-dir-listing:hover .dir-title .delete{
2437
  border-color: #ccc;
2438
+ color: #666;
2439
  }
2440
  .alm-dir-listing .dir-title .delete:hover{
2441
  background-color: #c94141;
2442
  border-color: #c94141;
2443
+ color: #fff;
2444
  -webkit-box-shadow: 0 0 3px #ccc;
2445
  -moz-box-shadow: 0 0 3px #ccc;
2446
  box-shadow: 0 0 3px #ccc;
2448
  .alm-dir-listing .dir-title .delete:active{
2449
  -webkit-box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.2);
2450
  -moz-box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.2);
2451
+ box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.2);
2452
  }
2453
  .alm-dir-listing ul{
2454
  padding: 10px;
2462
  vertical-align: top;
2463
  overflow: hidden;
2464
  width: 47%;
2465
+ font-size: 14px;
2466
  background: transparent url(../img/directory-list.gif) no-repeat left center;
2467
  }
2468
  .alm-dir-listing.theme-repeaters ul li{
2469
+ display: block;
2470
  width: 100%;
2471
  padding-top: 12px;
2472
  }
2474
  display: block;
2475
  width: 100%;
2476
  }
2477
+
2478
  .alm-dir-listing ul li:last-child,
2479
  .alm-dir-listing ul li:nth-last-child(2){
2480
  background-image: url(../img/directory-list-btm.gif);
2488
  .alm-dir-listing li i{
2489
  color: #999;
2490
  padding: 0 5px 0 0;
2491
+ }
2492
+
2493
+ .cache-page-title{
2494
+ font-size: 14px;
2495
  display: block;
2496
  width: 100%;
2497
  padding: 0 0 10px 12px;
2498
  font-weight: 600;
2499
  }
2500
+
2501
  .cache-page-wrap{
2502
  padding: 0 15px 15px;
2503
+ }
2504
+
2505
  .alm-dir-listing ul.cache-details{
2506
  display: block;
2507
  padding: 6px 10px 12px;
2508
  margin: 0;
2509
  border: none;
2510
+ }
2511
  .alm-dir-listing ul.cache-details li{
2512
  display: block;
2513
  width: 100%;
2514
  background: none;
2515
  padding: 6px 4px 6px;
2516
+ color: #333;
2517
  }
2518
  .alm-dir-listing ul.cache-details li i{
2519
+ color: #ccc;
2520
  font-size: 18px;
2521
  position: relative;
2522
  top:1px;
2523
  }
2524
+
2525
+
2526
 
2527
  .dir-empty,
2528
  .cache-cleared{
2548
  font-size: 12px;
2549
  font-weight: 600;
2550
  }
2551
+
2552
  #alm-cache.ajax-load-more .cnkt-sidebar .item{
2553
  padding: 20px;
2554
  display: block;
2559
  margin: 0;
2560
  display: block;
2561
  padding: 20px 20px 0 20px;
2562
+ }
2563
  p.cache-stats span{
2564
  display: inline-block;
2565
  width: 38px;
2571
  font-size: 15px;
2572
  -webkit-border-radius: 2px;
2573
  -moz-border-radius:2px;
2574
+ border-radius: 2px;
2575
  background: #a4a5e2;
2576
  background: -moz-linear-gradient(top, #a4a5e2 0%, #9ea0d9 50%, #8d8fce 51%, #a4a5e2 100%);
2577
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#a4a5e2), color-stop(50%,#9ea0d9), color-stop(51%,#8d8fce), color-stop(100%,#a4a5e2));
2581
  background: linear-gradient(to bottom, #a4a5e2 0%,#9ea0d9 50%,#8d8fce 51%,#a4a5e2 100%);
2582
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a4a5e2', endColorstr='#a4a5e2',GradientType=0 );
2583
  border: 1px solid #8586be;
2584
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
2585
  color: #fff;
2586
  text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.1);
2587
  }
2588
+
2589
  form#delete-all-cache{
2590
  display: block;
2591
  padding: 20px;
2592
  border-top: 1px solid #efefef;
2593
  margin-top: 10px;
2594
  }
2595
+
2596
+
2597
  /*
2598
  * Error Handling
2599
  *
2607
  padding: 10px;
2608
  }
2609
 
2610
+
2611
  /*
2612
  * Form Replacements
2613
  *
2620
  .ajax-load-more .form-table input[type=radio]{
2621
  display:none;
2622
  }
2623
+
2624
+ .shortcode-builder input[type=checkbox] + label,
2625
  .ajax-load-more .form-table input[type=checkbox] + label,
2626
  .shortcode-builder input[type=radio] + label,
2627
  .ajax-load-more .form-table input[type=radio] + label{
2640
  .ajax-load-more .form-table input[type=radio] + label{
2641
  background: #fff url('../img/bkg-radio_off.png') no-repeat left 1px;
2642
  }
2643
+
2644
  .shortcode-builder input[type=checkbox]:hover + label,
2645
  .ajax-load-more .form-table input[type=checkbox]:hover + label{ /* hover */
2646
  background-image: url('../img/bkg-chkbox_on.png');
2647
+ }
2648
+
2649
  .shortcode-builder input[type=radio]:hover + label,
2650
+ .ajax-load-more .form-table input[type=radio]:hover + label{ /* hover */
2651
  background-image: url('../img/bkg-radio_on.png');
2652
+ }
2653
+
2654
  .shortcode-builder input[type=checkbox]:checked + label,
2655
+ .ajax-load-more .form-table input[type=checkbox]:checked + label{ /* selected */
2656
  background-image: url('../img/bkg-chkbox_selected.png');
2657
  color: #000;
2658
+ }
2659
+
2660
  .shortcode-builder input[type=radio]:checked + label,
2661
+ .ajax-load-more .form-table input[type=radio]:checked + label{ /* selected */
2662
  background-image: url('../img/bkg-radio_selected.png');
2663
  color: #000;
2664
+ }
2665
+
2666
  .shortcode-builder input[type=checkbox] + label:hover,
2667
  .ajax-load-more .form-table input[type=checkbox] + label:hover,
2668
  .shortcode-builder input[type=radio] + label:hover,
2669
  .ajax-load-more .form-table input[type=radio] + label:hover{
2670
  color: #000;
2671
  }
2672
+
2673
+
2674
  /*
2675
  * Shortcode Builder
2676
  *
2677
  * @since 2.13.0
2678
+ */
2679
  #alm-shortcode-builder-form{
2680
  position: relative;
2681
  }
2684
  display: block;
2685
  background: #fff;
2686
  border: 1px solid #e1e1e1;
2687
+ -webkit-border-radius: 3px;
2688
+ -moz-border-radius: 3px;
2689
+ border-radius: 3px;
2690
  margin-bottom: 20px;
2691
  }
2692
  #alm-shortcode-builder-form .shortcode-parameter-wrap h2{
2697
  width: calc(100% + 40px);
2698
  border-bottom: 1px solid #efefef;
2699
  background-color: #f7f7f7;
2700
+ -webkit-border-radius: 2px 2px 0 0;
2701
+ -moz-border-radius: 2px 2px 0 0;
2702
+ border-radius: 2px 2px 0 0;
2703
  color: #23282d;
2704
  }
2705
  .forceColors #alm-shortcode-builder-form .shortcode-parameter-wrap h2{
2709
  #alm-shortcode-builder-form .shortcode-parameter-wrap:first-of-type{
2710
  margin-top: 0;
2711
  }
2712
+
2713
+
2714
  /*
2715
  * Repeater Template options dropdown
2716
  *
2717
  * @since 2.4.1
2718
+ */
2719
 
2720
  .ajax-load-more .row.template{
2721
  position: relative;
2722
  }
2723
  .ajax-load-more .row.template:hover .alm-repeater-options{
2724
+ opacity: 1;
2725
  }
2726
+
2727
  .alm-drop-btn.alm-repeater-options{
2728
  position: absolute;
2729
  top: -43px;
2730
  right: 11px;
2731
  z-index:99;
2732
  }
2733
+ .alm-drop-btn a.target{
2734
+ font-weight: 500;
2735
  position: relative;
2736
  color: #999;
2737
  text-decoration: none !important;
2765
  .alm-repeater-options a.target:hover i.fa-cog{
2766
  color: #444;
2767
  }
2768
+
2769
+ /* Active state */
2770
  .alm-repeater-options a.target:active,
2771
  .alm-repeater-options.active a.target{
2772
  background-color: #fff;
2779
  .alm-repeater-options.active a.target i.fa-cog{
2780
  color: #444;
2781
  }
2782
+
2783
+
2784
  /* Layout Dropdown */
2785
  .alm-drop-btn.alm-layout-selection{
2786
  display: inline-block;
2795
  }
2796
  .alm-drop-btn.alm-layout-selection > a > i{
2797
  left: 12px;
2798
+ }
2799
+
2800
  .alm-drop-btn.alm-layout-selection li.type{
2801
  height: 36px;
2802
  line-height: 36px;
2804
  position: relative;
2805
  }
2806
  .alm-dropdown ul li.layout i {
2807
+ top: 11px;
2808
  }
2809
  .alm-drop-btn.alm-layout-selection li.type .col-select{
2810
  float: right;
2816
  .alm-drop-btn.alm-layout-selection li.type .col-select a{
2817
  width: 32px;
2818
  height: 30px;
2819
+ margin: 3px 3px 0 0;
2820
  padding: 0;
2821
  float: left;
2822
  text-align: center;
2823
+ background-position: center center;
2824
  background-repeat: no-repeat;
2825
  vertical-align: top;
2826
  text-indent: -99999px;
2827
+ overflow: hidden;
2828
  opacity: 1;
2829
  border-radius: 2px;
2830
  border: 1px solid transparent;
2831
  }
2832
  .alm-drop-btn.alm-layout-selection li.type .col-select a.column-1{
2833
+ background-image: url('../img/column-1.png');
2834
  }
2835
  .alm-drop-btn.alm-layout-selection li.type .col-select a.column-2{
2836
+ background-image: url('../img/column-2.png');
2837
  }
2838
  .alm-drop-btn.alm-layout-selection li.type .col-select a.column-3{
2839
+ background-image: url('../img/column-3.png');
2840
+ width: 36px;
2841
  }
2842
  .alm-drop-btn.alm-layout-selection li.type .col-select a.column-1.updating,
2843
  .alm-drop-btn.alm-layout-selection li.type .col-select a.column-2.updating,
2847
  }
2848
  .alm-drop-btn.alm-layout-selection li.type .col-select a:hover,
2849
  .alm-drop-btn.alm-layout-selection li.type .col-select a.updating{
2850
+ opacity: 1;
2851
  background-color: #fff;
2852
  border-color: #ccc;
2853
  }
2854
  .alm-drop-btn.alm-layout-selection li.type:hover{
2855
  background-color: #faf8e6;
2856
  }
2857
+
2858
+ /* External Link + Add-on */
2859
  .alm-drop-btn.alm-layout-selection a.external,
2860
+ .alm-drop-btn.alm-layout-selection a.add-on{
2861
+ background-color: #f7f7f7;
2862
  padding: 13px 10px 13px 42px;
2863
  display: block;
2864
+ }
2865
+ .alm-drop-btn.alm-layout-selection a.external{
2866
+ padding: 0 10px 0 42px;
2867
  }
2868
  .alm-drop-btn.alm-layout-selection a.external i{
2869
  color: #999;
2879
  border: none;
2880
  color: #fff;
2881
  font-weight: 400;
2882
+ text-overflow: inherit;
2883
  height: auto;
2884
  white-space: normal;
2885
  }
2886
  .alm-drop-btn.alm-layout-selection a.add-on:hover{
2887
  background-color: #935eaf;
2888
+ }
2889
  .alm-drop-btn.alm-layout-selection a.add-on:hover i{
2890
+ opacity: 1;
2891
  }
2892
  .alm-drop-btn.alm-layout-selection a.add-on:hover strong{
2893
  color: #fff;
2894
  opacity: 0.7;
2895
  }
2896
  .alm-drop-btn.alm-layout-selection a.add-on strong{
2897
+ color: #387061;
2898
  font-weight: 600;
2899
  }
2900
  .alm-drop-btn.alm-layout-selection a.add-on i{
2901
+ top: 14px;
2902
+ }
2903
  .alm-drop-btn.alm-layout-selection a.add-on i{
2904
  color: #fff !important;
2905
  border-color: rgba(255, 255, 255, 0.3);
2906
  }
2907
+
2908
  .alm-drop-btn.alm-layout-selection a.target:hover,
2909
  .alm-drop-btn.alm-layout-selection a.target:active,
2910
  .alm-drop-btn.alm-layout-selection.active a.target{
2913
  border-color: #ccc;
2914
  -webkit-box-shadow: 0 0 3px #efefef;
2915
  -moz-box-shadow: 0 0 3px #efefef;
2916
+ box-shadow: 0 0 3px #efefef;
2917
+ opacity: 1;
2918
+ }
2919
  .alm-drop-btn.alm-layout-selection.active a.target,
2920
+ .alm-drop-btn.alm-layout-selection a.target:active{
2921
  -webkit-box-shadow: inset 0 1px 1px #ccc !important;
2922
  -moz-box-shadow: inset 0 1px 1px #ccc !important;
2923
+ box-shadow: inset 0 1px 1px #ccc !important;
2924
  }
2925
+
2926
+
2927
  .alm-drop-btn.alm-layout-selection .alm-dropdown {
2928
  display: none;
2929
  position: absolute;
2939
  .alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:before {
2940
  right: auto;
2941
  left: 36px;
2942
+ }
2943
  .alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner::after{
2944
  margin-left: 0;
2945
  }
2947
  right: auto;
2948
  left: 35px;
2949
  }
2950
+
2951
  .add-layout-cta{
2952
  border-radius: 2px;
2953
  border: 1px solid #e1e1e1;
2961
  .add-layout-cta p{
2962
  margin: 0;
2963
  font-size: 13px;
2964
+ }
2965
  span.dismiss{
2966
  position: absolute;
2967
  right: 10px;
2969
  font-size: 13px;
2970
  }
2971
  span.dismiss a{
2972
+ text-decoration: none;
2973
+ }
2974
+
2975
  /* Dropwbown */
2976
  .alm-drop-btn{
2977
  position: relative;
2986
  }
2987
  .alm-dropdown .alm-drop-inner{
2988
  display: block;
2989
+ position: relative;
2990
  background: #fff;
2991
  -webkit-border-radius: 3px;
2992
  -moz-border-radius: 3px;
3010
  position:absolute;
3011
  pointer-events:none;
3012
  }
3013
+
3014
  .alm-drop-inner:after {
3015
  border-color:rgba(247,247,247,0);
3016
  border-bottom-color:#fff;
3017
  border-width:7px;
3018
  margin-left:-7px;
3019
  }
3020
+
3021
  .alm-drop-inner:before {
3022
  border-color:rgba(204,204,204,0);
3023
  border-bottom-color:#ccc;
3024
  border-width:8px;
3025
  right: 35px;
3026
  }
3027
+
3028
  .alm-dropdown.active{
3029
  display: block !important;
3030
  }
3058
  height: 36px;
3059
  display: block;
3060
  text-decoration: none;
3061
+ background-position: 4px center;
3062
+ color: #666;
3063
  -webkit-box-shadow: none !important;
3064
  -moz-box-shadow: none !important;
3065
  box-shadow: none !important;
3069
  overflow: hidden;
3070
  text-overflow: ellipsis;
3071
  }
3072
+
3073
  .alm-dropdown ul li a i{
3074
  margin: 0;
3075
  color: #ccc;
3083
  border-right: 1px solid #e1e1e1;
3084
  display: inline-block;
3085
  text-align: center;
3086
+ }
3087
+
3088
  .alm-dropdown ul li a:hover{
3089
  color: #111;
3090
  background-color: #f7f7f7;
3092
  .alm-dropdown ul li a:hover i{
3093
  color: #999;
3094
  }
3095
+
3096
 
3097
 
3098
  /*
3099
  * Mailchimp Sign-up
3100
  *
3101
  * @since 2.7.2
3102
+ */
3103
 
3104
+ #alm-mailing-list{}
3105
  #alm-mailing-list .center{
3106
  text-align: center;
3107
  display: block;
3116
  text-align: center;
3117
  }
3118
  #alm-mailing-list .center p{
3119
+ margin-bottom: 15px;
3120
  }
3121
  .ajax-load-more .cnkt-sidebar .cta.social .follow-btn{
3122
  display: inline-block;
3133
  margin: 0 1px 0 0;
3134
  opacity: 0.8;
3135
  }
3136
+
3137
  .ajax-load-more .cnkt-sidebar .cta.social .follow-btn.facebook{
3138
  background-color: #3b5998;
3139
+ color: #fff;
3140
  }
3141
  .ajax-load-more .cnkt-sidebar .cta.social .follow-btn.twitter{
3142
  background-color: #00aced;
3143
+ color: #fff;
3144
  }
3145
  .ajax-load-more .cnkt-sidebar .cta.social .follow-btn:hover{
3146
  opacity: 1;
3156
  }
3157
  #alm-mailing-list .form-wrap .inner-wrap{
3158
  position: relative;
3159
+ display: block;
3160
  }
3161
  #alm-mailing-list .form-wrap input{
3162
  width: 100%;
3185
  -moz-border-radius: 2px 0 0 2px;
3186
  border-radius: 2px 0 0 2px;
3187
  }
3188
+ #alm-mailing-list .form-wrap button{
3189
  padding: 0;
3190
  margin: 0;
3191
  height: auto;
3197
  z-index: 1;
3198
  height: 100%;
3199
  font-size: 13px;
3200
+ border-radius: 0;
3201
  width: 40px;
3202
  height: 40px;
3203
  color: #ff5a58;
3204
  background: none !important;
3205
  cursor: pointer;
3206
  }
3207
+
3208
  #alm-mailing-list .form-wrap button i{
3209
+ color: #ccc;
3210
  line-height: 40px;
3211
  width: 20px;
3212
  text-align: center;
3213
  position: absolute;
3214
  right: 5px;
3215
+ top:0;
3216
+ font-size: 19px;
3217
+ }
3218
  #alm-mailing-list .form-wrap button:hover i{
3219
  color: #999;
3220
  }
3221
+
3222
  #alm-mailing-list .form-wrap button span{
3223
  position: absolute;
3224
  left: -9999px;
3225
+ top: -9999px;
3226
+ }
3227
+
3228
  #alm-mailing-list .form-wrap label{
3229
  font-size: 11px;
3230
  text-transform: uppercase;
3236
  top:-9999px;
3237
  }
3238
  #alm-mailing-list .form-wrap #response{
3239
+ padding-top: 11px;
3240
  font-size: 13px;
3241
  display: none;
3242
  text-align: center;
3247
  height: 100%;
3248
  background: #fff;
3249
  z-index: 1;
3250
+ }
3251
  #alm-mailing-list .form-wrap #response p{
3252
+ font-style: normal !important;
3253
+ }
3254
 
3255
 
3256
 
3262
  padding: 20px 20px 25px;
3263
  }
3264
  .share-alm .dotted{
3265
+ border: none;
3266
  border-bottom: 1px dashed #ccc;
3267
  background: none;
3268
  margin: 0 0 20px;
3288
  padding-right: 20px;
3289
  width: 46%;
3290
  margin-right: 0 !important;
3291
+ }
3292
  .share-alm .mailing{
3293
  width: 52%;
3294
  margin-left: 0 !important;
3295
  padding-left: 40px;
3296
  padding-right: 30px;
3297
  border-left: 1px dashed #ccc;
3298
+ }
3299
  ul.share{
3300
  margin: 0;
3301
  padding: 0 0 0;
3303
  clear: both;
3304
  display: inline-block;
3305
  overflow: hidden;
3306
+ text-align: center;
3307
  width: 100%;
3308
  margin: 0;
3309
  padding: 0;
3332
  ul.share li i{
3333
  height: 36px;
3334
  line-height: 36px;
3335
+ left: 0;
3336
  width: 36px;
3337
+ }
3338
  ul.share li a{
3339
  display: block;
3340
  line-height: 40px;
3348
  position: relative;
3349
  font-weight: 600;
3350
  background: #33cf92;
3351
+ }
3352
  ul.share li a:hover{
3353
  background-color: #45dfa3;
3354
+ }
3355
  ul.share li i{
3356
  font-size: 17px;
3357
  line-height: 41px;
3364
  border-right: 1px solid rgba(0, 0, 0, 0.1);
3365
  background-color: rgba(0, 0, 0, 0.1);
3366
  border-radius: 2px 0 0 2px;
3367
+ }
3368
  ul.share li a:hover,
3369
  ul.share li a:hover i{
3370
  text-decoration: none;
3373
  ul.share li a:hover span{
3374
  text-decoration: none;
3375
  }
3376
+
3377
+ ul.share li.twitter a{
3378
  background: #00aced;
3379
+ }
3380
+ ul.share li.twitter a:hover{
3381
  background: #13beff !important;
3382
+ }
3383
  ul.share li.facebook a{
3384
  background: #3b5998;
3385
+ }
3386
  ul.share li.facebook a:hover{
3387
  background: #466cbc !important;
3388
+ }
3389
+
3390
 
3391
 
 
3392
  /*
3393
  * Local templates Add-on
3394
  *
3395
  * @since 2.7.3
3396
+ */
3397
 
3398
  .select-theme-repeater{
3399
  display: block;
3413
  font-weight: 700;
3414
  -webkit-border-radius: 100%;
3415
  -moz-border-radius: 100%;
3416
+ border-radius: 100%;
3417
  text-transform: uppercase;
3418
+ border: 1px solid #e1e1e1;
3419
  font-size: 13px;
3420
  }
3421
+
3422
  .alm-template-section-nav{
3423
  display: block;
3424
  margin: 0 0;
3430
  }
3431
  .alm-template-section-nav li a{
3432
  padding: 5px;
3433
+ display: block;
3434
  }
3435
  .alm-template-section-nav li.active a{
3436
  background: #ff0000;
3437
  }
3438
+
3439
  /*
3440
  * Toggle Switch
3441
  *
3442
  * @since 2.14.0
3443
+ */
3444
  .ajax-load-more .alm-toggle-switch{
3445
  display: block;
3446
  clear: both;
3456
  margin: 0 2px 0 0;
3457
  padding: 0;
3458
  background: none;
3459
+ list-style: none;
3460
  }
3461
  .ajax-load-more .alm-toggle-switch li a{
3462
  display: block;
3471
  }
3472
  .ajax-load-more .alm-toggle-switch li a:hover{
3473
  color: #222;
3474
+ background-color: #fff;
3475
  }
3476
  .ajax-load-more .alm-toggle-switch li a.active{
3477
  background: #fff;
3479
  border-bottom-color: #fff;
3480
  color: #111;
3481
  }
3482
+
3483
+
3484
  /*
3485
  * Admin screen media queries
3486
  *
3487
  * @since 1.0
3488
  */
3489
 
3490
+ @media screen and (max-width: 1200px){
3491
+ .ajax-load-more input[type=text],
3492
  .ajax-load-more input[type=number],
3493
  .select2-container,
3494
  #alm-builder .select2-container-multi{
3495
  width: 95%;
3496
  }
3497
+
3498
  #alm-builder .select2-container-multi{
3499
  width: 95% !important;
3500
  }
3505
  .table-of-contents{
3506
  position: static !important;
3507
  width: 100% !important;
3508
+ }
3509
+
3510
  .ajax-load-more .cnkt-main,
3511
  .ajax-load-more .cnkt-sidebar,
3512
  .ajax-load-more .cnkt-main.full {
3515
  margin: 10px 0 20px;
3516
  width: 100%;
3517
  }
3518
+
3519
  .admin.ajax-load-more.settings .form-table th{
3520
+ /* padding-left: 0; */
3521
  }
3522
  .admin.ajax-load-more.settings .form-table td{
3523
  padding: 24px 17px 20px
3528
  .call-out.light {
3529
  padding: 15px !important;
3530
  }
3531
+
3532
  .repeaters input.save-repeater{
3533
+ max-width: 50%;
3534
  }
3535
  }
3536
 
3537
+ @media screen and (max-width: 768px){
3538
  .share-alm .sharing{
3539
  padding-right: 0;
3540
  width: 100%;
3541
  margin-right: 0 !important;
3542
+ }
3543
  .share-alm .mailing{
3544
  width: 100%;
3545
  margin-left: 0 !important;
3546
  padding-left: 0;
3547
  padding-top: 40px;
3548
  border-left: none;
3549
+ }
3550
  }
3551
 
3552
  @media screen and (max-width: 480px){
3564
  .ajax-load-more .row .wrap{
3565
  padding: 10px 20px;
3566
  }
3567
+ .ajax-load-more input[type=text],
3568
  .ajax-load-more input[type=number],
3569
  .select2-container,
3570
  #alm-builder .select2-container-multi{
3586
  #alm-add-ons .section-title{
3587
  width: 100%;
3588
  }
3589
+
3590
  .alm-repeater-options{
3591
+ display: none !important;
3592
  }
3593
+
3594
  .ajax-load-more .wrap-30{
3595
  width: 100%;
3596
  display: block;
3599
  .ajax-load-more .row .wrap.full{
3600
  padding: 10px;
3601
  }
3602
+
3603
  #alm-add-ons .group{
3604
  width: 100%;
3605
  display: block;
3610
  width: 100%;
3611
  }
3612
  .call-out.light p{
3613
+ padding: 0;
3614
  }
3615
+
3616
  .ajax-load-more .one_half{
3617
  width: 100%;
3618
  margin: 0 0 2%;
3626
  padding-top: 20px;
3627
  display: block;
3628
  font-size: 12px;
3629
+ }
3630
+ }
admin/js/admin.js CHANGED
@@ -1,33 +1,32 @@
1
  var _alm = _alm || {};
2
 
3
  jQuery(document).ready(function($) {
4
- "use strict";
5
-
6
-
7
-
8
  /*
9
  * Tooltipster
10
  * http://iamceege.github.io/tooltipster/
11
  *
12
  * @since 2.8.4
13
- */
14
-
15
  $('.tooltip').tooltipster({
16
  delay: 100,
17
  speed: 175,
18
  maxWidth: 400
19
  });
20
-
21
-
22
-
23
-
24
  /*
25
  * Button preview pane
26
  * Found on Settings and Shortcode Builder
27
  *
28
  * @since 2.8.4
29
- */
30
-
31
  $("select#alm_settings_btn_color").change(function() {
32
  var color = jQuery(this).val();
33
  // Remove other colors
@@ -46,72 +45,72 @@ jQuery(document).ready(function($) {
46
  $('.ajax-load-more-wrap.core').removeClass('fading-circles');
47
  $('.ajax-load-more-wrap.core').removeClass('chasing-arrows');
48
  $('.ajax-load-more-wrap.core').addClass(color);
49
-
50
  });
51
  $("select#alm_settings_btn_color").click(function(e){
52
  e.preventDefault();
53
  });
54
-
55
-
56
-
57
-
58
  $('.alm-template-listing li a').click(function(e){
59
  e.preventDefault();
60
  var el = $(this),
61
  val = el.data('path');
62
  el.parent().parent().next('.template-selection').val(val);
63
  });
64
-
65
  $('.alm-template-section-nav li a').click(function(e){
66
  e.preventDefault();
67
  var el = $(this),
68
  index = el.parent().index(),
69
  parent = el.parent().parent().parent('.repeater-wrap');
70
-
71
  if(!el.hasClass('active')){
72
  el.parent().addClass('active').siblings().removeClass('active');
73
  $('.alm-template-toggle', parent).hide()
74
  $('.alm-template-toggle', parent).eq(index).show();
75
  }
76
- });
77
-
78
-
79
-
80
  /*
81
  * _alm.copyToClipboard
82
  * Copy shortcode to clipboard
83
  *
84
  * @since 2.0.0
85
- */
86
-
87
  _alm.copyToClipboard = function(text) {
88
  window.prompt ("Copy link to your clipboard: Press Ctrl + C then hit Enter to copy.", text);
89
  }
90
-
91
  // Copy link on shortcode builder
92
  $('.output-wrap .copy').click(function(){
93
  var c = $('#shortcode_output').html();
94
  _alm.copyToClipboard(c);
95
  });
96
-
97
  // Copy link on repeater templates
98
  $('.alm-dropdown .copy a').click(function(){
99
  var container = $(this).closest('.repeater-wrap'), // find closet wrap
100
  el = container.data('name'); // get template name
101
-
102
  if(el === 'default') el = 'template-default';
103
  var c = $('#'+el).val(); // Get textarea val()
104
  _alm.copyToClipboard(c);
105
  });
106
-
107
-
108
-
109
  /*
110
  * Expand/Collapse shortcode headings
111
  *
112
  * @since 2.0.0
113
- */
114
-
115
  $(document).on('click', 'h3.heading', function(){
116
  var el = $(this);
117
  if($(el).hasClass('open')){
@@ -124,9 +123,10 @@ jQuery(document).ready(function($) {
124
  });
125
  }
126
  });
127
-
128
  $(document).on('click', '.toggle-all', function(){
129
- var el = $(this);
 
130
  if($(el).hasClass('closed')){
131
  $(el).removeClass('closed');
132
  $('h3.heading').removeClass('open');
@@ -137,16 +137,16 @@ jQuery(document).ready(function($) {
137
  $('.expand-wrap').slideUp(100, 'alm_easeInOutQuad');
138
  }
139
  });
140
-
141
-
142
  /*
143
  * Activate License
144
  *
145
  * @since 2.8.3
146
- */
147
-
148
  var almActivating = false;
149
- $(document).on('click', '.license-btn', function(e){
150
  e.preventDefault();
151
  if(!almActivating){
152
  $('.license-btn-wrap .msg').remove();
@@ -161,15 +161,15 @@ jQuery(document).ready(function($) {
161
  status = wrap.data('option-status'),
162
  key = wrap.data('option-key'),
163
  license = parent.find('input[type=text]').val();
164
-
165
  $('.loading', parent).fadeIn(300);
166
-
167
  // Get value from Ajax
168
  $.ajax({
169
  type: 'GET',
170
  url: alm_admin_localize.ajax_admin_url,
171
  dataType: 'json',
172
-
173
  data: {
174
  action: 'alm_license_activation',
175
  nonce: alm_admin_localize.alm_admin_nonce,
@@ -177,37 +177,37 @@ jQuery(document).ready(function($) {
177
  item: item,
178
  status: status,
179
  url: url,
180
- upgrade: upgrade,
181
  key: key,
182
  license: license,
183
  },
184
-
185
- success: function(data) {
186
-
187
  //console.log(data);
188
-
189
  if(data['msg']){
190
  $('.license-btn-wrap', parent).append('<div class="msg">'+data['msg']+'</div>');
191
  }
192
-
193
  if(data['license'] === 'valid'){
194
  $('.license-key-field .status', parent).addClass('active').removeClass('inactive').text(alm_admin_localize.active);
195
  $('.license-title .status', parent).addClass('valid').removeClass('invalid');
196
  $('.activate.license-btn', parent).addClass('hide');
197
  $('.deactivate.license-btn', parent).removeClass('hide');
198
  $('.no-license', parent).slideUp(200);
199
-
200
  }else{
201
  $('.license-key-field .status', parent).removeClass('active').addClass('inactive').text(alm_admin_localize.inactive);
202
- $('.license-title .status', parent).removeClass('valid').addClass('invalid');
203
  $('.activate.license-btn', parent).removeClass('hide');
204
  $('.deactivate.license-btn', parent).addClass('hide');
205
- $('.no-license', parent).slideDown(200);
206
  }
207
-
208
  $('.loading', parent).delay(250).fadeOut(300);
209
  almActivating = false;
210
-
211
  },
212
  error: function(xhr, status, error) {
213
  console.log(status);
@@ -216,16 +216,16 @@ jQuery(document).ready(function($) {
216
  }
217
  });
218
  }
219
-
220
  });
221
-
222
-
223
-
224
  /*
225
  * Get layout value Ajax
226
  *
227
  * @since 2.8.7
228
- */
229
  $(document).on('click', '.alm-layout-selection li a.layout', function(e){
230
  e.preventDefault();
231
  var el = $(this),
@@ -234,20 +234,20 @@ jQuery(document).ready(function($) {
234
  textarea = el.closest('.repeater-wrap').find('.CodeMirror'),
235
  layout_btn_text = el.html(),
236
  name = el.closest('.repeater-wrap').data('name');
237
-
238
  if(!el.hasClass('updating')){
239
-
240
  el.addClass('updating').text(alm_admin_localize.applying_layout+"...");
241
  textarea.addClass('loading');
242
-
243
  // Get editor ID
244
- var eid = '';
245
- if(name === 'default'){ // Default Template
246
- eid = window['editorDefault'];
247
- }else{ // Repeater Templates
248
- eid = window['editor_'+name]; // Set editor ID
249
  }
250
-
251
  // Get value from Ajax
252
  $.ajax({
253
  type: 'GET',
@@ -259,21 +259,21 @@ jQuery(document).ready(function($) {
259
  nonce : alm_admin_localize.alm_admin_nonce,
260
  },
261
  dataType : "JSON",
262
- success: function(data) {
263
-
264
  eid.setValue(data.value);
265
-
266
- // Clear button styles
267
- setTimeout(function() {
268
- el.text(alm_admin_localize.template_updated).blur();
269
- setTimeout(function() {
270
  el.removeClass('updating').html(layout_btn_text).blur(); // CLose drop menu
271
- el.closest('.alm-drop-btn').trigger('click');
272
- textarea.removeClass('loading');
273
- }, 400);
274
  }, 400);
275
-
276
-
277
  },
278
  error: function(xhr, status, error) {
279
  console.log(status);
@@ -281,20 +281,20 @@ jQuery(document).ready(function($) {
281
  }
282
  });
283
  }
284
-
285
  });
286
-
287
-
288
-
289
  /*
290
  * Dismiss Sharing (Transient)
291
  *
292
  * @since 2.8.7
293
- */
294
  $(document).on('click', '#alm_dismiss_sharing', function(e){
295
- e.preventDefault();
296
  var el = $(this),
297
- container = el.parent('.group');
298
  // Get value from Ajax
299
  $.ajax({
300
  type: 'POST',
@@ -303,46 +303,46 @@ jQuery(document).ready(function($) {
303
  action: 'alm_dismiss_sharing',
304
  nonce: alm_admin_localize.alm_admin_nonce,
305
  },
306
- success: function(data) {
307
  container.fadeOut();
308
  },
309
  error: function(xhr, status, error) {
310
  console.log(status);
311
  }
312
  });
313
-
314
  });
315
 
316
-
317
-
318
-
319
  /*
320
  * Scroll to setting section
321
  *
322
  * @since 2.7.3
323
- */
324
-
325
  $(document).on('change', '#alm-settings-nav', function(e){
326
  e.preventDefault();
327
  var el = $(this),
328
- index = el.val();
329
- if(index !== '#'){
330
- $('html, body').animate({
331
- scrollTop: $("#alm_OptionsForm h2").eq(index).offset().top - 40
332
- }, 500);
333
- }
334
-
335
-
336
  });
337
-
338
-
339
-
340
  /*
341
  * equalheight()
342
  *
343
  * @since 2.7.3
344
- */
345
-
346
  function equalheight(container){
347
 
348
  var currentTallest = 0,
@@ -351,11 +351,11 @@ jQuery(document).ready(function($) {
351
  $el,
352
  topPosition = 0;
353
  $(container).each(function() {
354
-
355
  $el = $(this);
356
  $($el).height('auto')
357
  topPosition = $el.position().top;
358
-
359
  if (currentRowStart != topPosition) {
360
  for (var currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) {
361
  rowDivs[currentDiv].height(currentTallest);
@@ -377,14 +377,14 @@ jQuery(document).ready(function($) {
377
  var addOnColumns = $('#alm-add-ons .group .expand-wrap');
378
  $(window).load(function() {
379
  equalheight(addOnColumns);
380
- });
381
  $(window).resize(function() {
382
- setTimeout(function(){
383
- equalheight(addOnColumns);
384
- }, 500);
385
  });
386
  }
387
 
388
-
389
-
390
- });
1
  var _alm = _alm || {};
2
 
3
  jQuery(document).ready(function($) {
4
+ "use strict";
5
+
6
+
 
7
  /*
8
  * Tooltipster
9
  * http://iamceege.github.io/tooltipster/
10
  *
11
  * @since 2.8.4
12
+ */
13
+
14
  $('.tooltip').tooltipster({
15
  delay: 100,
16
  speed: 175,
17
  maxWidth: 400
18
  });
19
+
20
+
21
+
22
+
23
  /*
24
  * Button preview pane
25
  * Found on Settings and Shortcode Builder
26
  *
27
  * @since 2.8.4
28
+ */
29
+
30
  $("select#alm_settings_btn_color").change(function() {
31
  var color = jQuery(this).val();
32
  // Remove other colors
45
  $('.ajax-load-more-wrap.core').removeClass('fading-circles');
46
  $('.ajax-load-more-wrap.core').removeClass('chasing-arrows');
47
  $('.ajax-load-more-wrap.core').addClass(color);
48
+
49
  });
50
  $("select#alm_settings_btn_color").click(function(e){
51
  e.preventDefault();
52
  });
53
+
54
+
55
+
56
+
57
  $('.alm-template-listing li a').click(function(e){
58
  e.preventDefault();
59
  var el = $(this),
60
  val = el.data('path');
61
  el.parent().parent().next('.template-selection').val(val);
62
  });
63
+
64
  $('.alm-template-section-nav li a').click(function(e){
65
  e.preventDefault();
66
  var el = $(this),
67
  index = el.parent().index(),
68
  parent = el.parent().parent().parent('.repeater-wrap');
69
+
70
  if(!el.hasClass('active')){
71
  el.parent().addClass('active').siblings().removeClass('active');
72
  $('.alm-template-toggle', parent).hide()
73
  $('.alm-template-toggle', parent).eq(index).show();
74
  }
75
+ });
76
+
77
+
78
+
79
  /*
80
  * _alm.copyToClipboard
81
  * Copy shortcode to clipboard
82
  *
83
  * @since 2.0.0
84
+ */
85
+
86
  _alm.copyToClipboard = function(text) {
87
  window.prompt ("Copy link to your clipboard: Press Ctrl + C then hit Enter to copy.", text);
88
  }
89
+
90
  // Copy link on shortcode builder
91
  $('.output-wrap .copy').click(function(){
92
  var c = $('#shortcode_output').html();
93
  _alm.copyToClipboard(c);
94
  });
95
+
96
  // Copy link on repeater templates
97
  $('.alm-dropdown .copy a').click(function(){
98
  var container = $(this).closest('.repeater-wrap'), // find closet wrap
99
  el = container.data('name'); // get template name
100
+
101
  if(el === 'default') el = 'template-default';
102
  var c = $('#'+el).val(); // Get textarea val()
103
  _alm.copyToClipboard(c);
104
  });
105
+
106
+
107
+
108
  /*
109
  * Expand/Collapse shortcode headings
110
  *
111
  * @since 2.0.0
112
+ */
113
+
114
  $(document).on('click', 'h3.heading', function(){
115
  var el = $(this);
116
  if($(el).hasClass('open')){
123
  });
124
  }
125
  });
126
+
127
  $(document).on('click', '.toggle-all', function(){
128
+ var el = $(this),
129
+ type = el.data('id');
130
  if($(el).hasClass('closed')){
131
  $(el).removeClass('closed');
132
  $('h3.heading').removeClass('open');
137
  $('.expand-wrap').slideUp(100, 'alm_easeInOutQuad');
138
  }
139
  });
140
+
141
+
142
  /*
143
  * Activate License
144
  *
145
  * @since 2.8.3
146
+ */
147
+
148
  var almActivating = false;
149
+ $(document).on('click', '.license-btn', function(e){
150
  e.preventDefault();
151
  if(!almActivating){
152
  $('.license-btn-wrap .msg').remove();
161
  status = wrap.data('option-status'),
162
  key = wrap.data('option-key'),
163
  license = parent.find('input[type=text]').val();
164
+
165
  $('.loading', parent).fadeIn(300);
166
+
167
  // Get value from Ajax
168
  $.ajax({
169
  type: 'GET',
170
  url: alm_admin_localize.ajax_admin_url,
171
  dataType: 'json',
172
+
173
  data: {
174
  action: 'alm_license_activation',
175
  nonce: alm_admin_localize.alm_admin_nonce,
177
  item: item,
178
  status: status,
179
  url: url,
180
+ upgrade: upgrade,
181
  key: key,
182
  license: license,
183
  },
184
+
185
+ success: function(data) {
186
+
187
  //console.log(data);
188
+
189
  if(data['msg']){
190
  $('.license-btn-wrap', parent).append('<div class="msg">'+data['msg']+'</div>');
191
  }
192
+
193
  if(data['license'] === 'valid'){
194
  $('.license-key-field .status', parent).addClass('active').removeClass('inactive').text(alm_admin_localize.active);
195
  $('.license-title .status', parent).addClass('valid').removeClass('invalid');
196
  $('.activate.license-btn', parent).addClass('hide');
197
  $('.deactivate.license-btn', parent).removeClass('hide');
198
  $('.no-license', parent).slideUp(200);
199
+
200
  }else{
201
  $('.license-key-field .status', parent).removeClass('active').addClass('inactive').text(alm_admin_localize.inactive);
202
+ $('.license-title .status', parent).removeClass('valid').addClass('invalid');
203
  $('.activate.license-btn', parent).removeClass('hide');
204
  $('.deactivate.license-btn', parent).addClass('hide');
205
+ $('.no-license', parent).slideDown(200);
206
  }
207
+
208
  $('.loading', parent).delay(250).fadeOut(300);
209
  almActivating = false;
210
+
211
  },
212
  error: function(xhr, status, error) {
213
  console.log(status);
216
  }
217
  });
218
  }
219
+
220
  });
221
+
222
+
223
+
224
  /*
225
  * Get layout value Ajax
226
  *
227
  * @since 2.8.7
228
+ */
229
  $(document).on('click', '.alm-layout-selection li a.layout', function(e){
230
  e.preventDefault();
231
  var el = $(this),
234
  textarea = el.closest('.repeater-wrap').find('.CodeMirror'),
235
  layout_btn_text = el.html(),
236
  name = el.closest('.repeater-wrap').data('name');
237
+
238
  if(!el.hasClass('updating')){
239
+
240
  el.addClass('updating').text(alm_admin_localize.applying_layout+"...");
241
  textarea.addClass('loading');
242
+
243
  // Get editor ID
244
+ var eid = '';
245
+ if(name === 'default'){ // Default Template
246
+ eid = window['editorDefault'];
247
+ }else{ // Repeater Templates
248
+ eid = window['editor_'+name]; // Set editor ID
249
  }
250
+
251
  // Get value from Ajax
252
  $.ajax({
253
  type: 'GET',
259
  nonce : alm_admin_localize.alm_admin_nonce,
260
  },
261
  dataType : "JSON",
262
+ success: function(data) {
263
+
264
  eid.setValue(data.value);
265
+
266
+ // Clear button styles
267
+ setTimeout(function() {
268
+ el.text(alm_admin_localize.template_updated).blur();
269
+ setTimeout(function() {
270
  el.removeClass('updating').html(layout_btn_text).blur(); // CLose drop menu
271
+ el.closest('.alm-drop-btn').trigger('click');
272
+ textarea.removeClass('loading');
273
+ }, 400);
274
  }, 400);
275
+
276
+
277
  },
278
  error: function(xhr, status, error) {
279
  console.log(status);
281
  }
282
  });
283
  }
284
+
285
  });
286
+
287
+
288
+
289
  /*
290
  * Dismiss Sharing (Transient)
291
  *
292
  * @since 2.8.7
293
+ */
294
  $(document).on('click', '#alm_dismiss_sharing', function(e){
295
+ e.preventDefault();
296
  var el = $(this),
297
+ container = el.parent('.group');
298
  // Get value from Ajax
299
  $.ajax({
300
  type: 'POST',
303
  action: 'alm_dismiss_sharing',
304
  nonce: alm_admin_localize.alm_admin_nonce,
305
  },
306
+ success: function(data) {
307
  container.fadeOut();
308
  },
309
  error: function(xhr, status, error) {
310
  console.log(status);
311
  }
312
  });
313
+
314
  });
315
 
316
+
317
+
318
+
319
  /*
320
  * Scroll to setting section
321
  *
322
  * @since 2.7.3
323
+ */
324
+
325
  $(document).on('change', '#alm-settings-nav', function(e){
326
  e.preventDefault();
327
  var el = $(this),
328
+ index = el.val();
329
+
330
+ if(index !== '#'){
331
+ $('html, body').animate({
332
+ scrollTop: $("#alm_OptionsForm h2").eq(index).offset().top - 40
333
+ }, 500);
334
+ }
335
+
336
  });
337
+
338
+
339
+
340
  /*
341
  * equalheight()
342
  *
343
  * @since 2.7.3
344
+ */
345
+
346
  function equalheight(container){
347
 
348
  var currentTallest = 0,
351
  $el,
352
  topPosition = 0;
353
  $(container).each(function() {
354
+
355
  $el = $(this);
356
  $($el).height('auto')
357
  topPosition = $el.position().top;
358
+
359
  if (currentRowStart != topPosition) {
360
  for (var currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) {
361
  rowDivs[currentDiv].height(currentTallest);
377
  var addOnColumns = $('#alm-add-ons .group .expand-wrap');
378
  $(window).load(function() {
379
  equalheight(addOnColumns);
380
+ });
381
  $(window).resize(function() {
382
+ setTimeout(function(){
383
+ equalheight(addOnColumns);
384
+ }, 500);
385
  });
386
  }
387
 
388
+
389
+
390
+ });
admin/shortcode-builder/js/shortcode-builder.js CHANGED
@@ -1,133 +1,133 @@
1
  jQuery(document).ready(function($) {
2
- "use strict";
3
-
4
  var _alm = {},
5
  output_div = $('#shortcode_output'),
6
- output = '[ajax_load_more]';
7
-
8
- output_div.text(output); //Init the shortcode output
9
-
10
-
11
-
12
  /*
13
  * _alm.select2
14
  * Init Select2 select replacement
15
  *
16
  * @since 2.5.0
17
- */
18
  _alm.select2 = function(){
19
  // Default Select2
20
- $('.row select, .cnkt-main select, select.jump-menu').not('.multiple, .meta-compare, .meta-type').select2({});
21
-
22
  // multiple
23
  $('.ajax-load-more .categories select.multiple').select2({
24
  placeholder : '-- '+ alm_admin_localize.select_cats +' --',
25
- });
26
  $('.ajax-load-more .tags select.multiple').select2({
27
- placeholder : '-- '+ alm_admin_localize.select_tags +' --'
28
- });
29
  $('.ajax-load-more .authors select.multiple').select2({
30
- placeholder : '-- '+ alm_admin_localize.select_authors +' --'
31
  });
32
  };
33
  _alm.select2();
34
-
35
-
36
-
37
  // Reset all selects
38
  _alm.reset_select2 = function(){
39
  // Default Select2
40
- $('.row select, .cnkt-main select, select.jump-menu').not('.multiple').select2();
41
-
42
  // multiple
43
- $('.ajax-load-more .categories select.multiple').select2();
44
- $('.ajax-load-more .tags select.multiple').select2();
45
  $('.ajax-load-more .authors select.multiple').select2();
46
- };
47
-
48
-
49
-
50
- //
51
  var total_tax_query = 0,
52
  max_tax_query = 2;
53
  $('#add-tax-query').on('click', function(e){
54
  e.preventDefault();
55
-
56
  if(total_tax_query < 2){
57
  total_tax_query++;
58
  $('#tax-query-relation').fadeIn(250);
59
  $('.ajax-load-more .taxonomy-wrap').eq(total_tax_query - 1).fadeIn(250);
60
-
61
  if(total_tax_query === 2){ // Hide "Add" button if 3 $('.taxonomy-wrap')
62
- $('#alm-taxonomy .controls button').addClass('disabled');
63
  }
64
-
65
  }else{
66
  alert("Sorry - maximum of 3 tax_query objects.");
67
  return false;
68
  }
69
-
70
- });
71
-
72
  /* Delete Tax Query */
73
  $(document).on('click', '.remove-tax-query', function(e){
74
  var el = $(this),
75
  parent = el.parent('.taxonomy-wrap');
76
-
77
  $('select', parent).select2('val', '').trigger('change');
78
  total_tax_query--;
79
  parent.addClass('removing');
80
- parent.fadeOut(250, function(){
81
- _alm.buildShortcode();
82
- parent.removeClass('removing');
83
- });
84
-
85
  if(total_tax_query < 2){ // Show "Add" button if less than 3
86
- $('#alm-taxonomy .controls button').removeClass('disabled');
87
  }
88
-
89
  if(total_tax_query == 0){
90
- $('#tax-query-relation').fadeOut(250);
91
  }
92
-
93
  });
94
-
95
-
96
-
97
-
98
  // Add additional meta_query
99
  var meta_query_obj = $('.meta-query-wrap').eq(0).clone();
100
  $('.meta-query-wrap .remove').remove();
101
  $('select.meta-compare, select.meta-type').select2();
102
  $('#add-meta-query').on('click', function(e){
103
  e.preventDefault();
104
-
105
  if($('.meta-query-wrap').length > 3){
106
  alert("Sorry - maximum of 4 meta_query objects.");
107
  return false;
108
  }
109
-
110
  var target = $('#meta-query-extended');
111
  $('input, select', meta_query_obj).val('');
112
- var el = meta_query_obj.clone().hide();
113
  target.append(el);
114
  el.fadeIn(250);
115
  $('#meta-query-extended select').select2();
116
-
117
  if($('.meta-query-wrap').length > 1){
118
  $('#meta-query-relation').fadeIn(250);
119
  }else{
120
- $('#meta-query-relation').fadeOut(250);
121
  }
122
-
123
  $('select.meta-compare').select2();
124
-
125
  if($('.meta-query-wrap').length > 3){ // Hide "Add" button if 4 $('.meta-query-wrap')
126
- $('#alm-meta-key .controls button').addClass('disabled');
127
  }
128
-
129
- });
130
-
131
  /* Delete Meta Query */
132
  $(document).on('click', '.remove-meta-query', function(e){
133
  var el = $(this);
@@ -136,588 +136,588 @@ jQuery(document).ready(function($) {
136
  el.parent('.meta-query-wrap').remove();
137
  _alm.buildShortcode();
138
  });
139
-
140
  if($('.meta-query-wrap').length > 3){ // Show "Add" button if less than 4 $('.meta-query-wrap')
141
- $('#alm-meta-key .controls button').removeClass('disabled');
142
  }
143
-
144
  });
145
-
146
-
147
-
148
-
149
  /*
150
  * _alm.buildShortcode
151
  * Loop sections and build the shortcode
152
  *
153
  * @since 1.0
154
- */
155
 
156
  _alm.buildShortcode = function(){
157
- output = '[ajax_load_more';
158
-
159
-
160
  // ---------------------------
161
- // - ID
162
  // ---------------------------
163
-
164
- var unique_id = $('input#unique-id').val();
165
  if(unique_id)
166
- output += ' id="'+unique_id+'"';
167
-
168
-
169
  // ---------------------------
170
- // - Container Type
171
  // ---------------------------
172
-
173
- var container_type = $('.container_type input[name=alm_container_type]:checked').val();
174
  if(container_type)
175
  output += ' container_type="'+container_type+'"';
176
-
177
-
178
- // ---------------------------
179
- // - Container Classes
180
- // ---------------------------
181
-
182
- var container_classes = $('.alm-instance-options input#container-classes').val();
183
- container_classes = $.trim(container_classes);
184
- if(container_classes !== '' && $('.alm-instance-options input#container-classes').hasClass('changed'))
185
- output += ' css_classes="'+container_classes+'"';
186
-
187
-
188
- // ---------------------------
189
- // - Advacned Custom Fields
190
- // ---------------------------
191
-
192
- var acf = $('#alm-acf input[name=acf]:checked').val();
193
-
194
- if(acf !== 'false' && acf != undefined){
195
-
196
-
197
  var acf_post_id = $('#acf_post_id').val(),
198
  acf_field_type = $('#acf_field_type').val(),
199
  acf_field_name = $('#acf_field_name').val();
200
-
201
  $('.acf-options').slideDown(150, 'alm_easeInOutQuad');
202
-
203
- if(acf_field_type !== '' && acf_field_name !== ''){
204
  output += ' acf="'+acf+'"';
205
  if(acf_post_id !== ''){
206
- output += ' acf_post_id="\'.'+ acf_post_id +'.\'"';
207
  }
208
- output += ' acf_field_type="'+ acf_field_type +'"';
209
- output += ' acf_field_name="'+ acf_field_name +'"';
210
- }
211
-
212
  }else{
213
  $('.acf-options').slideUp(150, 'alm_easeInOutQuad')
214
- }
215
-
216
-
217
- // ---------------------------
218
- // - Cache
219
- // ---------------------------
220
-
221
- var cache = $('#alm-cache input[name=cache]:checked').val();
222
  if(cache !== 'false' && cache != undefined){
223
  if($('input#cache-id').val() === '')
224
  _alm.generateUniqueID(10); // Generate unique ID on first load
225
-
226
  $('.cache_id').slideDown(150, 'alm_easeInOutQuad');
227
  output += ' cache="'+cache+'"';
228
- var cache_id = $('input#cache-id').val();
229
  if(cache_id)
230
- output += ' cache_id="'+cache_id+'"';
231
  }else{
232
  $('.cache_id').slideUp(150, 'alm_easeInOutQuad')
233
- }
234
-
235
-
236
  // ---------------------------
237
- // - Call to Actions
238
  // ---------------------------
239
-
240
  var cta_container = $('#alm-cta');
241
- var cta = $('input[name=cta]:checked', cta_container).val();
242
- var cta_position = $('input[name=cta-position]', cta_container).val();
243
  var cta_before_after = $('select[name=cta-before-after]', cta_container).val();
244
- var cta_repeater = $('select[name=cta-repeater-select]', cta_container).val();
245
- var cta_theme_repeater = $('select[name=theme-repeater-select]', cta_container).val();
246
-
247
- if(cta !== 'false' && cta != undefined){
248
- $('.cta_template_wrap').slideDown(150, 'alm_easeInOutQuad');
249
  // Standard repeater
250
  if(cta_repeater != '' && cta_repeater != undefined && cta_position != '' && cta_position != null){
251
- output += ' cta="'+cta+'"';
252
- output += ' cta_position="'+cta_before_after+':'+cta_position+'"';
253
- output += ' cta_repeater="'+cta_repeater+'"';
254
- }
255
  // Theme repeater
256
  if(cta_theme_repeater != '' && cta_theme_repeater != undefined && cta_position != '' && cta_position != null){
257
- output += ' cta="'+cta+'"';
258
- output += ' cta_position="'+cta_before_after+':'+cta_position+'"';
259
- output += ' cta_theme_repeater="'+cta_theme_repeater+'"';
260
- }
261
- $('#sequence-update').text(cta_position);
262
- $('#sequence-update-before-after').text(cta_before_after);
263
- }else{
264
- $('.cta_template_wrap').slideUp(150, 'alm_easeInOutQuad');
265
- }
266
-
267
-
268
- // ---------------------------
269
- // - Comments
270
- // ---------------------------
271
-
272
  var comments = $('#alm-comments input[name=comments]:checked').val();
273
- if(comments === undefined){
274
  comments = false;
275
- }
276
-
277
- if(comments === 'true'){
278
  var comments_post_id = $('#comments_post_id').val(),
279
  comments_per_page = $('#comments-per-page').val(),
280
- comments_type = $('#comments_type').val(),
281
  comments_template = $('#comments_template').val(),
282
  comments_callback = $('#comments_callback').val().trim(),
283
- comments_style = $('#alm-comments input[name=alm_comment_style]:checked').val();
284
-
285
  if(comments_callback !== ''){
286
  $('#comments_template').select2('val','none');
287
  }
288
-
289
- output += ' comments="'+comments+'"';
290
  output += ' comments_post_id="\'.'+comments_post_id+'.\'"';
291
-
292
  if(comments_type !== 'comment')
293
  output += ' comments_type="'+comments_type+'"';
294
-
295
  if(comments_per_page !== '5')
296
  output += ' comments_per_page="'+comments_per_page+'"';
297
-
298
- if(comments_style !== 'ol')
299
  output += ' comments_style="'+comments_style+'"';
300
-
301
- if(comments_template !== 'none')
302
- output += ' comments_template="'+comments_template+'"';
303
-
304
- if(comments_callback !== '')
305
- output += ' comments_callback="'+comments_callback+'"';
306
-
307
- $('.comments_extras').slideDown(150, 'alm_easeInOutQuad');
308
  }else{
309
  $('.comments_extras').slideUp(150, 'alm_easeInOutQuad');
310
  }
311
-
312
-
313
-
314
  // ---------------------------
315
- // - Next Page
316
  // ---------------------------
317
-
318
  var nextpage = $('.next-page input[name=next-page]:checked').val();
319
- if(nextpage !== 'false' && nextpage != undefined){
320
-
321
  var nextpage_post_id = $('#next-page_post_id').val(),
322
  nextpage_url = $('input#next-page-url:checked').val(),
323
  nextpage_pageviews = $('input#next-page-pageviews:checked').val(),
324
  nextpage_scrollspeed = $('input#next-page-scroll-speed').val(),
325
  nextpage_scrolltop = $('input#next-page-scroll-top').val();
326
-
327
  $('.next-page-content').slideDown(150, 'alm_easeInOutQuad');
328
-
329
- output += ' nextpage="'+nextpage+'"';
330
- output += ' nextpage_post_id="\'.'+nextpage_post_id+'.\'"';
331
-
332
  if(nextpage_url !== 'true'){
333
  output += ' nextpage_urls="false"';
334
  }
335
  if(nextpage_pageviews !== 'true'){
336
  output += ' nextpage_pageviews="false"';
337
  }
338
-
339
  if(!nextpage_scrollspeed.length) nextpage_scrollspeed = 250;
340
  if(!nextpage_scrolltop.length) nextpage_scrollspeed = 30;
341
-
342
  output += ' nextpage_scroll="'+ nextpage_scrollspeed +':'+ nextpage_scrolltop +'"';
343
-
344
-
345
  }else{
346
  $('.next-page-content').slideUp(150, 'alm_easeInOutQuad');
347
- }
348
-
349
-
350
-
351
- // ---------------------------
352
- // - Paging
353
- // ---------------------------
354
-
355
  var paging = $('#alm-paging input[name=paging]:checked').val();
356
- var paging_controls = $('#alm-paging input[name=paging-controls]:checked').val();
357
- var paging_show_at_most = $('#alm-paging input#show-at-most').val();
358
- var paging_classes = $('#alm-paging input#paging-classes').val();
359
- if(paging !== 'false' && paging != undefined){
360
- output += ' paging="'+paging+'"';
361
  output += ' paging_controls="'+paging_controls+'"';
362
- output += ' paging_show_at_most="'+paging_show_at_most+'"';
363
  if(paging_classes !== ''){
364
- output += ' paging_classes="'+paging_classes+'"';
365
- }
366
- $('#nav-controls').slideDown(150, 'alm_easeInOutQuad');
367
  }else{
368
  $('#nav-controls').slideUp(150, 'alm_easeInOutQuad');
369
- }
370
-
371
-
372
-
373
  // ---------------------------
374
- // - Preload
375
  // ---------------------------
376
-
377
  var seo = $('.seo input[name=seo]:checked').val();
378
- var preload = $('.preload input[name=preload]:checked').val();
379
  if(preload !== 'false' && preload != undefined){
380
-
381
  if(seo !== 'true')
382
  $('.preload_amount').slideDown(150, 'alm_easeInOutQuad');
383
-
384
  output += ' preloaded="'+preload+'"';
385
- var preload_amount = $('.preload input#preload-amount').val();
386
  if(preload_amount > 0 && preload_amount != 5)
387
- output += ' preloaded_amount="'+preload_amount+'"';
388
  }else{
389
  $('.preload_amount').slideUp(150, 'alm_easeInOutQuad');
390
- }
391
-
392
-
393
-
394
  // ---------------------------
395
- // - Previous Post
396
  // ---------------------------
397
-
398
  var previous = $('.previous-post input[name=prev-post]:checked').val();
399
- if(previous !== 'false' && previous != undefined){
400
-
401
  var prev_post_id = $('#prev_post_id').val(),
402
  previous_post_taxonomy = $('#pp-taxonomy-select').val();
403
  $('.prev_post_id').slideDown(150, 'alm_easeInOutQuad');
404
-
405
- output += ' previous_post="'+previous+'"';
406
- output += ' previous_post_id="\'.'+prev_post_id+'.\'"';
407
-
408
  if(previous_post_taxonomy !== '' )
409
- output += ' previous_post_taxonomy="'+previous_post_taxonomy+'"';
410
-
411
  }else{
412
  $('.prev_post_id').slideUp(150, 'alm_easeInOutQuad');
413
- }
414
-
415
-
416
-
417
- // ---------------------------
418
- // - REST API
419
- // ---------------------------
420
-
421
- var rest = $('#alm-rest input[name=rest]:checked').val();
422
- if(rest !== 'false' && rest != undefined){
423
  $('.restapi_options').slideDown(150, 'alm_easeInOutQuad');
424
- output += ' restapi="'+rest+'"';
425
-
426
  var restapi_base = $('#alm-rest input#rest-base').val().trim(),
427
  restapi_namespace = $('#alm-rest input#rest-namespace').val().trim(),
428
  restapi_endpoint = $('#alm-rest input#rest-endpoint').val().trim(),
429
  restapi_template_id = $('#alm-rest input#rest-template-id').val().trim(),
430
- restapi_debug = $('#alm-rest input[name=rest-debug]:checked').val().trim();
431
-
432
- if(restapi_base !== '')
433
- output += ' restapi_base="'+restapi_base+'"';
434
-
435
- if(restapi_namespace !== '')
436
- output += ' restapi_namespace="'+restapi_namespace+'"';
437
-
438
- if(restapi_endpoint !== '')
439
- output += ' restapi_endpoint="'+restapi_endpoint+'"';
440
-
441
  if(restapi_template_id !== ''){
442
- restapi_template_id = restapi_template_id.replace("tmpl-", ""); // Remove tmpl- if present in value
443
- output += ' restapi_template_id="'+restapi_template_id+'"';
444
  }
445
-
446
- if(restapi_debug !== '' && restapi_debug !== 'false')
447
- output += ' restapi_debug="'+restapi_debug+'"';
448
-
449
  }else{
450
  $('.restapi_options').slideUp(150, 'alm_easeInOutQuad')
451
- }
452
-
453
-
454
  // ---------------------------
455
- // - SEO
456
- // ---------------------------
457
-
458
  if(seo !== 'false' && seo != undefined){
459
  if(preload === 'true')
460
  $('.preload_amount').slideUp(150, 'alm_easeInOutQuad');
461
-
462
- output += ' seo="'+seo+'"';
463
  }
464
-
465
-
466
  // ---------------------------
467
  // - Repeater Templates
468
  // ---------------------------
469
-
470
  var repeater = $('#alm-repeaters select[name=repeater-select]').val(),
471
  theme_repeater = $('#alm-repeaters .select-theme-repeater select[name=theme-repeater-select]').val();
472
-
473
  if(theme_repeater != 'null' && theme_repeater != '' && theme_repeater != undefined){
474
  output += ' theme_repeater="'+theme_repeater+'"';
475
  }else{
476
  if(repeater != '' && repeater != undefined && repeater != 'default'){
477
- output += ' repeater="'+repeater+'"';
478
- }
479
- }
480
-
481
-
482
  // ---------------------------
483
  // - Post Types
484
  // ---------------------------
485
-
486
  if(comments === 'false' || comments === false || comments === undefined){ // Hide post_types if comments is active
487
-
488
  var post_type_count = 0,
489
  selected_post_type = '';
490
- $('ul.alm-post-type-list input[type=checkbox]').each(function(e){
491
  if($(this).is(":checked")) {
492
  post_type_count++;
493
  if(post_type_count>1){
494
  output += ', ' + $(this).data('type');
495
  }else{
496
  if($(this).hasClass('changed')){
497
- output += ' post_type="'+$(this).data('type')+'';
498
- }
499
  }
500
  selected_post_type = $(this).data('type');
501
  }
502
- });
503
- if(post_type_count>0){
504
  output += '"';
505
- }
506
- }
507
-
508
-
509
  // ---------------------------
510
- // - Sticky Posts
511
  // ---------------------------
512
-
513
  if(selected_post_type !== 'post'){
514
  $('.sticky-wrap').slideUp(150, 'alm_easeInOutQuad');
515
  $('input[name=alm_sticky_posts]').prop('checked', false);
516
- }else{
517
  $('.sticky-wrap').slideDown(150, 'alm_easeInOutQuad');
518
  }
519
-
520
- var sticky_posts = $('input[name=alm_sticky_posts]:checked').val();
521
  if(sticky_posts && selected_post_type === 'post')
522
  output += ' sticky_posts="'+sticky_posts+'"';
523
-
524
-
525
  // ---------------------------
526
- // - Posts Per Page
527
  // ---------------------------
528
-
529
- var posts_per_page = $('.posts_per_page input').val();
530
  if(posts_per_page > 0 && posts_per_page != 5)
531
- output += ' posts_per_page="'+posts_per_page+'"';
532
-
533
-
534
  // ---------------------------
535
  // - Post Format
536
  // ---------------------------
537
-
538
- var post_format = $('.post_format select').val();
539
- if(post_format != '' && post_format != undefined)
540
  output += ' post_format="'+post_format+'"';
541
-
542
-
543
  // ---------------------------
544
- // - Categories
545
  // ---------------------------
546
-
547
  // IN
548
- var cat = $('.categories #category-select').val();
549
- if(cat !== '' && cat !== undefined && cat !== null)
550
- output += ' category="'+cat+'"';
551
-
552
  // NOT_IN
553
- var cat_not_in = $('.categories #category-exclude-select').val();
554
- if(cat_not_in !== '' && cat_not_in !== undefined && cat_not_in !== null)
555
  output += ' category__not_in="'+cat_not_in+'"';
556
-
557
-
558
  // ---------------------------
559
- // - Tags
560
  // ---------------------------
561
-
562
  var tag = $('.tags #tag-select').val();
563
- if(tag !== '' && tag !== undefined && tag !== null)
564
- output += ' tag="'+tag+'"';
565
-
566
  // NOT_IN
567
- var tag_not_in = $('.tags #tag-exclude-select').val();
568
- if(tag_not_in !== '' && tag_not_in !== undefined && tag_not_in !== null)
569
  output += ' tag__not_in="'+tag_not_in+'"';
570
-
571
-
572
-
573
  // ---------------------------
574
- // - Taxonomy Query
575
  // ---------------------------
576
-
577
  var tax1 = $.trim($('select#taxonomy-select').val()),
578
  tax_operator1 = $.trim($('#tax-operator-select input[name=tax-operator]:checked').val()),
579
  tax2 = $.trim($('select#taxonomy-select2').val()),
580
  tax_operator2 = $.trim($('#tax-operator-select2 input[name=tax-operator2]:checked').val()),
581
  tax3 = $.trim($('select#taxonomy-select3').val()),
582
  tax_operator3 = $.trim($('#tax-operator-select3 input[name=tax-operator3]:checked').val()),
583
- tax_relation = $.trim($('#tax-query-relation select[name=tax-relation]').val());
584
-
585
  var parent1 = $('select#taxonomy-select').parent('.taxonomy'),
586
  parent2 = $('select#taxonomy-select2').parent('.taxonomy'),
587
- parent3 = $('select#taxonomy-select3').parent('.taxonomy');
588
-
589
  var has_tax1 = false,
590
- taxonomy1_terms = '';
591
- if(tax1 !== '' && tax1 !== undefined){
592
-
593
  has_tax1 = true;
594
  if($('select#taxonomy-select').hasClass('changed')){
595
- $('select#taxonomy-select').parent()
596
  $('.taxonomy-extended', parent1).fadeIn(150, 'alm_easeInOutQuad');
597
  get_tax_terms(tax1, parent1, '1');
598
  $('select#taxonomy-select').removeClass('changed');
599
  }
600
-
601
  var tax_term_count1 = 0;
602
- $('#tax-terms-container1 input[type=checkbox]').each(function(e){
603
  if($(this).is(":checked")) {
604
  tax_term_count1++;
605
  if(tax_term_count1 > 1){
606
  taxonomy1_terms += ', ' + $(this).data('type');
607
  }else{
608
  if($('#tax-terms-container1 input').hasClass('changed'))
609
- taxonomy1_terms += $(this).data('type');
610
  }
611
  }
612
- });
613
  }
614
  else{
615
  $('.taxonomy-extended', parent1).fadeOut(150, 'alm_easeInOutQuad');
616
  }
617
-
618
-
619
  var has_tax2 = false,
620
- taxonomy2_terms = '';
621
- if(tax2 !== '' && tax2 !== undefined){
622
-
623
  has_tax2 = true;
624
  if($('select#taxonomy-select2').hasClass('changed')){
625
- $('select#taxonomy-select2').parent()
626
  $('.taxonomy-extended', parent2).fadeIn(200, 'alm_easeInOutQuad');
627
  get_tax_terms(tax2, parent2, '2');
628
  $('select#taxonomy-select2').removeClass('changed');
629
  }
630
-
631
  var tax_term_count2 = 0;
632
- $('#tax-terms-container2 input[type=checkbox]').each(function(e){
633
  if($(this).is(":checked")) {
634
  tax_term_count2++;
635
  if(tax_term_count2 > 1){
636
  taxonomy2_terms += ', ' + $(this).data('type');
637
  }else{
638
  if($('#tax-terms-container2 input').hasClass('changed'))
639
- taxonomy2_terms += $(this).data('type');
640
  }
641
  }
642
- });
643
  }
644
  else{
645
  $('.taxonomy-extended', parent2).fadeOut(150, 'alm_easeInOutQuad');
646
  }
647
-
648
-
649
  var has_tax3,
650
- taxonomy3_terms = '';
651
- if(tax3 !== '' && tax3 !== undefined){
652
-
653
  has_tax3 = true;
654
  if($('select#taxonomy-select3').hasClass('changed')){
655
- $('select#taxonomy-select3').parent()
656
  $('.taxonomy-extended', parent3).fadeIn(200, 'alm_easeInOutQuad');
657
  get_tax_terms(tax3, parent3, '3');
658
  $('select#taxonomy-select3').removeClass('changed');
659
  }
660
-
661
  var tax_term_count3 = 0;
662
- $('#tax-terms-container3 input[type=checkbox]').each(function(e){
663
  if($(this).is(":checked")) {
664
  tax_term_count3++;
665
  if(tax_term_count3 > 1){
666
  taxonomy3_terms += ', ' + $(this).data('type');
667
  }else{
668
  if($('#tax-terms-container3 input').hasClass('changed'))
669
- taxonomy3_terms += $(this).data('type');
670
  }
671
  }
672
- });
673
  }
674
  else{
675
  $('.taxonomy-extended', parent3).fadeOut(150, 'alm_easeInOutQuad');
676
- }
677
-
678
-
679
  if(has_tax1 && !has_tax2 && !has_tax3){
680
- output += ' taxonomy="'+tax1+'"';
681
- output += ' taxonomy_terms="'+taxonomy1_terms+'"';
682
- output += ' taxonomy_operator="'+tax_operator1+'"';
683
  }
684
  if(has_tax1 && has_tax2 && !has_tax3){
685
- output += ' taxonomy="'+tax1+':'+tax2+'"';
686
- output += ' taxonomy_terms="'+taxonomy1_terms+':'+taxonomy2_terms+'"';
687
- output += ' taxonomy_operator="'+tax_operator1+':'+tax_operator2+'"';
688
  if(tax_relation !== 'AND')
689
- output += ' taxonomy_relation="'+tax_relation;
690
  }
691
  if(has_tax1 && has_tax2 && has_tax3){
692
- output += ' taxonomy="'+tax1+':'+tax2+':'+tax3+'"';
693
- output += ' taxonomy_terms="'+taxonomy1_terms+':'+taxonomy2_terms+':'+taxonomy3_terms+'"';
694
- output += ' taxonomy_operator="'+tax_operator1+':'+tax_operator2+':'+tax_operator3+'"';
695
  if(tax_relation !== 'AND')
696
  output += ' taxonomy_relation="'+tax_relation;
697
  }
698
-
699
 
700
-
 
701
  // ---------------------------
702
- // - Date
703
  // ---------------------------
704
  var currentTime = new Date(),
705
  currentYear = currentTime.getFullYear();
706
-
707
- var dateY = $('.date input#input-year').val(); // Year
708
- if(dateY !== '' && dateY !== undefined && dateY <= currentYear)
709
- output += ' year="'+dateY+'"';
710
-
711
- var dateM = $('.date input#input-month').val(); // Month
712
- if(dateM !== '' && dateM !== undefined && dateM < 13)
713
- output += ' month="'+dateM+'"';
714
-
715
- var dateD = $('.date input#input-day').val(); // Day
716
- if(dateD !== '' && dateD !== undefined && dateD < 32)
717
- output += ' day="'+dateD+'"';
718
-
719
-
720
-
721
  // ---------------------------
722
  // - Custom Fields Meta Query
723
  // ---------------------------
@@ -726,303 +726,336 @@ jQuery(document).ready(function($) {
726
  meta_compare = $('.meta-query-wrap').eq(0).find('select.meta-compare').val(),
727
  meta_type = $('.meta-query-wrap').eq(0).find('select.meta-type').val(),
728
  meta_relation = $('select.meta-relation').val(),
729
- meta_query_length = $('.meta-query-wrap').length;
730
 
731
  // Set meta_compare default value
732
- if(meta_compare === '' || meta_compare == undefined)
733
- meta_compare = '=';
734
-
735
  // Set meta_type default value
736
- if(meta_type === '' || meta_type == undefined)
737
  meta_type = 'CHAR';
738
-
739
- // Single Meta_Query()
740
  if(meta_query_length === 1){
741
- if(meta_key !== '' && meta_key !== undefined){
742
  output += ' meta_key="'+meta_key+'"';
743
  output += ' meta_value="'+meta_value+'"';
744
-
745
  if(meta_compare !== '='){
746
- output += ' meta_compare="'+meta_compare+'"';
747
  }
748
-
749
  if(meta_type !== 'CHAR'){
750
- output += ' meta_type="'+meta_type+'"';
751
  }
752
  }
753
  }
754
  // Multiple Meta_Query()
755
  if(meta_query_length > 1){
756
- meta_key = '';
757
- meta_value = '';
758
- meta_compare = '';
759
- meta_type = '';
760
  $('.meta-query-wrap').each(function(e){
761
  var el = $(this),
762
  mk = $.trim(el.find('input.meta-key').val()),
763
  mv = $.trim(el.find('input.meta-value').val()),
764
  mc = $.trim(el.find('select.meta-compare').val()),
765
  mt = $.trim(el.find('select.meta-type').val());
766
-
767
- if(e === 0){ // first on first only
768
  meta_key += mk;
769
  meta_value += mv;
770
  meta_compare += mc;
771
  meta_type += mt;
772
- }else{
773
- if(mk.length > 0 && mv.length > 0){
774
  meta_key += ':'+ mk;
775
  meta_value += ':'+ mv;
776
  meta_compare += ':'+ mc;
777
  meta_type += ':'+ mt;
778
  }
779
  }
780
-
781
  });
782
  output += ' meta_key="'+meta_key+'"';
783
  output += ' meta_value="'+meta_value+'"';
784
  output += ' meta_compare="'+meta_compare+'"';
785
  output += ' meta_type="'+meta_type+'"';
786
-
787
  var isRelation = $('#meta-query-relation').css("display");
788
  if(meta_relation !== '' && meta_relation !== undefined && isRelation === 'block'){
789
  output += ' meta_relation="'+meta_relation+'"';
790
  }
791
-
792
  }else{
793
  $('#meta-query-relation').fadeOut(150);
794
  }
795
-
796
-
797
-
798
- // ---------------------------
799
- // - Authors
800
- // ---------------------------
801
-
802
- var author = $('.authors #author-select').val();
803
- if(author !== '' && author !== undefined && author !== null)
804
- output += ' author="'+author+'"';
805
-
806
-
807
- // ---------------------------
808
- // - Posts
809
- // ---------------------------
810
-
811
- var post__in = $('input#post__in').val();
812
- post__in = $.trim(post__in);
813
- if(post__in !== '')
814
- output += ' post__in="'+post__in+'"';
815
-
816
-
817
- // ---------------------------
818
- // - Exclude posts
819
- // ---------------------------
820
-
821
- var exclude = $('input#exclude-posts').val();
822
- exclude = $.trim(exclude);
823
  if(exclude !== ''){
824
  //Remove trailing comma, if present
825
  if(exclude.charAt( exclude.length-1 ) == ",") {
826
  exclude = exclude.slice(0, -1)
827
  }
828
- output += ' post__not_in="'+exclude+'"';
829
- }
830
-
831
-
832
  // ---------------------------
833
- // - Search
834
  // ---------------------------
835
-
836
- var search = $('.search-term input').val();
837
- search = $.trim(search);
838
- if(search !== '')
839
- output += ' search="'+search+'"';
840
-
841
-
842
  // ---------------------------
843
- // - Ordering
844
  // ---------------------------
845
  var order = $('select#post-order').val(),
846
- orderby = $('select#post-orderby').val();
847
- if(order !== 'DESC')
848
- output += ' order="'+order+'"';
849
- if(orderby !== 'date')
850
- output += ' orderby="'+orderby+'"';
851
-
852
-
853
- // ---------------------------
854
- // - Post Status
855
- // ---------------------------
856
- var post_status = $('select#post-status').val();
857
- if(post_status !== 'publish')
858
- output += ' post_status="'+post_status+'"';
859
-
860
-
861
- // ---------------------------
862
- // - Post Offset
863
- // ---------------------------
864
-
865
- var offset = $('.offset input').val();
866
- if(offset > 0)
867
- output += ' offset="'+offset+'"';
868
-
869
-
870
- // ---------------------------
871
- // - Custom Arguments
872
- // ---------------------------
873
-
874
- var custom_args = $('.custom-arguments input').val();
875
- custom_args = $.trim(custom_args);
876
- if(custom_args !== '')
877
- output += ' custom_args="'+custom_args+'"';
878
-
879
-
880
- // ---------------------------
881
- // - Pause Loading
882
- // ---------------------------
883
-
884
- var pause_load = $('.pause_load input[name=pause]:checked').val();
885
- if(pause_load === 't'){
886
- output += ' pause="true"';
887
- }
888
-
889
-
890
- // ---------------------------
891
- // - Scrolling
892
- // ---------------------------
893
-
894
- var scroll_load = $('.scroll_load input[name=scroll]:checked').val();
895
  if(scroll_load === 'f'){
896
  $('.max_pages, .scroll_distance, .pause_override').slideUp(150, 'alm_easeInOutQuad');
897
- if($('.scroll_load input').hasClass('changed'))
898
- output += ' scroll="false"';
899
  }else{
900
  $('.max_pages, .scroll_distance, .pause_override').slideDown(150, 'alm_easeInOutQuad');
901
-
902
- var scroll_distance = $('.scroll_distance input').val();
903
- if(scroll_distance != 150)
904
- output += ' scroll_distance="'+$('.scroll_distance input').val()+'"';
905
-
906
- var max_pages = $('.max_pages input').val();
907
- if(max_pages != 0)
908
- output += ' max_pages="'+$('.max_pages input').val()+'"';
909
-
910
- var pause_override = $('.pause_override input[name=pause_override]:checked').val();
911
- if(pause_override === 't' && pause_load === 't')
912
- output += ' pause_override="true"';
913
-
914
- }
915
-
916
-
917
- // ---------------------------
918
- // - transition
919
- // ---------------------------
920
-
921
- var transition = $('.transition input[name=transition]:checked').val();
922
  if(transition !== 'slide')
923
  output += ' transition="'+transition+'"';
924
-
925
- var transition_speed = $('.transition input[name=transition-speed]').val();
926
- if(transition_speed !== '250' && transition !== 'none')
927
- output += ' transition_speed="'+transition_speed+'"';
928
-
929
- var transition_container = $('.transition input[name=remove_container]:checked').val();
930
- if(transition_container === 'f' && seo !== 'true' && previous !== 'true')
931
- output += ' transition_container="false"';
932
-
933
-
934
- // ---------------------------
935
- // - Images loaded
936
- // ---------------------------
937
-
938
- var images_loaded = $('.images_loaded input[name=images_loaded]:checked').val();
939
- if(images_loaded === 't')
940
- output += ' images_loaded="true"';
941
-
942
-
943
- // ---------------------------
944
- // - Disable After
945
- // ---------------------------
946
-
947
- var destroy_after = $('.destroy-after input[name=destroy-after]').val();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
948
  if(destroy_after !== '' && destroy_after !== undefined && destroy_after !== '0')
949
  output += ' destroy_after="'+destroy_after+'"';
950
-
951
-
952
  // ---------------------------
953
- // - Button Label
954
  // ---------------------------
955
-
956
  var button_label = $('.btn-label input#button-label').val().trim(),
957
- button_loading_label = $('.btn-label input#button-loading-label').val().trim();
958
-
959
- if(button_label !== '' && button_label !== 'Older Posts')
960
- output += ' button_label="'+button_label+'"';
961
-
962
- if(button_loading_label !== '')
963
- output += ' button_loading_label="'+button_loading_label+'"';
964
-
965
-
966
- output += ']'; //Close shortcode
967
- output_div.text(output);
968
-
969
- if(output != '[ajax_load_more]')
970
  $('.reset-shortcode-builder').show();
971
- else
972
  $('.reset-shortcode-builder').hide();
973
- }
974
-
975
-
976
-
977
-
978
  /*
979
  * On change events
980
  *
981
  * @since 2.0.0
982
- */
983
-
984
  //Select 'post' by default
985
- $('.post_types input[type=checkbox]#chk-post').prop('checked', true).addClass('changed');
986
  //Select SEO 'false' by default
987
- $('.seo input[type=radio]#seo-false').prop('checked', true).addClass('changed');
988
-
989
-
990
- $(document).on('change keyup', '.alm_element', function() {
991
- var el = $(this);
992
- el.addClass('changed');
993
-
994
- // reset repeater templates
995
  if(el.attr('name') === 'repeater-select'){
996
  $('.select-theme-repeater select[name=theme-repeater-select]').select2('val','');
997
- }
998
  if(el.attr('name') === 'theme-repeater-select'){
999
  if($('.select-theme-repeater select[name=theme-repeater-select]').val() !== 'null' && $('.select-theme-repeater select[name=theme-repeater-select]').val() !== ''){
1000
  $('.repeater select[name=repeater-select]').select2('val','default');
1001
  }
1002
- }
1003
-
1004
  if(el.attr('id') === 'comments_template'){
1005
  $('#comments_callback').val('');
1006
- }
1007
 
1008
  // If post type is not selected, select 'post'.
1009
  if(!$('ul.alm-post-type-list input[type=checkbox]:checked').length > 0){
1010
  $('ul.alm-post-type-list input[type=checkbox]#chk-post').prop('checked', true);
1011
- }
1012
-
1013
  // If Tax Term Operator is not selected, select 'IN'.
1014
  if(!$('#tax-operator-select input[type=radio]:checked').length > 0){
1015
  $('#tax-operator-select input[type=radio]#tax-in-radio').prop('checked', true);
1016
- }
1017
-
1018
  _alm.buildShortcode();
1019
  });
1020
-
1021
-
1022
  $("input.numbers-only").keydown(function (e) {
1023
  if ($.inArray(e.keyCode, [188, 46, 8, 9, 27, 13, 110, 190]) !== -1 ||
1024
  // Allow: Ctrl+A
1025
- (e.keyCode == 65 && e.ctrlKey === true) ||
1026
  // Allow: home, end, left, right, down, up
1027
  (e.keyCode >= 35 && e.keyCode <= 40)) {
1028
  // let it happen, don't do anything
@@ -1033,22 +1066,22 @@ jQuery(document).ready(function($) {
1033
  if(e.keyCode !== 188){ // If keycode is not a comma
1034
  e.preventDefault();
1035
  }
1036
- }
1037
  });
1038
-
1039
-
1040
-
1041
-
1042
  /*
1043
  * Jump to section, Table of contents [Repeater Templates, Shortcode Builder]
1044
  *
1045
  * @since 2.0.0
1046
  * Updated v2.13.0
1047
- */
1048
-
1049
  var jumpMenuOptions = '';
1050
  function almBuildJumpMenu(type){
1051
-
1052
  if(type === 'repeaters'){
1053
  $('.row').each(function(){
1054
  if(!$(this).hasClass('no-brd')){ // Special case for back 2 top on shortcode builder landing
@@ -1058,8 +1091,8 @@ jQuery(document).ready(function($) {
1058
  }
1059
  });
1060
  }
1061
-
1062
- if(type === 'shortcode'){
1063
  $('.shortcode-parameter-wrap').each(function(){
1064
  var el = $(this),
1065
  opttitle = el.find('h2').text();
@@ -1071,10 +1104,10 @@ jQuery(document).ready(function($) {
1071
  jumpMenuOptions += '<option value="'+id+'">'+title+'</option>';
1072
  }
1073
  });
1074
- jumpMenuOptions += '</optgroup>';
1075
- });
1076
- }
1077
- }
1078
  if($('.shortcode-builder .shortcode-parameter-wrap').length){
1079
  almBuildJumpMenu('shortcode'); // shortcode builder
1080
  }
@@ -1088,12 +1121,12 @@ jQuery(document).ready(function($) {
1088
  }
1089
  almBuildJumpMenu('repeaters'); // repeater templates
1090
  }
1091
-
1092
-
1093
-
1094
-
1095
  /* Jump Menu */
1096
-
1097
  $('select.jump-menu').append(jumpMenuOptions);
1098
  $('select.jump-menu').change(function() {
1099
  var pos = $(this).val();
@@ -1103,20 +1136,20 @@ jQuery(document).ready(function($) {
1103
  }, 200, 'alm_easeInOutQuad');
1104
  }
1105
  });
1106
-
1107
-
1108
-
1109
-
1110
  /* Table of Contents */
1111
-
1112
  if($('.table-of-contents').hasClass('repeaters-toc')){
1113
- $('.table-of-contents .toc').append('<option value="#">-- '+ alm_admin_localize.jump_to_template +' --</option>');
1114
  } else {
1115
- $('.table-of-contents .toc').append('<option value="#">-- '+ alm_admin_localize.jump_to_option +' --</option>');
1116
  }
1117
-
1118
- $('.table-of-contents .toc').append(jumpMenuOptions).select2();
1119
-
1120
  $('.table-of-contents .toc').change(function() {
1121
  var pos = $(this).val();
1122
  if(pos !== 'null'){
@@ -1125,58 +1158,58 @@ jQuery(document).ready(function($) {
1125
  }, 500, 'alm_easeInOutQuad');
1126
  }
1127
  });
1128
-
1129
  /* Table of Contents - onResize */
1130
-
1131
- function almResizeTOC(){
1132
  var tocW = $('.cnkt-sidebar').width();
1133
- $('.table-of-contents').css('width', tocW + 'px');
1134
  }
1135
  almResizeTOC();
1136
-
1137
  $(window).resize(function() {
1138
- almResizeTOC()
1139
- });
1140
-
1141
-
1142
  /* Table of Contents - Sticky Sidebar */
1143
-
1144
  _alm.attachShare = function(el, anchor, sticky_top){
1145
-
1146
  var top = sticky_top, // sticky element top
1147
  h = el.height() + top, // height of sticky el
1148
  scrollTop = $(window).scrollTop(),
1149
  window_height = $(window).height(),
1150
  offset = anchor.offset().top,
1151
  el_height = el.outerHeight(),
1152
- container_height = el.outerHeight();
1153
-
1154
- if(container_height < window_height){
1155
- // If container height is larger than window
1156
  if(scrollTop > top) {
1157
- el.addClass('attached');
1158
- } else {
1159
  if(scrollTop <= (offset - top)) {
1160
  el.removeClass('attached').removeClass('hidden');
1161
- }
1162
- }
1163
- }
1164
  };
1165
-
1166
- if($('.table-of-contents').length){
1167
  var sticky_el = $('.table-of-contents'),
1168
  sticky_anchor = $(".cnkt-sidebar"),
1169
  sticky_top = 50;
1170
-
1171
  $(window).bind('resize scroll', function(){
1172
  _alm.attachShare(sticky_el, sticky_anchor, sticky_top);
1173
  });
1174
-
1175
- _alm.attachShare(sticky_el, sticky_anchor, sticky_top);
1176
  }
1177
-
1178
-
1179
-
1180
  /*
1181
  * get_tax_terms
1182
  * Get taxonomy terms via ajax
@@ -1186,7 +1219,7 @@ jQuery(document).ready(function($) {
1186
  function get_tax_terms(tax, parent, index){
1187
  var placement = $('.tax-terms-container', parent);
1188
  placement.html("<p class='loading'>Fetching Terms...</p>");
1189
-
1190
  $.ajax({
1191
  type: 'GET',
1192
  url: alm_admin_localize.ajax_admin_url,
@@ -1197,49 +1230,49 @@ jQuery(document).ready(function($) {
1197
  nonce: alm_admin_localize.alm_admin_nonce,
1198
  },
1199
  dataType: "html",
1200
- success: function(data) {
1201
- placement.html(data);
1202
  },
1203
  error: function(xhr, status, error) {
1204
  responseText.html('<p>Error - Something went wrong and the terms could not be retrieved.');
1205
  }
1206
  });
1207
  }
1208
-
1209
-
1210
-
1211
  /*
1212
  * _alm.alm_easeInOutQuad
1213
  * Ajax Load More easing
1214
  *
1215
  * @since 2.0.0
1216
- */
1217
-
1218
  $.easing.alm_easeInOutQuad = function (x, t, b, c, d) {
1219
  if ((t/=d/2) < 1) return c/2*t*t + b;
1220
  return -c/2 * ((--t)*(t-2) - 1) + b;
1221
  }
1222
-
1223
-
1224
-
1225
  /*
1226
  * _alm.SelectText
1227
  * Click to select text
1228
  *
1229
  * @since 2.0.0
1230
- */
1231
-
1232
  _alm.SelectText = function(element) {
1233
- var doc = document,
1234
- text = doc.getElementById(element),
1235
- range,
1236
- selection;
1237
  if (doc.body.createTextRange) {
1238
  range = document.body.createTextRange();
1239
  range.moveToElementText(text);
1240
  range.select();
1241
  } else if (window.getSelection) {
1242
- selection = window.getSelection();
1243
  range = document.createRange();
1244
  range.selectNodeContents(text);
1245
  selection.removeAllRanges();
@@ -1249,52 +1282,52 @@ jQuery(document).ready(function($) {
1249
  $('#shortcode_output').click(function() {
1250
  _alm.SelectText('shortcode_output');
1251
  });
1252
-
1253
-
1254
-
1255
  /*
1256
  * Reset shortcode builder
1257
  *
1258
  * @since 2.5.0
1259
- */
1260
-
1261
  $(document).on('click', '.reset-shortcode-builder a', function(){
1262
  $('#alm-shortcode-builder-form').trigger("reset");
1263
  _alm.reset_select2();
1264
  //total_tax_query = 0;
1265
  //$('.ajax-load-more .taxonomy-wrap').hide();
1266
  _alm.buildShortcode();
1267
- });
1268
-
1269
-
1270
-
1271
  /*
1272
  * _alm.generateUniqueID
1273
  * Generate Unique Cache ID
1274
  *
1275
  * @since 2.6.0
1276
- */
1277
-
1278
  _alm.generateUniqueID = function(length, el) {
1279
  var id = Math.floor(Math.pow(10, length-1) + Math.random() * 9 * Math.pow(10, length-1));
1280
- $(el).val(id);
1281
- //_alm.buildShortcode();
1282
  }
1283
-
1284
-
1285
-
1286
  /*
1287
  * Generate Unique/Cache ID
1288
  *
1289
  * @since 2.6.0
1290
- */
1291
-
1292
  $(document).on('click', '.generate-id a', function(){
1293
  var id = $(this).data('id'),
1294
  el = $('#'+id);
1295
  _alm.generateUniqueID(10, el);
1296
- });
1297
-
 
1298
 
1299
-
1300
- });
1
  jQuery(document).ready(function($) {
2
+ "use strict";
3
+
4
  var _alm = {},
5
  output_div = $('#shortcode_output'),
6
+ output = '[ajax_load_more]';
7
+
8
+ output_div.text(output); //Init the shortcode output
9
+
10
+
11
+
12
  /*
13
  * _alm.select2
14
  * Init Select2 select replacement
15
  *
16
  * @since 2.5.0
17
+ */
18
  _alm.select2 = function(){
19
  // Default Select2
20
+ $('.row select, .cnkt-main select, select.jump-menu').not('.multiple, .meta-compare, .meta-type').select2({});
21
+
22
  // multiple
23
  $('.ajax-load-more .categories select.multiple').select2({
24
  placeholder : '-- '+ alm_admin_localize.select_cats +' --',
25
+ });
26
  $('.ajax-load-more .tags select.multiple').select2({
27
+ placeholder : '-- '+ alm_admin_localize.select_tags +' --'
28
+ });
29
  $('.ajax-load-more .authors select.multiple').select2({
30
+ placeholder : '-- '+ alm_admin_localize.select_authors +' --'
31
  });
32
  };
33
  _alm.select2();
34
+
35
+
36
+
37
  // Reset all selects
38
  _alm.reset_select2 = function(){
39
  // Default Select2
40
+ $('.row select, .cnkt-main select, select.jump-menu').not('.multiple').select2();
41
+
42
  // multiple
43
+ $('.ajax-load-more .categories select.multiple').select2();
44
+ $('.ajax-load-more .tags select.multiple').select2();
45
  $('.ajax-load-more .authors select.multiple').select2();
46
+ };
47
+
48
+
49
+
50
+ //
51
  var total_tax_query = 0,
52
  max_tax_query = 2;
53
  $('#add-tax-query').on('click', function(e){
54
  e.preventDefault();
55
+
56
  if(total_tax_query < 2){
57
  total_tax_query++;
58
  $('#tax-query-relation').fadeIn(250);
59
  $('.ajax-load-more .taxonomy-wrap').eq(total_tax_query - 1).fadeIn(250);
60
+
61
  if(total_tax_query === 2){ // Hide "Add" button if 3 $('.taxonomy-wrap')
62
+ $('#alm-taxonomy .controls button').addClass('disabled');
63
  }
64
+
65
  }else{
66
  alert("Sorry - maximum of 3 tax_query objects.");
67
  return false;
68
  }
69
+
70
+ });
71
+
72
  /* Delete Tax Query */
73
  $(document).on('click', '.remove-tax-query', function(e){
74
  var el = $(this),
75
  parent = el.parent('.taxonomy-wrap');
76
+
77
  $('select', parent).select2('val', '').trigger('change');
78
  total_tax_query--;
79
  parent.addClass('removing');
80
+ parent.fadeOut(250, function(){
81
+ _alm.buildShortcode();
82
+ parent.removeClass('removing');
83
+ });
84
+
85
  if(total_tax_query < 2){ // Show "Add" button if less than 3
86
+ $('#alm-taxonomy .controls button').removeClass('disabled');
87
  }
88
+
89
  if(total_tax_query == 0){
90
+ $('#tax-query-relation').fadeOut(250);
91
  }
92
+
93
  });
94
+
95
+
96
+
97
+
98
  // Add additional meta_query
99
  var meta_query_obj = $('.meta-query-wrap').eq(0).clone();
100
  $('.meta-query-wrap .remove').remove();
101
  $('select.meta-compare, select.meta-type').select2();
102
  $('#add-meta-query').on('click', function(e){
103
  e.preventDefault();
104
+
105
  if($('.meta-query-wrap').length > 3){
106
  alert("Sorry - maximum of 4 meta_query objects.");
107
  return false;
108
  }
109
+
110
  var target = $('#meta-query-extended');
111
  $('input, select', meta_query_obj).val('');
112
+ var el = meta_query_obj.clone().hide();
113
  target.append(el);
114
  el.fadeIn(250);
115
  $('#meta-query-extended select').select2();
116
+
117
  if($('.meta-query-wrap').length > 1){
118
  $('#meta-query-relation').fadeIn(250);
119
  }else{
120
+ $('#meta-query-relation').fadeOut(250);
121
  }
122
+
123
  $('select.meta-compare').select2();
124
+
125
  if($('.meta-query-wrap').length > 3){ // Hide "Add" button if 4 $('.meta-query-wrap')
126
+ $('#alm-meta-key .controls button').addClass('disabled');
127
  }
128
+
129
+ });
130
+
131
  /* Delete Meta Query */
132
  $(document).on('click', '.remove-meta-query', function(e){
133
  var el = $(this);
136
  el.parent('.meta-query-wrap').remove();
137
  _alm.buildShortcode();
138
  });
139
+
140
  if($('.meta-query-wrap').length > 3){ // Show "Add" button if less than 4 $('.meta-query-wrap')
141
+ $('#alm-meta-key .controls button').removeClass('disabled');
142
  }
143
+
144
  });
145
+
146
+
147
+
148
+
149
  /*
150
  * _alm.buildShortcode
151
  * Loop sections and build the shortcode
152
  *
153
  * @since 1.0
154
+ */
155
 
156
  _alm.buildShortcode = function(){
157
+ output = '[ajax_load_more';
158
+
159
+
160
  // ---------------------------
161
+ // - ID
162
  // ---------------------------
163
+
164
+ var unique_id = $('input#unique-id').val();
165
  if(unique_id)
166
+ output += ' id="'+unique_id+'"';
167
+
168
+
169
  // ---------------------------
170
+ // - Container Type
171
  // ---------------------------
172
+
173
+ var container_type = $('.container_type input[name=alm_container_type]:checked').val();
174
  if(container_type)
175
  output += ' container_type="'+container_type+'"';
176
+
177
+
178
+ // ---------------------------
179
+ // - Container Classes
180
+ // ---------------------------
181
+
182
+ var container_classes = $('.alm-instance-options input#container-classes').val();
183
+ container_classes = $.trim(container_classes);
184
+ if(container_classes !== '' && $('.alm-instance-options input#container-classes').hasClass('changed'))
185
+ output += ' css_classes="'+container_classes+'"';
186
+
187
+
188
+ // ---------------------------
189
+ // - Advacned Custom Fields
190
+ // ---------------------------
191
+
192
+ var acf = $('#alm-acf input[name=acf]:checked').val();
193
+
194
+ if(acf !== 'false' && acf != undefined){
195
+
196
+
197
  var acf_post_id = $('#acf_post_id').val(),
198
  acf_field_type = $('#acf_field_type').val(),
199
  acf_field_name = $('#acf_field_name').val();
200
+
201
  $('.acf-options').slideDown(150, 'alm_easeInOutQuad');
202
+
203
+ if(acf_field_type !== '' && acf_field_name !== ''){
204
  output += ' acf="'+acf+'"';
205
  if(acf_post_id !== ''){
206
+ output += ' acf_post_id="\'.'+ acf_post_id +'.\'"';
207
  }
208
+ output += ' acf_field_type="'+ acf_field_type +'"';
209
+ output += ' acf_field_name="'+ acf_field_name +'"';
210
+ }
211
+
212
  }else{
213
  $('.acf-options').slideUp(150, 'alm_easeInOutQuad')
214
+ }
215
+
216
+
217
+ // ---------------------------
218
+ // - Cache
219
+ // ---------------------------
220
+
221
+ var cache = $('#alm-cache input[name=cache]:checked').val();
222
  if(cache !== 'false' && cache != undefined){
223
  if($('input#cache-id').val() === '')
224
  _alm.generateUniqueID(10); // Generate unique ID on first load
225
+
226
  $('.cache_id').slideDown(150, 'alm_easeInOutQuad');
227
  output += ' cache="'+cache+'"';
228
+ var cache_id = $('input#cache-id').val();
229
  if(cache_id)
230
+ output += ' cache_id="'+cache_id+'"';
231
  }else{
232
  $('.cache_id').slideUp(150, 'alm_easeInOutQuad')
233
+ }
234
+
235
+
236
  // ---------------------------
237
+ // - Call to Actions
238
  // ---------------------------
239
+
240
  var cta_container = $('#alm-cta');
241
+ var cta = $('input[name=cta]:checked', cta_container).val();
242
+ var cta_position = $('input[name=cta-position]', cta_container).val();
243
  var cta_before_after = $('select[name=cta-before-after]', cta_container).val();
244
+ var cta_repeater = $('select[name=cta-repeater-select]', cta_container).val();
245
+ var cta_theme_repeater = $('select[name=theme-repeater-select]', cta_container).val();
246
+
247
+ if(cta !== 'false' && cta != undefined){
248
+ $('.cta_template_wrap').slideDown(150, 'alm_easeInOutQuad');
249
  // Standard repeater
250
  if(cta_repeater != '' && cta_repeater != undefined && cta_position != '' && cta_position != null){
251
+ output += ' cta="'+cta+'"';
252
+ output += ' cta_position="'+cta_before_after+':'+cta_position+'"';
253
+ output += ' cta_repeater="'+cta_repeater+'"';
254
+ }
255
  // Theme repeater
256
  if(cta_theme_repeater != '' && cta_theme_repeater != undefined && cta_position != '' && cta_position != null){
257
+ output += ' cta="'+cta+'"';
258
+ output += ' cta_position="'+cta_before_after+':'+cta_position+'"';
259
+ output += ' cta_theme_repeater="'+cta_theme_repeater+'"';
260
+ }
261
+ $('#sequence-update').text(cta_position);
262
+ $('#sequence-update-before-after').text(cta_before_after);
263
+ }else{
264
+ $('.cta_template_wrap').slideUp(150, 'alm_easeInOutQuad');
265
+ }
266
+
267
+
268
+ // ---------------------------
269
+ // - Comments
270
+ // ---------------------------
271
+
272
  var comments = $('#alm-comments input[name=comments]:checked').val();
273
+ if(comments === undefined){
274
  comments = false;
275
+ }
276
+
277
+ if(comments === 'true'){
278
  var comments_post_id = $('#comments_post_id').val(),
279
  comments_per_page = $('#comments-per-page').val(),
280
+ comments_type = $('#comments_type').val(),
281
  comments_template = $('#comments_template').val(),
282
  comments_callback = $('#comments_callback').val().trim(),
283
+ comments_style = $('#alm-comments input[name=alm_comment_style]:checked').val();
284
+
285
  if(comments_callback !== ''){
286
  $('#comments_template').select2('val','none');
287
  }
288
+
289
+ output += ' comments="'+comments+'"';
290
  output += ' comments_post_id="\'.'+comments_post_id+'.\'"';
291
+
292
  if(comments_type !== 'comment')
293
  output += ' comments_type="'+comments_type+'"';
294
+
295
  if(comments_per_page !== '5')
296
  output += ' comments_per_page="'+comments_per_page+'"';
297
+
298
+ if(comments_style !== 'ol')
299
  output += ' comments_style="'+comments_style+'"';
300
+
301
+ if(comments_template !== 'none')
302
+ output += ' comments_template="'+comments_template+'"';
303
+
304
+ if(comments_callback !== '')
305
+ output += ' comments_callback="'+comments_callback+'"';
306
+
307
+ $('.comments_extras').slideDown(150, 'alm_easeInOutQuad');
308
  }else{
309
  $('.comments_extras').slideUp(150, 'alm_easeInOutQuad');
310
  }
311
+
312
+
313
+
314
  // ---------------------------
315
+ // - Next Page
316
  // ---------------------------
317
+
318
  var nextpage = $('.next-page input[name=next-page]:checked').val();
319
+ if(nextpage !== 'false' && nextpage != undefined){
320
+
321
  var nextpage_post_id = $('#next-page_post_id').val(),
322
  nextpage_url = $('input#next-page-url:checked').val(),
323
  nextpage_pageviews = $('input#next-page-pageviews:checked').val(),
324
  nextpage_scrollspeed = $('input#next-page-scroll-speed').val(),
325
  nextpage_scrolltop = $('input#next-page-scroll-top').val();
326
+
327
  $('.next-page-content').slideDown(150, 'alm_easeInOutQuad');
328
+
329
+ output += ' nextpage="'+nextpage+'"';
330
+ output += ' nextpage_post_id="\'.'+nextpage_post_id+'.\'"';
331
+
332
  if(nextpage_url !== 'true'){
333
  output += ' nextpage_urls="false"';
334
  }
335
  if(nextpage_pageviews !== 'true'){
336
  output += ' nextpage_pageviews="false"';
337
  }
338
+
339
  if(!nextpage_scrollspeed.length) nextpage_scrollspeed = 250;
340
  if(!nextpage_scrolltop.length) nextpage_scrollspeed = 30;
341
+
342
  output += ' nextpage_scroll="'+ nextpage_scrollspeed +':'+ nextpage_scrolltop +'"';
343
+
344
+
345
  }else{
346
  $('.next-page-content').slideUp(150, 'alm_easeInOutQuad');
347
+ }
348
+
349
+
350
+
351
+ // ---------------------------
352
+ // - Paging
353
+ // ---------------------------
354
+
355
  var paging = $('#alm-paging input[name=paging]:checked').val();
356
+ var paging_controls = $('#alm-paging input[name=paging-controls]:checked').val();
357
+ var paging_show_at_most = $('#alm-paging input#show-at-most').val();
358
+ var paging_classes = $('#alm-paging input#paging-classes').val();
359
+ if(paging !== 'false' && paging != undefined){
360
+ output += ' paging="'+paging+'"';
361
  output += ' paging_controls="'+paging_controls+'"';
362
+ output += ' paging_show_at_most="'+paging_show_at_most+'"';
363
  if(paging_classes !== ''){
364
+ output += ' paging_classes="'+paging_classes+'"';
365
+ }
366
+ $('#nav-controls').slideDown(150, 'alm_easeInOutQuad');
367
  }else{
368
  $('#nav-controls').slideUp(150, 'alm_easeInOutQuad');
369
+ }
370
+
371
+
372
+
373
  // ---------------------------
374
+ // - Preload
375
  // ---------------------------
376
+
377
  var seo = $('.seo input[name=seo]:checked').val();
378
+ var preload = $('.preload input[name=preload]:checked').val();
379
  if(preload !== 'false' && preload != undefined){
380
+
381
  if(seo !== 'true')
382
  $('.preload_amount').slideDown(150, 'alm_easeInOutQuad');
383
+
384
  output += ' preloaded="'+preload+'"';
385
+ var preload_amount = $('.preload input#preload-amount').val();
386
  if(preload_amount > 0 && preload_amount != 5)
387
+ output += ' preloaded_amount="'+preload_amount+'"';
388
  }else{
389
  $('.preload_amount').slideUp(150, 'alm_easeInOutQuad');
390
+ }
391
+
392
+
393
+
394
  // ---------------------------
395
+ // - Previous Post
396
  // ---------------------------
397
+
398
  var previous = $('.previous-post input[name=prev-post]:checked').val();
399
+ if(previous !== 'false' && previous != undefined){
400
+
401
  var prev_post_id = $('#prev_post_id').val(),
402
  previous_post_taxonomy = $('#pp-taxonomy-select').val();
403
  $('.prev_post_id').slideDown(150, 'alm_easeInOutQuad');
404
+
405
+ output += ' previous_post="'+previous+'"';
406
+ output += ' previous_post_id="\'.'+prev_post_id+'.\'"';
407
+
408
  if(previous_post_taxonomy !== '' )
409
+ output += ' previous_post_taxonomy="'+previous_post_taxonomy+'"';
410
+
411
  }else{
412
  $('.prev_post_id').slideUp(150, 'alm_easeInOutQuad');
413
+ }
414
+
415
+
416
+
417
+ // ---------------------------
418
+ // - REST API
419
+ // ---------------------------
420
+
421
+ var rest = $('#alm-rest input[name=rest]:checked').val();
422
+ if(rest !== 'false' && rest != undefined){
423
  $('.restapi_options').slideDown(150, 'alm_easeInOutQuad');
424
+ output += ' restapi="'+rest+'"';
425
+
426
  var restapi_base = $('#alm-rest input#rest-base').val().trim(),
427
  restapi_namespace = $('#alm-rest input#rest-namespace').val().trim(),
428
  restapi_endpoint = $('#alm-rest input#rest-endpoint').val().trim(),
429
  restapi_template_id = $('#alm-rest input#rest-template-id').val().trim(),
430
+ restapi_debug = $('#alm-rest input[name=rest-debug]:checked').val().trim();
431
+
432
+ if(restapi_base !== '')
433
+ output += ' restapi_base="'+restapi_base+'"';
434
+
435
+ if(restapi_namespace !== '')
436
+ output += ' restapi_namespace="'+restapi_namespace+'"';
437
+
438
+ if(restapi_endpoint !== '')
439
+ output += ' restapi_endpoint="'+restapi_endpoint+'"';
440
+
441
  if(restapi_template_id !== ''){
442
+ restapi_template_id = restapi_template_id.replace("tmpl-", ""); // Remove tmpl- if present in value
443
+ output += ' restapi_template_id="'+restapi_template_id+'"';
444
  }
445
+
446
+ if(restapi_debug !== '' && restapi_debug !== 'false')
447
+ output += ' restapi_debug="'+restapi_debug+'"';
448
+
449
  }else{
450
  $('.restapi_options').slideUp(150, 'alm_easeInOutQuad')
451
+ }
452
+
453
+
454
  // ---------------------------
455
+ // - SEO
456
+ // ---------------------------
457
+
458
  if(seo !== 'false' && seo != undefined){
459
  if(preload === 'true')
460
  $('.preload_amount').slideUp(150, 'alm_easeInOutQuad');
461
+
462
+ output += ' seo="'+seo+'"';
463
  }
464
+
465
+
466
  // ---------------------------
467
  // - Repeater Templates
468
  // ---------------------------
469
+
470
  var repeater = $('#alm-repeaters select[name=repeater-select]').val(),
471
  theme_repeater = $('#alm-repeaters .select-theme-repeater select[name=theme-repeater-select]').val();
472
+
473
  if(theme_repeater != 'null' && theme_repeater != '' && theme_repeater != undefined){
474
  output += ' theme_repeater="'+theme_repeater+'"';
475
  }else{
476
  if(repeater != '' && repeater != undefined && repeater != 'default'){
477
+ output += ' repeater="'+repeater+'"';
478
+ }
479
+ }
480
+
481
+
482
  // ---------------------------
483
  // - Post Types
484
  // ---------------------------
485
+
486
  if(comments === 'false' || comments === false || comments === undefined){ // Hide post_types if comments is active
487
+
488
  var post_type_count = 0,
489
  selected_post_type = '';
490
+ $('ul.alm-post-type-list input[type=checkbox]').each(function(e){
491
  if($(this).is(":checked")) {
492
  post_type_count++;
493
  if(post_type_count>1){
494
  output += ', ' + $(this).data('type');
495
  }else{
496
  if($(this).hasClass('changed')){
497
+ output += ' post_type="'+$(this).data('type')+'';
498
+ }
499
  }
500
  selected_post_type = $(this).data('type');
501
  }
502
+ });
503
+ if(post_type_count>0){
504
  output += '"';
505
+ }
506
+ }
507
+
508
+
509
  // ---------------------------
510
+ // - Sticky Posts
511
  // ---------------------------
512
+
513
  if(selected_post_type !== 'post'){
514
  $('.sticky-wrap').slideUp(150, 'alm_easeInOutQuad');
515
  $('input[name=alm_sticky_posts]').prop('checked', false);
516
+ }else{
517
  $('.sticky-wrap').slideDown(150, 'alm_easeInOutQuad');
518
  }
519
+
520
+ var sticky_posts = $('input[name=alm_sticky_posts]:checked').val();
521
  if(sticky_posts && selected_post_type === 'post')
522
  output += ' sticky_posts="'+sticky_posts+'"';
523
+
524
+
525
  // ---------------------------
526
+ // - Posts Per Page
527
  // ---------------------------
528
+
529
+ var posts_per_page = $('.posts_per_page input').val();
530
  if(posts_per_page > 0 && posts_per_page != 5)
531
+ output += ' posts_per_page="'+posts_per_page+'"';
532
+
533
+
534
  // ---------------------------
535
  // - Post Format
536
  // ---------------------------
537
+
538
+ var post_format = $('.post_format select').val();
539
+ if(post_format != '' && post_format != undefined)
540
  output += ' post_format="'+post_format+'"';
541
+
542
+
543
  // ---------------------------
544
+ // - Categories
545
  // ---------------------------
546
+
547
  // IN
548
+ var cat = $('.categories #category-select').val();
549
+ if(cat !== '' && cat !== undefined && cat !== null)
550
+ output += ' category="'+cat+'"';
551
+
552
  // NOT_IN
553
+ var cat_not_in = $('.categories #category-exclude-select').val();
554
+ if(cat_not_in !== '' && cat_not_in !== undefined && cat_not_in !== null)
555
  output += ' category__not_in="'+cat_not_in+'"';
556
+
557
+
558
  // ---------------------------
559
+ // - Tags
560
  // ---------------------------
561
+
562
  var tag = $('.tags #tag-select').val();
563
+ if(tag !== '' && tag !== undefined && tag !== null)
564
+ output += ' tag="'+tag+'"';
565
+
566
  // NOT_IN
567
+ var tag_not_in = $('.tags #tag-exclude-select').val();
568
+ if(tag_not_in !== '' && tag_not_in !== undefined && tag_not_in !== null)
569
  output += ' tag__not_in="'+tag_not_in+'"';
570
+
571
+
572
+
573
  // ---------------------------
574
+ // - Taxonomy Query
575
  // ---------------------------
576
+
577
  var tax1 = $.trim($('select#taxonomy-select').val()),
578
  tax_operator1 = $.trim($('#tax-operator-select input[name=tax-operator]:checked').val()),
579
  tax2 = $.trim($('select#taxonomy-select2').val()),
580
  tax_operator2 = $.trim($('#tax-operator-select2 input[name=tax-operator2]:checked').val()),
581
  tax3 = $.trim($('select#taxonomy-select3').val()),
582
  tax_operator3 = $.trim($('#tax-operator-select3 input[name=tax-operator3]:checked').val()),
583
+ tax_relation = $.trim($('#tax-query-relation select[name=tax-relation]').val());
584
+
585
  var parent1 = $('select#taxonomy-select').parent('.taxonomy'),
586
  parent2 = $('select#taxonomy-select2').parent('.taxonomy'),
587
+ parent3 = $('select#taxonomy-select3').parent('.taxonomy');
588
+
589
  var has_tax1 = false,
590
+ taxonomy1_terms = '';
591
+ if(tax1 !== '' && tax1 !== undefined){
592
+
593
  has_tax1 = true;
594
  if($('select#taxonomy-select').hasClass('changed')){
595
+ $('select#taxonomy-select').parent()
596
  $('.taxonomy-extended', parent1).fadeIn(150, 'alm_easeInOutQuad');
597
  get_tax_terms(tax1, parent1, '1');
598
  $('select#taxonomy-select').removeClass('changed');
599
  }
600
+
601
  var tax_term_count1 = 0;
602
+ $('#tax-terms-container1 input[type=checkbox]').each(function(e){
603
  if($(this).is(":checked")) {
604
  tax_term_count1++;
605
  if(tax_term_count1 > 1){
606
  taxonomy1_terms += ', ' + $(this).data('type');
607
  }else{
608
  if($('#tax-terms-container1 input').hasClass('changed'))
609
+ taxonomy1_terms += $(this).data('type');
610
  }
611
  }
612
+ });
613
  }
614
  else{
615
  $('.taxonomy-extended', parent1).fadeOut(150, 'alm_easeInOutQuad');
616
  }
617
+
618
+
619
  var has_tax2 = false,
620
+ taxonomy2_terms = '';
621
+ if(tax2 !== '' && tax2 !== undefined){
622
+
623
  has_tax2 = true;
624
  if($('select#taxonomy-select2').hasClass('changed')){
625
+ $('select#taxonomy-select2').parent()
626
  $('.taxonomy-extended', parent2).fadeIn(200, 'alm_easeInOutQuad');
627
  get_tax_terms(tax2, parent2, '2');
628
  $('select#taxonomy-select2').removeClass('changed');
629
  }
630
+
631
  var tax_term_count2 = 0;
632
+ $('#tax-terms-container2 input[type=checkbox]').each(function(e){
633
  if($(this).is(":checked")) {
634
  tax_term_count2++;
635
  if(tax_term_count2 > 1){
636
  taxonomy2_terms += ', ' + $(this).data('type');
637
  }else{
638
  if($('#tax-terms-container2 input').hasClass('changed'))
639
+ taxonomy2_terms += $(this).data('type');
640
  }
641
  }
642
+ });
643
  }
644
  else{
645
  $('.taxonomy-extended', parent2).fadeOut(150, 'alm_easeInOutQuad');
646
  }
647
+
648
+
649
  var has_tax3,
650
+ taxonomy3_terms = '';
651
+ if(tax3 !== '' && tax3 !== undefined){
652
+
653
  has_tax3 = true;
654
  if($('select#taxonomy-select3').hasClass('changed')){
655
+ $('select#taxonomy-select3').parent()
656
  $('.taxonomy-extended', parent3).fadeIn(200, 'alm_easeInOutQuad');
657
  get_tax_terms(tax3, parent3, '3');
658
  $('select#taxonomy-select3').removeClass('changed');
659
  }
660
+
661
  var tax_term_count3 = 0;
662
+ $('#tax-terms-container3 input[type=checkbox]').each(function(e){
663
  if($(this).is(":checked")) {
664
  tax_term_count3++;
665
  if(tax_term_count3 > 1){
666
  taxonomy3_terms += ', ' + $(this).data('type');
667
  }else{
668
  if($('#tax-terms-container3 input').hasClass('changed'))
669
+ taxonomy3_terms += $(this).data('type');
670
  }
671
  }
672
+ });
673
  }
674
  else{
675
  $('.taxonomy-extended', parent3).fadeOut(150, 'alm_easeInOutQuad');
676
+ }
677
+
678
+
679
  if(has_tax1 && !has_tax2 && !has_tax3){
680
+ output += ' taxonomy="'+tax1+'"';
681
+ output += ' taxonomy_terms="'+taxonomy1_terms+'"';
682
+ output += ' taxonomy_operator="'+tax_operator1+'"';
683
  }
684
  if(has_tax1 && has_tax2 && !has_tax3){
685
+ output += ' taxonomy="'+tax1+':'+tax2+'"';
686
+ output += ' taxonomy_terms="'+taxonomy1_terms+':'+taxonomy2_terms+'"';
687
+ output += ' taxonomy_operator="'+tax_operator1+':'+tax_operator2+'"';
688
  if(tax_relation !== 'AND')
689
+ output += ' taxonomy_relation="'+tax_relation+'"';
690
  }
691
  if(has_tax1 && has_tax2 && has_tax3){
692
+ output += ' taxonomy="'+tax1+':'+tax2+':'+tax3+'"';
693
+ output += ' taxonomy_terms="'+taxonomy1_terms+':'+taxonomy2_terms+':'+taxonomy3_terms+'"';
694
+ output += ' taxonomy_operator="'+tax_operator1+':'+tax_operator2+':'+tax_operator3+'"';
695
  if(tax_relation !== 'AND')
696
  output += ' taxonomy_relation="'+tax_relation;
697
  }
 
698
 
699
+
700
+
701
  // ---------------------------
702
+ // - Date
703
  // ---------------------------
704
  var currentTime = new Date(),
705
  currentYear = currentTime.getFullYear();
706
+
707
+ var dateY = $('.date input#input-year').val(); // Year
708
+ if(dateY !== '' && dateY !== undefined && dateY <= currentYear)
709
+ output += ' year="'+dateY+'"';
710
+
711
+ var dateM = $('.date input#input-month').val(); // Month
712
+ if(dateM !== '' && dateM !== undefined && dateM < 13)
713
+ output += ' month="'+dateM+'"';
714
+
715
+ var dateD = $('.date input#input-day').val(); // Day
716
+ if(dateD !== '' && dateD !== undefined && dateD < 32)
717
+ output += ' day="'+dateD+'"';
718
+
719
+
720
+
721
  // ---------------------------
722
  // - Custom Fields Meta Query
723
  // ---------------------------
726
  meta_compare = $('.meta-query-wrap').eq(0).find('select.meta-compare').val(),
727
  meta_type = $('.meta-query-wrap').eq(0).find('select.meta-type').val(),
728
  meta_relation = $('select.meta-relation').val(),
729
+ meta_query_length = $('.meta-query-wrap').length;
730
 
731
  // Set meta_compare default value
732
+ if(meta_compare === '' || meta_compare == undefined)
733
+ meta_compare = '=';
734
+
735
  // Set meta_type default value
736
+ if(meta_type === '' || meta_type == undefined)
737
  meta_type = 'CHAR';
738
+
739
+ // Single Meta_Query()
740
  if(meta_query_length === 1){
741
+ if(meta_key !== '' && meta_key !== undefined){
742
  output += ' meta_key="'+meta_key+'"';
743
  output += ' meta_value="'+meta_value+'"';
744
+
745
  if(meta_compare !== '='){
746
+ output += ' meta_compare="'+meta_compare+'"';
747
  }
748
+
749
  if(meta_type !== 'CHAR'){
750
+ output += ' meta_type="'+meta_type+'"';
751
  }
752
  }
753
  }
754
  // Multiple Meta_Query()
755
  if(meta_query_length > 1){
756
+ meta_key = '';
757
+ meta_value = '';
758
+ meta_compare = '';
759
+ meta_type = '';
760
  $('.meta-query-wrap').each(function(e){
761
  var el = $(this),
762
  mk = $.trim(el.find('input.meta-key').val()),
763
  mv = $.trim(el.find('input.meta-value').val()),
764
  mc = $.trim(el.find('select.meta-compare').val()),
765
  mt = $.trim(el.find('select.meta-type').val());
766
+
767
+ if(e === 0){ // first on first only
768
  meta_key += mk;
769
  meta_value += mv;
770
  meta_compare += mc;
771
  meta_type += mt;
772
+ }else{
773
+ if(mk.length > 0 && mv.length > 0){
774
  meta_key += ':'+ mk;
775
  meta_value += ':'+ mv;
776
  meta_compare += ':'+ mc;
777
  meta_type += ':'+ mt;
778
  }
779
  }
780
+
781
  });
782
  output += ' meta_key="'+meta_key+'"';
783
  output += ' meta_value="'+meta_value+'"';
784
  output += ' meta_compare="'+meta_compare+'"';
785
  output += ' meta_type="'+meta_type+'"';
786
+
787
  var isRelation = $('#meta-query-relation').css("display");
788
  if(meta_relation !== '' && meta_relation !== undefined && isRelation === 'block'){
789
  output += ' meta_relation="'+meta_relation+'"';
790
  }
791
+
792
  }else{
793
  $('#meta-query-relation').fadeOut(150);
794
  }
795
+
796
+
797
+
798
+ // ---------------------------
799
+ // - Authors
800
+ // ---------------------------
801
+
802
+ var author = $('.authors #author-select').val();
803
+ if(author !== '' && author !== undefined && author !== null)
804
+ output += ' author="'+author+'"';
805
+
806
+
807
+ // ---------------------------
808
+ // - Posts
809
+ // ---------------------------
810
+
811
+ var post__in = $('input#post__in').val();
812
+ post__in = $.trim(post__in);
813
+ if(post__in !== '')
814
+ output += ' post__in="'+post__in+'"';
815
+
816
+
817
+ // ---------------------------
818
+ // - Exclude posts
819
+ // ---------------------------
820
+
821
+ var exclude = $('input#exclude-posts').val();
822
+ exclude = $.trim(exclude);
823
  if(exclude !== ''){
824
  //Remove trailing comma, if present
825
  if(exclude.charAt( exclude.length-1 ) == ",") {
826
  exclude = exclude.slice(0, -1)
827
  }
828
+ output += ' post__not_in="'+exclude+'"';
829
+ }
830
+
831
+
832
  // ---------------------------
833
+ // - Search
834
  // ---------------------------
835
+
836
+ var search = $('.search-term input').val();
837
+ search = $.trim(search);
838
+ if(search !== '')
839
+ output += ' search="'+search+'"';
840
+
841
+
842
  // ---------------------------
843
+ // - Ordering
844
  // ---------------------------
845
  var order = $('select#post-order').val(),
846
+ orderby = $('select#post-orderby').val();
847
+ if(order !== 'DESC')
848
+ output += ' order="'+order+'"';
849
+ if(orderby !== 'date')
850
+ output += ' orderby="'+orderby+'"';
851
+
852
+
853
+ // ---------------------------
854
+ // - Post Status
855
+ // ---------------------------
856
+ var post_status = $('select#post-status').val();
857
+ if(post_status !== 'publish')
858
+ output += ' post_status="'+post_status+'"';
859
+
860
+
861
+ // ---------------------------
862
+ // - Post Offset
863
+ // ---------------------------
864
+
865
+ var offset = $('.offset input').val();
866
+ if(offset > 0)
867
+ output += ' offset="'+offset+'"';
868
+
869
+
870
+ // ---------------------------
871
+ // - Custom Arguments
872
+ // ---------------------------
873
+
874
+ var custom_args = $('.custom-arguments input').val();
875
+ custom_args = $.trim(custom_args);
876
+ if(custom_args !== '')
877
+ output += ' custom_args="'+custom_args+'"';
878
+
879
+
880
+ // ---------------------------
881
+ // - Pause Loading
882
+ // ---------------------------
883
+
884
+ var pause_load = $('.pause_load input[name=pause]:checked').val();
885
+ if(pause_load === 't'){
886
+ output += ' pause="true"';
887
+ }
888
+
889
+
890
+ // ---------------------------
891
+ // - Scrolling
892
+ // ---------------------------
893
+
894
+ var scroll_load = $('.scroll_load input[name=scroll]:checked').val();
895
  if(scroll_load === 'f'){
896
  $('.max_pages, .scroll_distance, .pause_override').slideUp(150, 'alm_easeInOutQuad');
897
+ if($('.scroll_load input').hasClass('changed'))
898
+ output += ' scroll="false"';
899
  }else{
900
  $('.max_pages, .scroll_distance, .pause_override').slideDown(150, 'alm_easeInOutQuad');
901
+
902
+ var scroll_distance = $('.scroll_distance input').val();
903
+ if(scroll_distance != 150)
904
+ output += ' scroll_distance="'+$('.scroll_distance input').val()+'"';
905
+
906
+ var max_pages = $('.max_pages input').val();
907
+ if(max_pages != 0)
908
+ output += ' max_pages="'+$('.max_pages input').val()+'"';
909
+
910
+ var pause_override = $('.pause_override input[name=pause_override]:checked').val();
911
+ if(pause_override === 't' && pause_load === 't')
912
+ output += ' pause_override="true"';
913
+
914
+ }
915
+
916
+
917
+ // ---------------------------
918
+ // - transition
919
+ // ---------------------------
920
+
921
+ var transition = $('.transition select[name=transition]').val();
922
  if(transition !== 'slide')
923
  output += ' transition="'+transition+'"';
924
+
925
+ if(transition === 'masonry'){
926
+ $('.masonry-options').slideDown(150, 'alm_easeInOutQuad');
927
+ $('.masonry-options-hide').slideUp(150, 'alm_easeInOutQuad');
928
+ var masonry_selector = $('.transition input#masonry-item').val();
929
+ if(masonry_selector !== ''){
930
+ output += ' masonry_selector="'+ masonry_selector +'"';
931
+ }
932
+ }else{
933
+ $('.masonry-options').slideUp(150, 'alm_easeInOutQuad');
934
+ $('.masonry-options-hide').slideDown(150, 'alm_easeInOutQuad');
935
+
936
+ // Hide speed and container if masonry is selected
937
+ var transition_speed = $('.transition input[name=transition-speed]').val();
938
+ if(transition_speed !== '250' && transition !== 'none')
939
+ output += ' transition_speed="'+ transition_speed +'"';
940
+
941
+ var transition_container = $('.transition input[name=remove_container]:checked').val();
942
+ if(transition_container === 'f' && seo !== 'true' && previous !== 'true')
943
+ output += ' transition_container="false"';
944
+
945
+ }
946
+
947
+
948
+ // ---------------------------
949
+ // - Progress Bar
950
+ // ---------------------------
951
+
952
+ var progress_bar = $('.alm-progress-bar input[name=progress_bar]:checked').val();
953
+ if(progress_bar === 't'){
954
+ var progress_bar_color = $('.alm-progress-bar input[name=progress_bar_color]').val();
955
+ $('.progress-bar-options').slideDown(150, 'alm_easeInOutQuad');
956
+ output += ' progress_bar="true"';
957
+ if(progress_bar_color){
958
+ output += ' progress_bar_color="'+ progress_bar_color +'"';
959
+ }
960
+ }else{
961
+ $('.progress-bar-options').slideUp(150, 'alm_easeInOutQuad');
962
+ }
963
+
964
+
965
+
966
+
967
+ // ---------------------------
968
+ // - Images loaded
969
+ // ---------------------------
970
+
971
+ var images_loaded = $('.alm-images-loaded input[name=images_loaded]:checked').val();
972
+ if(images_loaded === 't')
973
+ output += ' images_loaded="true"';
974
+
975
+
976
+ // ---------------------------
977
+ // - Destroy After
978
+ // ---------------------------
979
+
980
+ var destroy_after = $('.alm-destroy-after input[name=destroy-after]').val();
981
  if(destroy_after !== '' && destroy_after !== undefined && destroy_after !== '0')
982
  output += ' destroy_after="'+destroy_after+'"';
983
+
984
+
985
  // ---------------------------
986
+ // - Button Label
987
  // ---------------------------
988
+
989
  var button_label = $('.btn-label input#button-label').val().trim(),
990
+ button_loading_label = $('.btn-label input#button-loading-label').val().trim();
991
+
992
+ if(button_label !== '' && button_label !== 'Older Posts')
993
+ output += ' button_label="'+button_label+'"';
994
+
995
+ if(button_loading_label !== '')
996
+ output += ' button_loading_label="'+button_loading_label+'"';
997
+
998
+
999
+ output += ']'; //Close shortcode
1000
+ output_div.text(output);
1001
+
1002
+ if(output != '[ajax_load_more]')
1003
  $('.reset-shortcode-builder').show();
1004
+ else
1005
  $('.reset-shortcode-builder').hide();
1006
+ }
1007
+
1008
+
1009
+
1010
+
1011
  /*
1012
  * On change events
1013
  *
1014
  * @since 2.0.0
1015
+ */
1016
+
1017
  //Select 'post' by default
1018
+ $('.post_types input[type=checkbox]#chk-post').prop('checked', true).addClass('changed');
1019
  //Select SEO 'false' by default
1020
+ $('.seo input[type=radio]#seo-false').prop('checked', true).addClass('changed');
1021
+
1022
+
1023
+ $(document).on('change keyup', '.alm_element', function() {
1024
+ var el = $(this);
1025
+ el.addClass('changed');
1026
+
1027
+ // reset repeater templates
1028
  if(el.attr('name') === 'repeater-select'){
1029
  $('.select-theme-repeater select[name=theme-repeater-select]').select2('val','');
1030
+ }
1031
  if(el.attr('name') === 'theme-repeater-select'){
1032
  if($('.select-theme-repeater select[name=theme-repeater-select]').val() !== 'null' && $('.select-theme-repeater select[name=theme-repeater-select]').val() !== ''){
1033
  $('.repeater select[name=repeater-select]').select2('val','default');
1034
  }
1035
+ }
1036
+
1037
  if(el.attr('id') === 'comments_template'){
1038
  $('#comments_callback').val('');
1039
+ }
1040
 
1041
  // If post type is not selected, select 'post'.
1042
  if(!$('ul.alm-post-type-list input[type=checkbox]:checked').length > 0){
1043
  $('ul.alm-post-type-list input[type=checkbox]#chk-post').prop('checked', true);
1044
+ }
1045
+
1046
  // If Tax Term Operator is not selected, select 'IN'.
1047
  if(!$('#tax-operator-select input[type=radio]:checked').length > 0){
1048
  $('#tax-operator-select input[type=radio]#tax-in-radio').prop('checked', true);
1049
+ }
1050
+
1051
  _alm.buildShortcode();
1052
  });
1053
+
1054
+
1055
  $("input.numbers-only").keydown(function (e) {
1056
  if ($.inArray(e.keyCode, [188, 46, 8, 9, 27, 13, 110, 190]) !== -1 ||
1057
  // Allow: Ctrl+A
1058
+ (e.keyCode == 65 && e.ctrlKey === true) ||
1059
  // Allow: home, end, left, right, down, up
1060
  (e.keyCode >= 35 && e.keyCode <= 40)) {
1061
  // let it happen, don't do anything
1066
  if(e.keyCode !== 188){ // If keycode is not a comma
1067
  e.preventDefault();
1068
  }
1069
+ }
1070
  });
1071
+
1072
+
1073
+
1074
+
1075
  /*
1076
  * Jump to section, Table of contents [Repeater Templates, Shortcode Builder]
1077
  *
1078
  * @since 2.0.0
1079
  * Updated v2.13.0
1080
+ */
1081
+
1082
  var jumpMenuOptions = '';
1083
  function almBuildJumpMenu(type){
1084
+
1085
  if(type === 'repeaters'){
1086
  $('.row').each(function(){
1087
  if(!$(this).hasClass('no-brd')){ // Special case for back 2 top on shortcode builder landing
1091
  }
1092
  });
1093
  }
1094
+
1095
+ if(type === 'shortcode'){
1096
  $('.shortcode-parameter-wrap').each(function(){
1097
  var el = $(this),
1098
  opttitle = el.find('h2').text();
1104
  jumpMenuOptions += '<option value="'+id+'">'+title+'</option>';
1105
  }
1106
  });
1107
+ jumpMenuOptions += '</optgroup>';
1108
+ });
1109
+ }
1110
+ }
1111
  if($('.shortcode-builder .shortcode-parameter-wrap').length){
1112
  almBuildJumpMenu('shortcode'); // shortcode builder
1113
  }
1121
  }
1122
  almBuildJumpMenu('repeaters'); // repeater templates
1123
  }
1124
+
1125
+
1126
+
1127
+
1128
  /* Jump Menu */
1129
+
1130
  $('select.jump-menu').append(jumpMenuOptions);
1131
  $('select.jump-menu').change(function() {
1132
  var pos = $(this).val();
1136
  }, 200, 'alm_easeInOutQuad');
1137
  }
1138
  });
1139
+
1140
+
1141
+
1142
+
1143
  /* Table of Contents */
1144
+
1145
  if($('.table-of-contents').hasClass('repeaters-toc')){
1146
+ $('.table-of-contents .toc').append('<option value="#">-- '+ alm_admin_localize.jump_to_template +' --</option>');
1147
  } else {
1148
+ $('.table-of-contents .toc').append('<option value="#">-- '+ alm_admin_localize.jump_to_option +' --</option>');
1149
  }
1150
+
1151
+ $('.table-of-contents .toc').append(jumpMenuOptions).select2();
1152
+
1153
  $('.table-of-contents .toc').change(function() {
1154
  var pos = $(this).val();
1155
  if(pos !== 'null'){
1158
  }, 500, 'alm_easeInOutQuad');
1159
  }
1160
  });
1161
+
1162
  /* Table of Contents - onResize */
1163
+
1164
+ function almResizeTOC(){
1165
  var tocW = $('.cnkt-sidebar').width();
1166
+ $('.table-of-contents').css('width', tocW + 'px');
1167
  }
1168
  almResizeTOC();
1169
+
1170
  $(window).resize(function() {
1171
+ almResizeTOC()
1172
+ });
1173
+
1174
+
1175
  /* Table of Contents - Sticky Sidebar */
1176
+
1177
  _alm.attachShare = function(el, anchor, sticky_top){
1178
+
1179
  var top = sticky_top, // sticky element top
1180
  h = el.height() + top, // height of sticky el
1181
  scrollTop = $(window).scrollTop(),
1182
  window_height = $(window).height(),
1183
  offset = anchor.offset().top,
1184
  el_height = el.outerHeight(),
1185
+ container_height = el.outerHeight();
1186
+
1187
+ if(container_height < window_height){
1188
+ // If container height is larger than window
1189
  if(scrollTop > top) {
1190
+ el.addClass('attached');
1191
+ } else {
1192
  if(scrollTop <= (offset - top)) {
1193
  el.removeClass('attached').removeClass('hidden');
1194
+ }
1195
+ }
1196
+ }
1197
  };
1198
+
1199
+ if($('.table-of-contents').length){
1200
  var sticky_el = $('.table-of-contents'),
1201
  sticky_anchor = $(".cnkt-sidebar"),
1202
  sticky_top = 50;
1203
+
1204
  $(window).bind('resize scroll', function(){
1205
  _alm.attachShare(sticky_el, sticky_anchor, sticky_top);
1206
  });
1207
+
1208
+ _alm.attachShare(sticky_el, sticky_anchor, sticky_top);
1209
  }
1210
+
1211
+
1212
+
1213
  /*
1214
  * get_tax_terms
1215
  * Get taxonomy terms via ajax
1219
  function get_tax_terms(tax, parent, index){
1220
  var placement = $('.tax-terms-container', parent);
1221
  placement.html("<p class='loading'>Fetching Terms...</p>");
1222
+
1223
  $.ajax({
1224
  type: 'GET',
1225
  url: alm_admin_localize.ajax_admin_url,
1230
  nonce: alm_admin_localize.alm_admin_nonce,
1231
  },
1232
  dataType: "html",
1233
+ success: function(data) {
1234
+ placement.html(data);
1235
  },
1236
  error: function(xhr, status, error) {
1237
  responseText.html('<p>Error - Something went wrong and the terms could not be retrieved.');
1238
  }
1239
  });
1240
  }
1241
+
1242
+
1243
+
1244
  /*
1245
  * _alm.alm_easeInOutQuad
1246
  * Ajax Load More easing
1247
  *
1248
  * @since 2.0.0
1249
+ */
1250
+
1251
  $.easing.alm_easeInOutQuad = function (x, t, b, c, d) {
1252
  if ((t/=d/2) < 1) return c/2*t*t + b;
1253
  return -c/2 * ((--t)*(t-2) - 1) + b;
1254
  }
1255
+
1256
+
1257
+
1258
  /*
1259
  * _alm.SelectText
1260
  * Click to select text
1261
  *
1262
  * @since 2.0.0
1263
+ */
1264
+
1265
  _alm.SelectText = function(element) {
1266
+ var doc = document,
1267
+ text = doc.getElementById(element),
1268
+ range,
1269
+ selection;
1270
  if (doc.body.createTextRange) {
1271
  range = document.body.createTextRange();
1272
  range.moveToElementText(text);
1273
  range.select();
1274
  } else if (window.getSelection) {
1275
+ selection = window.getSelection();
1276
  range = document.createRange();
1277
  range.selectNodeContents(text);
1278
  selection.removeAllRanges();
1282
  $('#shortcode_output').click(function() {
1283
  _alm.SelectText('shortcode_output');
1284
  });
1285
+
1286
+
1287
+
1288
  /*
1289
  * Reset shortcode builder
1290
  *
1291
  * @since 2.5.0
1292
+ */
1293
+
1294
  $(document).on('click', '.reset-shortcode-builder a', function(){
1295
  $('#alm-shortcode-builder-form').trigger("reset");
1296
  _alm.reset_select2();
1297
  //total_tax_query = 0;
1298
  //$('.ajax-load-more .taxonomy-wrap').hide();
1299
  _alm.buildShortcode();
1300
+ });
1301
+
1302
+
1303
+
1304
  /*
1305
  * _alm.generateUniqueID
1306
  * Generate Unique Cache ID
1307
  *
1308
  * @since 2.6.0
1309
+ */
1310
+
1311
  _alm.generateUniqueID = function(length, el) {
1312
  var id = Math.floor(Math.pow(10, length-1) + Math.random() * 9 * Math.pow(10, length-1));
1313
+ $(el).val(id);
1314
+ //_alm.buildShortcode();
1315
  }
1316
+
1317
+
1318
+
1319
  /*
1320
  * Generate Unique/Cache ID
1321
  *
1322
  * @since 2.6.0
1323
+ */
1324
+
1325
  $(document).on('click', '.generate-id a', function(){
1326
  var id = $(this).data('id'),
1327
  el = $('#'+id);
1328
  _alm.generateUniqueID(10, el);
1329
+ });
1330
+
1331
+
1332
 
1333
+ });
 
admin/shortcode-builder/shortcode-builder.php CHANGED
@@ -1,4 +1,9 @@
1
- <span class="toggle-all"><span class="inner-wrap"><em class="collapse"><?php _e('Collapse All', 'ajax-load-more'); ?></em><em class="expand"><?php _e('Expand All', 'ajax-load-more'); ?></em></span></span>
 
 
 
 
 
2
 
3
  <?php
4
  $alm_options = get_option( 'alm_settings' );
@@ -14,7 +19,7 @@
14
 
15
  <div class="shortcode-parameter-wrap">
16
  <h2 class="shortcode-title"><?php _e('Add-ons & Extensions', 'ajax-load-more'); ?></h2>
17
-
18
  <?php if(has_action('alm_acf_installed')){ ?>
19
  <!-- ACF -->
20
  <div class="row input cache add-on" id="alm-acf">
@@ -38,9 +43,9 @@
38
  </div>
39
  </div>
40
  <div class="clear"></div>
41
-
42
  <div class="acf-options">
43
-
44
  <div class="clear"></div>
45
  <hr>
46
  <div class="section-title">
@@ -52,7 +57,7 @@
52
  <input type="text" value="" id="acf_post_id" class="alm_element">
53
  </div>
54
  </div>
55
-
56
  <div class="clear"></div>
57
  <hr/>
58
  <div class="spacer"></div>
@@ -64,7 +69,7 @@
64
  <div class="wrap">
65
  <div class="inner">
66
  <label class="offscreen" for="acf_field_type"><?php _e('Field Type', 'ajax-load-more'); ?>:</label>
67
- <select class="alm_element" name="acf_field_type" id="acf_field_type">
68
  <option value="" selected="selected">-- <?php _e('Select Field Type', 'ajax-load-more'); ?> --</option>
69
  <option value="flexible"><?php _e('Flexible Content', 'ajax-load-more'); ?></option>
70
  <option value="gallery"><?php _e('Gallery', 'ajax-load-more'); ?></option>
@@ -73,7 +78,7 @@
73
  </select>
74
  </div>
75
  </div>
76
-
77
  <div class="clear"></div>
78
  <hr/>
79
  <div class="spacer"></div>
@@ -88,12 +93,12 @@
88
  <input type="text" class="alm_element" name="acf_field_name" id="acf_field_name" placeholder="{your_field_name}">
89
  </div>
90
  </div>
91
-
92
- </div>
93
  </div>
94
  </div>
95
  <?php } ?>
96
-
97
 
98
  <?php if(has_action('alm_cache_installed')){ ?>
99
  <!-- CACHE -->
@@ -908,6 +913,7 @@
908
  <h3 class="heading"><?php _e('Options', 'ajax-load-more'); ?></h3>
909
  <div class="expand-wrap">
910
 
 
911
  <div class="section-title">
912
  <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>
913
  <p><?php _e('Set a unique ID for this Ajax Load More instance.', 'ajax-load-more'); ?><br/>
@@ -924,28 +930,29 @@
924
  <div class="clear"></div>
925
  <hr/>
926
 
 
927
  <div class="section-title">
928
  <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>
929
- <p><?php _e('Override the global Container Type that was set on <a href="admin.php?page=ajax-load-more">ALM Settings page</a>.', 'ajax-load-more'); ?></p>
930
  </div>
931
  <div class="wrap">
932
  <div class="inner">
933
  <ul class="container_type">
934
  <li>
935
  <input type="radio" id="type-ul" value="ul" name="alm_container_type" class="alm_element">
936
- <label for="type-ul">&lt;ul&gt; &lt;/ul&gt;</label>
937
  </li>
938
  <li>
939
  <input type="radio" id="type-div" value="div" name="alm_container_type" class="alm_element">
940
- <label for="type-div">&lt;div&gt; &lt;/div&gt;</label>
941
  </li>
942
  <li>
943
  <input type="radio" id="type-ol" value="ol" name="alm_container_type" class="alm_element">
944
- <label for="type-ol">&lt;ol&gt; &lt;/ol&gt;</label>
945
  </li>
946
  <li>
947
  <input type="radio" id="type-table" value="table" name="alm_container_type" class="alm_element">
948
- <label for="type-table">&lt;table&gt; &lt;/table&gt;</label>
949
  </li>
950
  </ul>
951
  </div>
@@ -954,6 +961,7 @@
954
  <div class="clear"></div>
955
  <hr/>
956
 
 
957
  <div class="section-title">
958
  <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>
959
  <p><?php _e('Add custom CSS classes to the Ajax Load More container. <br/><br/> e.g. portfolio-listing large-12 etc', 'ajax-load-more'); ?></p>
@@ -963,7 +971,6 @@
963
  <input class="alm_element" name="container-classes" type="text" id="container-classes" placeholder="portfolio-listing large-12">
964
  </div>
965
  </div>
966
-
967
  </div>
968
  </div>
969
  <!-- End Options -->
@@ -1001,58 +1008,6 @@
1001
  </div>
1002
  <!-- Button Labels -->
1003
 
1004
- <!-- Images Loaded -->
1005
- <div class="row checkbox images_loaded" id="alm-images-loaded">
1006
- <h3 class="heading"><?php _e('Images Loaded', 'ajax-load-more'); ?></h3>
1007
- <div class="expand-wrap">
1008
- <div class="section-title">
1009
- <p><?php _e('Wait for all images to load before displaying ajax loaded content', 'ajax-load-more'); ?>.
1010
- <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Background images are currently not supported','ajax-load-more'); ?>"></a>
1011
- </p>
1012
- </div>
1013
- <div class="wrap">
1014
- <div class="inner">
1015
- <ul>
1016
- <li>
1017
- <input class="alm_element" type="radio" name="images_loaded" value="t" id="images_loaded_t">
1018
- <label for="images_loaded_t"><?php _e('True', 'ajax-load-more'); ?></label>
1019
- </li>
1020
- <li>
1021
- <input class="alm_element" type="radio" name="images_loaded" value="f" id="images_loaded_f" checked="checked">
1022
- <label for="images_loaded_f"><?php _e('False', 'ajax-load-more'); ?></label>
1023
- </li>
1024
- </ul>
1025
- </div>
1026
- </div>
1027
- </div>
1028
- </div>
1029
- <!-- End Images Loaded -->
1030
-
1031
- <!-- Pause -->
1032
- <div class="row checkbox pause_load" id="alm-pause">
1033
- <h3 class="heading"><?php _e('Pause', 'ajax-load-more'); ?></h3>
1034
- <div class="expand-wrap">
1035
- <div class="section-title">
1036
- <p><?php _e('Do <u>NOT</u> load any posts until user clicks the <em>Load More</em> button.', 'ajax-load-more'); ?></p>
1037
- </div>
1038
- <div class="wrap">
1039
- <div class="inner">
1040
- <ul>
1041
- <li>
1042
- <input class="alm_element" type="radio" name="pause" value="t" id="pause_t">
1043
- <label for="pause_t"><?php _e('True', 'ajax-load-more'); ?></label>
1044
- </li>
1045
- <li>
1046
- <input class="alm_element" type="radio" name="pause" value="f" id="pause_f" checked>
1047
- <label for="pause_f"><?php _e('False', 'ajax-load-more'); ?></label>
1048
- </li>
1049
- </ul>
1050
- </div>
1051
- </div>
1052
- </div>
1053
- </div>
1054
- <!-- End Pause -->
1055
-
1056
  <!-- Scrolling -->
1057
  <div class="row checkbox scroll_load" id="alm-scroll">
1058
  <h3 class="heading"><?php _e('Scrolling', 'ajax-load-more'); ?></h3>
@@ -1131,78 +1086,201 @@
1131
  <h3 class="heading"><?php _e('Transition', 'ajax-load-more'); ?></h3>
1132
  <div class="expand-wrap">
1133
  <div class="section-title">
1134
- <h4><?php _e('Transition Type', 'ajax-load-more'); ?></h4>
1135
  <p><?php _e('Select a loading transition style.', 'ajax-load-more'); ?></p>
1136
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1137
  <div class="wrap">
1138
  <div class="inner">
1139
  <ul>
1140
  <li>
1141
- <input class="alm_element" type="radio" name="transition" value="slide" id="transition-slide" checked="checked">
1142
- <label for="transition-slide"><?php _e('Slide', 'ajax-load-more'); ?></label>
1143
- </li>
1144
- <li>
1145
- <input class="alm_element" type="radio" name="transition" value="fade" id="transition-fade">
1146
- <label for="transition-fade"><?php _e('Fade', 'ajax-load-more'); ?></label>
1147
  </li>
1148
  <li>
1149
- <input class="alm_element" type="radio" name="transition" value="none" id="transition-none">
1150
- <label for="transition-none"><?php _e('None', 'ajax-load-more'); ?></label>
1151
  </li>
1152
  </ul>
1153
  </div>
1154
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1155
 
1156
  <div class="clear"></div>
1157
  <hr>
1158
 
1159
  <div class="section-title">
1160
- <h4><?php _e('Transition Speed', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('0.5 seconds = 500, 1 second = 1000 etc.','ajax-load-more'); ?>"></a></h4>
1161
- <p><?php _e('The speed of the loading transition in milliseconds', 'ajax-load-more'); ?>.<br/></p>
 
 
1162
  </div>
1163
- <div class="wrap">
1164
  <div class="inner">
1165
- <input type="number" class="alm_element numbers-only" name="transition-speed" id="transition-speed" step="50" min="50" value="250">
1166
  </div>
1167
  </div>
1168
 
1169
- <div class="clear"></div>
1170
- <hr>
1171
 
 
 
 
 
 
 
 
1172
  <div class="section-title">
1173
- <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>
1174
- <p><?php _e('Remove the Ajax Load More (.alm-reveal) loading container.', 'ajax-load-more'); ?></p>
1175
- </div>
1176
  <div class="wrap">
1177
- <div class="inner">
1178
  <ul>
1179
- <li style="width:100%;">
1180
- <input class="alm_element" type="checkbox" name="remove_container" id="remove_container" value="f">
1181
- <label for="remove_container"><?php _e('Remove Container', 'ajax-load-more'); ?></label>
1182
- </li>
 
 
 
 
1183
  </ul>
1184
- </div>
1185
  </div>
1186
  </div>
1187
  </div>
1188
- <!-- End Transition -->
1189
 
1190
  <!-- Destroy After -->
1191
- <div class="row input destroy-after" id="alm-destroy-after">
1192
  <h3 class="heading"><?php _e('Destroy After', 'ajax-load-more'); ?></h3>
1193
  <div class="expand-wrap">
1194
- <div class="section-title">
1195
- <p><?php _e('Remove ajax load more functionality after \'<em>n</em>\' number of pages have been loaded.', 'ajax-load-more'); ?></p>
1196
- </div>
1197
- <div class="wrap">
1198
- <div class="inner">
1199
- <input type="number" class="alm_element numbers-only" name="destroy-after" id="disable-after" step="1" min="0" value="">
1200
- </div>
1201
- </div>
 
 
 
1202
  </div>
1203
  </div>
1204
  <!-- End Destroy After -->
1205
 
 
1206
  </div>
1207
  <!-- End Display Settings -->
1208
 
1
+ <span class="toggle-all" data-id="shortcode-builder-state">
2
+ <span class="inner-wrap">
3
+ <em class="collapse"><?php _e('Collapse All', 'ajax-load-more'); ?></em>
4
+ <em class="expand"><?php _e('Expand All', 'ajax-load-more'); ?></em>
5
+ </span>
6
+ </span>
7
 
8
  <?php
9
  $alm_options = get_option( 'alm_settings' );
19
 
20
  <div class="shortcode-parameter-wrap">
21
  <h2 class="shortcode-title"><?php _e('Add-ons & Extensions', 'ajax-load-more'); ?></h2>
22
+
23
  <?php if(has_action('alm_acf_installed')){ ?>
24
  <!-- ACF -->
25
  <div class="row input cache add-on" id="alm-acf">
43
  </div>
44
  </div>
45
  <div class="clear"></div>
46
+
47
  <div class="acf-options">
48
+
49
  <div class="clear"></div>
50
  <hr>
51
  <div class="section-title">
57
  <input type="text" value="" id="acf_post_id" class="alm_element">
58
  </div>
59
  </div>
60
+
61
  <div class="clear"></div>
62
  <hr/>
63
  <div class="spacer"></div>
69
  <div class="wrap">
70
  <div class="inner">
71
  <label class="offscreen" for="acf_field_type"><?php _e('Field Type', 'ajax-load-more'); ?>:</label>
72
+ <select class="alm_element" name="acf_field_type" id="acf_field_type">
73
  <option value="" selected="selected">-- <?php _e('Select Field Type', 'ajax-load-more'); ?> --</option>
74
  <option value="flexible"><?php _e('Flexible Content', 'ajax-load-more'); ?></option>
75
  <option value="gallery"><?php _e('Gallery', 'ajax-load-more'); ?></option>
78
  </select>
79
  </div>
80
  </div>
81
+
82
  <div class="clear"></div>
83
  <hr/>
84
  <div class="spacer"></div>
93
  <input type="text" class="alm_element" name="acf_field_name" id="acf_field_name" placeholder="{your_field_name}">
94
  </div>
95
  </div>
96
+
97
+ </div>
98
  </div>
99
  </div>
100
  <?php } ?>
101
+
102
 
103
  <?php if(has_action('alm_cache_installed')){ ?>
104
  <!-- CACHE -->
913
  <h3 class="heading"><?php _e('Options', 'ajax-load-more'); ?></h3>
914
  <div class="expand-wrap">
915
 
916
+ <!-- ID -->
917
  <div class="section-title">
918
  <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>
919
  <p><?php _e('Set a unique ID for this Ajax Load More instance.', 'ajax-load-more'); ?><br/>
930
  <div class="clear"></div>
931
  <hr/>
932
 
933
+ <!-- Container Type -->
934
  <div class="section-title">
935
  <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>
936
+ <p><?php _e('Override the global Container Type set on the <a href="admin.php?page=ajax-load-more">ALM Settings page</a>.', 'ajax-load-more'); ?></p>
937
  </div>
938
  <div class="wrap">
939
  <div class="inner">
940
  <ul class="container_type">
941
  <li>
942
  <input type="radio" id="type-ul" value="ul" name="alm_container_type" class="alm_element">
943
+ <label for="type-ul">&lt;ul /&gt;</label>
944
  </li>
945
  <li>
946
  <input type="radio" id="type-div" value="div" name="alm_container_type" class="alm_element">
947
+ <label for="type-div">&lt;div /&gt;</label>
948
  </li>
949
  <li>
950
  <input type="radio" id="type-ol" value="ol" name="alm_container_type" class="alm_element">
951
+ <label for="type-ol">&lt;ol /&gt;</label>
952
  </li>
953
  <li>
954
  <input type="radio" id="type-table" value="table" name="alm_container_type" class="alm_element">
955
+ <label for="type-table">&lt;table /&gt;</label>
956
  </li>
957
  </ul>
958
  </div>
961
  <div class="clear"></div>
962
  <hr/>
963
 
964
+ <!-- Container Classes -->
965
  <div class="section-title">
966
  <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>
967
  <p><?php _e('Add custom CSS classes to the Ajax Load More container. <br/><br/> e.g. portfolio-listing large-12 etc', 'ajax-load-more'); ?></p>
971
  <input class="alm_element" name="container-classes" type="text" id="container-classes" placeholder="portfolio-listing large-12">
972
  </div>
973
  </div>
 
974
  </div>
975
  </div>
976
  <!-- End Options -->
1008
  </div>
1009
  <!-- Button Labels -->
1010
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1011
  <!-- Scrolling -->
1012
  <div class="row checkbox scroll_load" id="alm-scroll">
1013
  <h3 class="heading"><?php _e('Scrolling', 'ajax-load-more'); ?></h3>
1086
  <h3 class="heading"><?php _e('Transition', 'ajax-load-more'); ?></h3>
1087
  <div class="expand-wrap">
1088
  <div class="section-title">
1089
+ <h4><?php _e('Type', 'ajax-load-more'); ?></h4>
1090
  <p><?php _e('Select a loading transition style.', 'ajax-load-more'); ?></p>
1091
  </div>
1092
+ <div class="wrap">
1093
+ <div class="inner">
1094
+ <select class="alm_element transition" name="transition">
1095
+ <option value="slide" selected="selected"><?php _e('Slide', 'ajax-load-more'); ?></option>
1096
+ <option value="fade"><?php _e('Fade', 'ajax-load-more'); ?></option>
1097
+ <option value="masonry"><?php _e('Masonry', 'ajax-load-more'); ?></option>
1098
+ <option value="none"><?php _e('None', 'ajax-load-more'); ?></option>
1099
+ </select>
1100
+ </div>
1101
+ </div>
1102
+
1103
+ <div class="clear"></div>
1104
+
1105
+ <div class="masonry-options">
1106
+
1107
+ <div class="clear"></div>
1108
+ <hr>
1109
+
1110
+ <div class="section-title">
1111
+ <h4><?php _e('Masonry 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>
1112
+ <p><?php _e('Enter the target classname of each masonry item', 'ajax-load-more'); ?>.<br/>
1113
+ e.g <span>.grid-item</span>
1114
+ </p>
1115
+ </div>
1116
+ <div class="wrap">
1117
+ <div class="inner">
1118
+ <input type="text" class="alm_element" name="masonry-item" id="masonry-item" placeholder=".grid-item">
1119
+ </div>
1120
+ </div>
1121
+
1122
+ </div>
1123
+
1124
+ <!-- Hide transition_speed & transition_container if Masonry is selected -->
1125
+ <div class="masonry-options-hide">
1126
+
1127
+ <div class="clear"></div>
1128
+ <hr>
1129
+
1130
+ <div class="section-title">
1131
+ <h4><?php _e('Speed', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('0.5 seconds = 500, 1 second = 1000 etc.','ajax-load-more'); ?>"></a></h4>
1132
+ <p><?php _e('The speed of the loading transition in milliseconds', 'ajax-load-more'); ?>.<br/></p>
1133
+ </div>
1134
+ <div class="wrap">
1135
+ <div class="inner">
1136
+ <input type="number" class="alm_element numbers-only" name="transition-speed" id="transition-speed" step="50" min="50" value="250">
1137
+ </div>
1138
+ </div>
1139
+
1140
+ <div class="clear"></div>
1141
+ <hr>
1142
+
1143
+ <div class="section-title">
1144
+ <h4><?php _e('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>
1145
+ <p><?php _e('Remove the <span>.alm-reveal</span> loading container from Ajax Load More', 'ajax-load-more'); ?>.</p>
1146
+ </div>
1147
+ <div class="wrap">
1148
+ <div class="inner">
1149
+ <ul>
1150
+ <li style="width:100%;">
1151
+ <input class="alm_element" type="checkbox" name="remove_container" id="remove_container" value="f">
1152
+ <label for="remove_container"><?php _e('Remove Container', 'ajax-load-more'); ?></label>
1153
+ </li>
1154
+ </ul>
1155
+ </div>
1156
+ </div>
1157
+ </div>
1158
+ <!-- End Hide transition_speed & transition_container if Masonry is selected -->
1159
+
1160
+ </div>
1161
+ </div>
1162
+ <!-- End Transition -->
1163
+
1164
+ <!-- Pause -->
1165
+ <div class="row checkbox pause_load" id="alm-pause">
1166
+ <h3 class="heading"><?php _e('Pause', 'ajax-load-more'); ?></h3>
1167
+ <div class="expand-wrap">
1168
+ <div class="section-title">
1169
+ <p><?php _e('Do <u>NOT</u> load any posts until user clicks the <em>Load More</em> button.', 'ajax-load-more'); ?></p>
1170
+ </div>
1171
  <div class="wrap">
1172
  <div class="inner">
1173
  <ul>
1174
  <li>
1175
+ <input class="alm_element" type="radio" name="pause" value="t" id="pause_t">
1176
+ <label for="pause_t"><?php _e('True', 'ajax-load-more'); ?></label>
 
 
 
 
1177
  </li>
1178
  <li>
1179
+ <input class="alm_element" type="radio" name="pause" value="f" id="pause_f" checked>
1180
+ <label for="pause_f"><?php _e('False', 'ajax-load-more'); ?></label>
1181
  </li>
1182
  </ul>
1183
  </div>
1184
  </div>
1185
+ </div>
1186
+ </div>
1187
+ <!-- End Pause -->
1188
+
1189
+ <!-- Progress Bar -->
1190
+ <div class="row input alm-progress-bar" id="alm-progress-bar">
1191
+ <h3 class="heading"><?php _e('Progress Bar', 'ajax-load-more'); ?></h3>
1192
+ <div class="expand-wrap">
1193
+ <div class="section-title">
1194
+ <p><?php _e('Display progress bar indicator at the top of the window while loading Ajax content', 'ajax-load-more'); ?>.<br/>
1195
+ &raquo; <a href="https://connekthq.com/plugins/ajax-load-more/examples/progress-bar/" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a>
1196
+
1197
+ </p>
1198
+ </div>
1199
+ <div class="wrap">
1200
+ <div class="inner">
1201
+ <ul>
1202
+ <li>
1203
+ <input class="alm_element" type="radio" name="progress_bar" value="t" id="progress_bar_t">
1204
+ <label for="progress_bar_t"><?php _e('True', 'ajax-load-more'); ?></label>
1205
+ </li>
1206
+ <li>
1207
+ <input class="alm_element" type="radio" name="progress_bar" value="f" id="progress_bar_f" checked="checked">
1208
+ <label for="progress_bar_f"><?php _e('False', 'ajax-load-more'); ?></label>
1209
+ </li>
1210
+ </ul>
1211
+ </div>
1212
+ </div>
1213
+ </div>
1214
+
1215
+ <div class="clear"></div>
1216
+
1217
+ <div class="progress-bar-options">
1218
 
1219
  <div class="clear"></div>
1220
  <hr>
1221
 
1222
  <div class="section-title">
1223
+ <h4><?php _e('Color', 'ajax-load-more'); ?> </h4>
1224
+ <p><?php _e('Enter the hex color of the progress bar', 'ajax-load-more'); ?>.<br/>
1225
+ Default: #<span>ed7070</span>
1226
+ </p>
1227
  </div>
1228
+ <div class="wrap">
1229
  <div class="inner">
1230
+ <input type="text" class="alm_element" name="progress_bar_color" id="progress_bar_color" placeholder="ed7070" value="ed7070" maxlength="6">
1231
  </div>
1232
  </div>
1233
 
1234
+ </div>
 
1235
 
1236
+ </div>
1237
+ <!-- End Progress Bar -->
1238
+
1239
+ <!-- Images Loaded -->
1240
+ <div class="row input alm-images-loaded" id="alm-images-loaded">
1241
+ <h3 class="heading"><?php _e('Images Loaded', 'ajax-load-more'); ?></h3>
1242
+ <div class="expand-wrap">
1243
  <div class="section-title">
1244
+ <p><?php _e('Wait for all images to load before displaying ajax loaded content', 'ajax-load-more'); ?>. <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Background images are not supported','ajax-load-more'); ?>"></a></p>
1245
+ </div>
 
1246
  <div class="wrap">
1247
+ <div class="inner">
1248
  <ul>
1249
+ <li>
1250
+ <input class="alm_element" type="radio" name="images_loaded" value="t" id="images_loaded_t">
1251
+ <label for="images_loaded_t"><?php _e('True', 'ajax-load-more'); ?></label>
1252
+ </li>
1253
+ <li>
1254
+ <input class="alm_element" type="radio" name="images_loaded" value="f" id="images_loaded_f" checked="checked">
1255
+ <label for="images_loaded_f"><?php _e('False', 'ajax-load-more'); ?></label>
1256
+ </li>
1257
  </ul>
1258
+ </div>
1259
  </div>
1260
  </div>
1261
  </div>
1262
+ <!-- End Images Loaded -->
1263
 
1264
  <!-- Destroy After -->
1265
+ <div class="row input alm-destroy-after" id="alm-destroy-after">
1266
  <h3 class="heading"><?php _e('Destroy After', 'ajax-load-more'); ?></h3>
1267
  <div class="expand-wrap">
1268
+ <!-- Destroy After -->
1269
+ <div class="expand-wrap">
1270
+ <div class="section-title">
1271
+ <p><?php _e('Remove Ajax Load More functionality after \'<em>n</em>\' number of pages have been loaded.', 'ajax-load-more'); ?></p>
1272
+ </div>
1273
+ <div class="wrap">
1274
+ <div class="inner">
1275
+ <input type="number" class="alm_element numbers-only" name="destroy-after" id="disable-after" step="1" min="0" value="">
1276
+ </div>
1277
+ </div>
1278
+ </div>
1279
  </div>
1280
  </div>
1281
  <!-- End Destroy After -->
1282
 
1283
+
1284
  </div>
1285
  <!-- End Display Settings -->
1286
 
admin/views/help.php CHANGED
@@ -1,9 +1,9 @@
1
- <?php
2
  $id = 'alm-help';
3
  $examples = false;
4
  $subtitle = __('Get started with our four step guide to painless implementation!', 'ajax-load-more');
5
  if (isset($_GET['section'])) {
6
- $the_section = $_GET['section'];
7
  if($the_section == 'examples'){
8
  $examples = true;
9
  $subtitle = __('A collection of everyday shortcode usages and implementation examples', 'ajax-load-more') .'.';
@@ -20,7 +20,7 @@
20
  </h1>
21
  </div>
22
  <div class="cnkt-main">
23
-
24
  <ul class="alm-toggle-switch">
25
  <li>
26
  <a href="?page=ajax-load-more-help" class="<?php if(!$examples){ echo 'active';} ?>">
@@ -32,43 +32,43 @@
32
  <?php _e('Examples', 'ajax-load-more'); ?>
33
  </a>
34
  </li>
35
- </ul>
36
-
37
- <?php
38
- if(!$examples){
39
  // Implementation Guide
40
  ?>
41
-
42
  <div class="group">
43
  <img src="<?php echo ALM_ADMIN_URL; ?>img/infographic.png">
44
  </div>
45
-
46
- <?php } else {
47
  // Examples
48
  include_once( ALM_PATH . 'admin/includes/components/example-list.php');
49
-
50
  } ?>
51
-
52
  </div>
53
-
54
  <div class="cnkt-sidebar">
55
- <?php
56
  if(!$examples){
57
  // Implementation Guide
58
  include_once( ALM_PATH . 'admin/includes/cta/resources.php');
59
- include_once( ALM_PATH . 'admin/includes/cta/dyk.php');
60
-
61
- } else {
62
  // Examples
63
  ?>
64
  <div class="cta padding-bottom">
65
  <h3><?php _e('Example Library', 'ajax-load-more'); ?></h3>
66
  <div class="cta-inner">
67
- <p style="padding-bottom: 10px;"><?php _e('We have a collection of over 20 real-world Ajax Load More <a href="https://connekthq.com/plugins/ajax-load-more/examples/" target="_blank">examples</a> available on the plugin website', 'ajax-load-more'); ?>.</p>
68
  </div>
69
  <a href="https://connekthq.com/plugins/ajax-load-more/examples/" class="visit" target="_blank"><i class="fa fa-chevron-circle-right"></i> <?php _e('View All Examples', 'ajax-load-more'); ?></a>
70
  </div>
71
- <?php
72
  include_once( ALM_PATH . 'admin/includes/cta/dyk.php');
73
  include_once( ALM_PATH . 'admin/includes/cta/resources.php');
74
  }
1
+ <?php
2
  $id = 'alm-help';
3
  $examples = false;
4
  $subtitle = __('Get started with our four step guide to painless implementation!', 'ajax-load-more');
5
  if (isset($_GET['section'])) {
6
+ $the_section = $_GET['section'];
7
  if($the_section == 'examples'){
8
  $examples = true;
9
  $subtitle = __('A collection of everyday shortcode usages and implementation examples', 'ajax-load-more') .'.';
20
  </h1>
21
  </div>
22
  <div class="cnkt-main">
23
+
24
  <ul class="alm-toggle-switch">
25
  <li>
26
  <a href="?page=ajax-load-more-help" class="<?php if(!$examples){ echo 'active';} ?>">
32
  <?php _e('Examples', 'ajax-load-more'); ?>
33
  </a>
34
  </li>
35
+ </ul>
36
+
37
+ <?php
38
+ if(!$examples){
39
  // Implementation Guide
40
  ?>
41
+
42
  <div class="group">
43
  <img src="<?php echo ALM_ADMIN_URL; ?>img/infographic.png">
44
  </div>
45
+
46
+ <?php } else {
47
  // Examples
48
  include_once( ALM_PATH . 'admin/includes/components/example-list.php');
49
+
50
  } ?>
51
+
52
  </div>
53
+
54
  <div class="cnkt-sidebar">
55
+ <?php
56
  if(!$examples){
57
  // Implementation Guide
58
  include_once( ALM_PATH . 'admin/includes/cta/resources.php');
59
+ include_once( ALM_PATH . 'admin/includes/cta/dyk.php');
60
+
61
+ } else {
62
  // Examples
63
  ?>
64
  <div class="cta padding-bottom">
65
  <h3><?php _e('Example Library', 'ajax-load-more'); ?></h3>
66
  <div class="cta-inner">
67
+ <p style="padding-bottom: 10px;"><?php _e('We have a collection of over 20 real world Ajax Load More <a href="https://connekthq.com/plugins/ajax-load-more/examples/" target="_blank">examples</a> available on the plugin website', 'ajax-load-more'); ?>.</p>
68
  </div>
69
  <a href="https://connekthq.com/plugins/ajax-load-more/examples/" class="visit" target="_blank"><i class="fa fa-chevron-circle-right"></i> <?php _e('View All Examples', 'ajax-load-more'); ?></a>
70
  </div>
71
+ <?php
72
  include_once( ALM_PATH . 'admin/includes/cta/dyk.php');
73
  include_once( ALM_PATH . 'admin/includes/cta/resources.php');
74
  }
admin/views/settings.php CHANGED
@@ -14,28 +14,28 @@
14
  if(!isset($alm_share_notification) || empty($alm_share_notification)){
15
  // If transient has not been set - display this notice.
16
  ?>
17
- <div class="group share-alm">
18
  <div class="dotted">
19
  <h2 style="padding: 0; margin: 0 0 20px;">
20
  👋 &nbsp;<?php _e('Thanks for installing Ajax Load More 3.0!', 'ajax-load-more'); ?>
21
  </h2>
22
  <p>Version 3 is a big step forward for Ajax Load More and I really hope you like the changes and new features - be sure to check out the new <a href="admin.php?page=ajax-load-more-extensions">Extensions</a> section for 1-click installs of all currently available extensions for Ajax Load More.</p>
23
  </div>
24
- <p>Please consider helping <a href="https://twitter.com/KaptonKaos" target="_blank">me</a> widen the reach of Ajax Load More by sharing with your networks.</p>
25
 
26
  <ul class="share">
27
  <li class="twitter">
28
  <a target="blank" title="Share on Twitter" href="//twitter.com/home?status=I'm infinite scrolling with Ajax Load More for %23WordPress - https://connekthq.com/plugins/ajax-load-more/" class="share-twitter"><i class="fa fa-twitter"></i> Twitter</a>
29
- </li>
30
  <li class="facebook">
31
  <a target="blank" title="Share on Facebook" href="//facebook.com/share.php?u=https://connekthq.com/plugins/ajax-load-more/" class="share-facebook"><i class="fa fa-facebook"></i> Facebook</a>
32
  </li>
33
  </ul>
34
-
35
  <div class="clear"></div>
36
-
37
  <a href="javascript: void(0);" class="dismiss" id="alm_dismiss_sharing" title="<?php _e('Don\'t show me this again!', 'ajax-load-more');?>">&times;</a>
38
-
39
  </div>
40
  <?php } ?>
41
 
14
  if(!isset($alm_share_notification) || empty($alm_share_notification)){
15
  // If transient has not been set - display this notice.
16
  ?>
17
+ <div class="group share-alm" style="display: none !important;">
18
  <div class="dotted">
19
  <h2 style="padding: 0; margin: 0 0 20px;">
20
  👋 &nbsp;<?php _e('Thanks for installing Ajax Load More 3.0!', 'ajax-load-more'); ?>
21
  </h2>
22
  <p>Version 3 is a big step forward for Ajax Load More and I really hope you like the changes and new features - be sure to check out the new <a href="admin.php?page=ajax-load-more-extensions">Extensions</a> section for 1-click installs of all currently available extensions for Ajax Load More.</p>
23
  </div>
24
+ <p>Please consider helping <a href="https://twitter.com/KaptonKaos" target="_blank">me</a> widen the reach of Ajax Load More by sharing with your networks.</p>
25
 
26
  <ul class="share">
27
  <li class="twitter">
28
  <a target="blank" title="Share on Twitter" href="//twitter.com/home?status=I'm infinite scrolling with Ajax Load More for %23WordPress - https://connekthq.com/plugins/ajax-load-more/" class="share-twitter"><i class="fa fa-twitter"></i> Twitter</a>
29
+ </li>
30
  <li class="facebook">
31
  <a target="blank" title="Share on Facebook" href="//facebook.com/share.php?u=https://connekthq.com/plugins/ajax-load-more/" class="share-facebook"><i class="fa fa-facebook"></i> Facebook</a>
32
  </li>
33
  </ul>
34
+
35
  <div class="clear"></div>
36
+
37
  <a href="javascript: void(0);" class="dismiss" id="alm_dismiss_sharing" title="<?php _e('Don\'t show me this again!', 'ajax-load-more');?>">&times;</a>
38
+
39
  </div>
40
  <?php } ?>
41
 
ajax-load-more.php CHANGED
@@ -7,13 +7,13 @@ Text Domain: ajax-load-more
7
  Author: Darren Cooney
8
  Twitter: @KaptonKaos
9
  Author URI: http://connekthq.com
10
- Version: 3.0.1
11
  License: GPL
12
  Copyright: Darren Cooney & Connekt Media
13
  */
14
 
15
- define('ALM_VERSION', '3.0.1');
16
- define('ALM_RELEASE', 'May 22, 2017');
17
  define('ALM_STORE_URL', 'https://connekthq.com');
18
 
19
 
@@ -257,14 +257,17 @@ if( !class_exists('AjaxLoadMore') ):
257
 
258
 
259
  // Load JS
260
- //wp_register_script( 'ajax-load-more', plugins_url( '/core/js/ajax-load-more.js', __FILE__ ), $dependencies, ALM_VERSION, true );
261
- wp_register_script( 'ajax-load-more', plugins_url( '/core/js/ajax-load-more.min.js', __FILE__ ), $dependencies, ALM_VERSION, true );
 
 
 
 
262
 
263
 
264
  // Load CSS
265
  if(!isset($options['_alm_disable_css']) || $options['_alm_disable_css'] != '1'){
266
- //$file = plugins_url('/core/css/ajax-load-more.css', __FILE__ );
267
- $file = plugins_url('/core/css/ajax-load-more.min.css', __FILE__ );
268
  ALM_ENQUEUE::alm_enqueue_css('ajax-load-more', $file);
269
  }
270
 
@@ -277,7 +280,8 @@ if( !class_exists('AjaxLoadMore') ):
277
  }
278
 
279
  wp_localize_script(
280
- 'ajax-load-more', 'alm_localize',
 
281
  array(
282
  'ajaxurl' => admin_url('admin-ajax.php'),
283
  'alm_nonce' => wp_create_nonce( "ajax_load_more_nonce" ),
7
  Author: Darren Cooney
8
  Twitter: @KaptonKaos
9
  Author URI: http://connekthq.com
10
+ Version: 3.1.0
11
  License: GPL
12
  Copyright: Darren Cooney & Connekt Media
13
  */
14
 
15
+ define('ALM_VERSION', '3.1.0');
16
+ define('ALM_RELEASE', 'May 30, 2017');
17
  define('ALM_STORE_URL', 'https://connekthq.com');
18
 
19
 
257
 
258
 
259
  // Load JS
260
+
261
+ // Core JS
262
+ wp_register_script( 'ajax-load-more', plugins_url( '/core/dist/js/ajax-load-more.min.js', __FILE__ ), $dependencies, ALM_VERSION, true );
263
+
264
+ // Progress Bar JS
265
+ wp_register_script( 'ajax-load-more-progress', plugins_url( '/core/js/vendor/pace/pace.min.js', __FILE__ ), 'ajax-load-more', ALM_VERSION, true );
266
 
267
 
268
  // Load CSS
269
  if(!isset($options['_alm_disable_css']) || $options['_alm_disable_css'] != '1'){
270
+ $file = plugins_url('/core/dist/css/ajax-load-more.min.css', __FILE__ );
 
271
  ALM_ENQUEUE::alm_enqueue_css('ajax-load-more', $file);
272
  }
273
 
280
  }
281
 
282
  wp_localize_script(
283
+ 'ajax-load-more',
284
+ 'alm_localize',
285
  array(
286
  'ajaxurl' => admin_url('admin-ajax.php'),
287
  'alm_nonce' => wp_create_nonce( "ajax_load_more_nonce" ),
core/classes/class.alm-shortcode.php CHANGED
@@ -24,7 +24,7 @@ if( !class_exists('ALM_SHORTCODE') ):
24
  * Parse & render ALM shortcode.
25
  *
26
  * @since 2.10.1
27
- * @param $atts Shortcode attributes
28
  * @return $ajaxloadmore
29
  */
30
 
@@ -40,7 +40,7 @@ if( !class_exists('ALM_SHORTCODE') ):
40
 
41
  // Define Post ID
42
  $post_id = alm_get_page_id($post);
43
-
44
  // Custom CSS for Layouts - Only run this once.
45
  if(has_action('alm_layouts_custom_css')){
46
  do_action('alm_layouts_custom_css', self::$counter);
@@ -128,6 +128,9 @@ if( !class_exists('ALM_SHORTCODE') ):
128
  'transition' => 'slide',
129
  'transition_speed' => '250',
130
  'transition_container' => 'true',
 
 
 
131
  'images_loaded' => 'false',
132
  'button_label' => apply_filters('alm_button_label', __('Older Posts', 'ajax-load-more')),
133
  'button_loading_label' => '',
@@ -136,24 +139,45 @@ if( !class_exists('ALM_SHORTCODE') ):
136
  'id' => '',
137
  'primary' => false
138
  ), $atts));
139
-
140
 
141
- // Enqueue core Ajax Load More JS
 
 
 
 
 
 
 
 
 
 
142
  wp_enqueue_script( 'ajax-load-more' );
143
 
144
- // Enqueue add-on JS
145
- if(has_action('alm_seo_installed') && $seo === 'true'){
146
- wp_enqueue_script( 'ajax-load-more-seo' );
147
- }
 
 
 
 
 
 
 
 
148
  if(has_action('alm_paging_installed') && $paging === 'true'){
149
  wp_enqueue_script( 'ajax-load-more-paging' );
150
  }
 
 
151
  if(has_action('alm_prev_post_installed') && $previous_post === 'true'){
152
  wp_enqueue_script( 'ajax-load-more-previous-post' );
153
  }
154
- if(has_action('alm_nextpage_installed') && $nextpage === 'true'){
155
- wp_enqueue_script( 'ajax-load-more-nextpage' );
156
- }
 
 
157
 
158
 
159
 
@@ -167,6 +191,9 @@ if( !class_exists('ALM_SHORTCODE') ):
167
  do_action('alm_enqueue_external_scripts', $atts);
168
 
169
 
 
 
 
170
  if($previous_post === 'true'){
171
  $previous_post = true;
172
  }
@@ -264,568 +291,601 @@ if( !class_exists('ALM_SHORTCODE') ):
264
  // Start ALM object
265
  $ajaxloadmore = '';
266
 
267
- $ajaxloadmore .= apply_filters('alm_before_container', ''); // ALM Core Filter Hook
268
 
269
- $canonicalURL = alm_get_canonical_url(); // Build canonical URL
270
 
271
- // ALM Wrapper
272
- $div_id = 'ajax-load-more';
273
- if(self::$counter > 1){
274
- $div_id = 'ajax-load-more-'.self::$counter; // Update ID to include counter value
275
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
276
 
277
- // Unique ID
278
- if(!empty($id)){
279
- $the_id = 'data-id="'.$id.'"';
280
- }else{
281
- $the_id = '';
282
- }
283
 
284
- // Is Search
285
- $is_search = '';
286
- if(is_search()){
287
- $is_search = 'data-search="true"'; // set attr for use with SEO
288
- }
289
 
290
- $ajaxloadmore .= '<div id="'. $div_id .'" class="ajax-load-more-wrap'. $btn_color .''. $paging_color .''. $alm_layouts .'" '.$the_id.' data-alm-id="" data-canonical-url="'. $canonicalURL .'" data-slug="'. $slug .'" data-post-id="'. $post_id .'" '. $is_search .'>';
291
 
 
 
 
 
 
 
 
292
 
293
- // Previous Post Add-on
294
- // - Set other add-on params to false
295
- if($previous_post){
296
- $preloaded = false;
297
- $seo = false;
298
- $paging = false;
299
- $comments = false;
300
- $acf = false;
301
- }
302
 
 
303
 
304
- // Comments Add-on
305
- // - Set other add-on params to false
306
- if($comments){
307
- $previous_post = false;
308
- $seo = false;
309
- $cache = false;
310
- $acf = false;
311
- $posts_per_page = $comments_per_page;
312
- }
313
 
 
314
 
315
- // Nextpage Add-on
316
- // - Set other add-on params to false
317
- if($nextpage){
318
- $previous_post = false;
319
- $seo = false;
320
- $preloaded = false;
321
- $comments = false;
322
- $acf = false;
323
- $pause = 'true';
324
- }
325
 
326
 
327
- // ********************************
328
- // Preloaded Add-on
329
- // - Get preloaded posts and append to ajax load more object
330
- if(has_action('alm_preload_installed') && $preloaded === 'true'){
331
-
332
- $preloaded_output = '';
333
- $preload_offset = $offset;
334
-
335
- // If SEO, set $preloaded_amount to $posts_per_page
336
- if(has_action('alm_seo_installed') && $seo === 'true'){
337
- $preloaded_amount = $posts_per_page;
338
- }
339
-
340
- // Paging Add-on
341
- // - Set $preloaded_amount to $posts_per_page
342
- if($paging === 'true'){
343
- $preloaded_amount = $posts_per_page;
344
- $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
345
- if($paged > 1){
346
- $preload_offset = $preloaded_amount * ($paged - 1);
347
- }
348
- }
349
-
350
- // CTA Add-on
351
- // - Parse $cta_position
352
- if($cta){
353
- $cta_pos_array = explode(":", $cta_position);
354
- $cta_pos = (string)$cta_pos_array[0];
355
- $cta_val = (string)$cta_pos_array[1];
356
- if($cta_pos != 'after'){
357
- $cta_pos = 'before';
358
- }
359
- }
360
-
361
- $preloaded_arr = array( // Create preload data array
362
- 'post_id' => $post_id,
363
- 'acf' => $acf,
364
- 'acf_post_id' => $acf_post_id,
365
- 'acf_field_type' => $acf_field_type,
366
- 'acf_field_name' => $acf_field_name,
367
- 'comments' => $comments,
368
- 'comments_per_page' => $comments_per_page,
369
- 'comments_type' => $comments_type,
370
- 'comments_style' => $comments_style,
371
- 'comments_template' => $comments_template,
372
- 'comments_callback' => $comments_callback,
373
- 'comments_post_id' => $comments_post_id,
374
- 'post_type' => $post_type,
375
- 'sticky_posts' => $sticky_posts,
376
- 'post_format' => $post_format,
377
- 'category' => $category,
378
- 'category__not_in' => $category__not_in,
379
- 'tag' => $tag,
380
- 'tag__not_in' => $tag__not_in,
381
- 'taxonomy' => $taxonomy,
382
- 'taxonomy_terms' => $taxonomy_terms,
383
- 'taxonomy_operator' => $taxonomy_operator,
384
- 'taxonomy_relation' => $taxonomy_relation,
385
- 'meta_key' => $meta_key,
386
- 'meta_value' => $meta_value,
387
- 'meta_compare' => $meta_compare,
388
- 'meta_relation' => $meta_relation,
389
- 'meta_type' => $meta_type,
390
- 'year' => $year,
391
- 'month' => $month,
392
- 'day' => $day,
393
- 'author' => $author,
394
- 'post__in' => $post__in,
395
- 'post__not_in' => $post__not_in,
396
- 'search' => $search,
397
- 'custom_args' => $custom_args,
398
- 'post_status' => $post_status,
399
- 'order' => $order,
400
- 'orderby' => $orderby,
401
- 'exclude' => $exclude,
402
- 'offset' => $preload_offset,
403
- 'posts_per_page' => $preloaded_amount,
404
- 'lang' => $lang,
405
- 'css_classes' => $css_classes,
406
- );
407
-
408
- $type = alm_get_repeater_type($repeater);
409
-
410
- if($comments){ // Comments
411
-
412
- if(has_action('alm_comments_installed') && $comments){
413
-
414
- /*
415
- * alm_comments_preloaded
416
  *
417
- * Preloaded Comments Filter
418
  *
419
- * @return $preloaded_comments;
420
  */
421
- $preloaded_comments = apply_filters('alm_comments_preloaded', $preloaded_arr); // located in comments add-on
422
- $preloaded_output .= '<'.$comments_style.' class="alm-listing alm-preloaded commentlist alm-comments-preloaded '. $classname .' '. $css_classes .'">';
423
- if($seo === "true") $preloaded_output .= '<div class="alm-reveal alm-seo" data-page="1" data-url="'.$canonicalURL.'">';
424
 
425
- $preloaded_output .= $preloaded_comments;
426
 
427
- if($seo === "true"){
428
- $preloaded_output .= '</div>';
429
- }
430
-
431
- $preloaded_output .= '</'.$container_element.'>';
432
- }
433
-
434
- }
435
-
436
- elseif($acf && ($acf_field_type !== 'relationship')){ // Advanced Custom Fields
437
-
438
- if(has_action('alm_acf_installed') && $acf){
439
-
440
- /* alm_acf_preloaded
441
  *
442
- * Preloaded ACF Filter
443
  *
444
- * @return $preloaded_acf;
445
  */
446
- $preloaded_acf = apply_filters('alm_acf_preloaded', $preloaded_arr, $repeater, $theme_repeater); //located in ACF add-on
447
-
448
- $preloaded_output .= '<'.$container_element.' class="alm-listing alm-preloaded alm-acf-preloaded '. $classname .' '. $css_classes .'" data-total-posts="'. apply_filters('alm_acf_total_rows', $preloaded_arr) .'">';
449
- if($seo === "true"){
450
- $preloaded_output .= '<div class="alm-reveal alm-seo" data-page="1" data-url="'.$canonicalURL.'">';
451
- }
452
 
453
- $preloaded_output .= $preloaded_acf;
454
 
455
- if($seo === "true"){
456
- $preloaded_output .= '</div>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
457
  }
458
-
459
- $preloaded_output .= '</'.$container_element.'>';
460
- }
461
-
462
- }
463
-
464
- else { // Standard
465
 
 
466
 
467
- /*
468
- * alm_preload_args
469
- *
470
- * ALM Preloaded Filter Hook
471
- *
472
- * @return $args;
473
- */
474
- $args = apply_filters('alm_preload_args', $preloaded_arr); // Create preloaded $args
475
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
476
 
477
 
478
- /*
479
- * alm_modify_query_args
480
  *
481
- * ALM Core Filter Hook
482
  *
483
  * @return $args;
484
  */
485
- $args = apply_filters('alm_modify_query_args', $args, $slug);
486
-
487
-
488
-
489
- /*
490
- * alm_query_args_[id]
491
- *
492
- * ALM Core Filter Hook
493
- *
494
- * @return $args;
495
- */
496
- $args = apply_filters('alm_query_args_'.$id, $args); // ALM Core Filter Hook
497
-
498
-
499
- $alm_preload_query = new WP_Query($args);
500
- $alm_total_posts = $alm_preload_query->found_posts - $offset;
501
- $output = '';
502
- $noscript = '';
503
-
504
- if ($alm_preload_query->have_posts()) :
505
- $alm_loop_count = 0; // Count var
506
- $alm_page = 0; // Set page to 0
507
- $alm_found_posts = $alm_total_posts;
508
- $alm_current = 0;
509
- while ($alm_preload_query->have_posts()) : $alm_preload_query->the_post();
510
-
511
- $alm_loop_count++;
512
- $alm_current++;
513
- $alm_item = $alm_loop_count; // Get current item in loop
514
-
515
- // Call to Action [Before]
516
- if($cta && has_action('alm_cta_inc') && $cta_pos == 'before'){
517
- if($alm_current == $cta_val){
518
- $output .= apply_filters('alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, true);
519
- }
520
- }
521
-
522
- $output .= apply_filters('alm_preload_inc', $repeater, $type, $theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current);
523
-
524
- // Call to Action [After]
525
- if($cta && has_action('alm_cta_inc') && $cta_pos == 'after'){
526
- if($alm_current == $cta_val){
527
- $output .= apply_filters('alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, true);
528
- }
529
- }
530
-
531
- endwhile; wp_reset_query();
532
-
533
- if(has_action('alm_seo_installed') && $seo === 'true'){ // If SEO, add noscript paging
534
- // Create noscript paging for SEO if preload and seo are enabled
535
- $noscript = alm_paging_no_script($alm_preload_query);
536
- }
537
-
538
- endif;
539
-
540
- $preloaded_output .= '<'.$container_element.' class="alm-listing alm-preloaded'. $classname .' '. $css_classes .'" data-total-posts="'. $alm_total_posts .'">';
541
-
542
- if($seo === "true" && $paging === 'false'){
543
- if(is_search()){
544
- // If search, append slug (?s=term) to data-url
545
- $preloaded_output .= '<div class="alm-reveal alm-seo" data-page="1" data-url="'.$canonicalURL.''. $slug .'">';
546
- }else{
547
- $preloaded_output .= '<div class="alm-reveal alm-seo" data-page="1" data-url="'.$canonicalURL.'">';
548
- }
549
- }
550
- if($seo === "false" && $paging === 'true' || $seo === "true" && $paging === 'true'){
551
- $preloaded_output .= '<div class="alm-reveal">';
552
- }
553
-
554
- $preloaded_output .= $output;
555
-
556
- if($seo === "false" && $paging === 'true'){
557
- $preloaded_output .= '</div>';
558
- }
559
- if($seo === "true" && $paging === 'false' || $seo === "true" && $paging === 'true'){
560
- $preloaded_output .= '</div>';
561
- }
562
-
563
- $preloaded_output .= '</'.$container_element.'>';
564
-
565
- if(has_action('alm_seo_installed')){ // If SEO, add noscript paging
566
- $preloaded_output .= $noscript;
567
- }
568
- }
569
-
570
- $ajaxloadmore .= $preloaded_output; // Add $preloaded_output data to $ajaxloadmore
571
- }
572
- // End Preload Posts
573
- // ********************************
574
-
575
-
576
- $listing_class = 'alm-listing';
577
-
578
- // If comments
579
- if($comments === 'true'){
580
- $listing_class = 'commentlist alm-comments';
581
- }
582
-
583
- $ajaxloadmore .= '<'.$container_element.' class="'.$listing_class.' alm-ajax'. $paging_container_class .' '. $classname . ' '. $css_classes .'"'; // Build ALM container
584
-
585
-
586
- // Cache Add-on
587
- if(has_action('alm_cache_installed') && $cache === 'true'){
588
- $cache_return = apply_filters(
589
- 'alm_cache_shortcode',
590
- $cache,
591
- $cache_id,
592
- $options
593
- );
594
- $ajaxloadmore .= $cache_return;
595
- }
596
 
597
- // CTA Add-on
598
- if(has_action('alm_cta_installed') && $cta === 'true'){
599
- $cta_return = apply_filters(
600
- 'alm_cta_shortcode',
601
- $cta,
602
- $cta_position,
603
- $cta_repeater,
604
- $cta_theme_repeater
605
- );
606
- $ajaxloadmore .= $cta_return;
607
- }
608
 
609
- // Advanced Custom Fields Add-on
610
- if(has_action('alm_acf_installed') && $acf === 'true'){
611
- $acf_return = apply_filters(
612
- 'alm_acf_shortcode',
613
- $acf,
614
- $acf_field_type,
615
- $acf_field_name,
616
- $acf_post_id,
617
- $post_id
618
- );
619
- $ajaxloadmore .= $acf_return;
620
- }
621
 
622
- // Comments Add-on
623
- if(has_action('alm_comments_installed') && $comments === 'true'){
624
- $comments_return = apply_filters(
625
- 'alm_comments_shortcode',
626
- $comments,
627
- $comments_per_page,
628
- $comments_type,
629
- $comments_style,
630
- $comments_template,
631
- $comments_callback,
632
- $comments_post_id
633
- );
634
- $ajaxloadmore .= $comments_return;
635
- }
636
 
637
- // REST API Add-on
638
- if(has_action('alm_rest_api_installed') && $restapi === true){
639
- $restapi_return = apply_filters(
640
- 'alm_rest_api_shortcode',
641
- 'true',
642
- $restapi_base,
643
- $restapi_namespace,
644
- $restapi_endpoint,
645
- $restapi_template_id,
646
- $restapi_debug
647
- );
648
- $ajaxloadmore .= $restapi_return;
649
- }
650
 
 
651
 
652
- // Paging Add-on
653
- if(has_action('alm_paging_installed') && $paging === 'true'){
654
- $paging_return = apply_filters(
655
- 'alm_paging_shortcode',
656
- $paging,
657
- $paging_controls,
658
- $paging_show_at_most,
659
- $paging_classes,
660
- $options
661
- );
662
- $ajaxloadmore .= $paging_return;
663
- }
664
 
 
 
665
 
666
- // Preloaded Add-on
667
- if(has_action('alm_preload_installed') && $preloaded === 'true'){
668
- $ajaxloadmore .= ' data-preloaded="'.$preloaded.'"';
669
- $ajaxloadmore .= ' data-preloaded-amount="'.$preloaded_amount.'"';
670
- }
671
 
672
 
673
- // SEO Add-on
674
- if(has_action('alm_seo_installed') && $seo === 'true'){
675
- $seo_return = apply_filters(
676
- 'alm_seo_shortcode',
677
- $seo,
678
- $preloaded,
679
- $options
680
- );
681
- $ajaxloadmore .= $seo_return;
682
- }
683
-
684
-
685
- // Previous Post Post Add-on
686
- if(has_action('alm_prev_post_installed') && $previous_post){
687
- $prev_post_return = apply_filters(
688
- 'alm_prev_post_shortcode',
689
- $previous_post_id,
690
- $previous_post_taxonomy,
691
- $options
692
- );
693
- $ajaxloadmore .= $prev_post_return;
694
- }
695
 
 
696
 
697
- // Nextpage Post Add-on
698
- if(has_action('alm_nextpage_installed') && $nextpage){
699
- $nextpage_return = apply_filters(
700
- 'alm_nextpage_shortcode',
701
- $nextpage_urls,
702
- $nextpage_pageviews,
703
- $nextpage_post_id,
704
- $nextpage_scroll,
705
- $options
706
- );
707
- $ajaxloadmore .= $nextpage_return;
708
- }
709
 
710
-
711
- $ajaxloadmore .= ' data-repeater="'.$repeater.'"';
712
- if($theme_repeater != 'null'){
713
- $ajaxloadmore .= ' data-theme-repeater="'.$theme_repeater.'"';
714
- }
715
- $ajaxloadmore .= ' data-post-type="'.$post_type.'"';
716
- $ajaxloadmore .= ' data-sticky-posts="'.$sticky_posts.'"';
717
- $ajaxloadmore .= ' data-post-format="'.$post_format.'"';
718
- $ajaxloadmore .= ' data-category="'.$category.'"';
719
- $ajaxloadmore .= ' data-category-not-in="'.$category__not_in.'"';
720
- $ajaxloadmore .= ' data-tag="'.$tag.'"';
721
- $ajaxloadmore .= ' data-tag-not-in="'.$tag__not_in.'"';
722
- $ajaxloadmore .= ' data-taxonomy="'.$taxonomy.'"';
723
- $ajaxloadmore .= ' data-taxonomy-terms="'.$taxonomy_terms.'"';
724
- $ajaxloadmore .= ' data-taxonomy-operator="'.$taxonomy_operator.'"';
725
- $ajaxloadmore .= ' data-taxonomy-relation="'.$taxonomy_relation.'"';
726
- $ajaxloadmore .= ' data-meta-key="'.$meta_key.'"';
727
- $ajaxloadmore .= ' data-meta-value="'.$meta_value.'"';
728
- $ajaxloadmore .= ' data-meta-compare="'.$meta_compare.'"';
729
- $ajaxloadmore .= ' data-meta-relation="'.$meta_relation.'"';
730
- $ajaxloadmore .= ' data-meta-type="'.$meta_type.'"';
731
- $ajaxloadmore .= ' data-year="'.$year.'"';
732
- $ajaxloadmore .= ' data-month="'.$month.'"';
733
- $ajaxloadmore .= ' data-day="'.$day.'"';
734
- $ajaxloadmore .= ' data-author="'.$author.'"';
735
- $ajaxloadmore .= ' data-post-in="'.$post__in.'"';
736
- $ajaxloadmore .= ' data-post-not-in="'.$post__not_in.'"';
737
- $ajaxloadmore .= ' data-exclude="'.$exclude.'"';
738
- $ajaxloadmore .= ' data-search="'.$search.'"';
739
- $ajaxloadmore .= ' data-custom-args="'.$custom_args.'"';
740
- $ajaxloadmore .= ' data-post-status="'.$post_status.'"';
741
- $ajaxloadmore .= ' data-order="'.$order.'"';
742
- $ajaxloadmore .= ' data-orderby="'.$orderby.'"';
743
- $ajaxloadmore .= ' data-offset="'.$offset.'"';
744
- $ajaxloadmore .= ' data-posts-per-page="'.$posts_per_page.'"';
745
- $ajaxloadmore .= ' data-lang="'.$lang.'"';
746
- $ajaxloadmore .= ' data-scroll="'.$scroll.'"';
747
- $ajaxloadmore .= ' data-scroll-distance="'.$scroll_distance.'"';
748
- $ajaxloadmore .= ' data-max-pages="'.$max_pages.'"';
749
- $ajaxloadmore .= ' data-pause-override="'.$pause_override.'"';
750
- $ajaxloadmore .= ' data-pause="'.$pause.'"';
751
- $ajaxloadmore .= ' data-button-label="'.$button_label.'"';
752
- if(!empty($button_loading_label)){
753
- $ajaxloadmore .= ' data-button-loading-label="'.$button_loading_label.'"';
754
- }
755
- $ajaxloadmore .= ' data-button-class="'.$button_classname.'"';
756
- $ajaxloadmore .= ' data-destroy-after="'.$destroy_after.'"';
757
- $ajaxloadmore .= ' data-transition="'.$transition.'"';
758
- if($transition_speed !== '250'){
759
- $ajaxloadmore .= ' data-transition-speed="'.$transition_speed.'"';
760
- }
761
- if($transition_container === 'false'){
762
- $ajaxloadmore .= ' data-transition-container="'.$transition_container.'"';
763
- }
764
- $ajaxloadmore .= ' data-images-loaded="'.$images_loaded.'"';
765
-
766
- if($primary !== false){
767
- $ajaxloadmore .= ' data-primary="true"';
768
- }
769
- $ajaxloadmore .= '>';
770
-
771
-
772
- // Previous Post Add-on
773
- // - Get first post, append data to ajax load more object
774
- if(has_action('alm_prev_post_installed') && $previous_post){
775
- $repeater_type = preg_split('/(?=\d)/', $repeater, 2); // split $repeater at number to retrieve type
776
- $repeater_type = $repeater_type[0]; // (default | repeater | template_)
777
- if($theme_repeater != 'null' && has_filter('alm_get_theme_repeater')){
778
- $repeater_type = null;
779
- }
780
- // Get current permalink - (including querystring)
781
- $previous_post_permanlink = ($_SERVER["QUERY_STRING"]) ? get_permalink($previous_post_id) .'?'. $_SERVER["QUERY_STRING"] : get_permalink($previous_post_id);
782
-
783
- // Get previous post include, build output from the next post filter
784
- $previous_post_output = '<div class="alm-reveal alm-previous-post post-'. $previous_post_id .'" data-url="'. $previous_post_permanlink .'" data-title="'. get_the_title($previous_post_id) .'" data-id="'. $previous_post_id .'" data-page="0">'; // Set the post id .alm-reveal div
785
-
786
-
787
- /*
788
- * alm_prev_post_inc
789
  *
790
- * Previous Post Add-on hook
791
  *
792
- * @return $args;
793
  */
794
- $previous_post_output .= apply_filters('alm_prev_post_inc', $repeater, $repeater_type, $theme_repeater, $previous_post_id, $post_type);
795
 
796
- $previous_post_output .= '</div>';
797
- $ajaxloadmore .= $previous_post_output; // Add $previous_post_output data to $ajaxloadmore
798
 
799
- }
800
- // End Previous Post Add-on
801
-
802
-
803
- // Next Page Add-on
804
- if(has_action('alm_nextpage_installed') && $nextpage){
805
-
806
- $nextpage_start = alm_get_startpage();
807
-
808
- $nextpage_is_paged = false;
809
- if($nextpage_start > 1){
810
- $nextpage_is_paged = true;
811
- }
812
-
813
- $alm_nextpage_output = apply_filters('alm_init_nextpage', $nextpage_post_id, $nextpage_start,$nextpage_is_paged, $paging);
814
- $ajaxloadmore .= $alm_nextpage_output;
815
-
816
- }
817
- // End Next Page Add-on
818
 
819
- $ajaxloadmore .= '</'.$container_element.'>';
820
 
821
- $ajaxloadmore .= apply_filters('alm_before_button', ''); // ALM Core Filter Hook
 
 
 
 
 
 
 
822
 
823
- $ajaxloadmore .= '</div>';
824
 
825
- $ajaxloadmore .= apply_filters('alm_after_container', ''); // ALM Core Filter Hook
826
 
827
 
828
- // REST API Add-on - add template to page
829
  if(has_action('alm_rest_api_installed') && $restapi){
830
  if($theme_repeater != 'null' && has_action('alm_get_rest_theme_repeater')){
831
  do_action('alm_get_rest_theme_repeater', $theme_repeater);
@@ -834,6 +894,7 @@ if( !class_exists('ALM_SHORTCODE') ):
834
  do_action('alm_get_rest_api_template', $repeater, $rest_type);
835
  }
836
  }
 
837
 
838
  return $ajaxloadmore; // End ALM object
839
  }
24
  * Parse & render ALM shortcode.
25
  *
26
  * @since 2.10.1
27
+ * @param $atts Shortcode attributes
28
  * @return $ajaxloadmore
29
  */
30
 
40
 
41
  // Define Post ID
42
  $post_id = alm_get_page_id($post);
43
+
44
  // Custom CSS for Layouts - Only run this once.
45
  if(has_action('alm_layouts_custom_css')){
46
  do_action('alm_layouts_custom_css', self::$counter);
128
  'transition' => 'slide',
129
  'transition_speed' => '250',
130
  'transition_container' => 'true',
131
+ 'masonry_selector' => '',
132
+ 'progress_bar' => 'false',
133
+ 'progress_bar_color' => 'ed7070',
134
  'images_loaded' => 'false',
135
  'button_label' => apply_filters('alm_button_label', __('Older Posts', 'ajax-load-more')),
136
  'button_loading_label' => '',
139
  'id' => '',
140
  'primary' => false
141
  ), $atts));
 
142
 
143
+
144
+ // Start Enqueue Scripts
145
+
146
+
147
+ // Masonry
148
+ if($transition === 'masonry'){
149
+ wp_enqueue_script( 'imagesloaded' ); // Enqueue before core ALM
150
+ wp_enqueue_script( 'masonry' ); // Enqueue before core ALM
151
+ }
152
+
153
+ // Core ALM
154
  wp_enqueue_script( 'ajax-load-more' );
155
 
156
+ // Progress Bar
157
+ if($progress_bar === 'true'){ // Enqueue bar JS
158
+ wp_add_inline_script( 'ajax-load-more', 'window.paceOptions = {restartOnPushState: false};' );
159
+ wp_enqueue_script( 'ajax-load-more-progress' );
160
+ }
161
+
162
+ // Next Page
163
+ if(has_action('alm_nextpage_installed') && $nextpage === 'true'){
164
+ wp_enqueue_script( 'ajax-load-more-nextpage' );
165
+ }
166
+
167
+ // Paging
168
  if(has_action('alm_paging_installed') && $paging === 'true'){
169
  wp_enqueue_script( 'ajax-load-more-paging' );
170
  }
171
+
172
+ // Previous Post
173
  if(has_action('alm_prev_post_installed') && $previous_post === 'true'){
174
  wp_enqueue_script( 'ajax-load-more-previous-post' );
175
  }
176
+
177
+ // SEO
178
+ if(has_action('alm_seo_installed') && $seo === 'true'){
179
+ wp_enqueue_script( 'ajax-load-more-seo' );
180
+ }
181
 
182
 
183
 
191
  do_action('alm_enqueue_external_scripts', $atts);
192
 
193
 
194
+ // End Enqueue Scripts
195
+
196
+
197
  if($previous_post === 'true'){
198
  $previous_post = true;
199
  }
291
  // Start ALM object
292
  $ajaxloadmore = '';
293
 
 
294
 
 
295
 
296
+ /*
297
+ * alm_before_container
298
+ *
299
+ * ALM Core Filter Hook
300
+ *
301
+ * @return html;
302
+ */
303
+ $ajaxloadmore .= apply_filters('alm_before_container', '');
304
+
305
+ $canonicalURL = alm_get_canonical_url(); // Build Canonical URL
306
+
307
+ // Generate ALM ID
308
+ $div_id = (self::$counter > 1) ? 'ajax-load-more-'.self::$counter : 'ajax-load-more';
309
+
310
+ // Custom unique ALM ID (shortcode)
311
+ $unique_id = (!empty($id)) ? 'data-id="'.$id.'"' : '';
312
+
313
+ // Search atts - Used with SEO
314
+ $is_search = (is_search()) ? 'data-search="true"' : '';
315
+
316
+
317
+ // Start #ajax-load-more
318
+ $ajaxloadmore .= '<div id="'. $div_id .'" class="ajax-load-more-wrap'. $btn_color .''. $paging_color .''. $alm_layouts .'" '. $unique_id .' data-alm-id="" data-canonical-url="'. $canonicalURL .'" data-slug="'. $slug .'" data-post-id="'. $post_id .'" '. $is_search .'>';
319
+
320
+
321
+ // Masonry Hook (Before)
322
+ $ajaxloadmore .= apply_filters('alm_masonry_before', $transition);
323
+
324
+
325
+ // Previous Post Add-on
326
+ // - Set other add-on params to false
327
+ if($previous_post){
328
+ $preloaded = false;
329
+ $seo = false;
330
+ $paging = false;
331
+ $comments = false;
332
+ $acf = false;
333
+ }
334
+
335
+
336
+ // Comments Add-on
337
+ // - Set other add-on params to false
338
+ if($comments){
339
+ $previous_post = false;
340
+ $seo = false;
341
+ $cache = false;
342
+ $acf = false;
343
+ $posts_per_page = $comments_per_page;
344
+ }
345
+
346
+
347
+ // Nextpage Add-on
348
+ // - Set other add-on params to false
349
+ if($nextpage){
350
+ $previous_post = false;
351
+ $seo = false;
352
+ $preloaded = false;
353
+ $comments = false;
354
+ $acf = false;
355
+ $pause = 'true';
356
+ }
357
+
358
+
359
+ // ********************************
360
+ // Preloaded Add-on
361
+ // - Get preloaded posts and append to ajax load more object
362
+ if(has_action('alm_preload_installed') && $preloaded === 'true'){
363
+
364
+ $preloaded_output = '';
365
+ $preload_offset = $offset;
366
+
367
+ // If SEO, set $preloaded_amount to $posts_per_page
368
+ if(has_action('alm_seo_installed') && $seo === 'true'){
369
+ $preloaded_amount = $posts_per_page;
370
+ }
371
+
372
+ // Paging Add-on
373
+ // - Set $preloaded_amount to $posts_per_page
374
+ if($paging === 'true'){
375
+ $preloaded_amount = $posts_per_page;
376
+ $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
377
+ if($paged > 1){
378
+ $preload_offset = $preloaded_amount * ($paged - 1);
379
+ }
380
+ }
381
+
382
+ // CTA Add-on
383
+ // - Parse $cta_position
384
+ if($cta){
385
+ $cta_pos_array = explode(":", $cta_position);
386
+ $cta_pos = (string)$cta_pos_array[0];
387
+ $cta_val = (string)$cta_pos_array[1];
388
+ if($cta_pos != 'after'){
389
+ $cta_pos = 'before';
390
+ }
391
+ }
392
+
393
+ $preloaded_arr = array( // Create preload data array
394
+ 'post_id' => $post_id,
395
+ 'acf' => $acf,
396
+ 'acf_post_id' => $acf_post_id,
397
+ 'acf_field_type' => $acf_field_type,
398
+ 'acf_field_name' => $acf_field_name,
399
+ 'comments' => $comments,
400
+ 'comments_per_page' => $comments_per_page,
401
+ 'comments_type' => $comments_type,
402
+ 'comments_style' => $comments_style,
403
+ 'comments_template' => $comments_template,
404
+ 'comments_callback' => $comments_callback,
405
+ 'comments_post_id' => $comments_post_id,
406
+ 'post_type' => $post_type,
407
+ 'sticky_posts' => $sticky_posts,
408
+ 'post_format' => $post_format,
409
+ 'category' => $category,
410
+ 'category__not_in' => $category__not_in,
411
+ 'tag' => $tag,
412
+ 'tag__not_in' => $tag__not_in,
413
+ 'taxonomy' => $taxonomy,
414
+ 'taxonomy_terms' => $taxonomy_terms,
415
+ 'taxonomy_operator' => $taxonomy_operator,
416
+ 'taxonomy_relation' => $taxonomy_relation,
417
+ 'meta_key' => $meta_key,
418
+ 'meta_value' => $meta_value,
419
+ 'meta_compare' => $meta_compare,
420
+ 'meta_relation' => $meta_relation,
421
+ 'meta_type' => $meta_type,
422
+ 'year' => $year,
423
+ 'month' => $month,
424
+ 'day' => $day,
425
+ 'author' => $author,
426
+ 'post__in' => $post__in,
427
+ 'post__not_in' => $post__not_in,
428
+ 'search' => $search,
429
+ 'custom_args' => $custom_args,
430
+ 'post_status' => $post_status,
431
+ 'order' => $order,
432
+ 'orderby' => $orderby,
433
+ 'exclude' => $exclude,
434
+ 'offset' => $preload_offset,
435
+ 'posts_per_page' => $preloaded_amount,
436
+ 'lang' => $lang,
437
+ 'css_classes' => $css_classes,
438
+ );
439
+
440
+ $type = alm_get_repeater_type($repeater);
441
+
442
+ if($comments){ // Comments
443
+
444
+ if(has_action('alm_comments_installed') && $comments){
445
+
446
+ /*
447
+ * alm_comments_preloaded
448
+ *
449
+ * Preloaded Comments Filter
450
+ *
451
+ * @return $preloaded_comments;
452
+ */
453
+ $preloaded_comments = apply_filters('alm_comments_preloaded', $preloaded_arr); // located in comments add-on
454
+ $preloaded_output .= '<'.$comments_style.' class="alm-listing alm-preloaded commentlist alm-comments-preloaded '. $classname .' '. $css_classes .'">';
455
+ if($seo === "true") $preloaded_output .= '<div class="alm-reveal alm-seo" data-page="1" data-url="'.$canonicalURL.'">';
456
+
457
+ $preloaded_output .= $preloaded_comments;
458
+
459
+ if($seo === "true"){
460
+ $preloaded_output .= '</div>';
461
+ }
462
+
463
+ $preloaded_output .= '</'.$container_element.'>';
464
+ }
465
 
466
+ }
 
 
 
 
 
467
 
468
+ elseif($acf && ($acf_field_type !== 'relationship')){ // Advanced Custom Fields
 
 
 
 
469
 
470
+ if(has_action('alm_acf_installed') && $acf){
471
 
472
+ /* alm_acf_preloaded
473
+ *
474
+ * Preloaded ACF Filter
475
+ *
476
+ * @return $preloaded_acf;
477
+ */
478
+ $preloaded_acf = apply_filters('alm_acf_preloaded', $preloaded_arr, $repeater, $theme_repeater); //located in ACF add-on
479
 
480
+ $preloaded_output .= '<'.$container_element.' class="alm-listing alm-preloaded alm-acf-preloaded '. $classname .' '. $css_classes .'" data-total-posts="'. apply_filters('alm_acf_total_rows', $preloaded_arr) .'">';
481
+ if($seo === "true"){
482
+ $preloaded_output .= '<div class="alm-reveal alm-seo" data-page="1" data-url="'.$canonicalURL.'">';
483
+ }
 
 
 
 
 
484
 
485
+ $preloaded_output .= $preloaded_acf;
486
 
487
+ if($seo === "true"){
488
+ $preloaded_output .= '</div>';
489
+ }
490
+
491
+ $preloaded_output .= '</'.$container_element.'>';
492
+ }
 
 
 
493
 
494
+ }
495
 
496
+ else { // Standard
 
 
 
 
 
 
 
 
 
497
 
498
 
499
+ /*
500
+ * alm_preload_args
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
501
  *
502
+ * ALM Preloaded Filter Hook
503
  *
504
+ * @return $args;
505
  */
506
+ $args = apply_filters('alm_preload_args', $preloaded_arr); // Create preloaded $args
 
 
507
 
 
508
 
509
+
510
+ /*
511
+ * alm_modify_query_args
 
 
 
 
 
 
 
 
 
 
 
512
  *
513
+ * ALM Core Filter Hook
514
  *
515
+ * @return $args;
516
  */
517
+ $args = apply_filters('alm_modify_query_args', $args, $slug);
 
 
 
 
 
518
 
 
519
 
520
+
521
+ /*
522
+ * alm_query_args_[id]
523
+ *
524
+ * ALM Core Filter Hook
525
+ *
526
+ * @return $args;
527
+ */
528
+ $args = apply_filters('alm_query_args_'.$id, $args);
529
+
530
+
531
+ $alm_preload_query = new WP_Query($args);
532
+ $alm_total_posts = $alm_preload_query->found_posts - $offset;
533
+ $output = '';
534
+ $noscript = '';
535
+
536
+ if ($alm_preload_query->have_posts()) :
537
+ $alm_loop_count = 0; // Count var
538
+ $alm_page = 0; // Set page to 0
539
+ $alm_found_posts = $alm_total_posts;
540
+ $alm_current = 0;
541
+ while ($alm_preload_query->have_posts()) : $alm_preload_query->the_post();
542
+
543
+ $alm_loop_count++;
544
+ $alm_current++;
545
+ $alm_item = $alm_loop_count; // Get current item in loop
546
+
547
+ // Call to Action [Before]
548
+ if($cta && has_action('alm_cta_inc') && $cta_pos == 'before'){
549
+ if($alm_current == $cta_val){
550
+ $output .= apply_filters('alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, true);
551
+ }
552
+ }
553
+
554
+ $output .= apply_filters('alm_preload_inc', $repeater, $type, $theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current);
555
+
556
+ // Call to Action [After]
557
+ if($cta && has_action('alm_cta_inc') && $cta_pos == 'after'){
558
+ if($alm_current == $cta_val){
559
+ $output .= apply_filters('alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, true);
560
+ }
561
+ }
562
+
563
+ endwhile; wp_reset_query();
564
+
565
+ if(has_action('alm_seo_installed') && $seo === 'true'){ // If SEO, add noscript paging
566
+ // Create noscript paging for SEO if preload and seo are enabled
567
+ $noscript = alm_paging_no_script($alm_preload_query);
568
+ }
569
+
570
+ endif;
571
+
572
+ $preloaded_output .= '<'.$container_element.' class="alm-listing alm-preloaded'. $classname .' '. $css_classes .'" data-total-posts="'. $alm_total_posts .'">';
573
+
574
+ if($seo === "true" && $paging === 'false'){
575
+ if(is_search()){
576
+ // If search, append slug (?s=term) to data-url
577
+ $preloaded_output .= '<div class="alm-reveal alm-seo" data-page="1" data-url="'.$canonicalURL.''. $slug .'">';
578
+ }else{
579
+ $preloaded_output .= '<div class="alm-reveal alm-seo" data-page="1" data-url="'.$canonicalURL.'">';
580
+ }
581
+ }
582
+ if($seo === "false" && $paging === 'true' || $seo === "true" && $paging === 'true'){
583
+ $preloaded_output .= '<div class="alm-reveal">';
584
  }
 
 
 
 
 
 
 
585
 
586
+ $preloaded_output .= $output;
587
 
588
+ if($seo === "false" && $paging === 'true'){
589
+ $preloaded_output .= '</div>';
590
+ }
591
+ if($seo === "true" && $paging === 'false' || $seo === "true" && $paging === 'true'){
592
+ $preloaded_output .= '</div>';
593
+ }
 
 
594
 
595
+ $preloaded_output .= '</'.$container_element.'>';
596
+
597
+ if(has_action('alm_seo_installed')){ // If SEO, add noscript paging
598
+ $preloaded_output .= $noscript;
599
+ }
600
+ }
601
+
602
+ $ajaxloadmore .= $preloaded_output; // Add $preloaded_output data to $ajaxloadmore
603
+ }
604
+ // End Preload Posts
605
+ // ********************************
606
+
607
+
608
+ $listing_class = 'alm-listing';
609
+
610
+ // If comments
611
+ if($comments === 'true'){
612
+ $listing_class = 'commentlist alm-comments';
613
+ }
614
+
615
+ $ajaxloadmore .= '<'.$container_element.' class="'.$listing_class.' alm-ajax'. $paging_container_class .' '. $classname . ' '. $css_classes .'"'; // Build ALM container
616
+
617
+
618
+ // Cache Add-on
619
+ if(has_action('alm_cache_installed') && $cache === 'true'){
620
+ $cache_return = apply_filters(
621
+ 'alm_cache_shortcode',
622
+ $cache,
623
+ $cache_id,
624
+ $options
625
+ );
626
+ $ajaxloadmore .= $cache_return;
627
+ }
628
+
629
+ // CTA Add-on
630
+ if(has_action('alm_cta_installed') && $cta === 'true'){
631
+ $cta_return = apply_filters(
632
+ 'alm_cta_shortcode',
633
+ $cta,
634
+ $cta_position,
635
+ $cta_repeater,
636
+ $cta_theme_repeater
637
+ );
638
+ $ajaxloadmore .= $cta_return;
639
+ }
640
+
641
+ // Advanced Custom Fields Add-on
642
+ if(has_action('alm_acf_installed') && $acf === 'true'){
643
+ $acf_return = apply_filters(
644
+ 'alm_acf_shortcode',
645
+ $acf,
646
+ $acf_field_type,
647
+ $acf_field_name,
648
+ $acf_post_id,
649
+ $post_id
650
+ );
651
+ $ajaxloadmore .= $acf_return;
652
+ }
653
+
654
+ // Comments Add-on
655
+ if(has_action('alm_comments_installed') && $comments === 'true'){
656
+ $comments_return = apply_filters(
657
+ 'alm_comments_shortcode',
658
+ $comments,
659
+ $comments_per_page,
660
+ $comments_type,
661
+ $comments_style,
662
+ $comments_template,
663
+ $comments_callback,
664
+ $comments_post_id
665
+ );
666
+ $ajaxloadmore .= $comments_return;
667
+ }
668
+
669
+ // REST API Add-on
670
+ if(has_action('alm_rest_api_installed') && $restapi === true){
671
+ $restapi_return = apply_filters(
672
+ 'alm_rest_api_shortcode',
673
+ 'true',
674
+ $restapi_base,
675
+ $restapi_namespace,
676
+ $restapi_endpoint,
677
+ $restapi_template_id,
678
+ $restapi_debug
679
+ );
680
+ $ajaxloadmore .= $restapi_return;
681
+ }
682
+
683
+
684
+ // Paging Add-on
685
+ if(has_action('alm_paging_installed') && $paging === 'true'){
686
+ $paging_return = apply_filters(
687
+ 'alm_paging_shortcode',
688
+ $paging,
689
+ $paging_controls,
690
+ $paging_show_at_most,
691
+ $paging_classes,
692
+ $options
693
+ );
694
+ $ajaxloadmore .= $paging_return;
695
+ }
696
+
697
+
698
+ // Preloaded Add-on
699
+ if(has_action('alm_preload_installed') && $preloaded === 'true'){
700
+ $ajaxloadmore .= ' data-preloaded="'.$preloaded.'"';
701
+ $ajaxloadmore .= ' data-preloaded-amount="'.$preloaded_amount.'"';
702
+ }
703
+
704
+
705
+ // SEO Add-on
706
+ if(has_action('alm_seo_installed') && $seo === 'true'){
707
+ $seo_return = apply_filters(
708
+ 'alm_seo_shortcode',
709
+ $seo,
710
+ $preloaded,
711
+ $options
712
+ );
713
+ $ajaxloadmore .= $seo_return;
714
+ }
715
+
716
+
717
+ // Previous Post Post Add-on
718
+ if(has_action('alm_prev_post_installed') && $previous_post){
719
+ $prev_post_return = apply_filters(
720
+ 'alm_prev_post_shortcode',
721
+ $previous_post_id,
722
+ $previous_post_taxonomy,
723
+ $options
724
+ );
725
+ $ajaxloadmore .= $prev_post_return;
726
+ }
727
+
728
+
729
+ // Nextpage Post Add-on
730
+ if(has_action('alm_nextpage_installed') && $nextpage){
731
+ $nextpage_return = apply_filters(
732
+ 'alm_nextpage_shortcode',
733
+ $nextpage_urls,
734
+ $nextpage_pageviews,
735
+ $nextpage_post_id,
736
+ $nextpage_scroll,
737
+ $options
738
+ );
739
+ $ajaxloadmore .= $nextpage_return;
740
+ }
741
+
742
+
743
+ $ajaxloadmore .= ' data-repeater="'.$repeater.'"';
744
+ if($theme_repeater != 'null'){
745
+ $ajaxloadmore .= ' data-theme-repeater="'.$theme_repeater.'"';
746
+ }
747
+ $ajaxloadmore .= ' data-post-type="'.$post_type.'"';
748
+ $ajaxloadmore .= ' data-sticky-posts="'.$sticky_posts.'"';
749
+ $ajaxloadmore .= ' data-post-format="'.$post_format.'"';
750
+ $ajaxloadmore .= ' data-category="'.$category.'"';
751
+ $ajaxloadmore .= ' data-category-not-in="'.$category__not_in.'"';
752
+ $ajaxloadmore .= ' data-tag="'.$tag.'"';
753
+ $ajaxloadmore .= ' data-tag-not-in="'.$tag__not_in.'"';
754
+ $ajaxloadmore .= ' data-taxonomy="'.$taxonomy.'"';
755
+ $ajaxloadmore .= ' data-taxonomy-terms="'.$taxonomy_terms.'"';
756
+ $ajaxloadmore .= ' data-taxonomy-operator="'.$taxonomy_operator.'"';
757
+ $ajaxloadmore .= ' data-taxonomy-relation="'.$taxonomy_relation.'"';
758
+ $ajaxloadmore .= ' data-meta-key="'.$meta_key.'"';
759
+ $ajaxloadmore .= ' data-meta-value="'.$meta_value.'"';
760
+ $ajaxloadmore .= ' data-meta-compare="'.$meta_compare.'"';
761
+ $ajaxloadmore .= ' data-meta-relation="'.$meta_relation.'"';
762
+ $ajaxloadmore .= ' data-meta-type="'.$meta_type.'"';
763
+ $ajaxloadmore .= ' data-year="'.$year.'"';
764
+ $ajaxloadmore .= ' data-month="'.$month.'"';
765
+ $ajaxloadmore .= ' data-day="'.$day.'"';
766
+ $ajaxloadmore .= ' data-author="'.$author.'"';
767
+ $ajaxloadmore .= ' data-post-in="'.$post__in.'"';
768
+ $ajaxloadmore .= ' data-post-not-in="'.$post__not_in.'"';
769
+ $ajaxloadmore .= ' data-exclude="'.$exclude.'"';
770
+ $ajaxloadmore .= ' data-search="'.$search.'"';
771
+ $ajaxloadmore .= ' data-custom-args="'.$custom_args.'"';
772
+ $ajaxloadmore .= ' data-post-status="'.$post_status.'"';
773
+ $ajaxloadmore .= ' data-order="'.$order.'"';
774
+ $ajaxloadmore .= ' data-orderby="'.$orderby.'"';
775
+ $ajaxloadmore .= ' data-offset="'.$offset.'"';
776
+ $ajaxloadmore .= ' data-posts-per-page="'.$posts_per_page.'"';
777
+ $ajaxloadmore .= ' data-lang="'.$lang.'"';
778
+ $ajaxloadmore .= ' data-scroll="'.$scroll.'"';
779
+ $ajaxloadmore .= ' data-scroll-distance="'.$scroll_distance.'"';
780
+ $ajaxloadmore .= ' data-max-pages="'.$max_pages.'"';
781
+ $ajaxloadmore .= ' data-pause-override="'.$pause_override.'"';
782
+ $ajaxloadmore .= ' data-pause="'.$pause.'"';
783
+ $ajaxloadmore .= ' data-button-label="'.$button_label.'"';
784
+ if(!empty($button_loading_label)){
785
+ $ajaxloadmore .= ' data-button-loading-label="'.$button_loading_label.'"';
786
+ }
787
+ $ajaxloadmore .= ' data-button-class="'.$button_classname.'"';
788
+ $ajaxloadmore .= ' data-destroy-after="'.$destroy_after.'"';
789
+ $ajaxloadmore .= ' data-transition="'.$transition.'"';
790
+ if($transition_speed !== '250'){
791
+ $ajaxloadmore .= ' data-transition-speed="'.$transition_speed.'"';
792
+ }
793
+ if($transition_container === 'false'){
794
+ $ajaxloadmore .= ' data-transition-container="'.$transition_container.'"';
795
+ }
796
+ if(!empty($masonry_selector)){
797
+ $ajaxloadmore .= ' data-masonry-selector="'.$masonry_selector.'"';
798
+ }
799
+ $ajaxloadmore .= ' data-images-loaded="'.$images_loaded.'"';
800
+
801
+ if($primary !== false){
802
+ $ajaxloadmore .= ' data-primary="true"';
803
+ }
804
+ $ajaxloadmore .= '>';
805
+
806
+
807
+ // Previous Post Add-on
808
+ // - Get first post, append data to ajax load more object
809
+ if(has_action('alm_prev_post_installed') && $previous_post){
810
+ $repeater_type = preg_split('/(?=\d)/', $repeater, 2); // split $repeater at number to retrieve type
811
+ $repeater_type = $repeater_type[0]; // (default | repeater | template_)
812
+ if($theme_repeater != 'null' && has_filter('alm_get_theme_repeater')){
813
+ $repeater_type = null;
814
+ }
815
+ // Get current permalink - (including querystring)
816
+ $previous_post_permanlink = ($_SERVER["QUERY_STRING"]) ? get_permalink($previous_post_id) .'?'. $_SERVER["QUERY_STRING"] : get_permalink($previous_post_id);
817
+
818
+ // Get previous post include, build output from the next post filter
819
+ $previous_post_output = '<div class="alm-reveal alm-previous-post post-'. $previous_post_id .'" data-url="'. $previous_post_permanlink .'" data-title="'. get_the_title($previous_post_id) .'" data-id="'. $previous_post_id .'" data-page="0">'; // Set the post id .alm-reveal div
820
 
821
 
822
+ /*
823
+ * alm_prev_post_inc
824
  *
825
+ * Previous Post Add-on hook
826
  *
827
  * @return $args;
828
  */
829
+ $previous_post_output .= apply_filters('alm_prev_post_inc', $repeater, $repeater_type, $theme_repeater, $previous_post_id, $post_type);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
830
 
831
+ $previous_post_output .= '</div>';
832
+ $ajaxloadmore .= $previous_post_output; // Add $previous_post_output data to $ajaxloadmore
 
 
 
 
 
 
 
 
 
833
 
834
+ }
835
+ // End Previous Post Add-on
 
 
 
 
 
 
 
 
 
 
836
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
837
 
838
+ // Next Page Add-on
839
+ if(has_action('alm_nextpage_installed') && $nextpage){
 
 
 
 
 
 
 
 
 
 
 
840
 
841
+ $nextpage_start = alm_get_startpage();
842
 
843
+ $nextpage_is_paged = false;
844
+ if($nextpage_start > 1){
845
+ $nextpage_is_paged = true;
846
+ }
 
 
 
 
 
 
 
 
847
 
848
+ $alm_nextpage_output = apply_filters('alm_init_nextpage', $nextpage_post_id, $nextpage_start,$nextpage_is_paged, $paging);
849
+ $ajaxloadmore .= $alm_nextpage_output;
850
 
851
+ }
852
+ // End Next Page Add-on
 
 
 
853
 
854
 
855
+ // Masonry Hook (After)
856
+ $ajaxloadmore .= apply_filters('alm_masonry_after', $transition);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
857
 
858
+ $ajaxloadmore .= '</'.$container_element.'>';
859
 
 
 
 
 
 
 
 
 
 
 
 
 
860
 
861
+ /*
862
+ * alm_before_button
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
863
  *
864
+ * ALM Core Filter Hook
865
  *
866
+ * @return html;
867
  */
868
+ $ajaxloadmore .= apply_filters('alm_before_button', '');
869
 
 
 
870
 
871
+ // Close #ajax-load-more
872
+ $ajaxloadmore .= '</div>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
873
 
 
874
 
875
+ /*
876
+ * alm_after_container
877
+ *
878
+ * ALM Core Filter Hook
879
+ *
880
+ * @return html;
881
+ */
882
+ $ajaxloadmore .= apply_filters('alm_after_container', '');
883
 
 
884
 
885
+ $ajaxloadmore .= apply_filters('alm_progress_css', self::$counter, $progress_bar, $progress_bar_color); // ALM Core Filter Hook
886
 
887
 
888
+ // REST API Add-on (add template to page)
889
  if(has_action('alm_rest_api_installed') && $restapi){
890
  if($theme_repeater != 'null' && has_action('alm_get_rest_theme_repeater')){
891
  do_action('alm_get_rest_theme_repeater', $theme_repeater);
894
  do_action('alm_get_rest_api_template', $repeater, $rest_type);
895
  }
896
  }
897
+ // End REST API Add-on
898
 
899
  return $ajaxloadmore; // End ALM object
900
  }
core/css/ajax-load-more.css DELETED
@@ -1,257 +0,0 @@
1
- /*
2
- * Ajax Load More
3
- * http://wordpress.org/plugins/ajax-load-more/
4
- *
5
- * Copyright 2015-2017 Connekt Media - https://connekthq.com
6
- * Free to use under the GPLv2 license.
7
- * http://www.gnu.org/licenses/gpl-2.0.html
8
- *
9
- * Author: Darren Cooney
10
- * Twitter: @KaptonKaos
11
- */
12
-
13
- button.alm-load-more-btn{
14
- font-size:15px;
15
- font-weight: 600;
16
- width:auto;
17
- height: 42px;
18
- line-height: 42px;
19
- background: #ed7070;
20
- color:#fff;
21
- border: none;
22
- -webkit-border-radius:3px;
23
- -moz-border-radius:3px;
24
- border-radius:3px;
25
- margin: 0 0 4px;
26
- padding:0 20px;
27
- display: inline-block;
28
- position: relative;
29
- -webkit-transition: padding 0.25s ease-in-out, width 0.25s ease-in-out;
30
- -moz-transition: padding 0.25s ease-in-out, width 0.25s ease-in-out;
31
- transition: padding 0.25s ease-in-out, width 0.25s ease-in-out;
32
- text-align: center;
33
- text-decoration: none;
34
- -webkit-appearance: none;
35
- -moz-appearance: none;
36
- appearance: none;
37
- -webkit-touch-callout: none;
38
- -webkit-user-select: none;
39
- -moz-user-select: -moz-none;
40
- -ms-user-select: none;
41
- user-select: none;
42
- cursor: pointer;
43
- }
44
- button.alm-load-more-btn:hover{
45
- background-color: #e06464;
46
- color: #fff;
47
- text-decoration: none;
48
- }
49
- button.alm-load-more-btn:active{
50
- -webkit-box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.1);
51
- -moz-box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.1);
52
- box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.1);
53
- text-decoration: none;
54
- }
55
-
56
- /* Loading */
57
- button.alm-load-more-btn.loading{
58
- padding-left: 44px;
59
- }
60
-
61
- /* Loaded / Done */
62
- button.alm-load-more-btn.done{
63
- cursor: default;
64
- opacity: 0.2;
65
- filter: alpha(opacity=20);
66
- background-color: #ed7070;
67
- -webkit-box-shadow: none !important;
68
- -moz-box-shadow: none !important;
69
- box-shadow: none !important;
70
- }
71
-
72
- /* Loading Icon */
73
- button.alm-load-more-btn:before,
74
- button.alm-load-more-btn.done:before{
75
- background: none;
76
- width: 0;
77
- }
78
-
79
- /* Loading :before */
80
- button.alm-load-more-btn.loading:before {
81
- background: #fff url("../../core/img/ajax-loader.gif") no-repeat center center;
82
- width: 30px;
83
- height: 30px;
84
- margin: 6px;
85
- -webkit-border-radius:3px;
86
- -moz-border-radius:3px;
87
- border-radius:2px;
88
- display: inline-block;
89
- z-index: 0;
90
- content: '';
91
- position: absolute;
92
- left: 0;
93
- top: 0;
94
- overflow: hidden;
95
- -webkit-transition: width 0.5s ease-in-out;
96
- -moz-transition: width 0.5s ease-in-out;
97
- transition: width 0.5s ease-in-out;
98
- }
99
-
100
- .alm-btn-wrap{
101
- display: block;
102
- text-align: center;
103
- padding: 10px 0 30px;
104
- overflow: hidden;
105
- }
106
-
107
- /* Blue */
108
- .ajax-load-more-wrap.blue button.alm-load-more-btn{
109
- background-color: #0081bf;
110
- }
111
- .ajax-load-more-wrap.blue button.alm-load-more-btn:hover,
112
- .ajax-load-more-wrap.blue button.alm-load-more-btn.done{
113
- background-color: #0073aa;
114
- }
115
-
116
- /* green */
117
- .ajax-load-more-wrap.green button.alm-load-more-btn{
118
- background-color: #6fca68;
119
- }
120
- .ajax-load-more-wrap.green button.alm-load-more-btn:hover,
121
- .ajax-load-more-wrap.green button.alm-load-more-btn.done{
122
- background-color: #64b95e;
123
- }
124
-
125
- /* red */
126
- .ajax-load-more-wrap.red button.alm-load-more-btn{
127
- background-color: #ca4b4b;
128
- }
129
- .ajax-load-more-wrap.red button.alm-load-more-btn:hover,
130
- .ajax-load-more-wrap.red button.alm-load-more-btn.done{
131
- background-color: #b13b3b;
132
- }
133
-
134
- /* purple */
135
- .ajax-load-more-wrap.purple button.alm-load-more-btn{
136
- background-color: #a86bb9;
137
- }
138
- .ajax-load-more-wrap.purple button.alm-load-more-btn:hover,
139
- .ajax-load-more-wrap.purple button.alm-load-more-btn.done{
140
- background-color: #9963a8;
141
- }
142
-
143
- /* grey */
144
- .ajax-load-more-wrap.grey button.alm-load-more-btn{
145
- background-color: #888;
146
- }
147
- .ajax-load-more-wrap.grey button.alm-load-more-btn:hover,
148
- .ajax-load-more-wrap.grey button.alm-load-more-btn.done{
149
- background-color: #777;
150
- }
151
-
152
- /* white */
153
- .ajax-load-more-wrap.white button.alm-load-more-btn{
154
- background-color: #fff;
155
- color: #666;
156
- border: 1px solid #efefef;
157
- }
158
- .ajax-load-more-wrap.white button.alm-load-more-btn:hover,
159
- .ajax-load-more-wrap.white button.alm-load-more-btn.done{
160
- background-color: #efefef;
161
- color: #333;
162
- }
163
- .ajax-load-more-wrap.white button.alm-load-more-btn.done{
164
- border-color: #fff;
165
- }
166
-
167
- /* Infinite */
168
- .ajax-load-more-wrap.infinite button.alm-load-more-btn {
169
- width: 100%;
170
- background-color: transparent !important;
171
- background-position: center center;
172
- background-repeat: no-repeat;
173
- background-image: url("../../core/img/spinner.gif");
174
- border: none !important;
175
- opacity: 0;
176
- filter: alpha(opacity=0);
177
- -webkit-transition: opacity 0.25s ease;
178
- -moz-transition: opacity 0.25s ease;
179
- transition: opacity 0.25s ease;
180
- -webkit-box-shadow: none !important;
181
- -moz-box-shadow: none !important;
182
- -o-box-shadow: none !important;
183
- -ms-box-shadow: none !important;
184
- box-shadow: none !important;
185
- overflow: hidden;
186
- text-indent: -9999px;
187
- cursor: default !important;
188
- outline: none !important;
189
- }
190
- .ajax-load-more-wrap.infinite button.alm-load-more-btn:before {
191
- display: none !important;
192
- }
193
- .ajax-load-more-wrap.infinite button.alm-load-more-btn:active{
194
- -webkit-box-shadow: none;
195
- -moz-box-shadow: none;
196
- box-shadow: none;
197
- }
198
- .ajax-load-more-wrap.infinite button.alm-load-more-btn.done {
199
- opacity: 0;
200
- filter: alpha(opacity=0);
201
- }
202
- .ajax-load-more-wrap.infinite button.alm-load-more-btn.loading {
203
- opacity: 1;
204
- filter: alpha(opacity=100);
205
- }
206
- .ajax-load-more-wrap.infinite.skype button.alm-load-more-btn {
207
- background-image: url("../../core/img/spinner-skype.gif");
208
- }
209
- .ajax-load-more-wrap.infinite.ring button.alm-load-more-btn {
210
- background-image: url("../../core/img/spinner-ring.gif");
211
- }
212
- .ajax-load-more-wrap.infinite.fading-blocks button.alm-load-more-btn {
213
- background-image: url("../../core/img/loader-fading-blocks.gif");
214
- }
215
- .ajax-load-more-wrap.infinite.fading-circles button.alm-load-more-btn {
216
- background-image: url("../../core/img/loader-fading-circles.gif");
217
- }
218
- .ajax-load-more-wrap.infinite.chasing-arrows button.alm-load-more-btn {
219
- background-image: url("../../core/img/spinner-chasing-arrows.gif");
220
- }
221
-
222
-
223
- /*
224
- * Generic alm-listing styles
225
- * @since 1.0.0
226
- */
227
-
228
- .alm-listing{
229
- margin: 0;
230
- padding: 0;
231
- }
232
- .alm-listing li{
233
- background: none;
234
- margin: 0 0 30px;
235
- padding: 0 0 0 170px;
236
- overflow: hidden;
237
- position: relative;
238
- list-style: none;
239
- }
240
- .alm-listing li.no-img{
241
- padding: 0;
242
- }
243
- .alm-listing li a{}
244
- .alm-listing li p{
245
- margin: 0;
246
- }
247
- .alm-listing li h3{
248
- margin: 0 0 10px;
249
- }
250
- .alm-listing li img{
251
- position: absolute;
252
- left: 0;
253
- top: 0;
254
- -webkit-border-radius: 2px;
255
- -moz-border-radius: 2px;
256
- border-radius: 2px;
257
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
core/css/ajax-load-more.min.css DELETED
@@ -1 +0,0 @@
1
- button.alm-load-more-btn{font-size:15px;font-weight:600;width:auto;height:42px;line-height:42px;background:#ed7070;color:#fff;border:none;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;margin:0 0 4px;padding:0 20px;display:inline-block;position:relative;-webkit-transition:padding 0.25s ease-in-out, width 0.25s ease-in-out;-moz-transition:padding 0.25s ease-in-out, width 0.25s ease-in-out;transition:padding 0.25s ease-in-out, width 0.25s ease-in-out;text-align:center;text-decoration:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:-moz-none;-ms-user-select:none;user-select:none;cursor:pointer}button.alm-load-more-btn:hover{background-color:#e06464;color:#fff;text-decoration:none}button.alm-load-more-btn:active{-webkit-box-shadow:inset 0 2px 1px rgba(0, 0, 0, 0.1);-moz-box-shadow:inset 0 2px 1px rgba(0, 0, 0, 0.1);box-shadow:inset 0 2px 1px rgba(0, 0, 0, 0.1);text-decoration:none}button.alm-load-more-btn.loading{padding-left:44px}button.alm-load-more-btn.done{cursor:default;opacity:0.2;filter:alpha(opacity=20);background-color:#ed7070;-webkit-box-shadow:none !important;-moz-box-shadow:none !important;box-shadow:none !important}button.alm-load-more-btn:before,button.alm-load-more-btn.done:before{background:none;width:0}button.alm-load-more-btn.loading:before{background:#fff url("../../core/img/ajax-loader.gif") no-repeat center center;width:30px;height:30px;margin:6px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:2px;display:inline-block;z-index:0;content:'';position:absolute;left:0;top:0;overflow:hidden;-webkit-transition:width 0.5s ease-in-out;-moz-transition:width 0.5s ease-in-out;transition:width 0.5s ease-in-out}.alm-btn-wrap{display:block;text-align:center;padding:10px 0 30px;overflow:hidden}.ajax-load-more-wrap.blue button.alm-load-more-btn{background-color:#0081bf}.ajax-load-more-wrap.blue button.alm-load-more-btn:hover,.ajax-load-more-wrap.blue button.alm-load-more-btn.done{background-color:#0073aa}.ajax-load-more-wrap.green button.alm-load-more-btn{background-color:#6fca68}.ajax-load-more-wrap.green button.alm-load-more-btn:hover,.ajax-load-more-wrap.green button.alm-load-more-btn.done{background-color:#64b95e}.ajax-load-more-wrap.red button.alm-load-more-btn{background-color:#ca4b4b}.ajax-load-more-wrap.red button.alm-load-more-btn:hover,.ajax-load-more-wrap.red button.alm-load-more-btn.done{background-color:#b13b3b}.ajax-load-more-wrap.purple button.alm-load-more-btn{background-color:#a86bb9}.ajax-load-more-wrap.purple button.alm-load-more-btn:hover,.ajax-load-more-wrap.purple button.alm-load-more-btn.done{background-color:#9963a8}.ajax-load-more-wrap.grey button.alm-load-more-btn{background-color:#888}.ajax-load-more-wrap.grey button.alm-load-more-btn:hover,.ajax-load-more-wrap.grey button.alm-load-more-btn.done{background-color:#777}.ajax-load-more-wrap.white button.alm-load-more-btn{background-color:#fff;color:#666;border:1px solid #efefef}.ajax-load-more-wrap.white button.alm-load-more-btn:hover,.ajax-load-more-wrap.white button.alm-load-more-btn.done{background-color:#efefef;color:#333}.ajax-load-more-wrap.white button.alm-load-more-btn.done{border-color:#fff}.ajax-load-more-wrap.infinite button.alm-load-more-btn{width:100%;background-color:transparent !important;background-position:center center;background-repeat:no-repeat;background-image:url("../../core/img/spinner.gif");border:none !important;opacity:0;filter:alpha(opacity=0);-webkit-transition:opacity 0.25s ease;-moz-transition:opacity 0.25s ease;transition:opacity 0.25s ease;-webkit-box-shadow:none !important;-moz-box-shadow:none !important;-o-box-shadow:none !important;-ms-box-shadow:none !important;box-shadow:none !important;overflow:hidden;text-indent:-9999px;cursor:default !important;outline:none !important}.ajax-load-more-wrap.infinite button.alm-load-more-btn:before{display:none !important}.ajax-load-more-wrap.infinite button.alm-load-more-btn:active{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.ajax-load-more-wrap.infinite button.alm-load-more-btn.done{opacity:0;filter:alpha(opacity=0)}.ajax-load-more-wrap.infinite button.alm-load-more-btn.loading{opacity:1;filter:alpha(opacity=100)}.ajax-load-more-wrap.infinite.skype button.alm-load-more-btn{background-image:url("../../core/img/spinner-skype.gif")}.ajax-load-more-wrap.infinite.ring button.alm-load-more-btn{background-image:url("../../core/img/spinner-ring.gif")}.ajax-load-more-wrap.infinite.fading-blocks button.alm-load-more-btn{background-image:url("../../core/img/loader-fading-blocks.gif")}.ajax-load-more-wrap.infinite.fading-circles button.alm-load-more-btn{background-image:url("../../core/img/loader-fading-circles.gif")}.ajax-load-more-wrap.infinite.chasing-arrows button.alm-load-more-btn{background-image:url("../../core/img/spinner-chasing-arrows.gif")}.alm-listing{margin:0;padding:0}.alm-listing li{background:none;margin:0 0 30px;padding:0 0 0 170px;overflow:hidden;position:relative;list-style:none}.alm-listing li.no-img{padding:0}.alm-listing li p{margin:0}.alm-listing li h3{margin:0 0 10px}.alm-listing li img{position:absolute;left:0;top:0;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}
 
core/dist/css/ajax-load-more.css ADDED
@@ -0,0 +1,197 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Ajax Load More
3
+ * http://wordpress.org/plugins/ajax-load-more/
4
+ *
5
+ * Copyright 2015-2017 Connekt Media - https://connekthq.com
6
+ * Free to use under the GPLv2 license.
7
+ * http://www.gnu.org/licenses/gpl-2.0.html
8
+ *
9
+ * Author: Darren Cooney
10
+ * Twitter: @KaptonKaos
11
+ */
12
+ button.alm-load-more-btn {
13
+ font-size: 15px;
14
+ font-weight: 600;
15
+ width: auto;
16
+ height: 42px;
17
+ line-height: 42px;
18
+ background: #ed7070;
19
+ color: #fff;
20
+ border: none;
21
+ border-radius: 3px;
22
+ margin: 0 0 4px;
23
+ padding: 0 20px;
24
+ display: inline-block;
25
+ position: relative;
26
+ -webkit-transition: padding 0.25s ease-in-out, width 0.25s ease-in-out;
27
+ transition: padding 0.25s ease-in-out, width 0.25s ease-in-out;
28
+ text-align: center;
29
+ text-decoration: none;
30
+ -webkit-appearance: none;
31
+ -moz-appearance: none;
32
+ appearance: none;
33
+ -webkit-user-select: none;
34
+ -moz-user-select: none;
35
+ -ms-user-select: none;
36
+ user-select: none;
37
+ cursor: pointer;
38
+ /* Loading */
39
+ /* Loaded / Done */
40
+ /* Loading Icon */
41
+ /* Loading :before */ }
42
+ button.alm-load-more-btn:hover {
43
+ background-color: #e06464;
44
+ color: #fff;
45
+ text-decoration: none; }
46
+ button.alm-load-more-btn:active {
47
+ -webkit-box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.1);
48
+ box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.1);
49
+ text-decoration: none; }
50
+ button.alm-load-more-btn:focus, button.alm-load-more-btn:active {
51
+ outline: none; }
52
+ button.alm-load-more-btn.loading {
53
+ padding-left: 44px; }
54
+ button.alm-load-more-btn.done {
55
+ cursor: default;
56
+ opacity: 0.2;
57
+ background-color: #ed7070;
58
+ outline: none !important;
59
+ -webkit-box-shadow: none !important;
60
+ box-shadow: none !important; }
61
+ button.alm-load-more-btn:before, button.alm-load-more-btn.done:before {
62
+ background: none;
63
+ width: 0; }
64
+ button.alm-load-more-btn.loading:before {
65
+ background: #fff url("../../../core/img/ajax-loader.gif") no-repeat center center;
66
+ width: 30px;
67
+ height: 30px;
68
+ margin: 6px;
69
+ border-radius: 2px;
70
+ display: inline-block;
71
+ z-index: 0;
72
+ content: '';
73
+ position: absolute;
74
+ left: 0;
75
+ top: 0;
76
+ overflow: hidden;
77
+ -webkit-transition: width 0.5s ease-in-out;
78
+ transition: width 0.5s ease-in-out; }
79
+
80
+ .alm-masonry,
81
+ .alm-btn-wrap {
82
+ display: block;
83
+ overflow: hidden;
84
+ clear: both; }
85
+
86
+ .alm-btn-wrap {
87
+ text-align: center;
88
+ padding: 10px 0 25px; }
89
+
90
+ /* Blue */
91
+ .ajax-load-more-wrap.blue button.alm-load-more-btn {
92
+ background-color: #0081bf; }
93
+ .ajax-load-more-wrap.blue button.alm-load-more-btn:hover, .ajax-load-more-wrap.blue button.alm-load-more-btn.done {
94
+ background-color: #0073aa; }
95
+
96
+ /* green */
97
+ .ajax-load-more-wrap.green button.alm-load-more-btn {
98
+ background-color: #6fca68; }
99
+ .ajax-load-more-wrap.green button.alm-load-more-btn:hover, .ajax-load-more-wrap.green button.alm-load-more-btn.done {
100
+ background-color: #64b95e; }
101
+
102
+ /* red */
103
+ .ajax-load-more-wrap.red button.alm-load-more-btn {
104
+ background-color: #ca4b4b; }
105
+ .ajax-load-more-wrap.red button.alm-load-more-btn:hover, .ajax-load-more-wrap.red button.alm-load-more-btn.done {
106
+ background-color: #b13b3b; }
107
+
108
+ /* purple */
109
+ .ajax-load-more-wrap.purple button.alm-load-more-btn {
110
+ background-color: #a86bb9; }
111
+ .ajax-load-more-wrap.purple button.alm-load-more-btn:hover, .ajax-load-more-wrap.purple button.alm-load-more-btn.done {
112
+ background-color: #9963a8; }
113
+
114
+ /* grey */
115
+ .ajax-load-more-wrap.grey button.alm-load-more-btn {
116
+ background-color: #888; }
117
+ .ajax-load-more-wrap.grey button.alm-load-more-btn:hover, .ajax-load-more-wrap.grey button.alm-load-more-btn.done {
118
+ background-color: #777; }
119
+
120
+ /* white */
121
+ .ajax-load-more-wrap.white button.alm-load-more-btn {
122
+ background-color: #fff;
123
+ color: #666;
124
+ border: 1px solid #efefef; }
125
+ .ajax-load-more-wrap.white button.alm-load-more-btn:hover, .ajax-load-more-wrap.white button.alm-load-more-btn.done {
126
+ background-color: #efefef;
127
+ color: #333; }
128
+ .ajax-load-more-wrap.white button.alm-load-more-btn.done {
129
+ border-color: #fff; }
130
+
131
+ /* Infinite */
132
+ .ajax-load-more-wrap.infinite button.alm-load-more-btn {
133
+ width: 100%;
134
+ background-color: transparent !important;
135
+ background-position: center center;
136
+ background-repeat: no-repeat;
137
+ background-image: url("../../../core/img/spinner.gif");
138
+ border: none !important;
139
+ opacity: 0;
140
+ -webkit-transition: opacity 0.25s ease;
141
+ transition: opacity 0.25s ease;
142
+ -webkit-box-shadow: none !important;
143
+ box-shadow: none !important;
144
+ overflow: hidden;
145
+ text-indent: -9999px;
146
+ cursor: default !important;
147
+ outline: none !important; }
148
+ .ajax-load-more-wrap.infinite button.alm-load-more-btn:before {
149
+ display: none !important; }
150
+ .ajax-load-more-wrap.infinite button.alm-load-more-btn:active {
151
+ -webkit-box-shadow: none;
152
+ box-shadow: none; }
153
+ .ajax-load-more-wrap.infinite button.alm-load-more-btn.done {
154
+ opacity: 0; }
155
+ .ajax-load-more-wrap.infinite button.alm-load-more-btn.loading {
156
+ opacity: 1; }
157
+
158
+ .ajax-load-more-wrap.infinite.skype button.alm-load-more-btn {
159
+ background-image: url("../../../core/img/spinner-skype.gif"); }
160
+
161
+ .ajax-load-more-wrap.infinite.ring button.alm-load-more-btn {
162
+ background-image: url("../../../core/img/spinner-ring.gif"); }
163
+
164
+ .ajax-load-more-wrap.infinite.fading-blocks button.alm-load-more-btn {
165
+ background-image: url("../../../core/img/loader-fading-blocks.gif"); }
166
+
167
+ .ajax-load-more-wrap.infinite.fading-circles button.alm-load-more-btn {
168
+ background-image: url("../../../core/img/loader-fading-circles.gif"); }
169
+
170
+ .ajax-load-more-wrap.infinite.chasing-arrows button.alm-load-more-btn {
171
+ background-image: url("../../../core/img/spinner-chasing-arrows.gif"); }
172
+
173
+ /*
174
+ * Generic alm-listing styles
175
+ * @since 1.0.0
176
+ */
177
+ .alm-listing {
178
+ margin: 0;
179
+ padding: 0; }
180
+ .alm-listing li {
181
+ background: none;
182
+ margin: 0 0 30px;
183
+ padding: 0 0 0 170px;
184
+ overflow: hidden;
185
+ position: relative;
186
+ list-style: none; }
187
+ .alm-listing li.no-img {
188
+ padding: 0; }
189
+ .alm-listing li p {
190
+ margin: 0; }
191
+ .alm-listing li h3 {
192
+ margin: 0 0 10px; }
193
+ .alm-listing li img {
194
+ position: absolute;
195
+ left: 0;
196
+ top: 0;
197
+ border-radius: 2px; }
core/dist/css/ajax-load-more.min.css ADDED
@@ -0,0 +1 @@
 
1
+ button.alm-load-more-btn{font-size:15px;font-weight:600;width:auto;height:42px;line-height:42px;background:#ed7070;color:#fff;border:none;border-radius:3px;margin:0 0 4px;padding:0 20px;display:inline-block;position:relative;-webkit-transition:padding .25s ease-in-out,width .25s ease-in-out;transition:padding .25s ease-in-out,width .25s ease-in-out;text-align:center;text-decoration:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}button.alm-load-more-btn:hover{background-color:#e06464;color:#fff;text-decoration:none}button.alm-load-more-btn:active{-webkit-box-shadow:inset 0 2px 1px rgba(0,0,0,.1);box-shadow:inset 0 2px 1px rgba(0,0,0,.1);text-decoration:none}button.alm-load-more-btn:active,button.alm-load-more-btn:focus{outline:0}button.alm-load-more-btn.loading{padding-left:44px}button.alm-load-more-btn.done{cursor:default;opacity:.2;background-color:#ed7070;outline:0!important;-webkit-box-shadow:none!important;box-shadow:none!important}button.alm-load-more-btn.done:before,button.alm-load-more-btn:before{background:0 0;width:0}button.alm-load-more-btn.loading:before{background:#fff url(../../../core/img/ajax-loader.gif) no-repeat center center;width:30px;height:30px;margin:6px;border-radius:2px;display:inline-block;z-index:0;content:'';position:absolute;left:0;top:0;overflow:hidden;-webkit-transition:width .5s ease-in-out;transition:width .5s ease-in-out}.alm-btn-wrap,.alm-masonry{display:block;overflow:hidden;clear:both}.alm-btn-wrap{text-align:center;padding:10px 0 25px}.ajax-load-more-wrap.blue button.alm-load-more-btn{background-color:#0081bf}.ajax-load-more-wrap.blue button.alm-load-more-btn.done,.ajax-load-more-wrap.blue button.alm-load-more-btn:hover{background-color:#0073aa}.ajax-load-more-wrap.green button.alm-load-more-btn{background-color:#6fca68}.ajax-load-more-wrap.green button.alm-load-more-btn.done,.ajax-load-more-wrap.green button.alm-load-more-btn:hover{background-color:#64b95e}.ajax-load-more-wrap.red button.alm-load-more-btn{background-color:#ca4b4b}.ajax-load-more-wrap.red button.alm-load-more-btn.done,.ajax-load-more-wrap.red button.alm-load-more-btn:hover{background-color:#b13b3b}.ajax-load-more-wrap.purple button.alm-load-more-btn{background-color:#a86bb9}.ajax-load-more-wrap.purple button.alm-load-more-btn.done,.ajax-load-more-wrap.purple button.alm-load-more-btn:hover{background-color:#9963a8}.ajax-load-more-wrap.grey button.alm-load-more-btn{background-color:#888}.ajax-load-more-wrap.grey button.alm-load-more-btn.done,.ajax-load-more-wrap.grey button.alm-load-more-btn:hover{background-color:#777}.ajax-load-more-wrap.white button.alm-load-more-btn{background-color:#fff;color:#666;border:1px solid #efefef}.ajax-load-more-wrap.white button.alm-load-more-btn.done,.ajax-load-more-wrap.white button.alm-load-more-btn:hover{background-color:#efefef;color:#333}.ajax-load-more-wrap.white button.alm-load-more-btn.done{border-color:#fff}.ajax-load-more-wrap.infinite button.alm-load-more-btn{width:100%;background-color:transparent!important;background-position:center center;background-repeat:no-repeat;background-image:url(../../../core/img/spinner.gif);border:none!important;opacity:0;-webkit-transition:opacity .25s ease;transition:opacity .25s ease;-webkit-box-shadow:none!important;box-shadow:none!important;overflow:hidden;text-indent:-9999px;cursor:default!important;outline:0!important}.ajax-load-more-wrap.infinite button.alm-load-more-btn:before{display:none!important}.ajax-load-more-wrap.infinite button.alm-load-more-btn:active{-webkit-box-shadow:none;box-shadow:none}.ajax-load-more-wrap.infinite button.alm-load-more-btn.done{opacity:0}.ajax-load-more-wrap.infinite button.alm-load-more-btn.loading{opacity:1}.ajax-load-more-wrap.infinite.skype button.alm-load-more-btn{background-image:url(../../../core/img/spinner-skype.gif)}.ajax-load-more-wrap.infinite.ring button.alm-load-more-btn{background-image:url(../../../core/img/spinner-ring.gif)}.ajax-load-more-wrap.infinite.fading-blocks button.alm-load-more-btn{background-image:url(../../../core/img/loader-fading-blocks.gif)}.ajax-load-more-wrap.infinite.fading-circles button.alm-load-more-btn{background-image:url(../../../core/img/loader-fading-circles.gif)}.ajax-load-more-wrap.infinite.chasing-arrows button.alm-load-more-btn{background-image:url(../../../core/img/spinner-chasing-arrows.gif)}.alm-listing{margin:0;padding:0}.alm-listing li{background:0 0;margin:0 0 30px;padding:0 0 0 170px;overflow:hidden;position:relative;list-style:none}.alm-listing li.no-img{padding:0}.alm-listing li p{margin:0}.alm-listing li h3{margin:0 0 10px}.alm-listing li img{position:absolute;left:0;top:0;border-radius:2px}
core/dist/js/ajax-load-more.js ADDED
@@ -0,0 +1,1836 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ /*
4
+ almMasonry
5
+
6
+ Function to trigger built-in Ajax Load More masonry
7
+
8
+ @param container object
9
+ @param items object
10
+ @param selector string
11
+ @since 3.1
12
+ */
13
+
14
+ var almMasonryInit = true; // flag
15
+
16
+ var almMasonry = function almMasonry(container, items, selector) {
17
+
18
+ if (almMasonryInit) {
19
+ container.imagesLoaded(function () {
20
+ items.fadeIn(250);
21
+ container.masonry({
22
+ itemSelector: selector
23
+ });
24
+ almMasonryInit = false;
25
+ });
26
+ } else {
27
+ container.append(items);
28
+ container.imagesLoaded(function () {
29
+ items.show();
30
+ container.masonry('appended', items);
31
+ });
32
+ }
33
+ };
34
+ 'use strict';
35
+
36
+ /*
37
+ * Ajax Load More
38
+ * http://wordpress.org/plugins/ajax-load-more/
39
+ * https://connekthq.com/plugins/ajax-load-more/
40
+ *
41
+ * Copyright 2017 Connekt Media - https://connekthq.com
42
+ * Free to use under the GPLv2 license.
43
+ * http://www.gnu.org/licenses/gpl-2.0.html
44
+ *
45
+ * Author: Darren Cooney
46
+ * Twitter: @KaptonKaos
47
+ */
48
+
49
+ (function ($) {
50
+ "use strict";
51
+
52
+ $.ajaxloadmore = function (el, e) {
53
+
54
+ //Prevent loading of unnessasry posts - move user to top of page
55
+ if (alm_localize.scrolltop === 'true') {
56
+ $(window).scrollTop(0);
57
+ }
58
+
59
+ //Set variables
60
+ var alm = this;
61
+ alm.AjaxLoadMore = {};
62
+ alm.window = $(window);
63
+ alm.page = 0;
64
+ alm.posts = 0;
65
+ alm.totalposts = 0;
66
+ alm.proceed = false;
67
+ alm.disable_ajax = false;
68
+ alm.init = true;
69
+ alm.loading = true;
70
+ alm.finished = false;
71
+ alm.button_label = '';
72
+ alm.el = el;
73
+ alm.container = el;
74
+ alm.container.addClass('alm-' + e).attr('data-alm-id', e); // Add unique classname and data id
75
+ alm.content = $('.alm-ajax', alm.container);
76
+ alm.content_preloaded = $('.alm-listing.alm-preloaded', alm.container);
77
+ alm.canonical_url = alm.el.attr('data-canonical-url');
78
+ alm.is_search = alm.el.attr('data-search');
79
+ alm.slug = alm.el.attr('data-slug');
80
+ alm.post_id = alm.el.attr('data-post-id');
81
+ alm.prefix = 'alm-';
82
+
83
+ alm.cache = alm.content.attr('data-cache'); // Cache add-on
84
+ alm.cache_id = alm.content.attr('data-cache-id'); // cache value
85
+ alm.cache_path = alm.content.attr('data-cache-path'); // cache path
86
+ alm.cache_logged_in = alm.content.attr('data-cache-logged-in'); // cache logged in (settings)
87
+
88
+ alm.repeater = alm.content.attr('data-repeater'); // Repeaters
89
+ alm.theme_repeater = alm.content.attr('data-theme-repeater');
90
+
91
+ alm.scroll_distance = parseInt(alm.content.attr('data-scroll-distance'));
92
+ alm.max_pages = parseInt(alm.content.attr('data-max-pages'));
93
+ alm.pause_override = alm.content.attr('data-pause-override'); // true | false
94
+ alm.pause = alm.content.attr('data-pause'); // true | false
95
+ alm.transition = alm.content.attr('data-transition');
96
+ alm.transition_container = alm.content.attr('data-transition-container');
97
+ alm.speed = alm.content.attr('data-transition-speed');
98
+ alm.images_loaded = alm.content.attr('data-images-loaded');
99
+ alm.destroy_after = alm.content.attr('data-destroy-after');
100
+ alm.lang = alm.content.attr('data-lang');
101
+ alm.orginal_posts_per_page = alm.content.attr('data-posts-per-page'); // Used for paging add-on
102
+ alm.posts_per_page = alm.content.attr('data-posts-per-page');
103
+
104
+ alm.cta_array = '';
105
+ alm.cta = alm.content.attr('data-cta'); // CTA add-on
106
+ alm.cta_position = alm.content.attr('data-cta-position');
107
+ alm.cta_repeater = alm.content.attr('data-cta-repeater');
108
+ alm.cta_theme_repeater = alm.content.attr('data-cta-theme-repeater');
109
+
110
+ alm.acf_array = '';
111
+ alm.acf = alm.content.attr('data-acf'); // ACF add-on
112
+ alm.acf_field_type = alm.content.attr('data-acf-field-type'); // Field Type
113
+ alm.acf_field_name = alm.content.attr('data-acf-field-name'); // Field Name
114
+ alm.acf_post_id = alm.content.attr('data-acf-post-id'); // Get the Post ID
115
+
116
+ alm.nextpage_array = '';
117
+ alm.nextpage = alm.content.attr('data-nextpage'); // Nextpage add-on
118
+ alm.nextpage_urls = alm.content.attr('data-nextpage-urls'); // Update url
119
+ alm.nextpage_scroll = alm.content.attr('data-nextpage-scroll'); // Scroll
120
+ alm.nextpage_pageviews = alm.content.attr('data-nextpage-pageviews'); // pageviews
121
+ alm.nextpage_post_id = alm.content.attr('data-nextpage-post-id'); // Get the nextpage id
122
+ alm.nextpage_startpage = alm.content.attr('data-nextpage-startpage'); // nextpage startpage
123
+
124
+ alm.previous_post = alm.content.attr('data-previous-post'); // Previous Post add-on
125
+ alm.previous_post_id = alm.content.attr('data-previous-post-id'); // Get the post id
126
+ alm.previous_post_taxonomy = alm.content.attr('data-previous-post-taxonomy'); // Get the post taxonomy
127
+
128
+ alm.comments = alm.content.attr('data-comments'); // true | false
129
+ if (alm.comments === 'true') {
130
+ // if comments, then set alm.content to comments wrap
131
+ alm.content = $('.alm-comments', alm.container);
132
+ }
133
+ alm.comments_array = '';
134
+ alm.comments_post_id = alm.content.attr('data-comments_post_id'); // current post id
135
+ alm.comments_per_page = alm.content.attr('data-comments_per_page');
136
+ alm.comments_type = alm.content.attr('data-comments_type');
137
+ alm.comments_style = alm.content.attr('data-comments_style');
138
+ alm.comments_template = alm.content.attr('data-comments_template');
139
+ alm.comments_callback = alm.content.attr('data-comments_callback');
140
+
141
+ alm.restapi = alm.content.attr('data-restapi');
142
+ alm.restapi_base_url = alm.content.attr('data-restapi-base-url');
143
+ alm.restapi_namespace = alm.content.attr('data-restapi-namespace');
144
+ alm.restapi_endpoint = alm.content.attr('data-restapi-endpoint');
145
+ alm.restapi_template_id = alm.content.attr('data-restapi-template-id');
146
+ alm.restapi_debug = alm.content.attr('data-restapi-debug');
147
+
148
+ alm.seo = alm.content.attr('data-seo'); // true | false
149
+
150
+ alm.preloaded = alm.content.attr('data-preloaded'); // true | false
151
+ alm.preloaded_amount = alm.content.attr('data-preloaded-amount'); // 0
152
+
153
+ alm.paging = alm.content.attr('data-paging'); // is paging enabled
154
+ alm.paging_controls = alm.content.attr('data-paging-controls');
155
+ alm.paging_show_at_most = alm.content.attr('data-paging-show-at-most');
156
+ alm.paging_classes = alm.content.attr('data-paging-classes');
157
+ alm.paging_init = true;
158
+
159
+ /* REST API */
160
+ if (alm.restapi === 'true') {
161
+ alm.restapi = true;
162
+ if (alm.restapi_debug === undefined) {
163
+ alm.restapi_debug = false;
164
+ }
165
+ if (alm.restapi_template_id === '') {
166
+ alm.restapi = false;
167
+ }
168
+ } else {
169
+ alm.restapi = false;
170
+ }
171
+ /* End REST API */
172
+
173
+ /* Paging */
174
+ if (alm.paging === 'true') {
175
+ alm.paging = true;
176
+ if (alm.paging_show_at_most === undefined) {
177
+ alm.paging_show_at_most = 7;
178
+ }
179
+ if (alm.preloaded === 'true') {
180
+ // Ifpreloaded, pause.
181
+ alm.pause = true;
182
+ }
183
+ } else {
184
+ alm.paging = false;
185
+ }
186
+
187
+ if (alm.paging_controls === 'true') {
188
+ alm.paging_controls = true;
189
+ } else {
190
+ alm.paging_controls = false;
191
+ }
192
+ /* End Paging */
193
+
194
+ /* Cache */
195
+ if (alm.cache === undefined) {
196
+ alm.cache = false;
197
+ }
198
+ if (alm.cache_logged_in === undefined) {
199
+ alm.cache_logged_in = false;
200
+ }
201
+ /* End Cache */
202
+
203
+ /* Comments */
204
+ if (alm.comments_per_page === undefined) {
205
+ alm.comments_per_page = '5';
206
+ }
207
+ /* End Comments */
208
+
209
+ /* Preloaded */
210
+ /* If posts_per_page <= preloaded_total_posts disable ajax load more */
211
+ if (alm.preloaded === 'true') {
212
+ alm.preload_wrap = alm.content.prev('.alm-preloaded');
213
+ alm.preloaded_total_posts = parseInt(alm.preload_wrap.attr('data-total-posts'));
214
+ if (alm.preloaded_amount === undefined) {
215
+ alm.preloaded_amount = false;
216
+ }
217
+ if (alm.preloaded_total_posts <= alm.preloaded_amount) {
218
+ alm.disable_ajax = true;
219
+ }
220
+ } else {
221
+ alm.preloaded = 'false';
222
+ }
223
+ /* End Preloaded */
224
+
225
+ /* SEO */
226
+ if (alm.seo === undefined) {
227
+ alm.seo = false;
228
+ }
229
+ if (alm.seo === 'true') {
230
+ alm.seo = true; // Convert string to boolean
231
+ }
232
+ if (alm.is_search === undefined) {
233
+ alm.is_search = false;
234
+ }
235
+ alm.search_value = alm.is_search === 'true' ? alm.slug : ''; // Convert to value of slug for appending to seo url
236
+
237
+ alm.permalink = alm.content.attr('data-seo-permalink');
238
+ alm.pageview = alm.content.attr('data-seo-pageview');
239
+ alm.start_page = alm.content.attr('data-seo-start-page');
240
+
241
+ if (alm.start_page) {
242
+
243
+ alm.seo_scroll = alm.content.attr('data-seo-scroll');
244
+ alm.seo_scroll_speed = alm.content.attr('data-seo-scroll-speed');
245
+ alm.seo_scrolltop = alm.content.attr('data-seo-scrolltop');
246
+
247
+ alm.isPaged = false;
248
+
249
+ if (alm.start_page > 1) {
250
+ alm.isPaged = true; // Is this a $paged page > 1 ?
251
+ alm.posts_per_page = alm.start_page * alm.posts_per_page;
252
+ }
253
+ // If paging is enabled, reset our posts_per_page
254
+ if (alm.paging) {
255
+ alm.posts_per_page = alm.orginal_posts_per_page;
256
+ }
257
+ } else {
258
+ alm.start_page = 1;
259
+ }
260
+ /* End SEO */
261
+
262
+ /* Nextpage */
263
+
264
+ if (alm.nextpage === 'true') {
265
+ alm.nextpage = true;
266
+ alm.posts_per_page = 1;
267
+ } else {
268
+ alm.nextpage = false;
269
+ }
270
+ if (alm.nextpage_urls === undefined) {
271
+ alm.nextpage = 'true';
272
+ }
273
+ if (alm.nextpage_scroll === undefined) {
274
+ alm.nextpage_scroll = '250:30';
275
+ }
276
+ if (alm.nextpage_pageviews === undefined) {
277
+ alm.nextpage_pageviews = 'true';
278
+ }
279
+ if (alm.nextpage_post_id === undefined) {
280
+ alm.nextpage = false;
281
+ alm.nextpage_post_id = null;
282
+ }
283
+ if (alm.nextpage_startpage === undefined) {
284
+ alm.nextpage_startpage = 1;
285
+ }
286
+ if (alm.nextpage_startpage > 1) {
287
+ alm.isPaged = true;
288
+ }
289
+
290
+ /* End Nextpage */
291
+
292
+ /* Advanced Custom Fields */
293
+
294
+ if (alm.acf === 'true') {
295
+ alm.acf = true;
296
+ } else {
297
+ alm.acf = false;
298
+ }
299
+ if (alm.acf_field_type === undefined || alm.acf_field_name === undefined || alm.acf_post_id === undefined) {
300
+ alm.acf = false;
301
+ }
302
+
303
+ /* End Advanced Custom Fields */
304
+
305
+ /* Previous Post */
306
+ if (alm.previous_post === 'true') {
307
+ alm.previous_post = true;
308
+ alm.previous_post_permalink = '';
309
+ alm.previous_post_title = '';
310
+ alm.previous_post_slug = '';
311
+ } else {
312
+ alm.previous_post = false;
313
+ }
314
+ if (alm.previous_post_id === undefined) {
315
+ alm.previous_post_id = '';
316
+ }
317
+ if (alm.previous_post_taxonomy === undefined) {
318
+ alm.previous_post_taxonomy = '';
319
+ }
320
+ alm.previous_post_title_template = alm.content.attr('data-previous-post-title-template');
321
+ alm.siteTitle = alm.content.attr('data-previous-post-site-title');
322
+ alm.siteTagline = alm.content.attr('data-previous-post-site-tagline');
323
+ alm.previous_post_pageview = alm.content.attr('data-previous-post-pageview');
324
+ alm.previous_post_scroll = alm.content.attr('data-previous-post-scroll');
325
+ alm.previous_post_scroll_speed = alm.content.attr('data-previous-post-scroll-speed');
326
+ alm.previous_post_scroll_top = alm.content.attr('data-previous-post-scrolltop');
327
+ /* End Previous Post */
328
+
329
+ /* Define offset */
330
+ if (alm.content.attr('data-offset') === undefined) {
331
+ alm.offset = 0;
332
+ } else {
333
+ alm.offset = alm.content.attr('data-offset');
334
+ }
335
+
336
+ /* Check for pause on init
337
+ * Pause could be used to hold the loading of posts for a button click.
338
+ */
339
+ if (alm.pause === undefined || alm.seo && alm.start_page > 1) {
340
+ // SEO only
341
+ alm.pause = false;
342
+ }
343
+ if (alm.preloaded === 'true' && alm.seo && alm.start_page > 0) {
344
+ // SEO + Preloaded
345
+ alm.pause = false;
346
+ }
347
+ if (alm.preloaded === 'true' && alm.paging) {
348
+ alm.pause = true;
349
+ }
350
+
351
+ /* Select the repeater template */
352
+ if (alm.repeater === undefined) {
353
+ alm.repeater = 'default';
354
+ }
355
+ if (alm.theme_repeater === undefined) {
356
+ alm.theme_repeater = 'null';
357
+ }
358
+
359
+ /* Max number of pages to load while scrolling */
360
+ if (alm.max_pages === undefined) {
361
+ alm.max_pages = 0;
362
+ }
363
+ if (alm.max_pages === 0) {
364
+ alm.max_pages = 10000;
365
+ }
366
+
367
+ /* Scroll Distance */
368
+ if (alm.scroll_distance === undefined) {
369
+ alm.scroll_distance = 150;
370
+ }
371
+
372
+ /* Transition Params */
373
+ if (alm.transition === undefined) {
374
+ alm.transition = 'slide';
375
+ }
376
+
377
+ alm.is_masonry_preloaded = false;
378
+ if (alm.transition === 'masonry') {
379
+ alm.masonry_selector = alm.content.attr('data-masonry-selector');
380
+ alm.masonry_wrap = alm.content;
381
+ alm.transition_container = false;
382
+ if (document.body.contains(alm.content_preloaded.get(0))) {
383
+ alm.masonry_wrap = alm.content_preloaded;
384
+ alm.is_masonry_preloaded = true;
385
+ }
386
+ }
387
+
388
+ /* Speed */
389
+ if (alm.speed === undefined) {
390
+ alm.speed = 250;
391
+ } else {
392
+ alm.speed = parseInt(alm.speed);
393
+ }
394
+
395
+ /* Transition Container */
396
+ if (alm.transition_container === undefined || alm.transition_container === 'true') {
397
+ alm.transition_container = true;
398
+ } else {
399
+ alm.transition_container = false;
400
+ }
401
+
402
+ /* Images Loaded */
403
+ if (alm.images_loaded === undefined) {
404
+ alm.images_loaded = 'false';
405
+ }
406
+
407
+ /* Destroy After */
408
+ if (alm.destroy_after !== undefined) {}
409
+
410
+ /* Button Labels */
411
+ if (alm.content.attr('data-button-label') === undefined) {
412
+ alm.button_label = 'Older Posts';
413
+ } else {
414
+ alm.button_label = alm.content.attr('data-button-label');
415
+ }
416
+
417
+ alm.button_loading_label = alm.content.attr('data-button-loading-label');
418
+ if (alm.button_loading_label === undefined) {
419
+ alm.button_loading_label = false;
420
+ }
421
+
422
+ /* Button Class */
423
+ if (alm.content.attr('data-button-class') === undefined) {
424
+ alm.button_class = '';
425
+ } else {
426
+ alm.button_class = ' ' + alm.content.attr('data-button-class');
427
+ }
428
+
429
+ /* Define scroll event */
430
+ if (alm.content.attr('data-scroll') === undefined) {
431
+ alm.scroll = true;
432
+ } else if (alm.content.attr('data-scroll') === 'false') {
433
+ alm.scroll = false;
434
+ } else {
435
+ alm.scroll = true;
436
+ }
437
+
438
+ /* Parse multiple Post Types */
439
+ alm.post_type = alm.content.attr('data-post-type');
440
+ alm.post_type = alm.post_type.split(",");
441
+
442
+ /* Sticky Posts */
443
+ alm.sticky_posts = alm.content.attr('data-sticky-posts');
444
+
445
+ /* Append 'load More' button to .ajax-load-more-wrap */
446
+ alm.container.append('<div class="' + alm.prefix + 'btn-wrap"/>');
447
+ alm.btnWrap = $('.' + alm.prefix + 'btn-wrap', alm.container);
448
+
449
+ if (alm.paging) {
450
+
451
+ // Paging add-on
452
+ alm.content.parent().addClass('loading'); // add loading class to main container
453
+ } else {
454
+
455
+ // If paging is false
456
+ $('.' + alm.prefix + 'btn-wrap', alm.container).append('<button id="load-more" class="' + alm.prefix + 'load-more-btn more' + alm.button_class + '">' + alm.button_label + '</button>');
457
+ alm.button = $('.alm-load-more-btn', alm.container);
458
+ }
459
+
460
+ /* loadPosts()
461
+ *
462
+ * The function to get posts via Ajax
463
+ * @since 2.0.0
464
+ */
465
+
466
+ alm.AjaxLoadMore.loadPosts = function () {
467
+ if (!alm.disable_ajax) {
468
+ // Check for ajax blocker
469
+ if (!alm.paging) {
470
+ alm.button.addClass('loading');
471
+ alm.container.addClass('alm-loading');
472
+ if (alm.button_loading_label !== false) {
473
+ alm.button.text(alm.button_loading_label);
474
+ }
475
+ }
476
+ alm.loading = true;
477
+
478
+ // If cache = true && cache_logged_in setting is false
479
+ if (alm.cache === 'true' && !alm.cache_logged_in) {
480
+
481
+ var cache_page;
482
+
483
+ if (alm.init && alm.seo && alm.isPaged) {
484
+ // SEO Add-on
485
+ // If the request a paged URL (/page/3/)
486
+ var firstpage = '1';
487
+ cache_page = alm.cache_path + alm.cache_id + '/page-' + firstpage + '-' + alm.start_page + '.html';
488
+ } else if (alm.nextpage) {
489
+ // Nextpage add-on
490
+ var nextpage_cache_page;
491
+ if (alm.paging) {
492
+ nextpage_cache_page = parseInt(alm.page) + 1;
493
+ } else {
494
+ nextpage_cache_page = parseInt(alm.page) + 2;
495
+ if (alm.isPaged) {
496
+ // If the request a paged URL (/page/3/)
497
+ nextpage_cache_page = parseInt(alm.page) + parseInt(alm.nextpage_startpage) + 1;
498
+ }
499
+ }
500
+ cache_page = alm.cache_path + alm.cache_id + '/page' + '-' + nextpage_cache_page + '.html';
501
+ } else if (alm.previous_post) {
502
+ // Previous Post
503
+ cache_page = alm.cache_path + alm.cache_id + '/' + alm.previous_post_slug + '.html';
504
+ } else {
505
+ // Standard ALM URL request
506
+ cache_page = alm.cache_path + alm.cache_id + '/page-' + (alm.page + 1) + '.html';
507
+ }
508
+
509
+ $.get(cache_page, function (data) {
510
+ alm.AjaxLoadMore.success(data, true); // data contains whatever the request has returned
511
+ }).fail(function () {
512
+ alm.AjaxLoadMore.ajax('standard');
513
+ });
514
+ } else {
515
+ // Standard ALM query
516
+
517
+ alm.AjaxLoadMore.ajax('standard');
518
+ }
519
+ }
520
+ };
521
+
522
+ /* ajax()
523
+ *
524
+ * Ajax Load Moe Ajax function
525
+ *
526
+ * @param queryType The type of Ajax request (standard/totalposts)
527
+ * @since 2.6.0
528
+ */
529
+
530
+ alm.AjaxLoadMore.ajax = function (queryType) {
531
+
532
+ // Default action
533
+ var action = 'alm_query_posts';
534
+
535
+ // ACF Params
536
+ if (alm.acf) {
537
+
538
+ // Custom query for the Repeater / Gallery / Flexible Content field types
539
+ if (alm.acf_field_type !== 'relationship') {
540
+ action = 'alm_acf_query';
541
+ }
542
+ alm.acf_array = {
543
+ 'acf': 'true',
544
+ 'post_id': alm.acf_post_id,
545
+ 'field_type': alm.acf_field_type,
546
+ 'field_name': alm.acf_field_name
547
+ };
548
+ }
549
+
550
+ // Nextpage Params
551
+ if (alm.nextpage) {
552
+ action = 'alm_nextpage_query';
553
+ alm.nextpage_array = {
554
+ 'nextpage': 'true',
555
+ 'urls': alm.nextpage_urls,
556
+ 'scroll': alm.nextpage_scroll,
557
+ 'pageviews': alm.nextpage_pageviews,
558
+ 'post_id': alm.nextpage_post_id,
559
+ 'startpage': alm.nextpage_startpage
560
+ };
561
+ }
562
+
563
+ // Previous Post Params
564
+ if (alm.previous_post) {
565
+ alm.previous_post_array = {
566
+ 'previous_post': 'true',
567
+ 'id': alm.previous_post_id,
568
+ 'slug': alm.previous_post_slug
569
+ };
570
+ }
571
+
572
+ // Comment query
573
+ if (alm.comments === 'true') {
574
+ action = 'alm_comments_query';
575
+ alm.posts_per_page = alm.comments_per_page;
576
+ alm.comments_array = {
577
+ 'comments': 'true',
578
+ 'post_id': alm.comments_post_id,
579
+ 'per_page': alm.comments_per_page,
580
+ 'type': alm.comments_type,
581
+ 'style': alm.comments_style,
582
+ 'template': alm.comments_template,
583
+ 'callback': alm.comments_callback
584
+ };
585
+ }
586
+
587
+ // CTA Add-on Query params
588
+ if (alm.cta === 'true') {
589
+ alm.cta_array = {
590
+ 'cta': 'true',
591
+ 'cta_position': alm.cta_position,
592
+ 'cta_repeater': alm.cta_repeater,
593
+ 'cta_theme_repeater': alm.cta_theme_repeater
594
+ };
595
+ }
596
+
597
+ // REST API
598
+ if (alm.restapi) {
599
+ var alm_template = wp.template(alm.restapi_template_id),
600
+ rest_url = alm.restapi_base_url + '/' + alm.restapi_namespace + '/' + alm.restapi_endpoint,
601
+ rest_data = {
602
+ posts_per_page: alm.posts_per_page,
603
+ page: alm.page,
604
+ offset: alm.offset,
605
+ slug: alm.slug,
606
+ canonical_url: alm.canonical_url,
607
+ post_type: alm.post_type,
608
+ post_format: alm.content.attr('data-post-format'),
609
+ category: alm.content.attr('data-category'),
610
+ category__not_in: alm.content.attr('data-category-not-in'),
611
+ tag: alm.content.attr('data-tag'),
612
+ tag__not_in: alm.content.attr('data-tag-not-in'),
613
+ taxonomy: alm.content.attr('data-taxonomy'),
614
+ taxonomy_terms: alm.content.attr('data-taxonomy-terms'),
615
+ taxonomy_operator: alm.content.attr('data-taxonomy-operator'),
616
+ taxonomy_relation: alm.content.attr('data-taxonomy-relation'),
617
+ meta_key: alm.content.attr('data-meta-key'),
618
+ meta_value: alm.content.attr('data-meta-value'),
619
+ meta_compare: alm.content.attr('data-meta-compare'),
620
+ meta_relation: alm.content.attr('data-meta-relation'),
621
+ meta_type: alm.content.attr('data-meta-type'),
622
+ author: alm.content.attr('data-author'),
623
+ year: alm.content.attr('data-year'),
624
+ month: alm.content.attr('data-month'),
625
+ day: alm.content.attr('data-day'),
626
+ post_status: alm.content.attr('data-post-status'),
627
+ order: alm.content.attr('data-order'),
628
+ orderby: alm.content.attr('data-orderby'),
629
+ post__in: alm.content.attr('data-post-in'),
630
+ post__not_in: alm.content.attr('data-post-not-in'),
631
+ search: alm.content.attr('data-search'),
632
+ custom_args: alm.content.attr('data-custom-args'),
633
+ lang: alm.lang,
634
+ preloaded: alm.preloaded,
635
+ preloaded_amount: alm.preloaded_amount,
636
+ seo_start_page: alm.start_page,
637
+ id: el.attr('data-id')
638
+ };
639
+
640
+ $.ajax({
641
+ type: "GET",
642
+ url: rest_url,
643
+ data: rest_data,
644
+ dataType: "JSON",
645
+ beforeSend: function beforeSend() {
646
+ if (alm.page != 1 && !alm.paging) {
647
+ alm.button.addClass('loading');
648
+ }
649
+ },
650
+ success: function success(results) {
651
+ var data,
652
+ html = results.html,
653
+ meta = results.meta,
654
+ postcount = meta.postcount,
655
+ totalposts = meta.totalposts;
656
+
657
+ // loop results to get data from each
658
+ $.each(html, function (e) {
659
+ var result = html[e];
660
+ if (alm.restapi_debug === 'true') {
661
+ // If debug
662
+ console.log(result);
663
+ }
664
+ data += alm_template(result);
665
+ });
666
+
667
+ // Create object to pass to success()
668
+ var obj = {
669
+ 'html': data,
670
+ 'meta': {
671
+ 'postcount': postcount,
672
+ 'totalposts': totalposts
673
+ }
674
+ };
675
+ alm.AjaxLoadMore.success(obj, false); // Send data
676
+ }
677
+ });
678
+ }
679
+
680
+ // Standard ALM
681
+ else {
682
+ $.ajax({
683
+ type: "GET",
684
+ url: alm_localize.ajaxurl,
685
+ dataType: "JSON",
686
+ data: {
687
+ action: action,
688
+ query_type: queryType,
689
+ nonce: alm_localize.alm_nonce,
690
+ cache_id: alm.cache_id,
691
+ repeater: alm.repeater,
692
+ theme_repeater: alm.theme_repeater,
693
+ acf: alm.acf_array,
694
+ nextpage: alm.nextpage_array,
695
+ cta: alm.cta_array,
696
+ comments: alm.comments_array,
697
+ post_type: alm.post_type,
698
+ sticky_posts: alm.sticky_posts,
699
+ post_format: alm.content.attr('data-post-format'),
700
+ category: alm.content.attr('data-category'),
701
+ category__not_in: alm.content.attr('data-category-not-in'),
702
+ tag: alm.content.attr('data-tag'),
703
+ tag__not_in: alm.content.attr('data-tag-not-in'),
704
+ taxonomy: alm.content.attr('data-taxonomy'),
705
+ taxonomy_terms: alm.content.attr('data-taxonomy-terms'),
706
+ taxonomy_operator: alm.content.attr('data-taxonomy-operator'),
707
+ taxonomy_relation: alm.content.attr('data-taxonomy-relation'),
708
+ meta_key: alm.content.attr('data-meta-key'),
709
+ meta_value: alm.content.attr('data-meta-value'),
710
+ meta_compare: alm.content.attr('data-meta-compare'),
711
+ meta_relation: alm.content.attr('data-meta-relation'),
712
+ meta_type: alm.content.attr('data-meta-type'),
713
+ author: alm.content.attr('data-author'),
714
+ year: alm.content.attr('data-year'),
715
+ month: alm.content.attr('data-month'),
716
+ day: alm.content.attr('data-day'),
717
+ post_status: alm.content.attr('data-post-status'),
718
+ order: alm.content.attr('data-order'),
719
+ orderby: alm.content.attr('data-orderby'),
720
+ post__in: alm.content.attr('data-post-in'),
721
+ post__not_in: alm.content.attr('data-post-not-in'),
722
+ exclude: alm.content.attr('data-exclude'), // Deprecate soon in favor of post__not_in
723
+ search: alm.content.attr('data-search'),
724
+ custom_args: alm.content.attr('data-custom-args'),
725
+ posts_per_page: alm.posts_per_page,
726
+ page: alm.page,
727
+ offset: alm.offset,
728
+ preloaded: alm.preloaded,
729
+ preloaded_amount: alm.preloaded_amount,
730
+ seo_start_page: alm.start_page,
731
+ paging: alm.paging,
732
+ previous_post: alm.previous_post_array,
733
+ lang: alm.lang,
734
+ slug: alm.slug,
735
+ canonical_url: alm.canonical_url,
736
+ id: el.attr('data-id')
737
+ },
738
+
739
+ beforeSend: function beforeSend() {
740
+ if (alm.page != 1 && !alm.paging) {
741
+ alm.button.addClass('loading');
742
+ }
743
+ },
744
+
745
+ success: function success(data) {
746
+ //console.log(data);
747
+ if (queryType === 'standard') {
748
+ alm.AjaxLoadMore.success(data, false);
749
+ } else if (queryType === 'totalpages' && alm.paging && alm.nextpage) {
750
+ // Next Page and Paging
751
+ if ($.isFunction($.fn.almBuildPagination)) {
752
+ $.fn.almBuildPagination(data, alm);
753
+ }
754
+ } else if (queryType === 'totalposts' && alm.paging) {
755
+ // Paging
756
+ if ($.isFunction($.fn.almBuildPagination)) {
757
+ $.fn.almBuildPagination(data, alm);
758
+ }
759
+ }
760
+ },
761
+
762
+ error: function error(jqXHR, textStatus, errorThrown) {
763
+ alm.AjaxLoadMore.error(jqXHR, textStatus, errorThrown);
764
+ }
765
+
766
+ });
767
+ }
768
+ };
769
+
770
+ // If pagination enabled, run totalposts query
771
+ if (alm.paging) {
772
+ if (alm.nextpage) {
773
+ alm.AjaxLoadMore.ajax('totalpages'); // Create paging menu and query for total pages
774
+ } else {
775
+ alm.AjaxLoadMore.ajax('totalposts'); // Create paging menu and query for total posts
776
+ }
777
+ }
778
+
779
+ /* success()
780
+ *
781
+ * Success function after loading data
782
+ *
783
+ * @param data The results of the Ajax request
784
+ * @param is_cache Are results of the Ajax request coming from cache
785
+ * @since 2.6.0
786
+ */
787
+
788
+ alm.AjaxLoadMore.success = function (data, is_cache) {
789
+
790
+ if (alm.previous_post) {
791
+ // Get previous page data
792
+ alm.AjaxLoadMore.getPreviousPost();
793
+ }
794
+
795
+ var html, meta, total;
796
+
797
+ if (is_cache) {
798
+ // If content is cached don't look for json data - we won't be querying the DB.
799
+ html = data;
800
+ } else {
801
+ // Standard ALM query results
802
+ html = data.html;
803
+ meta = data.meta;
804
+ alm.posts = alm.posts + meta.postcount;
805
+ total = meta.postcount;
806
+ alm.totalposts = meta.totalposts;
807
+ if (alm.preloaded === 'true') {
808
+ alm.totalposts = alm.totalposts - alm.preloaded_amount;
809
+ }
810
+ }
811
+
812
+ alm.data = $(html); // data converted to an object
813
+
814
+ if (is_cache) {
815
+ // If cache, get the length of the data object
816
+ total = alm.data.length;
817
+ }
818
+
819
+ // First Run
820
+ if (alm.init) {
821
+
822
+ if (!alm.paging) {
823
+
824
+ alm.button.text(alm.button_label);
825
+ } else {
826
+
827
+ // Is pagination
828
+ if (total > 0) {
829
+ alm.el = $('<div class="alm-reveal"/>');
830
+ alm.el.append('<div class="alm-paging-content"></div><div class="alm-paging-loading"></div>');
831
+ $('.alm-paging-content', alm.el).append(alm.data).hide();
832
+ alm.content.append(alm.el);
833
+ alm.content.parent().removeClass('loading'); // Remove loading class from main container
834
+ alm.AjaxLoadMore.resetBtnText();
835
+
836
+ $('.alm-paging-content', alm.el).fadeIn(alm.speed, 'alm_easeInOutQuad', function () {
837
+ var paddingT = parseInt(alm.content.css('padding-top')),
838
+ paddingB = parseInt(alm.content.css('padding-bottom'));
839
+ alm.content.css('height', alm.el.height() + paddingT + paddingB + 'px');
840
+ if ($.isFunction($.fn.almFadePageControls)) {
841
+ $.fn.almFadePageControls(alm.btnWrap);
842
+ }
843
+ });
844
+ }
845
+ }
846
+
847
+ // ALM Empty
848
+ if (total === 0) {
849
+ if ($.isFunction($.fn.almEmpty)) {
850
+ $.fn.almEmpty(alm);
851
+ }
852
+ }
853
+
854
+ // isPaged
855
+ if (alm.isPaged) {
856
+ alm.posts_per_page = alm.content.attr('data-posts-per-page'); // Reset our posts per page variable
857
+ alm.page = alm.start_page - 1; // Set our new page #
858
+ }
859
+ }
860
+
861
+ if (total > 0) {
862
+
863
+ // Results!
864
+ if (!alm.paging) {
865
+
866
+ if (alm.previous_post) {
867
+ // If Previous Post, create container and append data
868
+
869
+ alm.el = $('<div class="alm-reveal alm-previous-post post-' + alm.previous_post_id + '" data-id="' + alm.previous_post_id + '" data-title="' + alm.previous_post_title + '" data-url="' + alm.previous_post_permalink + '" data-page="' + alm.page + '"/>');
870
+ alm.el.append(alm.data).hide();
871
+ } else {
872
+
873
+ if (!alm.transition_container) {
874
+ // No transition container
875
+
876
+ alm.data.hide();
877
+ alm.el = alm.data;
878
+ } else {
879
+ // Standard container
880
+
881
+ var pagenum;
882
+
883
+ // SEO
884
+ if (alm.init && alm.start_page > 1) {
885
+ // loop through items and break into separate alm-reveal divs for paging
886
+
887
+ var seo_data = [],
888
+ posts_per_page = parseInt(alm.posts_per_page);
889
+
890
+ if (alm.cta === 'true') {
891
+ // If CTA, +1 to posts_per_page to offset the CTA template and correct the display
892
+ posts_per_page = posts_per_page + 1;
893
+ }
894
+
895
+ var pages = Math.ceil(total / posts_per_page); // slice seo_data array into pages
896
+ for (var i = 0; i < total; i += posts_per_page) {
897
+ seo_data.push(alm.data.slice(i, posts_per_page + i));
898
+ }
899
+
900
+ alm.el = alm.content; // Set alm.el to be alm-listing div
901
+ for (var k = 0; k < seo_data.length; k++) {
902
+
903
+ var p = alm.preloaded === 'true' ? 1 : 0; // Add 1 page if items are preloaded.
904
+ var div;
905
+
906
+ if (k > 0 || alm.preloaded === 'true') {
907
+ // > Paged
908
+ pagenum = k + 1 + p;
909
+ if (alm.permalink === 'default') {
910
+ div = $('<div class="alm-reveal alm-seo" data-url="' + alm.canonical_url + '' + alm.search_value + '&paged=' + pagenum + '" data-page="' + pagenum + '" />');
911
+ } else {
912
+ div = $('<div class="alm-reveal alm-seo" data-url="' + alm.canonical_url + 'page/' + pagenum + '/' + alm.search_value + '" data-page="' + pagenum + '" />');
913
+ }
914
+ } else {
915
+ // First Page
916
+ div = $('<div class="alm-reveal alm-seo" data-url="' + alm.canonical_url + '' + alm.search_value + '" data-page="1" />');
917
+ }
918
+
919
+ div.append(seo_data[k]);
920
+ div = $(div); // convert to object
921
+ alm.el.append(div).hide(); // Append data to .alm-listing wrapper
922
+ }
923
+ }
924
+ // End SEO -- /
925
+
926
+ else {
927
+ // If is SEO and paged, or preloaded.
928
+ if (alm.seo && alm.page > 0 || alm.preloaded === 'true') {
929
+
930
+ var p2 = alm.preloaded === 'true' ? 1 : 0; // Add 1 page if items are preloaded.
931
+
932
+ // SEO [Paged]
933
+ pagenum = alm.page + 1 + p2;
934
+
935
+ if (alm.seo) {
936
+ if (alm.permalink === 'default') {
937
+ alm.el = $('<div class="alm-reveal alm-seo" data-url="' + alm.canonical_url + '' + alm.search_value + '&paged=' + pagenum + '" data-page="' + pagenum + '" />');
938
+ } else {
939
+ alm.el = $('<div class="alm-reveal alm-seo" data-url="' + alm.canonical_url + 'page/' + pagenum + '/' + alm.search_value + '" data-page="' + pagenum + '" />');
940
+ }
941
+ } else {
942
+ // Basic ALM
943
+ alm.el = $('<div class="alm-reveal" />');
944
+ }
945
+ } else {
946
+
947
+ if (alm.seo) {
948
+ // SEO [Page 1]
949
+ alm.el = $('<div class="alm-reveal alm-seo" data-url="' + alm.canonical_url + '' + alm.search_value + '" data-page="1" />');
950
+ } else {
951
+ // Basic ALM
952
+ alm.el = $('<div class="alm-reveal" />');
953
+ }
954
+ }
955
+
956
+ alm.el.append(alm.data).hide();
957
+ }
958
+ }
959
+ }
960
+
961
+ // Append alm.el to ALM container
962
+ // Do not append when transtion == masonry OR init and !preloaded
963
+ if (alm.transition !== 'masonry' || alm.init && !alm.is_masonry_preloaded) {
964
+ alm.content.append(alm.el);
965
+ }
966
+
967
+ // Transition
968
+ if (alm.transition === 'fade') {
969
+ // Fade
970
+ if (alm.images_loaded === 'true') {
971
+ alm.el.almWaitForImages().done(function () {
972
+ alm.el.fadeIn(alm.speed, 'alm_easeInOutQuad', function () {
973
+ alm.loading = false;
974
+ if (!alm.paging) {
975
+ alm.button.delay(alm.speed).removeClass('loading');
976
+ alm.container.delay(alm.speed).removeClass('alm-loading');
977
+ alm.AjaxLoadMore.resetBtnText();
978
+ }
979
+ alm.AjaxLoadMore.triggerAddons(alm);
980
+ });
981
+ });
982
+ } else {
983
+ alm.el.fadeIn(alm.speed, 'alm_easeInOutQuad', function () {
984
+ alm.loading = false;
985
+ if (!alm.paging) {
986
+ alm.button.delay(alm.speed).removeClass('loading');
987
+ alm.container.delay(alm.speed).removeClass('loading');
988
+ alm.AjaxLoadMore.resetBtnText();
989
+ }
990
+ alm.AjaxLoadMore.triggerAddons(alm);
991
+ });
992
+ }
993
+ } else if (alm.transition === 'masonry') {
994
+ // masonry
995
+
996
+ almMasonry(alm.masonry_wrap, alm.el, alm.masonry_selector);
997
+
998
+ if (!alm.paging) {
999
+ alm.button.delay(alm.speed).removeClass('loading');
1000
+ alm.container.delay(alm.speed).removeClass('loading');
1001
+ alm.AjaxLoadMore.resetBtnText();
1002
+ }
1003
+ alm.loading = false;
1004
+ alm.AjaxLoadMore.triggerAddons(alm);
1005
+ } else if (alm.transition === 'none') {
1006
+ // None
1007
+ if (alm.images_loaded === 'true') {
1008
+ alm.el.almWaitForImages().done(function () {
1009
+ alm.el.show();
1010
+ alm.AjaxLoadMore.triggerAddons(alm);
1011
+ });
1012
+ } else {
1013
+ alm.el.show();
1014
+ alm.AjaxLoadMore.triggerAddons(alm);
1015
+ }
1016
+ alm.loading = false;
1017
+ if (!alm.paging) {
1018
+ alm.button.delay(alm.speed).removeClass('loading');
1019
+ alm.container.delay(alm.speed).removeClass('loading');
1020
+ alm.AjaxLoadMore.resetBtnText();
1021
+ }
1022
+ } else {
1023
+ // Slide
1024
+ if (alm.images_loaded === 'true') {
1025
+ alm.el.almWaitForImages().done(function () {
1026
+ alm.el.slideDown(alm.speed, 'alm_easeInOutQuad', function () {
1027
+ alm.loading = false;
1028
+ if (!alm.paging) {
1029
+ alm.button.delay(alm.speed).removeClass('loading');
1030
+ alm.container.delay(alm.speed).removeClass('loading');
1031
+ alm.AjaxLoadMore.resetBtnText();
1032
+ }
1033
+ alm.AjaxLoadMore.triggerAddons(alm);
1034
+ });
1035
+ });
1036
+ } else {
1037
+ alm.el.slideDown(alm.speed, 'alm_easeInOutQuad', function () {
1038
+ alm.loading = false;
1039
+ if (!alm.paging) {
1040
+ alm.button.delay(alm.speed).removeClass('loading');
1041
+ alm.container.delay(alm.speed).removeClass('loading');
1042
+ alm.AjaxLoadMore.resetBtnText();
1043
+ }
1044
+ alm.AjaxLoadMore.triggerAddons(alm);
1045
+ });
1046
+ }
1047
+ }
1048
+ // End Transition
1049
+ } else {
1050
+
1051
+ // Paging
1052
+ if (!alm.init) {
1053
+ $('.alm-paging-content', alm.el).html('').append(alm.data).almWaitForImages().done(function () {
1054
+ // Remove loading class and append data
1055
+ $('.alm-paging-loading', alm.el).fadeOut(alm.speed); // Fade out loader
1056
+ if ($.isFunction($.fn.almOnPagingComplete)) {
1057
+ $.fn.almOnPagingComplete(alm);
1058
+ }
1059
+ alm.AjaxLoadMore.triggerAddons(alm);
1060
+ });
1061
+ } else {
1062
+ alm.AjaxLoadMore.triggerAddons(alm);
1063
+ }
1064
+ // End Paging
1065
+ }
1066
+
1067
+ // ALM Complete
1068
+ if ($.isFunction($.fn.almComplete)) {
1069
+ if (alm.images_loaded === 'true') {
1070
+ alm.el.almWaitForImages().done(function () {
1071
+ $.fn.almComplete(alm);
1072
+ });
1073
+ } else {
1074
+ $.fn.almComplete(alm);
1075
+ }
1076
+ }
1077
+ // End ALM Complete
1078
+
1079
+
1080
+ // ALM Done
1081
+ if (!alm.cache) {
1082
+ // Not Cache & Previous Post
1083
+ if (alm.posts >= alm.totalposts && !alm.previous_post) {
1084
+ alm.AjaxLoadMore.triggerDone();
1085
+ }
1086
+ } else {
1087
+ // Cache
1088
+ if (total < alm.posts_per_page) {
1089
+ alm.AjaxLoadMore.triggerDone();
1090
+ }
1091
+ }
1092
+ // End ALM Done
1093
+
1094
+ } else {
1095
+
1096
+ // No Results!
1097
+ if (!alm.paging) {
1098
+ alm.button.delay(alm.speed).removeClass('loading').addClass('done');
1099
+ alm.AjaxLoadMore.resetBtnText();
1100
+ }
1101
+ alm.AjaxLoadMore.triggerDone(); // ALM Done
1102
+ }
1103
+
1104
+ // Destroy After
1105
+ if (alm.destroy_after !== undefined && alm.destroy_after !== '') {
1106
+ var currentPage = alm.page + 1; // Add 1 because alm.page starts at 0
1107
+ if (alm.preload) {
1108
+ currentPage++;
1109
+ }
1110
+ if (currentPage == alm.destroy_after) {
1111
+ // - Disable ALM is page = alm.destroy_after value
1112
+ alm.disable_ajax = true;
1113
+ if (!alm.paging) {
1114
+ alm.button.delay(alm.speed).fadeOut(alm.speed);
1115
+ }
1116
+ }
1117
+ }
1118
+ // End Destroy After
1119
+
1120
+ alm.init = false;
1121
+ };
1122
+
1123
+ /* pagingPreloadedInit()
1124
+ *
1125
+ * First run for Paging + Preloaded add-ons
1126
+ * Moves preloaded content into ajax container
1127
+ *
1128
+ * @param data The results of the Ajax request
1129
+ * @since 2.11.3
1130
+ */
1131
+ alm.AjaxLoadMore.pagingPreloadedInit = function (data) {
1132
+
1133
+ alm.el = $('<div class="alm-reveal"/>');
1134
+ alm.el.append('<div class="alm-paging-content">' + data + '</div><div class="alm-paging-loading"></div>');
1135
+ alm.content.append(alm.el);
1136
+ alm.content.parent().removeClass('loading'); // Remove loading class from main container
1137
+ alm.AjaxLoadMore.resetBtnText();
1138
+
1139
+ var paddingT = parseInt(alm.content.css('padding-top')),
1140
+ paddingB = parseInt(alm.content.css('padding-bottom'));
1141
+ alm.content.css('height', alm.el.height() + paddingT + paddingB + 'px');
1142
+
1143
+ if ($.isFunction($.fn.almFadePageControls)) {
1144
+ $.fn.almFadePageControls(alm.btnWrap);
1145
+ }
1146
+ };
1147
+
1148
+ /* pagingNextpageInit()
1149
+ *
1150
+ * First run for Paging + Next Page add-ons
1151
+ * Moves .alm-nextpage content into ajax container
1152
+ *
1153
+ * @param data The results of the Ajax request
1154
+ * @since 2.14.0
1155
+ */
1156
+ alm.AjaxLoadMore.pagingNextpageInit = function (data) {
1157
+ alm.el = $('<div class="alm-reveal alm-nextpage"/>');
1158
+ alm.el.append('<div class="alm-paging-content">' + data + '</div><div class="alm-paging-loading"></div>');
1159
+ alm.el.appendTo(alm.content);
1160
+ alm.content.parent().removeClass('loading'); // Remove loading class from main container
1161
+ alm.AjaxLoadMore.resetBtnText();
1162
+
1163
+ var paddingT = parseInt(alm.content.css('padding-top')),
1164
+ paddingB = parseInt(alm.content.css('padding-bottom'));
1165
+ alm.content.css('height', alm.el.height() + paddingT + paddingB + 'px');
1166
+
1167
+ if ($.isFunction($.fn.almSetNextPageVars)) {
1168
+ $.fn.almSetNextPageVars(alm); // Next Page Add-on
1169
+ }
1170
+
1171
+ // Delay the following to avoid positioning
1172
+ setTimeout(function () {
1173
+ if ($.isFunction($.fn.almFadePageControls)) {
1174
+ $.fn.almFadePageControls(alm.btnWrap); // Paging Add-on
1175
+ }
1176
+
1177
+ if ($.isFunction($.fn.almOnWindowResize)) {
1178
+ $.fn.almOnWindowResize(alm); // Paging Add-on
1179
+ }
1180
+ }, 200);
1181
+ };
1182
+
1183
+ /* getPreviousPost()
1184
+ *
1185
+ * Get the previous post ID via ajax
1186
+ * @since 2.7.4
1187
+ */
1188
+ alm.fetchingPreviousPost = false;
1189
+
1190
+ alm.AjaxLoadMore.getPreviousPost = function () {
1191
+ alm.fetchingPreviousPost = true;
1192
+ $.ajax({
1193
+ type: "GET",
1194
+ dataType: "JSON",
1195
+ url: alm_localize.ajaxurl,
1196
+ data: {
1197
+ action: 'alm_query_previous_post',
1198
+ id: alm.previous_post_id,
1199
+ taxonomy: alm.previous_post_taxonomy
1200
+ },
1201
+ success: function success(data) {
1202
+ if (data.has_previous_post) {
1203
+ alm.content.attr('data-previous-post-id', data.prev_id); // update previous-post-id on ALM element
1204
+ alm.previous_post_id = data.prev_id;
1205
+ alm.previous_post_permalink = data.prev_permalink;
1206
+ alm.previous_post_title = data.prev_title;
1207
+ alm.previous_post_slug = data.prev_slug;
1208
+ } else {
1209
+ if (!data.has_previous_post) {
1210
+ alm.AjaxLoadMore.triggerDone();
1211
+ }
1212
+ }
1213
+ if ($.isFunction($.fn.almSetPreviousPost)) {
1214
+ $.fn.almSetPreviousPost(alm, data.current_id, data.permalink, data.title);
1215
+ }
1216
+ alm.fetchingPreviousPost = false;
1217
+ },
1218
+ error: function error(jqXHR, textStatus, errorThrown) {
1219
+ alm.AjaxLoadMore.error(jqXHR, textStatus, errorThrown);
1220
+ alm.fetchingPreviousPost = false;
1221
+ }
1222
+
1223
+ });
1224
+ };
1225
+
1226
+ /* loadComplete()
1227
+ *
1228
+ * Fires various add-on functions (if available) after load complete.
1229
+ * @since 2.14.0
1230
+ */
1231
+ alm.AjaxLoadMore.triggerAddons = function (alm) {
1232
+ if ($.isFunction($.fn.almSEO) && alm.seo) {
1233
+ $.fn.almSEO(alm);
1234
+ }
1235
+ if ($.isFunction($.fn.almSetNextPage)) {
1236
+ $.fn.almSetNextPage(alm);
1237
+ }
1238
+ };
1239
+
1240
+ /* triggerDone()
1241
+ *
1242
+ * Fires the almDone() function (if available).
1243
+ * @since 2.11.3
1244
+ */
1245
+ alm.AjaxLoadMore.triggerDone = function () {
1246
+ alm.loading = false;
1247
+ alm.finished = true;
1248
+ if (!alm.paging) {
1249
+ alm.button.addClass('done');
1250
+ }
1251
+ if ($.isFunction($.fn.almDone)) {
1252
+ // Delay done until after animation
1253
+ setTimeout(function () {
1254
+ $.fn.almDone(alm);
1255
+ }, alm.speed + 10);
1256
+ }
1257
+ };
1258
+
1259
+ /* resetBtnText()
1260
+ *
1261
+ * Resets the loading button text after loading has completed
1262
+ * @since 2.8.4
1263
+ */
1264
+ alm.AjaxLoadMore.resetBtnText = function () {
1265
+
1266
+ if (alm.button_loading_label !== false) {
1267
+ // Reset button text
1268
+ if (!alm.paging) {
1269
+ alm.button.text(alm.button_label);
1270
+ }
1271
+ }
1272
+ };
1273
+
1274
+ /* error()
1275
+ *
1276
+ * Error function after failed data
1277
+ * @since 2.6.0
1278
+ */
1279
+
1280
+ alm.AjaxLoadMore.error = function (jqXHR, textStatus, errorThrown) {
1281
+ alm.loading = false;
1282
+ if (!alm.paging) {
1283
+ alm.button.removeClass('loading');
1284
+ alm.AjaxLoadMore.resetBtnText();
1285
+ }
1286
+ console.log(errorThrown);
1287
+ };
1288
+
1289
+ /* Button onClick()
1290
+ *
1291
+ * Load more button click event
1292
+ * @since 1.0.0
1293
+ */
1294
+
1295
+ if (!alm.paging && !alm.fetchingPreviousPost) {
1296
+ alm.button.on('click', function () {
1297
+ if (alm.pause === 'true') {
1298
+ alm.pause = false;
1299
+ alm.pause_override = false;
1300
+ alm.AjaxLoadMore.loadPosts();
1301
+ }
1302
+ if (!alm.loading && !alm.finished && !$(this).hasClass('done')) {
1303
+ alm.loading = true;
1304
+ alm.page++;
1305
+ alm.AjaxLoadMore.loadPosts();
1306
+ }
1307
+ });
1308
+ }
1309
+
1310
+ /* Window Resize
1311
+ *
1312
+ * Add resize function for Paging add-on only.
1313
+ * @since 2.1.2
1314
+ */
1315
+ if (alm.paging) {
1316
+
1317
+ alm.window.bind('resizeEnd', function () {
1318
+ if ($.isFunction($.fn.almOnWindowResize)) {
1319
+ $.fn.almOnWindowResize(alm);
1320
+ }
1321
+ });
1322
+
1323
+ alm.window.resize(function () {
1324
+ if (this.resizeTO) {
1325
+ clearTimeout(this.resizeTO);
1326
+ }
1327
+ this.resizeTO = setTimeout(function () {
1328
+ $(this).trigger('resizeEnd');
1329
+ }, 250);
1330
+ });
1331
+ }
1332
+
1333
+ /* alm.AjaxLoadMore.isVisible()
1334
+ *
1335
+ * Check to see if element is visible before loading posts
1336
+ * @since 2.1.2
1337
+ */
1338
+
1339
+ alm.AjaxLoadMore.isVisible = function () {
1340
+ alm.visible = false;
1341
+ if (alm.el.is(":visible")) {
1342
+ alm.visible = true;
1343
+ }
1344
+ return alm.visible;
1345
+ };
1346
+
1347
+ /* Window scroll and touchmove events
1348
+ *
1349
+ * Load posts as user scrolls the page
1350
+ * @since 1.0
1351
+ */
1352
+ if (alm.scroll && !alm.paging) {
1353
+ alm.window.bind("scroll touchstart", function () {
1354
+ if (alm.AjaxLoadMore.isVisible() && !alm.fetchingPreviousPost) {
1355
+ var content_offset = alm.button.offset(),
1356
+ top = Math.round(content_offset.top - (alm.window.height() - alm.scroll_distance));
1357
+
1358
+ // If Pause && Pause Override
1359
+ if (!alm.loading && !alm.finished && alm.window.scrollTop() >= top && alm.page < alm.max_pages - 1 && alm.proceed && alm.pause === 'true' && alm.pause_override === 'true') {
1360
+ alm.button.trigger('click');
1361
+ }
1362
+
1363
+ // Standard Scroll event
1364
+ else {
1365
+ if (!alm.loading && !alm.finished && alm.window.scrollTop() >= top && alm.page < alm.max_pages - 1 && alm.proceed && alm.pause !== 'true') {
1366
+ alm.page++;
1367
+ alm.AjaxLoadMore.loadPosts();
1368
+ }
1369
+ }
1370
+ }
1371
+ });
1372
+ }
1373
+
1374
+ /* Init Ajax load More
1375
+ *
1376
+ * Load posts as user scrolls the page
1377
+ * @since 2.0
1378
+ */
1379
+ alm.AjaxLoadMore.init = function () {
1380
+
1381
+ if (!alm.paging && !alm.previous_post) {
1382
+ if (alm.disable_ajax) {
1383
+ alm.finished = true;
1384
+ alm.button.addClass('done');
1385
+ } else {
1386
+ if (alm.pause === 'true') {
1387
+ alm.button.text(alm.button_label);
1388
+ alm.loading = false;
1389
+ } else {
1390
+ alm.AjaxLoadMore.loadPosts();
1391
+ }
1392
+ }
1393
+ }
1394
+
1395
+ // Previous Post Add-on
1396
+ if (alm.previous_post) {
1397
+ alm.AjaxLoadMore.getPreviousPost(); // Set next post on load
1398
+ alm.loading = false;
1399
+ }
1400
+
1401
+ // Next Page Add-on
1402
+ if (alm.nextpage) {
1403
+ if ($('.alm-nextpage').length > 1) {
1404
+ // If alm-nextpage is greater than 1, check that posts remain.
1405
+ // triggerDone is total equals total-pages
1406
+ var alm_nextpage_pages = $('.alm-nextpage').length,
1407
+ alm_nextpage_total = $('.alm-nextpage').eq(0).data('total-pages');
1408
+
1409
+ if (alm_nextpage_pages == alm_nextpage_total) {
1410
+ alm.AjaxLoadMore.triggerDone();
1411
+ }
1412
+ }
1413
+ }
1414
+
1415
+ // Masonry + Preloaded
1416
+ alm.window.bind('load', function () {
1417
+ if (alm.is_masonry_preloaded) {
1418
+ almMasonry(alm.masonry_wrap, alm.el, alm.masonry_selector);
1419
+ }
1420
+ });
1421
+ };
1422
+ alm.AjaxLoadMore.init();
1423
+
1424
+ //flag to prevent unnecessary loading of post on init. Hold for 3/10 of a second
1425
+ setTimeout(function () {
1426
+ alm.proceed = true;
1427
+ }, 300);
1428
+
1429
+ /* $.fn.almUpdateCurrentPage()
1430
+ *
1431
+ * Update current page - triggered from paging add-on
1432
+ * @since 2.7.0
1433
+ */
1434
+
1435
+ $.fn.almUpdateCurrentPage = function (current, obj, alm) {
1436
+ alm.page = current;
1437
+
1438
+ // Next Page add-on
1439
+ if (alm.nextpage && !alm.paging) {
1440
+ alm.page = alm.page - 1; // Remove 1 from next page since it starts at 0
1441
+ }
1442
+
1443
+ var data = '';
1444
+
1445
+ /*
1446
+ Paging + Preloaded & Paging + Next Page
1447
+ If is paging init and preloaded, grab preloaded data, and append it .alm-reveal
1448
+ */
1449
+
1450
+ if (alm.paging_init && alm.preloaded === 'true') {
1451
+
1452
+ // Paging + Preloaded Firstrun
1453
+ data = $('.alm-preloaded .alm-reveal', alm.el).html(); // Content of preloaded page
1454
+ $('.alm-preloaded', alm.el).remove();
1455
+ alm.preloaded_amount = 0; // Reset
1456
+ //alm.AjaxLoadMore.success(data, true); // Skip post loading and go right to success() for display
1457
+ alm.AjaxLoadMore.pagingPreloadedInit(data);
1458
+ alm.paging_init = false;
1459
+ alm.init = false;
1460
+ } else if (alm.paging_init && alm.nextpage) {
1461
+
1462
+ // Paging + Next Page Firstrun
1463
+ data = $('.alm-nextpage', alm.el).html();
1464
+ $('.alm-nextpage', alm.el).remove();
1465
+ alm.AjaxLoadMore.pagingNextpageInit(data);
1466
+ alm.paging_init = false;
1467
+ alm.init = false;
1468
+ } else {
1469
+
1470
+ // Standard Paging
1471
+ alm.AjaxLoadMore.loadPosts();
1472
+ }
1473
+ };
1474
+
1475
+ /* $.fn.almGetParentContainer()
1476
+ *
1477
+ * return the parent ALM container
1478
+ *
1479
+ * @since 2.7.0
1480
+ * @return element
1481
+ */
1482
+ $.fn.almGetParentContainer = function () {
1483
+ return alm.el.closest('#ajax-load-more');
1484
+ };
1485
+
1486
+ /* $.fn.almGetObj()
1487
+ *
1488
+ * return the current ALM obj
1489
+ *
1490
+ * @since 2.7.0
1491
+ * @return object
1492
+ */
1493
+ $.fn.almGetObj = function () {
1494
+ return alm; // Return the entire alm object
1495
+ };
1496
+
1497
+ /* $.fn.almTriggerClick()
1498
+ *
1499
+ * Trigger ajaxloadmore from any element on page
1500
+ *
1501
+ * @since 2.12.0
1502
+ * @return null
1503
+ */
1504
+ $.fn.almTriggerClick = function () {
1505
+ alm.button.trigger('click');
1506
+ };
1507
+
1508
+ //Custom easing function
1509
+ $.easing.alm_easeInOutQuad = function (x, t, b, c, d) {
1510
+ if ((t /= d / 2) < 1) {
1511
+ return c / 2 * t * t + b;
1512
+ }
1513
+ return -c / 2 * (--t * (t - 2) - 1) + b;
1514
+ };
1515
+ };
1516
+
1517
+ // End $.ajaxloadmore
1518
+
1519
+
1520
+ /* $.fn.almFilter(type, speed, data)
1521
+ *
1522
+ * Filter Ajax Load More
1523
+ * @type ('slide', 'fade', null);
1524
+ * @speed '300';
1525
+ * @data obj;
1526
+ *
1527
+ * @since 2.6.1
1528
+ */
1529
+ $.fn.almFilter = function (transition, speed, data) {
1530
+
1531
+ if (data.target) {
1532
+ // if a target has been specified
1533
+ $(".ajax-load-more-wrap[data-id='" + data.target + "']").each(function (e) {
1534
+ var el = $(this);
1535
+ $.fn.almFilterTransition(transition, speed, data, el);
1536
+ });
1537
+ } else {
1538
+ // Target not specified
1539
+ $(".ajax-load-more-wrap").each(function (e) {
1540
+ var el = $(this);
1541
+ $.fn.almFilterTransition(transition, speed, data, el);
1542
+ });
1543
+ }
1544
+ };
1545
+
1546
+ /* $.fn.almFilterTransition(transition, speed, data, el)
1547
+ *
1548
+ * Transition Ajax Load More
1549
+ *
1550
+ * @since 2.13.1
1551
+ */
1552
+ $.fn.almFilterTransition = function (transition, speed, data, el) {
1553
+ if (transition === 'slide') {
1554
+ // Slide transition
1555
+ el.slideUp(speed, function () {
1556
+ $('.alm-listing', el).html(''); // Clear listings
1557
+ $('.alm-btn-wrap', el).remove(); // remove buttons
1558
+ el.fadeIn(speed);
1559
+
1560
+ $.fn.almSetFilters(el, data);
1561
+ });
1562
+ } else if (transition === 'fade') {
1563
+ // Fade transition
1564
+ el.fadeOut(speed, function () {
1565
+ $('.alm-listing', el).html(''); // Clear listings
1566
+ $('.alm-btn-wrap', el).remove(); // remove buttons
1567
+ el.fadeIn(speed);
1568
+
1569
+ $.fn.almSetFilters(el, data);
1570
+ });
1571
+ } else {
1572
+ $('.alm-listing', el).html(''); // Clear listings
1573
+ $('.alm-btn-wrap', el).remove(); // remove buttons
1574
+ el.fadeIn(speed);
1575
+
1576
+ $.fn.almSetFilters(el, data);
1577
+ }
1578
+ };
1579
+
1580
+ /* $.fn.almSetFilters(el, data)
1581
+ *
1582
+ * Set filter parameters on .alm-listing element
1583
+ *
1584
+ * @since 2.6.1
1585
+ */
1586
+ $.fn.almSetFilters = function (el, data) {
1587
+ $.each(data, function (key, value) {
1588
+ key = key.replace(/\W+/g, '-').replace(/([a-z\d])([A-Z])/g, '$1-$2'); // Convert camelCase data() object back to dash (-)
1589
+ $('.alm-listing', el).attr('data-' + key, value);
1590
+ });
1591
+
1592
+ if ($.isFunction($.fn.almFilterComplete)) {
1593
+ $.fn.almFilterComplete();
1594
+ }
1595
+
1596
+ if (data.target) {
1597
+ // if a target has been specified
1598
+ $(".ajax-load-more-wrap[data-id=" + data.target + "]").ajaxloadmore(); // re-initiate Ajax Load More
1599
+ } else {
1600
+ // Target not specified
1601
+ $(".ajax-load-more-wrap").ajaxloadmore(); // re-initiate Ajax Load More
1602
+ }
1603
+ };
1604
+
1605
+ /* $.fn.ajaxloadmore()
1606
+ *
1607
+ * Initiate all instances of Ajax load More
1608
+ * @since 2.1.2
1609
+ */
1610
+ $.fn.ajaxloadmore = function () {
1611
+ return this.each(function (e) {
1612
+ $(this).data('alm', new $.ajaxloadmore($(this), e));
1613
+ });
1614
+ };
1615
+
1616
+ /*
1617
+ * Initiate Ajax load More if div is present on screen
1618
+ * @since 2.1.2
1619
+ */
1620
+ if ($(".ajax-load-more-wrap").length) {
1621
+ $(".ajax-load-more-wrap").ajaxloadmore();
1622
+ }
1623
+ })(jQuery);
1624
+ 'use strict';
1625
+
1626
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
1627
+
1628
+ /*! almWaitForImages
1629
+ jQuery Plugin
1630
+ v2.0.2
1631
+ Based on https://github.com/alexanderdickson/waitForImages
1632
+ */
1633
+ // Include almWaitForImages()
1634
+ ;(function (factory) {
1635
+ if (typeof define === 'function' && define.amd) {
1636
+ // AMD. Register as an anonymous module.
1637
+ define(['jquery'], factory);
1638
+ } else if ((typeof exports === 'undefined' ? 'undefined' : _typeof(exports)) === 'object') {
1639
+ // CommonJS / nodejs module
1640
+ module.exports = factory(require('jquery'));
1641
+ } else {
1642
+ // Browser globals
1643
+ factory(jQuery);
1644
+ }
1645
+ })(function ($) {
1646
+ // Namespace all events.
1647
+ var eventNamespace = 'almWaitForImages';
1648
+
1649
+ // CSS properties which contain references to images.
1650
+ $.almWaitForImages = {
1651
+ hasImageProperties: ['backgroundImage', 'listStyleImage', 'borderImage', 'borderCornerImage', 'cursor'],
1652
+ hasImageAttributes: ['srcset']
1653
+ };
1654
+
1655
+ // Custom selector to find all `img` elements with a valid `src` attribute.
1656
+ $.expr[':']['has-src'] = function (obj) {
1657
+ // Ensure we are dealing with an `img` element with a valid
1658
+ // `src` attribute.
1659
+ return $(obj).is('img[src][src!=""]');
1660
+ };
1661
+
1662
+ // Custom selector to find images which are not already cached by the
1663
+ // browser.
1664
+ $.expr[':'].uncached = function (obj) {
1665
+ // Ensure we are dealing with an `img` element with a valid
1666
+ // `src` attribute.
1667
+ if (!$(obj).is(':has-src')) {
1668
+ return false;
1669
+ }
1670
+
1671
+ return !obj.complete;
1672
+ };
1673
+
1674
+ $.fn.almWaitForImages = function () {
1675
+
1676
+ var allImgsLength = 0;
1677
+ var allImgsLoaded = 0;
1678
+ var deferred = $.Deferred();
1679
+
1680
+ var finishedCallback;
1681
+ var eachCallback;
1682
+ var waitForAll;
1683
+
1684
+ // Handle options object (if passed).
1685
+ if ($.isPlainObject(arguments[0])) {
1686
+
1687
+ waitForAll = arguments[0].waitForAll;
1688
+ eachCallback = arguments[0].each;
1689
+ finishedCallback = arguments[0].finished;
1690
+ } else {
1691
+
1692
+ // Handle if using deferred object and only one param was passed in.
1693
+ if (arguments.length === 1 && $.type(arguments[0]) === 'boolean') {
1694
+ waitForAll = arguments[0];
1695
+ } else {
1696
+ finishedCallback = arguments[0];
1697
+ eachCallback = arguments[1];
1698
+ waitForAll = arguments[2];
1699
+ }
1700
+ }
1701
+
1702
+ // Handle missing callbacks.
1703
+ finishedCallback = finishedCallback || $.noop;
1704
+ eachCallback = eachCallback || $.noop;
1705
+
1706
+ // Convert waitForAll to Boolean
1707
+ waitForAll = !!waitForAll;
1708
+
1709
+ // Ensure callbacks are functions.
1710
+ if (!$.isFunction(finishedCallback) || !$.isFunction(eachCallback)) {
1711
+ throw new TypeError('An invalid callback was supplied.');
1712
+ }
1713
+
1714
+ this.each(function () {
1715
+ // Build a list of all imgs, dependent on what images will
1716
+ // be considered.
1717
+ var obj = $(this);
1718
+ var allImgs = [];
1719
+ // CSS properties which may contain an image.
1720
+ var hasImgProperties = $.almWaitForImages.hasImageProperties || [];
1721
+ // Element attributes which may contain an image.
1722
+ var hasImageAttributes = $.almWaitForImages.hasImageAttributes || [];
1723
+ // To match `url()` references.
1724
+ // Spec: http://www.w3.org/TR/CSS2/syndata.html#value-def-uri
1725
+ var matchUrl = /url\(\s*(['"]?)(.*?)\1\s*\)/g;
1726
+
1727
+ if (waitForAll) {
1728
+
1729
+ // Get all elements (including the original), as any one of
1730
+ // them could have a background image.
1731
+ obj.find('*').addBack().each(function () {
1732
+ var element = $(this);
1733
+
1734
+ // If an `img` element, add it. But keep iterating in
1735
+ // case it has a background image too.
1736
+ if (element.is('img:has-src')) {
1737
+ allImgs.push({
1738
+ src: element.attr('src'),
1739
+ element: element[0]
1740
+ });
1741
+ }
1742
+
1743
+ $.each(hasImgProperties, function (i, property) {
1744
+ var propertyValue = element.css(property);
1745
+ var match;
1746
+
1747
+ // If it doesn't contain this property, skip.
1748
+ if (!propertyValue) {
1749
+ return true;
1750
+ }
1751
+
1752
+ // Get all url() of this element.
1753
+ while (match = matchUrl.exec(propertyValue)) {
1754
+ allImgs.push({
1755
+ src: match[2],
1756
+ element: element[0]
1757
+ });
1758
+ }
1759
+ });
1760
+
1761
+ $.each(hasImageAttributes, function (i, attribute) {
1762
+ var attributeValue = element.attr(attribute);
1763
+ var attributeValues;
1764
+
1765
+ // If it doesn't contain this property, skip.
1766
+ if (!attributeValue) {
1767
+ return true;
1768
+ }
1769
+
1770
+ // Check for multiple comma separated images
1771
+ attributeValues = attributeValue.split(',');
1772
+
1773
+ $.each(attributeValues, function (i, value) {
1774
+ // Trim value and get string before first
1775
+ // whitespace (for use with srcset).
1776
+ value = $.trim(value).split(' ')[0];
1777
+ allImgs.push({
1778
+ src: value,
1779
+ element: element[0]
1780
+ });
1781
+ });
1782
+ });
1783
+ });
1784
+ } else {
1785
+ // For images only, the task is simpler.
1786
+ obj.find('img:has-src').each(function () {
1787
+ allImgs.push({
1788
+ src: this.src,
1789
+ element: this
1790
+ });
1791
+ });
1792
+ }
1793
+
1794
+ allImgsLength = allImgs.length;
1795
+ allImgsLoaded = 0;
1796
+
1797
+ // If no images found, don't bother.
1798
+ if (allImgsLength === 0) {
1799
+ finishedCallback.call(obj[0]);
1800
+ deferred.resolveWith(obj[0]);
1801
+ }
1802
+
1803
+ $.each(allImgs, function (i, img) {
1804
+
1805
+ var image = new Image();
1806
+ var events = 'load.' + eventNamespace + ' error.' + eventNamespace;
1807
+
1808
+ // Handle the image loading and error with the same callback.
1809
+ $(image).one(events, function me(event) {
1810
+ // If an error occurred with loading the image, set the
1811
+ // third argument accordingly.
1812
+ var eachArguments = [allImgsLoaded, allImgsLength, event.type == 'load'];
1813
+ allImgsLoaded++;
1814
+
1815
+ eachCallback.apply(img.element, eachArguments);
1816
+ deferred.notifyWith(img.element, eachArguments);
1817
+
1818
+ // Unbind the event listeners. I use this in addition to
1819
+ // `one` as one of those events won't be called (either
1820
+ // 'load' or 'error' will be called).
1821
+ $(this).off(events, me);
1822
+
1823
+ if (allImgsLoaded == allImgsLength) {
1824
+ finishedCallback.call(obj[0]);
1825
+ deferred.resolveWith(obj[0]);
1826
+ return false;
1827
+ }
1828
+ });
1829
+
1830
+ image.src = img.src;
1831
+ });
1832
+ });
1833
+
1834
+ return deferred.promise();
1835
+ };
1836
+ });
core/dist/js/ajax-load-more.min.js ADDED
@@ -0,0 +1 @@
 
1
+ "use strict";var almMasonryInit=!0,almMasonry=function(t,a,e){almMasonryInit?t.imagesLoaded(function(){a.fadeIn(250),t.masonry({itemSelector:e}),almMasonryInit=!1}):(t.append(a),t.imagesLoaded(function(){a.show(),t.masonry("appended",a)}))};!function(t){t.ajaxloadmore=function(a,e){"true"===alm_localize.scrolltop&&t(window).scrollTop(0);var o=this;o.AjaxLoadMore={},o.window=t(window),o.page=0,o.posts=0,o.totalposts=0,o.proceed=!1,o.disable_ajax=!1,o.init=!0,o.loading=!0,o.finished=!1,o.button_label="",o.el=a,o.container=a,o.container.addClass("alm-"+e).attr("data-alm-id",e),o.content=t(".alm-ajax",o.container),o.content_preloaded=t(".alm-listing.alm-preloaded",o.container),o.canonical_url=o.el.attr("data-canonical-url"),o.is_search=o.el.attr("data-search"),o.slug=o.el.attr("data-slug"),o.post_id=o.el.attr("data-post-id"),o.prefix="alm-",o.cache=o.content.attr("data-cache"),o.cache_id=o.content.attr("data-cache-id"),o.cache_path=o.content.attr("data-cache-path"),o.cache_logged_in=o.content.attr("data-cache-logged-in"),o.repeater=o.content.attr("data-repeater"),o.theme_repeater=o.content.attr("data-theme-repeater"),o.scroll_distance=parseInt(o.content.attr("data-scroll-distance")),o.max_pages=parseInt(o.content.attr("data-max-pages")),o.pause_override=o.content.attr("data-pause-override"),o.pause=o.content.attr("data-pause"),o.transition=o.content.attr("data-transition"),o.transition_container=o.content.attr("data-transition-container"),o.speed=o.content.attr("data-transition-speed"),o.images_loaded=o.content.attr("data-images-loaded"),o.destroy_after=o.content.attr("data-destroy-after"),o.lang=o.content.attr("data-lang"),o.orginal_posts_per_page=o.content.attr("data-posts-per-page"),o.posts_per_page=o.content.attr("data-posts-per-page"),o.cta_array="",o.cta=o.content.attr("data-cta"),o.cta_position=o.content.attr("data-cta-position"),o.cta_repeater=o.content.attr("data-cta-repeater"),o.cta_theme_repeater=o.content.attr("data-cta-theme-repeater"),o.acf_array="",o.acf=o.content.attr("data-acf"),o.acf_field_type=o.content.attr("data-acf-field-type"),o.acf_field_name=o.content.attr("data-acf-field-name"),o.acf_post_id=o.content.attr("data-acf-post-id"),o.nextpage_array="",o.nextpage=o.content.attr("data-nextpage"),o.nextpage_urls=o.content.attr("data-nextpage-urls"),o.nextpage_scroll=o.content.attr("data-nextpage-scroll"),o.nextpage_pageviews=o.content.attr("data-nextpage-pageviews"),o.nextpage_post_id=o.content.attr("data-nextpage-post-id"),o.nextpage_startpage=o.content.attr("data-nextpage-startpage"),o.previous_post=o.content.attr("data-previous-post"),o.previous_post_id=o.content.attr("data-previous-post-id"),o.previous_post_taxonomy=o.content.attr("data-previous-post-taxonomy"),o.comments=o.content.attr("data-comments"),"true"===o.comments&&(o.content=t(".alm-comments",o.container)),o.comments_array="",o.comments_post_id=o.content.attr("data-comments_post_id"),o.comments_per_page=o.content.attr("data-comments_per_page"),o.comments_type=o.content.attr("data-comments_type"),o.comments_style=o.content.attr("data-comments_style"),o.comments_template=o.content.attr("data-comments_template"),o.comments_callback=o.content.attr("data-comments_callback"),o.restapi=o.content.attr("data-restapi"),o.restapi_base_url=o.content.attr("data-restapi-base-url"),o.restapi_namespace=o.content.attr("data-restapi-namespace"),o.restapi_endpoint=o.content.attr("data-restapi-endpoint"),o.restapi_template_id=o.content.attr("data-restapi-template-id"),o.restapi_debug=o.content.attr("data-restapi-debug"),o.seo=o.content.attr("data-seo"),o.preloaded=o.content.attr("data-preloaded"),o.preloaded_amount=o.content.attr("data-preloaded-amount"),o.paging=o.content.attr("data-paging"),o.paging_controls=o.content.attr("data-paging-controls"),o.paging_show_at_most=o.content.attr("data-paging-show-at-most"),o.paging_classes=o.content.attr("data-paging-classes"),o.paging_init=!0,"true"===o.restapi?(o.restapi=!0,void 0===o.restapi_debug&&(o.restapi_debug=!1),""===o.restapi_template_id&&(o.restapi=!1)):o.restapi=!1,"true"===o.paging?(o.paging=!0,void 0===o.paging_show_at_most&&(o.paging_show_at_most=7),"true"===o.preloaded&&(o.pause=!0)):o.paging=!1,"true"===o.paging_controls?o.paging_controls=!0:o.paging_controls=!1,void 0===o.cache&&(o.cache=!1),void 0===o.cache_logged_in&&(o.cache_logged_in=!1),void 0===o.comments_per_page&&(o.comments_per_page="5"),"true"===o.preloaded?(o.preload_wrap=o.content.prev(".alm-preloaded"),o.preloaded_total_posts=parseInt(o.preload_wrap.attr("data-total-posts")),void 0===o.preloaded_amount&&(o.preloaded_amount=!1),o.preloaded_total_posts<=o.preloaded_amount&&(o.disable_ajax=!0)):o.preloaded="false",void 0===o.seo&&(o.seo=!1),"true"===o.seo&&(o.seo=!0),void 0===o.is_search&&(o.is_search=!1),o.search_value="true"===o.is_search?o.slug:"",o.permalink=o.content.attr("data-seo-permalink"),o.pageview=o.content.attr("data-seo-pageview"),o.start_page=o.content.attr("data-seo-start-page"),o.start_page?(o.seo_scroll=o.content.attr("data-seo-scroll"),o.seo_scroll_speed=o.content.attr("data-seo-scroll-speed"),o.seo_scrolltop=o.content.attr("data-seo-scrolltop"),o.isPaged=!1,o.start_page>1&&(o.isPaged=!0,o.posts_per_page=o.start_page*o.posts_per_page),o.paging&&(o.posts_per_page=o.orginal_posts_per_page)):o.start_page=1,"true"===o.nextpage?(o.nextpage=!0,o.posts_per_page=1):o.nextpage=!1,void 0===o.nextpage_urls&&(o.nextpage="true"),void 0===o.nextpage_scroll&&(o.nextpage_scroll="250:30"),void 0===o.nextpage_pageviews&&(o.nextpage_pageviews="true"),void 0===o.nextpage_post_id&&(o.nextpage=!1,o.nextpage_post_id=null),void 0===o.nextpage_startpage&&(o.nextpage_startpage=1),o.nextpage_startpage>1&&(o.isPaged=!0),"true"===o.acf?o.acf=!0:o.acf=!1,void 0!==o.acf_field_type&&void 0!==o.acf_field_name&&void 0!==o.acf_post_id||(o.acf=!1),"true"===o.previous_post?(o.previous_post=!0,o.previous_post_permalink="",o.previous_post_title="",o.previous_post_slug=""):o.previous_post=!1,void 0===o.previous_post_id&&(o.previous_post_id=""),void 0===o.previous_post_taxonomy&&(o.previous_post_taxonomy=""),o.previous_post_title_template=o.content.attr("data-previous-post-title-template"),o.siteTitle=o.content.attr("data-previous-post-site-title"),o.siteTagline=o.content.attr("data-previous-post-site-tagline"),o.previous_post_pageview=o.content.attr("data-previous-post-pageview"),o.previous_post_scroll=o.content.attr("data-previous-post-scroll"),o.previous_post_scroll_speed=o.content.attr("data-previous-post-scroll-speed"),o.previous_post_scroll_top=o.content.attr("data-previous-post-scrolltop"),void 0===o.content.attr("data-offset")?o.offset=0:o.offset=o.content.attr("data-offset"),(void 0===o.pause||o.seo&&o.start_page>1)&&(o.pause=!1),"true"===o.preloaded&&o.seo&&o.start_page>0&&(o.pause=!1),"true"===o.preloaded&&o.paging&&(o.pause=!0),void 0===o.repeater&&(o.repeater="default"),void 0===o.theme_repeater&&(o.theme_repeater="null"),void 0===o.max_pages&&(o.max_pages=0),0===o.max_pages&&(o.max_pages=1e4),void 0===o.scroll_distance&&(o.scroll_distance=150),void 0===o.transition&&(o.transition="slide"),o.is_masonry_preloaded=!1,"masonry"===o.transition&&(o.masonry_selector=o.content.attr("data-masonry-selector"),o.masonry_wrap=o.content,o.transition_container=!1,document.body.contains(o.content_preloaded.get(0))&&(o.masonry_wrap=o.content_preloaded,o.is_masonry_preloaded=!0)),void 0===o.speed?o.speed=250:o.speed=parseInt(o.speed),void 0===o.transition_container||"true"===o.transition_container?o.transition_container=!0:o.transition_container=!1,void 0===o.images_loaded&&(o.images_loaded="false"),o.destroy_after,void 0===o.content.attr("data-button-label")?o.button_label="Older Posts":o.button_label=o.content.attr("data-button-label"),o.button_loading_label=o.content.attr("data-button-loading-label"),void 0===o.button_loading_label&&(o.button_loading_label=!1),void 0===o.content.attr("data-button-class")?o.button_class="":o.button_class=" "+o.content.attr("data-button-class"),void 0===o.content.attr("data-scroll")?o.scroll=!0:"false"===o.content.attr("data-scroll")?o.scroll=!1:o.scroll=!0,o.post_type=o.content.attr("data-post-type"),o.post_type=o.post_type.split(","),o.sticky_posts=o.content.attr("data-sticky-posts"),o.container.append('<div class="'+o.prefix+'btn-wrap"/>'),o.btnWrap=t("."+o.prefix+"btn-wrap",o.container),o.paging?o.content.parent().addClass("loading"):(t("."+o.prefix+"btn-wrap",o.container).append('<button id="load-more" class="'+o.prefix+"load-more-btn more"+o.button_class+'">'+o.button_label+"</button>"),o.button=t(".alm-load-more-btn",o.container)),o.AjaxLoadMore.loadPosts=function(){if(!o.disable_ajax)if(o.paging||(o.button.addClass("loading"),o.container.addClass("alm-loading"),!1!==o.button_loading_label&&o.button.text(o.button_loading_label)),o.loading=!0,"true"!==o.cache||o.cache_logged_in)o.AjaxLoadMore.ajax("standard");else{var a;if(o.init&&o.seo&&o.isPaged){a=o.cache_path+o.cache_id+"/page-1-"+o.start_page+".html"}else if(o.nextpage){var e;o.paging?e=parseInt(o.page)+1:(e=parseInt(o.page)+2,o.isPaged&&(e=parseInt(o.page)+parseInt(o.nextpage_startpage)+1)),a=o.cache_path+o.cache_id+"/page-"+e+".html"}else a=o.previous_post?o.cache_path+o.cache_id+"/"+o.previous_post_slug+".html":o.cache_path+o.cache_id+"/page-"+(o.page+1)+".html";t.get(a,function(t){o.AjaxLoadMore.success(t,!0)}).fail(function(){o.AjaxLoadMore.ajax("standard")})}},o.AjaxLoadMore.ajax=function(e){var n="alm_query_posts";if(o.acf&&("relationship"!==o.acf_field_type&&(n="alm_acf_query"),o.acf_array={acf:"true",post_id:o.acf_post_id,field_type:o.acf_field_type,field_name:o.acf_field_name}),o.nextpage&&(n="alm_nextpage_query",o.nextpage_array={nextpage:"true",urls:o.nextpage_urls,scroll:o.nextpage_scroll,pageviews:o.nextpage_pageviews,post_id:o.nextpage_post_id,startpage:o.nextpage_startpage}),o.previous_post&&(o.previous_post_array={previous_post:"true",id:o.previous_post_id,slug:o.previous_post_slug}),"true"===o.comments&&(n="alm_comments_query",o.posts_per_page=o.comments_per_page,o.comments_array={comments:"true",post_id:o.comments_post_id,per_page:o.comments_per_page,type:o.comments_type,style:o.comments_style,template:o.comments_template,callback:o.comments_callback}),"true"===o.cta&&(o.cta_array={cta:"true",cta_position:o.cta_position,cta_repeater:o.cta_repeater,cta_theme_repeater:o.cta_theme_repeater}),o.restapi){var r=wp.template(o.restapi_template_id),s=o.restapi_base_url+"/"+o.restapi_namespace+"/"+o.restapi_endpoint,i={posts_per_page:o.posts_per_page,page:o.page,offset:o.offset,slug:o.slug,canonical_url:o.canonical_url,post_type:o.post_type,post_format:o.content.attr("data-post-format"),category:o.content.attr("data-category"),category__not_in:o.content.attr("data-category-not-in"),tag:o.content.attr("data-tag"),tag__not_in:o.content.attr("data-tag-not-in"),taxonomy:o.content.attr("data-taxonomy"),taxonomy_terms:o.content.attr("data-taxonomy-terms"),taxonomy_operator:o.content.attr("data-taxonomy-operator"),taxonomy_relation:o.content.attr("data-taxonomy-relation"),meta_key:o.content.attr("data-meta-key"),meta_value:o.content.attr("data-meta-value"),meta_compare:o.content.attr("data-meta-compare"),meta_relation:o.content.attr("data-meta-relation"),meta_type:o.content.attr("data-meta-type"),author:o.content.attr("data-author"),year:o.content.attr("data-year"),month:o.content.attr("data-month"),day:o.content.attr("data-day"),post_status:o.content.attr("data-post-status"),order:o.content.attr("data-order"),orderby:o.content.attr("data-orderby"),post__in:o.content.attr("data-post-in"),post__not_in:o.content.attr("data-post-not-in"),search:o.content.attr("data-search"),custom_args:o.content.attr("data-custom-args"),lang:o.lang,preloaded:o.preloaded,preloaded_amount:o.preloaded_amount,seo_start_page:o.start_page,id:a.attr("data-id")};t.ajax({type:"GET",url:s,data:i,dataType:"JSON",beforeSend:function(){1==o.page||o.paging||o.button.addClass("loading")},success:function(a){var e,n=a.html,s=a.meta,i=s.postcount,d=s.totalposts;t.each(n,function(t){var a=n[t];"true"===o.restapi_debug&&console.log(a),e+=r(a)});var p={html:e,meta:{postcount:i,totalposts:d}};o.AjaxLoadMore.success(p,!1)}})}else t.ajax({type:"GET",url:alm_localize.ajaxurl,dataType:"JSON",data:{action:n,query_type:e,nonce:alm_localize.alm_nonce,cache_id:o.cache_id,repeater:o.repeater,theme_repeater:o.theme_repeater,acf:o.acf_array,nextpage:o.nextpage_array,cta:o.cta_array,comments:o.comments_array,post_type:o.post_type,sticky_posts:o.sticky_posts,post_format:o.content.attr("data-post-format"),category:o.content.attr("data-category"),category__not_in:o.content.attr("data-category-not-in"),tag:o.content.attr("data-tag"),tag__not_in:o.content.attr("data-tag-not-in"),taxonomy:o.content.attr("data-taxonomy"),taxonomy_terms:o.content.attr("data-taxonomy-terms"),taxonomy_operator:o.content.attr("data-taxonomy-operator"),taxonomy_relation:o.content.attr("data-taxonomy-relation"),meta_key:o.content.attr("data-meta-key"),meta_value:o.content.attr("data-meta-value"),meta_compare:o.content.attr("data-meta-compare"),meta_relation:o.content.attr("data-meta-relation"),meta_type:o.content.attr("data-meta-type"),author:o.content.attr("data-author"),year:o.content.attr("data-year"),month:o.content.attr("data-month"),day:o.content.attr("data-day"),post_status:o.content.attr("data-post-status"),order:o.content.attr("data-order"),orderby:o.content.attr("data-orderby"),post__in:o.content.attr("data-post-in"),post__not_in:o.content.attr("data-post-not-in"),exclude:o.content.attr("data-exclude"),search:o.content.attr("data-search"),custom_args:o.content.attr("data-custom-args"),posts_per_page:o.posts_per_page,page:o.page,offset:o.offset,preloaded:o.preloaded,preloaded_amount:o.preloaded_amount,seo_start_page:o.start_page,paging:o.paging,previous_post:o.previous_post_array,lang:o.lang,slug:o.slug,canonical_url:o.canonical_url,id:a.attr("data-id")},beforeSend:function(){1==o.page||o.paging||o.button.addClass("loading")},success:function(a){"standard"===e?o.AjaxLoadMore.success(a,!1):"totalpages"===e&&o.paging&&o.nextpage?t.isFunction(t.fn.almBuildPagination)&&t.fn.almBuildPagination(a,o):"totalposts"===e&&o.paging&&t.isFunction(t.fn.almBuildPagination)&&t.fn.almBuildPagination(a,o)},error:function(t,a,e){o.AjaxLoadMore.error(t,a,e)}})},o.paging&&(o.nextpage?o.AjaxLoadMore.ajax("totalpages"):o.AjaxLoadMore.ajax("totalposts")),o.AjaxLoadMore.success=function(a,e){o.previous_post&&o.AjaxLoadMore.getPreviousPost();var n,r,s;if(e?n=a:(n=a.html,r=a.meta,o.posts=o.posts+r.postcount,s=r.postcount,o.totalposts=r.totalposts,"true"===o.preloaded&&(o.totalposts=o.totalposts-o.preloaded_amount)),o.data=t(n),e&&(s=o.data.length),o.init&&(o.paging?s>0&&(o.el=t('<div class="alm-reveal"/>'),o.el.append('<div class="alm-paging-content"></div><div class="alm-paging-loading"></div>'),t(".alm-paging-content",o.el).append(o.data).hide(),o.content.append(o.el),o.content.parent().removeClass("loading"),o.AjaxLoadMore.resetBtnText(),t(".alm-paging-content",o.el).fadeIn(o.speed,"alm_easeInOutQuad",function(){var a=parseInt(o.content.css("padding-top")),e=parseInt(o.content.css("padding-bottom"));o.content.css("height",o.el.height()+a+e+"px"),t.isFunction(t.fn.almFadePageControls)&&t.fn.almFadePageControls(o.btnWrap)})):o.button.text(o.button_label),0===s&&t.isFunction(t.fn.almEmpty)&&t.fn.almEmpty(o),o.isPaged&&(o.posts_per_page=o.content.attr("data-posts-per-page"),o.page=o.start_page-1)),s>0){if(o.paging)o.init?o.AjaxLoadMore.triggerAddons(o):t(".alm-paging-content",o.el).html("").append(o.data).almWaitForImages().done(function(){t(".alm-paging-loading",o.el).fadeOut(o.speed),t.isFunction(t.fn.almOnPagingComplete)&&t.fn.almOnPagingComplete(o),o.AjaxLoadMore.triggerAddons(o)});else{if(o.previous_post)o.el=t('<div class="alm-reveal alm-previous-post post-'+o.previous_post_id+'" data-id="'+o.previous_post_id+'" data-title="'+o.previous_post_title+'" data-url="'+o.previous_post_permalink+'" data-page="'+o.page+'"/>'),o.el.append(o.data).hide();else if(o.transition_container){var i;if(o.init&&o.start_page>1){var d=[],p=parseInt(o.posts_per_page);"true"===o.cta&&(p+=1);Math.ceil(s/p);for(var l=0;l<s;l+=p)d.push(o.data.slice(l,p+l));o.el=o.content;for(var c=0;c<d.length;c++){var g,_="true"===o.preloaded?1:0;c>0||"true"===o.preloaded?(i=c+1+_,g=t("default"===o.permalink?'<div class="alm-reveal alm-seo" data-url="'+o.canonical_url+o.search_value+"&paged="+i+'" data-page="'+i+'" />':'<div class="alm-reveal alm-seo" data-url="'+o.canonical_url+"page/"+i+"/"+o.search_value+'" data-page="'+i+'" />')):g=t('<div class="alm-reveal alm-seo" data-url="'+o.canonical_url+o.search_value+'" data-page="1" />'),g.append(d[c]),g=t(g),o.el.append(g).hide()}}else{if(o.seo&&o.page>0||"true"===o.preloaded){var m="true"===o.preloaded?1:0;i=o.page+1+m,o.seo?"default"===o.permalink?o.el=t('<div class="alm-reveal alm-seo" data-url="'+o.canonical_url+o.search_value+"&paged="+i+'" data-page="'+i+'" />'):o.el=t('<div class="alm-reveal alm-seo" data-url="'+o.canonical_url+"page/"+i+"/"+o.search_value+'" data-page="'+i+'" />'):o.el=t('<div class="alm-reveal" />')}else o.seo?o.el=t('<div class="alm-reveal alm-seo" data-url="'+o.canonical_url+o.search_value+'" data-page="1" />'):o.el=t('<div class="alm-reveal" />');o.el.append(o.data).hide()}}else o.data.hide(),o.el=o.data;("masonry"!==o.transition||o.init&&!o.is_masonry_preloaded)&&o.content.append(o.el),"fade"===o.transition?"true"===o.images_loaded?o.el.almWaitForImages().done(function(){o.el.fadeIn(o.speed,"alm_easeInOutQuad",function(){o.loading=!1,o.paging||(o.button.delay(o.speed).removeClass("loading"),o.container.delay(o.speed).removeClass("alm-loading"),o.AjaxLoadMore.resetBtnText()),o.AjaxLoadMore.triggerAddons(o)})}):o.el.fadeIn(o.speed,"alm_easeInOutQuad",function(){o.loading=!1,o.paging||(o.button.delay(o.speed).removeClass("loading"),o.container.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText()),o.AjaxLoadMore.triggerAddons(o)}):"masonry"===o.transition?(almMasonry(o.masonry_wrap,o.el,o.masonry_selector),o.paging||(o.button.delay(o.speed).removeClass("loading"),o.container.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText()),o.loading=!1,o.AjaxLoadMore.triggerAddons(o)):"none"===o.transition?("true"===o.images_loaded?o.el.almWaitForImages().done(function(){o.el.show(),o.AjaxLoadMore.triggerAddons(o)}):(o.el.show(),o.AjaxLoadMore.triggerAddons(o)),o.loading=!1,o.paging||(o.button.delay(o.speed).removeClass("loading"),o.container.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText())):"true"===o.images_loaded?o.el.almWaitForImages().done(function(){o.el.slideDown(o.speed,"alm_easeInOutQuad",function(){o.loading=!1,o.paging||(o.button.delay(o.speed).removeClass("loading"),o.container.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText()),o.AjaxLoadMore.triggerAddons(o)})}):o.el.slideDown(o.speed,"alm_easeInOutQuad",function(){o.loading=!1,o.paging||(o.button.delay(o.speed).removeClass("loading"),o.container.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText()),o.AjaxLoadMore.triggerAddons(o)})}t.isFunction(t.fn.almComplete)&&("true"===o.images_loaded?o.el.almWaitForImages().done(function(){t.fn.almComplete(o)}):t.fn.almComplete(o)),o.cache?s<o.posts_per_page&&o.AjaxLoadMore.triggerDone():o.posts>=o.totalposts&&!o.previous_post&&o.AjaxLoadMore.triggerDone()}else o.paging||(o.button.delay(o.speed).removeClass("loading").addClass("done"),o.AjaxLoadMore.resetBtnText()),o.AjaxLoadMore.triggerDone();if(void 0!==o.destroy_after&&""!==o.destroy_after){var u=o.page+1;o.preload&&u++,u==o.destroy_after&&(o.disable_ajax=!0,o.paging||o.button.delay(o.speed).fadeOut(o.speed))}o.init=!1},o.AjaxLoadMore.pagingPreloadedInit=function(a){o.el=t('<div class="alm-reveal"/>'),o.el.append('<div class="alm-paging-content">'+a+'</div><div class="alm-paging-loading"></div>'),o.content.append(o.el),o.content.parent().removeClass("loading"),o.AjaxLoadMore.resetBtnText();var e=parseInt(o.content.css("padding-top")),n=parseInt(o.content.css("padding-bottom"));o.content.css("height",o.el.height()+e+n+"px"),t.isFunction(t.fn.almFadePageControls)&&t.fn.almFadePageControls(o.btnWrap)},o.AjaxLoadMore.pagingNextpageInit=function(a){o.el=t('<div class="alm-reveal alm-nextpage"/>'),o.el.append('<div class="alm-paging-content">'+a+'</div><div class="alm-paging-loading"></div>'),o.el.appendTo(o.content),o.content.parent().removeClass("loading"),o.AjaxLoadMore.resetBtnText();var e=parseInt(o.content.css("padding-top")),n=parseInt(o.content.css("padding-bottom"));o.content.css("height",o.el.height()+e+n+"px"),t.isFunction(t.fn.almSetNextPageVars)&&t.fn.almSetNextPageVars(o),setTimeout(function(){t.isFunction(t.fn.almFadePageControls)&&t.fn.almFadePageControls(o.btnWrap),t.isFunction(t.fn.almOnWindowResize)&&t.fn.almOnWindowResize(o)},200)},o.fetchingPreviousPost=!1,o.AjaxLoadMore.getPreviousPost=function(){o.fetchingPreviousPost=!0,t.ajax({type:"GET",dataType:"JSON",url:alm_localize.ajaxurl,data:{action:"alm_query_previous_post",id:o.previous_post_id,taxonomy:o.previous_post_taxonomy},success:function(a){a.has_previous_post?(o.content.attr("data-previous-post-id",a.prev_id),o.previous_post_id=a.prev_id,o.previous_post_permalink=a.prev_permalink,o.previous_post_title=a.prev_title,o.previous_post_slug=a.prev_slug):a.has_previous_post||o.AjaxLoadMore.triggerDone(),t.isFunction(t.fn.almSetPreviousPost)&&t.fn.almSetPreviousPost(o,a.current_id,a.permalink,a.title),o.fetchingPreviousPost=!1},error:function(t,a,e){o.AjaxLoadMore.error(t,a,e),o.fetchingPreviousPost=!1}})},o.AjaxLoadMore.triggerAddons=function(a){t.isFunction(t.fn.almSEO)&&a.seo&&t.fn.almSEO(a),t.isFunction(t.fn.almSetNextPage)&&t.fn.almSetNextPage(a)},o.AjaxLoadMore.triggerDone=function(){o.loading=!1,o.finished=!0,o.paging||o.button.addClass("done"),t.isFunction(t.fn.almDone)&&setTimeout(function(){t.fn.almDone(o)},o.speed+10)},o.AjaxLoadMore.resetBtnText=function(){!1!==o.button_loading_label&&(o.paging||o.button.text(o.button_label))},o.AjaxLoadMore.error=function(t,a,e){o.loading=!1,o.paging||(o.button.removeClass("loading"),o.AjaxLoadMore.resetBtnText()),console.log(e)},o.paging||o.fetchingPreviousPost||o.button.on("click",function(){"true"===o.pause&&(o.pause=!1,o.pause_override=!1,o.AjaxLoadMore.loadPosts()),o.loading||o.finished||t(this).hasClass("done")||(o.loading=!0,o.page++,o.AjaxLoadMore.loadPosts())}),o.paging&&(o.window.bind("resizeEnd",function(){t.isFunction(t.fn.almOnWindowResize)&&t.fn.almOnWindowResize(o)}),o.window.resize(function(){this.resizeTO&&clearTimeout(this.resizeTO),this.resizeTO=setTimeout(function(){t(this).trigger("resizeEnd")},250)})),o.AjaxLoadMore.isVisible=function(){return o.visible=!1,o.el.is(":visible")&&(o.visible=!0),o.visible},o.scroll&&!o.paging&&o.window.bind("scroll touchstart",function(){if(o.AjaxLoadMore.isVisible()&&!o.fetchingPreviousPost){var t=o.button.offset(),a=Math.round(t.top-(o.window.height()-o.scroll_distance));!o.loading&&!o.finished&&o.window.scrollTop()>=a&&o.page<o.max_pages-1&&o.proceed&&"true"===o.pause&&"true"===o.pause_override?o.button.trigger("click"):!o.loading&&!o.finished&&o.window.scrollTop()>=a&&o.page<o.max_pages-1&&o.proceed&&"true"!==o.pause&&(o.page++,o.AjaxLoadMore.loadPosts())}}),o.AjaxLoadMore.init=function(){o.paging||o.previous_post||(o.disable_ajax?(o.finished=!0,o.button.addClass("done")):"true"===o.pause?(o.button.text(o.button_label),o.loading=!1):o.AjaxLoadMore.loadPosts()),o.previous_post&&(o.AjaxLoadMore.getPreviousPost(),o.loading=!1),o.nextpage&&t(".alm-nextpage").length>1&&t(".alm-nextpage").length==t(".alm-nextpage").eq(0).data("total-pages")&&o.AjaxLoadMore.triggerDone(),o.window.bind("load",function(){o.is_masonry_preloaded&&almMasonry(o.masonry_wrap,o.el,o.masonry_selector)})},o.AjaxLoadMore.init(),setTimeout(function(){o.proceed=!0},300),t.fn.almUpdateCurrentPage=function(a,e,o){o.page=a,o.nextpage&&!o.paging&&(o.page=o.page-1);var n="";o.paging_init&&"true"===o.preloaded?(n=t(".alm-preloaded .alm-reveal",o.el).html(),t(".alm-preloaded",o.el).remove(),o.preloaded_amount=0,o.AjaxLoadMore.pagingPreloadedInit(n),o.paging_init=!1,o.init=!1):o.paging_init&&o.nextpage?(n=t(".alm-nextpage",o.el).html(),t(".alm-nextpage",o.el).remove(),o.AjaxLoadMore.pagingNextpageInit(n),o.paging_init=!1,o.init=!1):o.AjaxLoadMore.loadPosts()},t.fn.almGetParentContainer=function(){return o.el.closest("#ajax-load-more")},t.fn.almGetObj=function(){return o},t.fn.almTriggerClick=function(){o.button.trigger("click")},t.easing.alm_easeInOutQuad=function(t,a,e,o,n){return(a/=n/2)<1?o/2*a*a+e:-o/2*(--a*(a-2)-1)+e}},t.fn.almFilter=function(a,e,o){o.target?t(".ajax-load-more-wrap[data-id='"+o.target+"']").each(function(n){var r=t(this);t.fn.almFilterTransition(a,e,o,r)}):t(".ajax-load-more-wrap").each(function(n){var r=t(this);t.fn.almFilterTransition(a,e,o,r)})},t.fn.almFilterTransition=function(a,e,o,n){"slide"===a?n.slideUp(e,function(){t(".alm-listing",n).html(""),t(".alm-btn-wrap",n).remove(),n.fadeIn(e),t.fn.almSetFilters(n,o)}):"fade"===a?n.fadeOut(e,function(){t(".alm-listing",n).html(""),t(".alm-btn-wrap",n).remove(),n.fadeIn(e),t.fn.almSetFilters(n,o)}):(t(".alm-listing",n).html(""),t(".alm-btn-wrap",n).remove(),n.fadeIn(e),t.fn.almSetFilters(n,o))},t.fn.almSetFilters=function(a,e){t.each(e,function(e,o){e=e.replace(/\W+/g,"-").replace(/([a-z\d])([A-Z])/g,"$1-$2"),t(".alm-listing",a).attr("data-"+e,o)}),t.isFunction(t.fn.almFilterComplete)&&t.fn.almFilterComplete(),e.target?t(".ajax-load-more-wrap[data-id="+e.target+"]").ajaxloadmore():t(".ajax-load-more-wrap").ajaxloadmore()},t.fn.ajaxloadmore=function(){return this.each(function(a){t(this).data("alm",new t.ajaxloadmore(t(this),a))})},t(".ajax-load-more-wrap").length&&t(".ajax-load-more-wrap").ajaxloadmore()}(jQuery);var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"===("undefined"==typeof exports?"undefined":_typeof(exports))?module.exports=t(require("jquery")):t(jQuery)}(function(t){t.almWaitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage","cursor"],hasImageAttributes:["srcset"]},t.expr[":"]["has-src"]=function(a){return t(a).is('img[src][src!=""]')},t.expr[":"].uncached=function(a){return!!t(a).is(":has-src")&&!a.complete},t.fn.almWaitForImages=function(){var a,e,o,n=0,r=0,s=t.Deferred();if(t.isPlainObject(arguments[0])?(o=arguments[0].waitForAll,e=arguments[0].each,a=arguments[0].finished):1===arguments.length&&"boolean"===t.type(arguments[0])?o=arguments[0]:(a=arguments[0],e=arguments[1],o=arguments[2]),a=a||t.noop,e=e||t.noop,o=!!o,!t.isFunction(a)||!t.isFunction(e))throw new TypeError("An invalid callback was supplied.");return this.each(function(){var i=t(this),d=[],p=t.almWaitForImages.hasImageProperties||[],l=t.almWaitForImages.hasImageAttributes||[],c=/url\(\s*(['"]?)(.*?)\1\s*\)/g;o?i.find("*").addBack().each(function(){var a=t(this);a.is("img:has-src")&&d.push({src:a.attr("src"),element:a[0]}),t.each(p,function(t,e){var o,n=a.css(e);if(!n)return!0;for(;o=c.exec(n);)d.push({src:o[2],element:a[0]})}),t.each(l,function(e,o){var n,r=a.attr(o);if(!r)return!0;n=r.split(","),t.each(n,function(e,o){o=t.trim(o).split(" ")[0],d.push({src:o,element:a[0]})})})}):i.find("img:has-src").each(function(){d.push({src:this.src,element:this})}),n=d.length,r=0,0===n&&(a.call(i[0]),s.resolveWith(i[0])),t.each(d,function(o,d){var p=new Image,l="load.almWaitForImages error.almWaitForImages";t(p).one(l,function o(p){var c=[r,n,"load"==p.type];if(r++,e.apply(d.element,c),s.notifyWith(d.element,c),t(this).off(l,o),r==n)return a.call(i[0]),s.resolveWith(i[0]),!1}),p.src=d.src})}),s.promise()}});
core/functions.php CHANGED
@@ -1,6 +1,76 @@
1
  <?php
2
 
3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  /*
5
  * alm_get_current_repeater
6
  * Get the current repeater template file
@@ -524,9 +594,9 @@ function alm_get_page_slug($post){
524
  * @since 3.0.1
525
  */
526
  function alm_get_page_id($post){
527
-
528
  $post_id = '';
529
-
530
  if(!is_archive()){
531
  // If not an archive page, set the post slug
532
  if(is_front_page() || is_home()){
1
  <?php
2
 
3
 
4
+ /*
5
+ * alm_masonry_after
6
+ * Masonry HTML wrapper open
7
+ *
8
+ * @param $transition string
9
+ * @since 3.1.0
10
+ */
11
+ function alm_masonry_before($transition){
12
+ return ($transition === 'masonry') ? '<div class="alm-masonry">' : '';
13
+ }
14
+ add_filter('alm_masonry_before', 'alm_masonry_before');
15
+
16
+
17
+
18
+ /*
19
+ * alm_masonry_after
20
+ * Masonry HTML wrapper close
21
+ *
22
+ * @param $transition string
23
+ * @since 3.1.0
24
+ */
25
+ function alm_masonry_after($transition){
26
+ return ($transition === 'masonry') ? '</div>' : '';
27
+ }
28
+ add_filter('alm_masonry_after', 'alm_masonry_after');
29
+
30
+
31
+
32
+ /*
33
+ * alm_progress_css
34
+ * If progress bar, add the CSS styles for the bar.
35
+ *
36
+ * @param $counter int
37
+ * @param $progress_bar string
38
+ * @param $progress_bar_color string
39
+ * @since 3.1.0
40
+ */
41
+ function alm_progress_css($counter, $progress_bar, $progress_bar_color){
42
+ if($counter == 1 && $progress_bar === 'true'){
43
+ $style = '
44
+ <style>
45
+ .pace {
46
+ -webkit-pointer-events: none;
47
+ pointer-events: none;
48
+ -webkit-user-select: none;
49
+ -moz-user-select: none;
50
+ user-select: none;
51
+ }
52
+ .pace-inactive {
53
+ display: none;
54
+ }
55
+ .pace .pace-progress {
56
+ background: #'. $progress_bar_color .';
57
+ position: fixed;
58
+ z-index: 2000;
59
+ top: 0;
60
+ right: 100%;
61
+ width: 100%;
62
+ height: 5px;
63
+ -webkit-box-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
64
+ box-shadow: 0 0 2px rgba(255, 255, 255, 0.3);
65
+ }
66
+ </style>';
67
+ return $style;
68
+ }
69
+ }
70
+ add_filter('alm_progress_css', 'alm_progress_css', 10, 3);
71
+
72
+
73
+
74
  /*
75
  * alm_get_current_repeater
76
  * Get the current repeater template file
594
  * @since 3.0.1
595
  */
596
  function alm_get_page_id($post){
597
+
598
  $post_id = '';
599
+
600
  if(!is_archive()){
601
  // If not an archive page, set the post slug
602
  if(is_front_page() || is_home()){
core/js/ajax-load-more.js CHANGED
@@ -24,6 +24,7 @@
24
  //Set variables
25
  var alm = this;
26
  alm.AjaxLoadMore = {};
 
27
  alm.page = 0;
28
  alm.posts = 0;
29
  alm.totalposts = 0;
@@ -32,7 +33,6 @@
32
  alm.init = true;
33
  alm.loading = true;
34
  alm.finished = false;
35
- alm.window = $(window);
36
  alm.button_label = '';
37
  alm.el = el;
38
  alm.container = el;
@@ -124,14 +124,12 @@
124
  /* REST API */
125
  if(alm.restapi === 'true'){
126
  alm.restapi = true;
127
-
128
  if(alm.restapi_debug === undefined){
129
  alm.restapi_debug = false;
130
  }
131
  if(alm.restapi_template_id === ''){
132
  alm.restapi = false;
133
  }
134
-
135
  }else{
136
  alm.restapi = false;
137
  }
@@ -144,8 +142,7 @@
144
  if(alm.paging_show_at_most === undefined){
145
  alm.paging_show_at_most = 7;
146
  }
147
- // if paging and preload then pause.
148
- if(alm.preloaded === 'true'){
149
  alm.pause = true;
150
  }
151
  }else{
@@ -165,7 +162,6 @@
165
  if (alm.cache === undefined){
166
  alm.cache = false;
167
  }
168
-
169
  if (alm.cache_logged_in === undefined){
170
  alm.cache_logged_in = false;
171
  }
@@ -355,6 +351,17 @@
355
  alm.transition = 'slide';
356
  }
357
 
 
 
 
 
 
 
 
 
 
 
 
358
  /* Speed */
359
  if (alm.speed === undefined){
360
  alm.speed = 250;
@@ -667,7 +674,7 @@
667
  'postcount' : postcount,
668
  'totalposts' : totalposts
669
  },
670
- }
671
  alm.AjaxLoadMore.success(obj, false); // Send data
672
  }
673
  });
@@ -821,8 +828,11 @@
821
  if (alm.init) {
822
 
823
  if(!alm.paging){
 
824
  alm.button.text(alm.button_label);
 
825
  } else {
 
826
  // Is pagination
827
  if (total > 0) {
828
  alm.el = $('<div class="alm-reveal"/>');
@@ -871,20 +881,20 @@
871
 
872
  } else {
873
 
874
- if(!alm.transition_container){
875
- // No transiton container
876
 
877
  alm.data.hide();
878
  alm.el = alm.data;
879
 
880
- } else {
881
- // Standard container
 
882
 
883
  // SEO
884
  if (alm.init && alm.start_page > 1){
885
  // loop through items and break into separate alm-reveal divs for paging
886
 
887
- var data = [],
888
  posts_per_page = parseInt(alm.posts_per_page);
889
 
890
  if(alm.cta === 'true'){
@@ -892,22 +902,19 @@
892
  posts_per_page = posts_per_page + 1;
893
  }
894
 
895
- var pages = Math.ceil(total/posts_per_page); // slice data array into pages
896
  for (var i = 0; i < total; i += posts_per_page) {
897
- data.push(alm.data.slice(i, posts_per_page + i));
898
  }
899
 
900
  alm.el = alm.content; // Set alm.el to be alm-listing div
901
- for (var k = 0; k < data.length; k++){
902
-
903
- var p = 0; // Add 1 page if items are preloaded.
904
- if(alm.preloaded === 'true'){
905
- p = 1;
906
- }
907
 
 
908
  var div;
 
909
  if(k > 0 || alm.preloaded === 'true'){ // > Paged
910
- var pagenum = (k + 1 + p);
911
  if(alm.permalink === 'default'){
912
  div = $('<div class="alm-reveal alm-seo" data-url="'+alm.canonical_url+''+ alm.search_value +'&paged='+ pagenum+'" data-page="'+ pagenum +'" />');
913
  }else{
@@ -916,9 +923,11 @@
916
  }else{ // First Page
917
  div = $('<div class="alm-reveal alm-seo" data-url="'+alm.canonical_url+''+ alm.search_value +'" data-page="1" />');
918
  }
919
- div.append(data[k]);
 
920
  div = $(div); // convert to object
921
- alm.el.append(div).hide(); // Add data to .alm-listing wrapper
 
922
  }
923
  }
924
  // End SEO -- /
@@ -927,12 +936,11 @@
927
  // If is SEO and paged, or preloaded.
928
  if(alm.seo && alm.page > 0 || alm.preloaded === 'true'){
929
 
930
- var p = 0; // Add 1 page if items are preloaded.
931
- if(alm.preloaded === 'true'){
932
- p = 1;
933
- }
934
  // SEO [Paged]
935
- var pagenum = (alm.page + 1 + p);
 
936
  if(alm.seo){
937
  if(alm.permalink === 'default'){
938
  alm.el = $('<div class="alm-reveal alm-seo" data-url="'+alm.canonical_url+''+ alm.search_value +'&paged='+ pagenum+'" data-page="'+ pagenum +'" />');
@@ -945,6 +953,7 @@
945
  }
946
 
947
  }else{
 
948
  if(alm.seo){
949
  // SEO [Page 1]
950
  alm.el = $('<div class="alm-reveal alm-seo" data-url="'+alm.canonical_url+''+ alm.search_value +'" data-page="1" />');
@@ -952,6 +961,7 @@
952
  // Basic ALM
953
  alm.el = $('<div class="alm-reveal" />');
954
  }
 
955
  }
956
 
957
  alm.el.append(alm.data).hide();
@@ -960,7 +970,10 @@
960
  }
961
 
962
  // Append alm.el to ALM container
963
- alm.content.append(alm.el);
 
 
 
964
 
965
  // Transition
966
  if (alm.transition === 'fade') { // Fade
@@ -988,6 +1001,18 @@
988
  });
989
  }
990
 
 
 
 
 
 
 
 
 
 
 
 
 
991
  }else if(alm.transition === 'none') { // None
992
  if(alm.images_loaded === 'true'){
993
  alm.el.almWaitForImages().done(function(){
@@ -1111,6 +1136,7 @@
1111
 
1112
 
1113
 
 
1114
  /* pagingPreloadedInit()
1115
  *
1116
  * First run for Paging + Preloaded add-ons
@@ -1134,7 +1160,7 @@
1134
  if ($.isFunction($.fn.almFadePageControls)){
1135
  $.fn.almFadePageControls(alm.btnWrap);
1136
  }
1137
- }
1138
 
1139
 
1140
 
@@ -1171,7 +1197,7 @@
1171
  $.fn.almOnWindowResize(alm); // Paging Add-on
1172
  }
1173
  }, 200);
1174
- }
1175
 
1176
 
1177
 
@@ -1252,7 +1278,7 @@
1252
  if ($.isFunction($.fn.almDone)) {
1253
  // Delay done until after animation
1254
  setTimeout(function(){
1255
- $.fn.almDone(alm)
1256
  }, alm.speed + 10);
1257
  }
1258
  };
@@ -1393,6 +1419,7 @@
1393
  * @since 2.0
1394
  */
1395
  alm.AjaxLoadMore.init = function(){
 
1396
  if(!alm.paging && !alm.previous_post){
1397
  if(alm.disable_ajax){
1398
  alm.finished = true;
@@ -1407,10 +1434,14 @@
1407
  }
1408
  }
1409
  }
 
 
1410
  if(alm.previous_post){
1411
  alm.AjaxLoadMore.getPreviousPost(); // Set next post on load
1412
  alm.loading = false;
1413
  }
 
 
1414
  if(alm.nextpage){
1415
  if($('.alm-nextpage').length > 1){
1416
  // If alm-nextpage is greater than 1, check that posts remain.
@@ -1423,7 +1454,15 @@
1423
  }
1424
  }
1425
  }
1426
- }
 
 
 
 
 
 
 
 
1427
  alm.AjaxLoadMore.init();
1428
 
1429
 
@@ -1496,7 +1535,7 @@
1496
  * @return element
1497
  */
1498
  $.fn.almGetParentContainer = function(){
1499
- return alm.el.closest('#ajax-load-more');v
1500
  };
1501
 
1502
 
@@ -1540,6 +1579,9 @@
1540
 
1541
 
1542
 
 
 
 
1543
  /* $.fn.almFilter(type, speed, data)
1544
  *
1545
  * Filter Ajax Load More
@@ -1653,232 +1695,3 @@
1653
 
1654
 
1655
  })(jQuery);
1656
-
1657
-
1658
-
1659
-
1660
- /*! almWaitForImages
1661
- jQuery Plugin
1662
- v2.0.2
1663
- Based on https://github.com/alexanderdickson/almWaitForImages
1664
- */
1665
- // Include almWaitForImages()
1666
- ;(function (factory) {
1667
- if (typeof define === 'function' && define.amd) {
1668
- // AMD. Register as an anonymous module.
1669
- define(['jquery'], factory);
1670
- } else if (typeof exports === 'object') {
1671
- // CommonJS / nodejs module
1672
- module.exports = factory(require('jquery'));
1673
- } else {
1674
- // Browser globals
1675
- factory(jQuery);
1676
- }
1677
- }(function ($) {
1678
- // Namespace all events.
1679
- var eventNamespace = 'almWaitForImages';
1680
-
1681
- // CSS properties which contain references to images.
1682
- $.almWaitForImages = {
1683
- hasImageProperties: [
1684
- 'backgroundImage',
1685
- 'listStyleImage',
1686
- 'borderImage',
1687
- 'borderCornerImage',
1688
- 'cursor'
1689
- ],
1690
- hasImageAttributes: ['srcset']
1691
- };
1692
-
1693
- // Custom selector to find all `img` elements with a valid `src` attribute.
1694
- $.expr[':']['has-src'] = function (obj) {
1695
- // Ensure we are dealing with an `img` element with a valid
1696
- // `src` attribute.
1697
- return $(obj).is('img[src][src!=""]');
1698
- };
1699
-
1700
- // Custom selector to find images which are not already cached by the
1701
- // browser.
1702
- $.expr[':'].uncached = function (obj) {
1703
- // Ensure we are dealing with an `img` element with a valid
1704
- // `src` attribute.
1705
- if (!$(obj).is(':has-src')) {
1706
- return false;
1707
- }
1708
-
1709
- return !obj.complete;
1710
- };
1711
-
1712
- $.fn.almWaitForImages = function () {
1713
-
1714
- var allImgsLength = 0;
1715
- var allImgsLoaded = 0;
1716
- var deferred = $.Deferred();
1717
-
1718
- var finishedCallback;
1719
- var eachCallback;
1720
- var waitForAll;
1721
-
1722
- // Handle options object (if passed).
1723
- if ($.isPlainObject(arguments[0])) {
1724
-
1725
- waitForAll = arguments[0].waitForAll;
1726
- eachCallback = arguments[0].each;
1727
- finishedCallback = arguments[0].finished;
1728
-
1729
- } else {
1730
-
1731
- // Handle if using deferred object and only one param was passed in.
1732
- if (arguments.length === 1 && $.type(arguments[0]) === 'boolean') {
1733
- waitForAll = arguments[0];
1734
- } else {
1735
- finishedCallback = arguments[0];
1736
- eachCallback = arguments[1];
1737
- waitForAll = arguments[2];
1738
- }
1739
-
1740
- }
1741
-
1742
- // Handle missing callbacks.
1743
- finishedCallback = finishedCallback || $.noop;
1744
- eachCallback = eachCallback || $.noop;
1745
-
1746
- // Convert waitForAll to Boolean
1747
- waitForAll = !! waitForAll;
1748
-
1749
- // Ensure callbacks are functions.
1750
- if (!$.isFunction(finishedCallback) || !$.isFunction(eachCallback)) {
1751
- throw new TypeError('An invalid callback was supplied.');
1752
- }
1753
-
1754
- this.each(function () {
1755
- // Build a list of all imgs, dependent on what images will
1756
- // be considered.
1757
- var obj = $(this);
1758
- var allImgs = [];
1759
- // CSS properties which may contain an image.
1760
- var hasImgProperties = $.almWaitForImages.hasImageProperties || [];
1761
- // Element attributes which may contain an image.
1762
- var hasImageAttributes = $.almWaitForImages.hasImageAttributes || [];
1763
- // To match `url()` references.
1764
- // Spec: http://www.w3.org/TR/CSS2/syndata.html#value-def-uri
1765
- var matchUrl = /url\(\s*(['"]?)(.*?)\1\s*\)/g;
1766
-
1767
- if (waitForAll) {
1768
-
1769
- // Get all elements (including the original), as any one of
1770
- // them could have a background image.
1771
- obj.find('*').addBack().each(function () {
1772
- var element = $(this);
1773
-
1774
- // If an `img` element, add it. But keep iterating in
1775
- // case it has a background image too.
1776
- if (element.is('img:has-src')) {
1777
- allImgs.push({
1778
- src: element.attr('src'),
1779
- element: element[0]
1780
- });
1781
- }
1782
-
1783
- $.each(hasImgProperties, function (i, property) {
1784
- var propertyValue = element.css(property);
1785
- var match;
1786
-
1787
- // If it doesn't contain this property, skip.
1788
- if (!propertyValue) {
1789
- return true;
1790
- }
1791
-
1792
- // Get all url() of this element.
1793
- while (match = matchUrl.exec(propertyValue)) {
1794
- allImgs.push({
1795
- src: match[2],
1796
- element: element[0]
1797
- });
1798
- }
1799
- });
1800
-
1801
- $.each(hasImageAttributes, function (i, attribute) {
1802
- var attributeValue = element.attr(attribute);
1803
- var attributeValues;
1804
-
1805
- // If it doesn't contain this property, skip.
1806
- if (!attributeValue) {
1807
- return true;
1808
- }
1809
-
1810
- // Check for multiple comma separated images
1811
- attributeValues = attributeValue.split(',');
1812
-
1813
- $.each(attributeValues, function(i, value) {
1814
- // Trim value and get string before first
1815
- // whitespace (for use with srcset).
1816
- value = $.trim(value).split(' ')[0];
1817
- allImgs.push({
1818
- src: value,
1819
- element: element[0]
1820
- });
1821
- });
1822
- });
1823
- });
1824
- } else {
1825
- // For images only, the task is simpler.
1826
- obj.find('img:has-src')
1827
- .each(function () {
1828
- allImgs.push({
1829
- src: this.src,
1830
- element: this
1831
- });
1832
- });
1833
- }
1834
-
1835
- allImgsLength = allImgs.length;
1836
- allImgsLoaded = 0;
1837
-
1838
- // If no images found, don't bother.
1839
- if (allImgsLength === 0) {
1840
- finishedCallback.call(obj[0]);
1841
- deferred.resolveWith(obj[0]);
1842
- }
1843
-
1844
- $.each(allImgs, function (i, img) {
1845
-
1846
- var image = new Image();
1847
- var events =
1848
- 'load.' + eventNamespace + ' error.' + eventNamespace;
1849
-
1850
- // Handle the image loading and error with the same callback.
1851
- $(image).one(events, function me (event) {
1852
- // If an error occurred with loading the image, set the
1853
- // third argument accordingly.
1854
- var eachArguments = [
1855
- allImgsLoaded,
1856
- allImgsLength,
1857
- event.type == 'load'
1858
- ];
1859
- allImgsLoaded++;
1860
-
1861
- eachCallback.apply(img.element, eachArguments);
1862
- deferred.notifyWith(img.element, eachArguments);
1863
-
1864
- // Unbind the event listeners. I use this in addition to
1865
- // `one` as one of those events won't be called (either
1866
- // 'load' or 'error' will be called).
1867
- $(this).off(events, me);
1868
-
1869
- if (allImgsLoaded == allImgsLength) {
1870
- finishedCallback.call(obj[0]);
1871
- deferred.resolveWith(obj[0]);
1872
- return false;
1873
- }
1874
-
1875
- });
1876
-
1877
- image.src = img.src;
1878
- });
1879
- });
1880
-
1881
- return deferred.promise();
1882
-
1883
- };
1884
- }));
24
  //Set variables
25
  var alm = this;
26
  alm.AjaxLoadMore = {};
27
+ alm.window = $(window);
28
  alm.page = 0;
29
  alm.posts = 0;
30
  alm.totalposts = 0;
33
  alm.init = true;
34
  alm.loading = true;
35
  alm.finished = false;
 
36
  alm.button_label = '';
37
  alm.el = el;
38
  alm.container = el;
124
  /* REST API */
125
  if(alm.restapi === 'true'){
126
  alm.restapi = true;
 
127
  if(alm.restapi_debug === undefined){
128
  alm.restapi_debug = false;
129
  }
130
  if(alm.restapi_template_id === ''){
131
  alm.restapi = false;
132
  }
 
133
  }else{
134
  alm.restapi = false;
135
  }
142
  if(alm.paging_show_at_most === undefined){
143
  alm.paging_show_at_most = 7;
144
  }
145
+ if(alm.preloaded === 'true'){ // Ifpreloaded, pause.
 
146
  alm.pause = true;
147
  }
148
  }else{
162
  if (alm.cache === undefined){
163
  alm.cache = false;
164
  }
 
165
  if (alm.cache_logged_in === undefined){
166
  alm.cache_logged_in = false;
167
  }
351
  alm.transition = 'slide';
352
  }
353
 
354
+ alm.is_masonry_preloaded = false;
355
+ if(alm.transition === 'masonry'){
356
+ alm.masonry_selector = alm.content.attr('data-masonry-selector');
357
+ alm.masonry_wrap = alm.content;
358
+ alm.transition_container = false;
359
+ if(document.body.contains(alm.content_preloaded.get(0))){
360
+ alm.masonry_wrap = alm.content_preloaded;
361
+ alm.is_masonry_preloaded = true;
362
+ }
363
+ }
364
+
365
  /* Speed */
366
  if (alm.speed === undefined){
367
  alm.speed = 250;
674
  'postcount' : postcount,
675
  'totalposts' : totalposts
676
  },
677
+ };
678
  alm.AjaxLoadMore.success(obj, false); // Send data
679
  }
680
  });
828
  if (alm.init) {
829
 
830
  if(!alm.paging){
831
+
832
  alm.button.text(alm.button_label);
833
+
834
  } else {
835
+
836
  // Is pagination
837
  if (total > 0) {
838
  alm.el = $('<div class="alm-reveal"/>');
881
 
882
  } else {
883
 
884
+ if(!alm.transition_container){ // No transition container
 
885
 
886
  alm.data.hide();
887
  alm.el = alm.data;
888
 
889
+ } else { // Standard container
890
+
891
+ var pagenum;
892
 
893
  // SEO
894
  if (alm.init && alm.start_page > 1){
895
  // loop through items and break into separate alm-reveal divs for paging
896
 
897
+ var seo_data = [],
898
  posts_per_page = parseInt(alm.posts_per_page);
899
 
900
  if(alm.cta === 'true'){
902
  posts_per_page = posts_per_page + 1;
903
  }
904
 
905
+ var pages = Math.ceil(total/posts_per_page); // slice seo_data array into pages
906
  for (var i = 0; i < total; i += posts_per_page) {
907
+ seo_data.push(alm.data.slice(i, posts_per_page + i));
908
  }
909
 
910
  alm.el = alm.content; // Set alm.el to be alm-listing div
911
+ for (var k = 0; k < seo_data.length; k++){
 
 
 
 
 
912
 
913
+ var p = (alm.preloaded === 'true') ? 1 : 0; // Add 1 page if items are preloaded.
914
  var div;
915
+
916
  if(k > 0 || alm.preloaded === 'true'){ // > Paged
917
+ pagenum = (k + 1 + p);
918
  if(alm.permalink === 'default'){
919
  div = $('<div class="alm-reveal alm-seo" data-url="'+alm.canonical_url+''+ alm.search_value +'&paged='+ pagenum+'" data-page="'+ pagenum +'" />');
920
  }else{
923
  }else{ // First Page
924
  div = $('<div class="alm-reveal alm-seo" data-url="'+alm.canonical_url+''+ alm.search_value +'" data-page="1" />');
925
  }
926
+
927
+ div.append(seo_data[k]);
928
  div = $(div); // convert to object
929
+ alm.el.append(div).hide(); // Append data to .alm-listing wrapper
930
+
931
  }
932
  }
933
  // End SEO -- /
936
  // If is SEO and paged, or preloaded.
937
  if(alm.seo && alm.page > 0 || alm.preloaded === 'true'){
938
 
939
+ var p2 = (alm.preloaded === 'true') ? 1 : 0; // Add 1 page if items are preloaded.
940
+
 
 
941
  // SEO [Paged]
942
+ pagenum = (alm.page + 1 + p2);
943
+
944
  if(alm.seo){
945
  if(alm.permalink === 'default'){
946
  alm.el = $('<div class="alm-reveal alm-seo" data-url="'+alm.canonical_url+''+ alm.search_value +'&paged='+ pagenum+'" data-page="'+ pagenum +'" />');
953
  }
954
 
955
  }else{
956
+
957
  if(alm.seo){
958
  // SEO [Page 1]
959
  alm.el = $('<div class="alm-reveal alm-seo" data-url="'+alm.canonical_url+''+ alm.search_value +'" data-page="1" />');
961
  // Basic ALM
962
  alm.el = $('<div class="alm-reveal" />');
963
  }
964
+
965
  }
966
 
967
  alm.el.append(alm.data).hide();
970
  }
971
 
972
  // Append alm.el to ALM container
973
+ // Do not append when transtion == masonry OR init and !preloaded
974
+ if (alm.transition !== 'masonry' || (alm.init && !alm.is_masonry_preloaded)){
975
+ alm.content.append(alm.el);
976
+ }
977
 
978
  // Transition
979
  if (alm.transition === 'fade') { // Fade
1001
  });
1002
  }
1003
 
1004
+ }else if(alm.transition === 'masonry') { // masonry
1005
+
1006
+ almMasonry(alm.masonry_wrap, alm.el, alm.masonry_selector);
1007
+
1008
+ if(!alm.paging){
1009
+ alm.button.delay(alm.speed).removeClass('loading');
1010
+ alm.container.delay(alm.speed).removeClass('loading');
1011
+ alm.AjaxLoadMore.resetBtnText();
1012
+ }
1013
+ alm.loading = false;
1014
+ alm.AjaxLoadMore.triggerAddons(alm);
1015
+
1016
  }else if(alm.transition === 'none') { // None
1017
  if(alm.images_loaded === 'true'){
1018
  alm.el.almWaitForImages().done(function(){
1136
 
1137
 
1138
 
1139
+
1140
  /* pagingPreloadedInit()
1141
  *
1142
  * First run for Paging + Preloaded add-ons
1160
  if ($.isFunction($.fn.almFadePageControls)){
1161
  $.fn.almFadePageControls(alm.btnWrap);
1162
  }
1163
+ };
1164
 
1165
 
1166
 
1197
  $.fn.almOnWindowResize(alm); // Paging Add-on
1198
  }
1199
  }, 200);
1200
+ };
1201
 
1202
 
1203
 
1278
  if ($.isFunction($.fn.almDone)) {
1279
  // Delay done until after animation
1280
  setTimeout(function(){
1281
+ $.fn.almDone(alm);
1282
  }, alm.speed + 10);
1283
  }
1284
  };
1419
  * @since 2.0
1420
  */
1421
  alm.AjaxLoadMore.init = function(){
1422
+
1423
  if(!alm.paging && !alm.previous_post){
1424
  if(alm.disable_ajax){
1425
  alm.finished = true;
1434
  }
1435
  }
1436
  }
1437
+
1438
+ // Previous Post Add-on
1439
  if(alm.previous_post){
1440
  alm.AjaxLoadMore.getPreviousPost(); // Set next post on load
1441
  alm.loading = false;
1442
  }
1443
+
1444
+ // Next Page Add-on
1445
  if(alm.nextpage){
1446
  if($('.alm-nextpage').length > 1){
1447
  // If alm-nextpage is greater than 1, check that posts remain.
1454
  }
1455
  }
1456
  }
1457
+
1458
+ // Masonry + Preloaded
1459
+ alm.window.bind('load', function(){
1460
+ if(alm.is_masonry_preloaded){
1461
+ almMasonry(alm.masonry_wrap, alm.el, alm.masonry_selector);
1462
+ }
1463
+ });
1464
+
1465
+ };
1466
  alm.AjaxLoadMore.init();
1467
 
1468
 
1535
  * @return element
1536
  */
1537
  $.fn.almGetParentContainer = function(){
1538
+ return alm.el.closest('#ajax-load-more');
1539
  };
1540
 
1541
 
1579
 
1580
 
1581
 
1582
+
1583
+
1584
+
1585
  /* $.fn.almFilter(type, speed, data)
1586
  *
1587
  * Filter Ajax Load More
1695
 
1696
 
1697
  })(jQuery);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
core/js/ajax-load-more.min.js DELETED
@@ -1,126 +0,0 @@
1
-
2
- (function($){"use strict";$.ajaxloadmore=function(el,e){if(alm_localize.scrolltop==='true'){$(window).scrollTop(0);}
3
- var alm=this;alm.AjaxLoadMore={};alm.page=0;alm.posts=0;alm.totalposts=0;alm.proceed=false;alm.disable_ajax=false;alm.init=true;alm.loading=true;alm.finished=false;alm.window=$(window);alm.button_label='';alm.el=el;alm.container=el;alm.container.addClass('alm-'+e).attr('data-alm-id',e);alm.content=$('.alm-ajax',alm.container);alm.content_preloaded=$('.alm-listing.alm-preloaded',alm.container);alm.canonical_url=alm.el.attr('data-canonical-url');alm.is_search=alm.el.attr('data-search');alm.slug=alm.el.attr('data-slug');alm.post_id=alm.el.attr('data-post-id');alm.prefix='alm-';alm.cache=alm.content.attr('data-cache');alm.cache_id=alm.content.attr('data-cache-id');alm.cache_path=alm.content.attr('data-cache-path');alm.cache_logged_in=alm.content.attr('data-cache-logged-in');alm.repeater=alm.content.attr('data-repeater');alm.theme_repeater=alm.content.attr('data-theme-repeater');alm.scroll_distance=parseInt(alm.content.attr('data-scroll-distance'));alm.max_pages=parseInt(alm.content.attr('data-max-pages'));alm.pause_override=alm.content.attr('data-pause-override');alm.pause=alm.content.attr('data-pause');alm.transition=alm.content.attr('data-transition');alm.transition_container=alm.content.attr('data-transition-container');alm.speed=alm.content.attr('data-transition-speed');alm.images_loaded=alm.content.attr('data-images-loaded');alm.destroy_after=alm.content.attr('data-destroy-after');alm.lang=alm.content.attr('data-lang');alm.orginal_posts_per_page=alm.content.attr('data-posts-per-page');alm.posts_per_page=alm.content.attr('data-posts-per-page');alm.cta_array='';alm.cta=alm.content.attr('data-cta');alm.cta_position=alm.content.attr('data-cta-position');alm.cta_repeater=alm.content.attr('data-cta-repeater');alm.cta_theme_repeater=alm.content.attr('data-cta-theme-repeater');alm.acf_array='';alm.acf=alm.content.attr('data-acf');alm.acf_field_type=alm.content.attr('data-acf-field-type');alm.acf_field_name=alm.content.attr('data-acf-field-name');alm.acf_post_id=alm.content.attr('data-acf-post-id');alm.nextpage_array='';alm.nextpage=alm.content.attr('data-nextpage');alm.nextpage_urls=alm.content.attr('data-nextpage-urls');alm.nextpage_scroll=alm.content.attr('data-nextpage-scroll');alm.nextpage_pageviews=alm.content.attr('data-nextpage-pageviews');alm.nextpage_post_id=alm.content.attr('data-nextpage-post-id');alm.nextpage_startpage=alm.content.attr('data-nextpage-startpage');alm.previous_post=alm.content.attr('data-previous-post');alm.previous_post_id=alm.content.attr('data-previous-post-id');alm.previous_post_taxonomy=alm.content.attr('data-previous-post-taxonomy');alm.comments=alm.content.attr('data-comments');if(alm.comments==='true'){alm.content=$('.alm-comments',alm.container);}
4
- alm.comments_array='';alm.comments_post_id=alm.content.attr('data-comments_post_id');alm.comments_per_page=alm.content.attr('data-comments_per_page');alm.comments_type=alm.content.attr('data-comments_type');alm.comments_style=alm.content.attr('data-comments_style');alm.comments_template=alm.content.attr('data-comments_template');alm.comments_callback=alm.content.attr('data-comments_callback');alm.restapi=alm.content.attr('data-restapi');alm.restapi_base_url=alm.content.attr('data-restapi-base-url');alm.restapi_namespace=alm.content.attr('data-restapi-namespace');alm.restapi_endpoint=alm.content.attr('data-restapi-endpoint');alm.restapi_template_id=alm.content.attr('data-restapi-template-id');alm.restapi_debug=alm.content.attr('data-restapi-debug');alm.seo=alm.content.attr('data-seo');alm.preloaded=alm.content.attr('data-preloaded');alm.preloaded_amount=alm.content.attr('data-preloaded-amount');alm.paging=alm.content.attr('data-paging');alm.paging_controls=alm.content.attr('data-paging-controls');alm.paging_show_at_most=alm.content.attr('data-paging-show-at-most');alm.paging_classes=alm.content.attr('data-paging-classes');alm.paging_init=true;if(alm.restapi==='true'){alm.restapi=true;if(alm.restapi_debug===undefined){alm.restapi_debug=false;}
5
- if(alm.restapi_template_id===''){alm.restapi=false;}}else{alm.restapi=false;}
6
- if(alm.paging==='true'){alm.paging=true;if(alm.paging_show_at_most===undefined){alm.paging_show_at_most=7;}
7
- if(alm.preloaded==='true'){alm.pause=true;}}else{alm.paging=false;}
8
- if(alm.paging_controls==='true'){alm.paging_controls=true;}else{alm.paging_controls=false;}
9
- if(alm.cache===undefined){alm.cache=false;}
10
- if(alm.cache_logged_in===undefined){alm.cache_logged_in=false;}
11
- if(alm.comments_per_page===undefined){alm.comments_per_page='5';}
12
- if(alm.preloaded==='true'){alm.preload_wrap=alm.content.prev('.alm-preloaded');alm.preloaded_total_posts=parseInt(alm.preload_wrap.attr('data-total-posts'));if(alm.preloaded_amount===undefined){alm.preloaded_amount=false;}
13
- if(alm.preloaded_total_posts<=alm.preloaded_amount){alm.disable_ajax=true;}}else{alm.preloaded='false';}
14
- if(alm.seo===undefined){alm.seo=false;}
15
- if(alm.seo==='true'){alm.seo=true;}
16
- if(alm.is_search===undefined){alm.is_search=false;}
17
- alm.search_value=(alm.is_search==='true')?alm.slug:'';alm.permalink=alm.content.attr('data-seo-permalink');alm.pageview=alm.content.attr('data-seo-pageview');alm.start_page=alm.content.attr('data-seo-start-page');if(alm.start_page){alm.seo_scroll=alm.content.attr('data-seo-scroll');alm.seo_scroll_speed=alm.content.attr('data-seo-scroll-speed');alm.seo_scrolltop=alm.content.attr('data-seo-scrolltop');alm.isPaged=false;if(alm.start_page>1){alm.isPaged=true;alm.posts_per_page=alm.start_page*alm.posts_per_page;}
18
- if(alm.paging){alm.posts_per_page=alm.orginal_posts_per_page;}}else{alm.start_page=1;}
19
- if(alm.nextpage==='true'){alm.nextpage=true;alm.posts_per_page=1;}else{alm.nextpage=false;}
20
- if(alm.nextpage_urls===undefined){alm.nextpage='true';}
21
- if(alm.nextpage_scroll===undefined){alm.nextpage_scroll='250:30';}
22
- if(alm.nextpage_pageviews===undefined){alm.nextpage_pageviews='true';}
23
- if(alm.nextpage_post_id===undefined){alm.nextpage=false;alm.nextpage_post_id=null;}
24
- if(alm.nextpage_startpage===undefined){alm.nextpage_startpage=1;}
25
- if(alm.nextpage_startpage>1){alm.isPaged=true;}
26
- if(alm.acf==='true'){alm.acf=true;}else{alm.acf=false;}
27
- if(alm.acf_field_type===undefined||alm.acf_field_name===undefined||alm.acf_post_id===undefined){alm.acf=false;}
28
- if(alm.previous_post==='true'){alm.previous_post=true;alm.previous_post_permalink='';alm.previous_post_title='';alm.previous_post_slug='';}else{alm.previous_post=false;}
29
- if(alm.previous_post_id===undefined){alm.previous_post_id='';}
30
- if(alm.previous_post_taxonomy===undefined){alm.previous_post_taxonomy='';}
31
- alm.previous_post_title_template=alm.content.attr('data-previous-post-title-template');alm.siteTitle=alm.content.attr('data-previous-post-site-title');alm.siteTagline=alm.content.attr('data-previous-post-site-tagline');alm.previous_post_pageview=alm.content.attr('data-previous-post-pageview');alm.previous_post_scroll=alm.content.attr('data-previous-post-scroll');alm.previous_post_scroll_speed=alm.content.attr('data-previous-post-scroll-speed');alm.previous_post_scroll_top=alm.content.attr('data-previous-post-scrolltop');if(alm.content.attr('data-offset')===undefined){alm.offset=0;}else{alm.offset=alm.content.attr('data-offset');}
32
- if(alm.pause===undefined||(alm.seo&&alm.start_page>1)){alm.pause=false;}
33
- if(alm.preloaded==='true'&&alm.seo&&alm.start_page>0){alm.pause=false;}
34
- if(alm.preloaded==='true'&&alm.paging){alm.pause=true;}
35
- if(alm.repeater===undefined){alm.repeater='default';}
36
- if(alm.theme_repeater===undefined){alm.theme_repeater='null';}
37
- if(alm.max_pages===undefined){alm.max_pages=0;}
38
- if(alm.max_pages===0){alm.max_pages=10000;}
39
- if(alm.scroll_distance===undefined){alm.scroll_distance=150;}
40
- if(alm.transition===undefined){alm.transition='slide';}
41
- if(alm.speed===undefined){alm.speed=250;}else{alm.speed=parseInt(alm.speed);}
42
- if(alm.transition_container===undefined||alm.transition_container==='true'){alm.transition_container=true;}else{alm.transition_container=false;}
43
- if(alm.images_loaded===undefined){alm.images_loaded='false';}
44
- if(alm.destroy_after!==undefined){}
45
- if(alm.content.attr('data-button-label')===undefined){alm.button_label='Older Posts';}else{alm.button_label=alm.content.attr('data-button-label');}
46
- alm.button_loading_label=alm.content.attr('data-button-loading-label');if(alm.button_loading_label===undefined){alm.button_loading_label=false;}
47
- if(alm.content.attr('data-button-class')===undefined){alm.button_class='';}else{alm.button_class=' '+alm.content.attr('data-button-class');}
48
- if(alm.content.attr('data-scroll')===undefined){alm.scroll=true;}else if(alm.content.attr('data-scroll')==='false'){alm.scroll=false;}else{alm.scroll=true;}
49
- alm.post_type=alm.content.attr('data-post-type');alm.post_type=alm.post_type.split(",");alm.sticky_posts=alm.content.attr('data-sticky-posts');alm.container.append('<div class="'+alm.prefix+'btn-wrap"/>');alm.btnWrap=$('.'+alm.prefix+'btn-wrap',alm.container);if(alm.paging){alm.content.parent().addClass('loading');}else{$('.'+alm.prefix+'btn-wrap',alm.container).append('<button id="load-more" class="'+alm.prefix+'load-more-btn more'+alm.button_class+'">'+alm.button_label+'</button>');alm.button=$('.alm-load-more-btn',alm.container);}
50
- alm.AjaxLoadMore.loadPosts=function(){if(!alm.disable_ajax){if(!alm.paging){alm.button.addClass('loading');alm.container.addClass('alm-loading');if(alm.button_loading_label!==false){alm.button.text(alm.button_loading_label);}}
51
- alm.loading=true;if(alm.cache==='true'&&!alm.cache_logged_in){var cache_page;if(alm.init&&alm.seo&&alm.isPaged){var firstpage='1';cache_page=alm.cache_path+alm.cache_id+'/page-'+firstpage+'-'+alm.start_page+'.html';}
52
- else if(alm.nextpage){var nextpage_cache_page;if(alm.paging){nextpage_cache_page=parseInt(alm.page)+1;}else{nextpage_cache_page=parseInt(alm.page)+2;if(alm.isPaged){nextpage_cache_page=parseInt(alm.page)+parseInt(alm.nextpage_startpage)+1;}}
53
- cache_page=alm.cache_path+alm.cache_id+'/page'+'-'+nextpage_cache_page+'.html';}
54
- else if(alm.previous_post){cache_page=alm.cache_path+alm.cache_id+'/'+alm.previous_post_slug+'.html';}
55
- else{cache_page=alm.cache_path+alm.cache_id+'/page-'+(alm.page+1)+'.html';}
56
- $.get(cache_page,function(data){alm.AjaxLoadMore.success(data,true);}).fail(function(){alm.AjaxLoadMore.ajax('standard');});}else{alm.AjaxLoadMore.ajax('standard');}}};alm.AjaxLoadMore.ajax=function(queryType){var action='alm_query_posts';if(alm.acf){if(alm.acf_field_type!=='relationship'){action='alm_acf_query';}
57
- alm.acf_array={'acf':'true','post_id':alm.acf_post_id,'field_type':alm.acf_field_type,'field_name':alm.acf_field_name};}
58
- if(alm.nextpage){action='alm_nextpage_query';alm.nextpage_array={'nextpage':'true','urls':alm.nextpage_urls,'scroll':alm.nextpage_scroll,'pageviews':alm.nextpage_pageviews,'post_id':alm.nextpage_post_id,'startpage':alm.nextpage_startpage};}
59
- if(alm.previous_post){alm.previous_post_array={'previous_post':'true','id':alm.previous_post_id,'slug':alm.previous_post_slug,};}
60
- if(alm.comments==='true'){action='alm_comments_query';alm.posts_per_page=alm.comments_per_page;alm.comments_array={'comments':'true','post_id':alm.comments_post_id,'per_page':alm.comments_per_page,'type':alm.comments_type,'style':alm.comments_style,'template':alm.comments_template,'callback':alm.comments_callback,};}
61
- if(alm.cta==='true'){alm.cta_array={'cta':'true','cta_position':alm.cta_position,'cta_repeater':alm.cta_repeater,'cta_theme_repeater':alm.cta_theme_repeater,};}
62
- if(alm.restapi){var alm_template=wp.template(alm.restapi_template_id),rest_url=alm.restapi_base_url+'/'+alm.restapi_namespace+'/'+alm.restapi_endpoint,rest_data={posts_per_page:alm.posts_per_page,page:alm.page,offset:alm.offset,slug:alm.slug,canonical_url:alm.canonical_url,post_type:alm.post_type,post_format:alm.content.attr('data-post-format'),category:alm.content.attr('data-category'),category__not_in:alm.content.attr('data-category-not-in'),tag:alm.content.attr('data-tag'),tag__not_in:alm.content.attr('data-tag-not-in'),taxonomy:alm.content.attr('data-taxonomy'),taxonomy_terms:alm.content.attr('data-taxonomy-terms'),taxonomy_operator:alm.content.attr('data-taxonomy-operator'),taxonomy_relation:alm.content.attr('data-taxonomy-relation'),meta_key:alm.content.attr('data-meta-key'),meta_value:alm.content.attr('data-meta-value'),meta_compare:alm.content.attr('data-meta-compare'),meta_relation:alm.content.attr('data-meta-relation'),meta_type:alm.content.attr('data-meta-type'),author:alm.content.attr('data-author'),year:alm.content.attr('data-year'),month:alm.content.attr('data-month'),day:alm.content.attr('data-day'),post_status:alm.content.attr('data-post-status'),order:alm.content.attr('data-order'),orderby:alm.content.attr('data-orderby'),post__in:alm.content.attr('data-post-in'),post__not_in:alm.content.attr('data-post-not-in'),search:alm.content.attr('data-search'),custom_args:alm.content.attr('data-custom-args'),lang:alm.lang,preloaded:alm.preloaded,preloaded_amount:alm.preloaded_amount,seo_start_page:alm.start_page,id:el.attr('data-id')};$.ajax({type:"GET",url:rest_url,data:rest_data,dataType:"JSON",beforeSend:function(){if(alm.page!=1&&!alm.paging){alm.button.addClass('loading');}},success:function(results){var data,html=results.html,meta=results.meta,postcount=meta.postcount,totalposts=meta.totalposts;$.each(html,function(e){var result=html[e];if(alm.restapi_debug==='true'){console.log(result);}
63
- data+=alm_template(result);});var obj={'html':data,'meta':{'postcount':postcount,'totalposts':totalposts},}
64
- alm.AjaxLoadMore.success(obj,false);}});}
65
- else{$.ajax({type:"GET",url:alm_localize.ajaxurl,dataType:"JSON",data:{action:action,query_type:queryType,nonce:alm_localize.alm_nonce,cache_id:alm.cache_id,repeater:alm.repeater,theme_repeater:alm.theme_repeater,acf:alm.acf_array,nextpage:alm.nextpage_array,cta:alm.cta_array,comments:alm.comments_array,post_type:alm.post_type,sticky_posts:alm.sticky_posts,post_format:alm.content.attr('data-post-format'),category:alm.content.attr('data-category'),category__not_in:alm.content.attr('data-category-not-in'),tag:alm.content.attr('data-tag'),tag__not_in:alm.content.attr('data-tag-not-in'),taxonomy:alm.content.attr('data-taxonomy'),taxonomy_terms:alm.content.attr('data-taxonomy-terms'),taxonomy_operator:alm.content.attr('data-taxonomy-operator'),taxonomy_relation:alm.content.attr('data-taxonomy-relation'),meta_key:alm.content.attr('data-meta-key'),meta_value:alm.content.attr('data-meta-value'),meta_compare:alm.content.attr('data-meta-compare'),meta_relation:alm.content.attr('data-meta-relation'),meta_type:alm.content.attr('data-meta-type'),author:alm.content.attr('data-author'),year:alm.content.attr('data-year'),month:alm.content.attr('data-month'),day:alm.content.attr('data-day'),post_status:alm.content.attr('data-post-status'),order:alm.content.attr('data-order'),orderby:alm.content.attr('data-orderby'),post__in:alm.content.attr('data-post-in'),post__not_in:alm.content.attr('data-post-not-in'),exclude:alm.content.attr('data-exclude'),search:alm.content.attr('data-search'),custom_args:alm.content.attr('data-custom-args'),posts_per_page:alm.posts_per_page,page:alm.page,offset:alm.offset,preloaded:alm.preloaded,preloaded_amount:alm.preloaded_amount,seo_start_page:alm.start_page,paging:alm.paging,previous_post:alm.previous_post_array,lang:alm.lang,slug:alm.slug,canonical_url:alm.canonical_url,id:el.attr('data-id')},beforeSend:function(){if(alm.page!=1&&!alm.paging){alm.button.addClass('loading');}},success:function(data){if(queryType==='standard'){alm.AjaxLoadMore.success(data,false);}
66
- else if(queryType==='totalpages'&&alm.paging&&alm.nextpage){if($.isFunction($.fn.almBuildPagination)){$.fn.almBuildPagination(data,alm);}}
67
- else if(queryType==='totalposts'&&alm.paging){if($.isFunction($.fn.almBuildPagination)){$.fn.almBuildPagination(data,alm);}}},error:function(jqXHR,textStatus,errorThrown){alm.AjaxLoadMore.error(jqXHR,textStatus,errorThrown);}});}};if(alm.paging){if(alm.nextpage){alm.AjaxLoadMore.ajax('totalpages');}else{alm.AjaxLoadMore.ajax('totalposts');}}
68
- alm.AjaxLoadMore.success=function(data,is_cache){if(alm.previous_post){alm.AjaxLoadMore.getPreviousPost();}
69
- var html,meta,total;if(is_cache){html=data;}else{html=data.html;meta=data.meta;alm.posts=alm.posts+meta.postcount;total=meta.postcount;alm.totalposts=meta.totalposts;if(alm.preloaded==='true'){alm.totalposts=alm.totalposts-alm.preloaded_amount;}}
70
- alm.data=$(html);if(is_cache){total=alm.data.length;}
71
- if(alm.init){if(!alm.paging){alm.button.text(alm.button_label);}else{if(total>0){alm.el=$('<div class="alm-reveal"/>');alm.el.append('<div class="alm-paging-content"></div><div class="alm-paging-loading"></div>');$('.alm-paging-content',alm.el).append(alm.data).hide();alm.content.append(alm.el);alm.content.parent().removeClass('loading');alm.AjaxLoadMore.resetBtnText();$('.alm-paging-content',alm.el).fadeIn(alm.speed,'alm_easeInOutQuad',function(){var paddingT=parseInt(alm.content.css('padding-top')),paddingB=parseInt(alm.content.css('padding-bottom'));alm.content.css('height',alm.el.height()+paddingT+paddingB+'px');if($.isFunction($.fn.almFadePageControls)){$.fn.almFadePageControls(alm.btnWrap);}});}}
72
- if(total===0){if($.isFunction($.fn.almEmpty)){$.fn.almEmpty(alm);}}
73
- if(alm.isPaged){alm.posts_per_page=alm.content.attr('data-posts-per-page');alm.page=alm.start_page-1;}}
74
- if(total>0){if(!alm.paging){if(alm.previous_post){alm.el=$('<div class="alm-reveal alm-previous-post post-'+alm.previous_post_id+'" data-id="'+alm.previous_post_id+'" data-title="'+alm.previous_post_title+'" data-url="'+alm.previous_post_permalink+'" data-page="'+alm.page+'"/>');alm.el.append(alm.data).hide();}else{if(!alm.transition_container){alm.data.hide();alm.el=alm.data;}else{if(alm.init&&alm.start_page>1){var data=[],posts_per_page=parseInt(alm.posts_per_page);if(alm.cta==='true'){posts_per_page=posts_per_page+1;}
75
- var pages=Math.ceil(total/posts_per_page);for(var i=0;i<total;i+=posts_per_page){data.push(alm.data.slice(i,posts_per_page+i));}
76
- alm.el=alm.content;for(var k=0;k<data.length;k++){var p=0;if(alm.preloaded==='true'){p=1;}
77
- var div;if(k>0||alm.preloaded==='true'){var pagenum=(k+1+p);if(alm.permalink==='default'){div=$('<div class="alm-reveal alm-seo" data-url="'+alm.canonical_url+''+alm.search_value+'&paged='+pagenum+'" data-page="'+pagenum+'" />');}else{div=$('<div class="alm-reveal alm-seo" data-url="'+alm.canonical_url+'page/'+pagenum+'/'+alm.search_value+'" data-page="'+pagenum+'" />');}}else{div=$('<div class="alm-reveal alm-seo" data-url="'+alm.canonical_url+''+alm.search_value+'" data-page="1" />');}
78
- div.append(data[k]);div=$(div);alm.el.append(div).hide();}}
79
- else{if(alm.seo&&alm.page>0||alm.preloaded==='true'){var p=0;if(alm.preloaded==='true'){p=1;}
80
- var pagenum=(alm.page+1+p);if(alm.seo){if(alm.permalink==='default'){alm.el=$('<div class="alm-reveal alm-seo" data-url="'+alm.canonical_url+''+alm.search_value+'&paged='+pagenum+'" data-page="'+pagenum+'" />');}else{alm.el=$('<div class="alm-reveal alm-seo" data-url="'+alm.canonical_url+'page/'+pagenum+'/'+alm.search_value+'" data-page="'+pagenum+'" />');}}else{alm.el=$('<div class="alm-reveal" />');}}else{if(alm.seo){alm.el=$('<div class="alm-reveal alm-seo" data-url="'+alm.canonical_url+''+alm.search_value+'" data-page="1" />');}else{alm.el=$('<div class="alm-reveal" />');}}
81
- alm.el.append(alm.data).hide();}}}
82
- alm.content.append(alm.el);if(alm.transition==='fade'){if(alm.images_loaded==='true'){alm.el.almWaitForImages().done(function(){alm.el.fadeIn(alm.speed,'alm_easeInOutQuad',function(){alm.loading=false;if(!alm.paging){alm.button.delay(alm.speed).removeClass('loading');alm.container.delay(alm.speed).removeClass('alm-loading');alm.AjaxLoadMore.resetBtnText();}
83
- alm.AjaxLoadMore.triggerAddons(alm);});});}else{alm.el.fadeIn(alm.speed,'alm_easeInOutQuad',function(){alm.loading=false;if(!alm.paging){alm.button.delay(alm.speed).removeClass('loading');alm.container.delay(alm.speed).removeClass('loading');alm.AjaxLoadMore.resetBtnText();}
84
- alm.AjaxLoadMore.triggerAddons(alm);});}}else if(alm.transition==='none'){if(alm.images_loaded==='true'){alm.el.almWaitForImages().done(function(){alm.el.show();alm.AjaxLoadMore.triggerAddons(alm);});}else{alm.el.show();alm.AjaxLoadMore.triggerAddons(alm);}
85
- alm.loading=false;if(!alm.paging){alm.button.delay(alm.speed).removeClass('loading');alm.container.delay(alm.speed).removeClass('loading');alm.AjaxLoadMore.resetBtnText();}}else{if(alm.images_loaded==='true'){alm.el.almWaitForImages().done(function(){alm.el.slideDown(alm.speed,'alm_easeInOutQuad',function(){alm.loading=false;if(!alm.paging){alm.button.delay(alm.speed).removeClass('loading');alm.container.delay(alm.speed).removeClass('loading');alm.AjaxLoadMore.resetBtnText();}
86
- alm.AjaxLoadMore.triggerAddons(alm);});});}else{alm.el.slideDown(alm.speed,'alm_easeInOutQuad',function(){alm.loading=false;if(!alm.paging){alm.button.delay(alm.speed).removeClass('loading');alm.container.delay(alm.speed).removeClass('loading');alm.AjaxLoadMore.resetBtnText();}
87
- alm.AjaxLoadMore.triggerAddons(alm);});}}}else{if(!alm.init){$('.alm-paging-content',alm.el).html('').append(alm.data).almWaitForImages().done(function(){$('.alm-paging-loading',alm.el).fadeOut(alm.speed);if($.isFunction($.fn.almOnPagingComplete)){$.fn.almOnPagingComplete(alm);}
88
- alm.AjaxLoadMore.triggerAddons(alm);});}else{alm.AjaxLoadMore.triggerAddons(alm);}}
89
- if($.isFunction($.fn.almComplete)){if(alm.images_loaded==='true'){alm.el.almWaitForImages().done(function(){$.fn.almComplete(alm);});}else{$.fn.almComplete(alm);}}
90
- if(!alm.cache){if(alm.posts>=alm.totalposts&&!alm.previous_post){alm.AjaxLoadMore.triggerDone();}}else{if(total<alm.posts_per_page){alm.AjaxLoadMore.triggerDone();}}}else{if(!alm.paging){alm.button.delay(alm.speed).removeClass('loading').addClass('done');alm.AjaxLoadMore.resetBtnText();}
91
- alm.AjaxLoadMore.triggerDone();}
92
- if(alm.destroy_after!==undefined&&alm.destroy_after!==''){var currentPage=alm.page+1;if(alm.preload){currentPage++;}
93
- if(currentPage==alm.destroy_after){alm.disable_ajax=true;if(!alm.paging){alm.button.delay(alm.speed).fadeOut(alm.speed);}}}
94
- alm.init=false;};alm.AjaxLoadMore.pagingPreloadedInit=function(data){alm.el=$('<div class="alm-reveal"/>');alm.el.append('<div class="alm-paging-content">'+data+'</div><div class="alm-paging-loading"></div>');alm.content.append(alm.el);alm.content.parent().removeClass('loading');alm.AjaxLoadMore.resetBtnText();var paddingT=parseInt(alm.content.css('padding-top')),paddingB=parseInt(alm.content.css('padding-bottom'));alm.content.css('height',alm.el.height()+paddingT+paddingB+'px');if($.isFunction($.fn.almFadePageControls)){$.fn.almFadePageControls(alm.btnWrap);}}
95
- alm.AjaxLoadMore.pagingNextpageInit=function(data){alm.el=$('<div class="alm-reveal alm-nextpage"/>');alm.el.append('<div class="alm-paging-content">'+data+'</div><div class="alm-paging-loading"></div>');alm.el.appendTo(alm.content);alm.content.parent().removeClass('loading');alm.AjaxLoadMore.resetBtnText();var paddingT=parseInt(alm.content.css('padding-top')),paddingB=parseInt(alm.content.css('padding-bottom'));alm.content.css('height',alm.el.height()+paddingT+paddingB+'px');if($.isFunction($.fn.almSetNextPageVars)){$.fn.almSetNextPageVars(alm);}
96
- setTimeout(function(){if($.isFunction($.fn.almFadePageControls)){$.fn.almFadePageControls(alm.btnWrap);}
97
- if($.isFunction($.fn.almOnWindowResize)){$.fn.almOnWindowResize(alm);}},200);}
98
- alm.fetchingPreviousPost=false;alm.AjaxLoadMore.getPreviousPost=function(){alm.fetchingPreviousPost=true;$.ajax({type:"GET",dataType:"JSON",url:alm_localize.ajaxurl,data:{action:'alm_query_previous_post',id:alm.previous_post_id,taxonomy:alm.previous_post_taxonomy},success:function(data){if(data.has_previous_post){alm.content.attr('data-previous-post-id',data.prev_id);alm.previous_post_id=data.prev_id;alm.previous_post_permalink=data.prev_permalink;alm.previous_post_title=data.prev_title;alm.previous_post_slug=data.prev_slug;}else{if(!data.has_previous_post){alm.AjaxLoadMore.triggerDone();}}
99
- if($.isFunction($.fn.almSetPreviousPost)){$.fn.almSetPreviousPost(alm,data.current_id,data.permalink,data.title);}
100
- alm.fetchingPreviousPost=false;},error:function(jqXHR,textStatus,errorThrown){alm.AjaxLoadMore.error(jqXHR,textStatus,errorThrown);alm.fetchingPreviousPost=false;}});};alm.AjaxLoadMore.triggerAddons=function(alm){if($.isFunction($.fn.almSEO)&&alm.seo){$.fn.almSEO(alm);}
101
- if($.isFunction($.fn.almSetNextPage)){$.fn.almSetNextPage(alm);}};alm.AjaxLoadMore.triggerDone=function(){alm.loading=false;alm.finished=true;if(!alm.paging){alm.button.addClass('done');}
102
- if($.isFunction($.fn.almDone)){setTimeout(function(){$.fn.almDone(alm)},alm.speed+10);}};alm.AjaxLoadMore.resetBtnText=function(){if(alm.button_loading_label!==false){if(!alm.paging){alm.button.text(alm.button_label);}}};alm.AjaxLoadMore.error=function(jqXHR,textStatus,errorThrown){alm.loading=false;if(!alm.paging){alm.button.removeClass('loading');alm.AjaxLoadMore.resetBtnText();}
103
- console.log(errorThrown);};if(!alm.paging&&!alm.fetchingPreviousPost){alm.button.on('click',function(){if(alm.pause==='true'){alm.pause=false;alm.pause_override=false;alm.AjaxLoadMore.loadPosts();}
104
- if(!alm.loading&&!alm.finished&&!$(this).hasClass('done')){alm.loading=true;alm.page++;alm.AjaxLoadMore.loadPosts();}});}
105
- if(alm.paging){alm.window.bind('resizeEnd',function(){if($.isFunction($.fn.almOnWindowResize)){$.fn.almOnWindowResize(alm);}});alm.window.resize(function(){if(this.resizeTO){clearTimeout(this.resizeTO);}
106
- this.resizeTO=setTimeout(function(){$(this).trigger('resizeEnd');},250);});}
107
- alm.AjaxLoadMore.isVisible=function(){alm.visible=false;if(alm.el.is(":visible")){alm.visible=true;}
108
- return alm.visible;};if(alm.scroll&&!alm.paging){alm.window.bind("scroll touchstart",function(){if(alm.AjaxLoadMore.isVisible()&&!alm.fetchingPreviousPost){var content_offset=alm.button.offset(),top=Math.round(content_offset.top-(alm.window.height()-alm.scroll_distance));if(!alm.loading&&!alm.finished&&(alm.window.scrollTop()>=top)&&alm.page<(alm.max_pages-1)&&alm.proceed&&alm.pause==='true'&&alm.pause_override==='true'){alm.button.trigger('click');}
109
- else{if(!alm.loading&&!alm.finished&&(alm.window.scrollTop()>=top)&&alm.page<(alm.max_pages-1)&&alm.proceed&&alm.pause!=='true'){alm.page++;alm.AjaxLoadMore.loadPosts();}}}});}
110
- alm.AjaxLoadMore.init=function(){if(!alm.paging&&!alm.previous_post){if(alm.disable_ajax){alm.finished=true;alm.button.addClass('done');}else{if(alm.pause==='true'){alm.button.text(alm.button_label);alm.loading=false;}else{alm.AjaxLoadMore.loadPosts();}}}
111
- if(alm.previous_post){alm.AjaxLoadMore.getPreviousPost();alm.loading=false;}
112
- if(alm.nextpage){if($('.alm-nextpage').length>1){var alm_nextpage_pages=$('.alm-nextpage').length,alm_nextpage_total=$('.alm-nextpage').eq(0).data('total-pages');if(alm_nextpage_pages==alm_nextpage_total){alm.AjaxLoadMore.triggerDone();}}}}
113
- alm.AjaxLoadMore.init();setTimeout(function(){alm.proceed=true;},300);$.fn.almUpdateCurrentPage=function(current,obj,alm){alm.page=current;if(alm.nextpage&&!alm.paging){alm.page=alm.page-1;}
114
- var data='';if(alm.paging_init&&alm.preloaded==='true'){data=$('.alm-preloaded .alm-reveal',alm.el).html();$('.alm-preloaded',alm.el).remove();alm.preloaded_amount=0;alm.AjaxLoadMore.pagingPreloadedInit(data);alm.paging_init=false;alm.init=false;}
115
- else if(alm.paging_init&&alm.nextpage){data=$('.alm-nextpage',alm.el).html();$('.alm-nextpage',alm.el).remove();alm.AjaxLoadMore.pagingNextpageInit(data);alm.paging_init=false;alm.init=false;}
116
- else{alm.AjaxLoadMore.loadPosts();}};$.fn.almGetParentContainer=function(){return alm.el.closest('#ajax-load-more');v};$.fn.almGetObj=function(){return alm;};$.fn.almTriggerClick=function(){alm.button.trigger('click');};$.easing.alm_easeInOutQuad=function(x,t,b,c,d){if((t/=d/2)<1){return c/2*t*t+b;}
117
- return-c/2*((--t)*(t-2)-1)+b;};};$.fn.almFilter=function(transition,speed,data){if(data.target){$(".ajax-load-more-wrap[data-id='"+data.target+"']").each(function(e){var el=$(this);$.fn.almFilterTransition(transition,speed,data,el);});}else{$(".ajax-load-more-wrap").each(function(e){var el=$(this);$.fn.almFilterTransition(transition,speed,data,el);});}};$.fn.almFilterTransition=function(transition,speed,data,el){if(transition==='slide'){el.slideUp(speed,function(){$('.alm-listing',el).html('');$('.alm-btn-wrap',el).remove();el.fadeIn(speed);$.fn.almSetFilters(el,data);});}else if(transition==='fade'){el.fadeOut(speed,function(){$('.alm-listing',el).html('');$('.alm-btn-wrap',el).remove();el.fadeIn(speed);$.fn.almSetFilters(el,data);});}else{$('.alm-listing',el).html('');$('.alm-btn-wrap',el).remove();el.fadeIn(speed);$.fn.almSetFilters(el,data);}};$.fn.almSetFilters=function(el,data){$.each(data,function(key,value){key=key.replace(/\W+/g,'-').replace(/([a-z\d])([A-Z])/g,'$1-$2');$('.alm-listing',el).attr('data-'+key,value);});if($.isFunction($.fn.almFilterComplete)){$.fn.almFilterComplete();}
118
- if(data.target){$(".ajax-load-more-wrap[data-id="+data.target+"]").ajaxloadmore();}else{$(".ajax-load-more-wrap").ajaxloadmore();}};$.fn.ajaxloadmore=function(){return this.each(function(e){$(this).data('alm',new $.ajaxloadmore($(this),e));});};if($(".ajax-load-more-wrap").length){$(".ajax-load-more-wrap").ajaxloadmore();}})(jQuery);;(function(factory){if(typeof define==='function'&&define.amd){define(['jquery'],factory);}else if(typeof exports==='object'){module.exports=factory(require('jquery'));}else{factory(jQuery);}}(function($){var eventNamespace='almWaitForImages';$.almWaitForImages={hasImageProperties:['backgroundImage','listStyleImage','borderImage','borderCornerImage','cursor'],hasImageAttributes:['srcset']};$.expr[':']['has-src']=function(obj){return $(obj).is('img[src][src!=""]');};$.expr[':'].uncached=function(obj){if(!$(obj).is(':has-src')){return false;}
119
- return!obj.complete;};$.fn.almWaitForImages=function(){var allImgsLength=0;var allImgsLoaded=0;var deferred=$.Deferred();var finishedCallback;var eachCallback;var waitForAll;if($.isPlainObject(arguments[0])){waitForAll=arguments[0].waitForAll;eachCallback=arguments[0].each;finishedCallback=arguments[0].finished;}else{if(arguments.length===1&&$.type(arguments[0])==='boolean'){waitForAll=arguments[0];}else{finishedCallback=arguments[0];eachCallback=arguments[1];waitForAll=arguments[2];}}
120
- finishedCallback=finishedCallback||$.noop;eachCallback=eachCallback||$.noop;waitForAll=!!waitForAll;if(!$.isFunction(finishedCallback)||!$.isFunction(eachCallback)){throw new TypeError('An invalid callback was supplied.');}
121
- this.each(function(){var obj=$(this);var allImgs=[];var hasImgProperties=$.almWaitForImages.hasImageProperties||[];var hasImageAttributes=$.almWaitForImages.hasImageAttributes||[];var matchUrl=/url\(\s*(['"]?)(.*?)\1\s*\)/g;if(waitForAll){obj.find('*').addBack().each(function(){var element=$(this);if(element.is('img:has-src')){allImgs.push({src:element.attr('src'),element:element[0]});}
122
- $.each(hasImgProperties,function(i,property){var propertyValue=element.css(property);var match;if(!propertyValue){return true;}
123
- while(match=matchUrl.exec(propertyValue)){allImgs.push({src:match[2],element:element[0]});}});$.each(hasImageAttributes,function(i,attribute){var attributeValue=element.attr(attribute);var attributeValues;if(!attributeValue){return true;}
124
- attributeValues=attributeValue.split(',');$.each(attributeValues,function(i,value){value=$.trim(value).split(' ')[0];allImgs.push({src:value,element:element[0]});});});});}else{obj.find('img:has-src').each(function(){allImgs.push({src:this.src,element:this});});}
125
- allImgsLength=allImgs.length;allImgsLoaded=0;if(allImgsLength===0){finishedCallback.call(obj[0]);deferred.resolveWith(obj[0]);}
126
- $.each(allImgs,function(i,img){var image=new Image();var events='load.'+eventNamespace+' error.'+eventNamespace;$(image).one(events,function me(event){var eachArguments=[allImgsLoaded,allImgsLength,event.type=='load'];allImgsLoaded++;eachCallback.apply(img.element,eachArguments);deferred.notifyWith(img.element,eachArguments);$(this).off(events,me);if(allImgsLoaded==allImgsLength){finishedCallback.call(obj[0]);deferred.resolveWith(obj[0]);return false;}});image.src=img.src;});});return deferred.promise();};}));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
core/js/libs/jquery.waitforimages.js ADDED
@@ -0,0 +1,225 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*! almWaitForImages
2
+ jQuery Plugin
3
+ v2.0.2
4
+ Based on https://github.com/alexanderdickson/waitForImages
5
+ */
6
+ // Include almWaitForImages()
7
+ ;(function (factory) {
8
+ if (typeof define === 'function' && define.amd) {
9
+ // AMD. Register as an anonymous module.
10
+ define(['jquery'], factory);
11
+ } else if (typeof exports === 'object') {
12
+ // CommonJS / nodejs module
13
+ module.exports = factory(require('jquery'));
14
+ } else {
15
+ // Browser globals
16
+ factory(jQuery);
17
+ }
18
+ }(function ($) {
19
+ // Namespace all events.
20
+ var eventNamespace = 'almWaitForImages';
21
+
22
+ // CSS properties which contain references to images.
23
+ $.almWaitForImages = {
24
+ hasImageProperties: [
25
+ 'backgroundImage',
26
+ 'listStyleImage',
27
+ 'borderImage',
28
+ 'borderCornerImage',
29
+ 'cursor'
30
+ ],
31
+ hasImageAttributes: ['srcset']
32
+ };
33
+
34
+ // Custom selector to find all `img` elements with a valid `src` attribute.
35
+ $.expr[':']['has-src'] = function (obj) {
36
+ // Ensure we are dealing with an `img` element with a valid
37
+ // `src` attribute.
38
+ return $(obj).is('img[src][src!=""]');
39
+ };
40
+
41
+ // Custom selector to find images which are not already cached by the
42
+ // browser.
43
+ $.expr[':'].uncached = function (obj) {
44
+ // Ensure we are dealing with an `img` element with a valid
45
+ // `src` attribute.
46
+ if (!$(obj).is(':has-src')) {
47
+ return false;
48
+ }
49
+
50
+ return !obj.complete;
51
+ };
52
+
53
+ $.fn.almWaitForImages = function () {
54
+
55
+ var allImgsLength = 0;
56
+ var allImgsLoaded = 0;
57
+ var deferred = $.Deferred();
58
+
59
+ var finishedCallback;
60
+ var eachCallback;
61
+ var waitForAll;
62
+
63
+ // Handle options object (if passed).
64
+ if ($.isPlainObject(arguments[0])) {
65
+
66
+ waitForAll = arguments[0].waitForAll;
67
+ eachCallback = arguments[0].each;
68
+ finishedCallback = arguments[0].finished;
69
+
70
+ } else {
71
+
72
+ // Handle if using deferred object and only one param was passed in.
73
+ if (arguments.length === 1 && $.type(arguments[0]) === 'boolean') {
74
+ waitForAll = arguments[0];
75
+ } else {
76
+ finishedCallback = arguments[0];
77
+ eachCallback = arguments[1];
78
+ waitForAll = arguments[2];
79
+ }
80
+
81
+ }
82
+
83
+ // Handle missing callbacks.
84
+ finishedCallback = finishedCallback || $.noop;
85
+ eachCallback = eachCallback || $.noop;
86
+
87
+ // Convert waitForAll to Boolean
88
+ waitForAll = !! waitForAll;
89
+
90
+ // Ensure callbacks are functions.
91
+ if (!$.isFunction(finishedCallback) || !$.isFunction(eachCallback)) {
92
+ throw new TypeError('An invalid callback was supplied.');
93
+ }
94
+
95
+ this.each(function () {
96
+ // Build a list of all imgs, dependent on what images will
97
+ // be considered.
98
+ var obj = $(this);
99
+ var allImgs = [];
100
+ // CSS properties which may contain an image.
101
+ var hasImgProperties = $.almWaitForImages.hasImageProperties || [];
102
+ // Element attributes which may contain an image.
103
+ var hasImageAttributes = $.almWaitForImages.hasImageAttributes || [];
104
+ // To match `url()` references.
105
+ // Spec: http://www.w3.org/TR/CSS2/syndata.html#value-def-uri
106
+ var matchUrl = /url\(\s*(['"]?)(.*?)\1\s*\)/g;
107
+
108
+ if (waitForAll) {
109
+
110
+ // Get all elements (including the original), as any one of
111
+ // them could have a background image.
112
+ obj.find('*').addBack().each(function () {
113
+ var element = $(this);
114
+
115
+ // If an `img` element, add it. But keep iterating in
116
+ // case it has a background image too.
117
+ if (element.is('img:has-src')) {
118
+ allImgs.push({
119
+ src: element.attr('src'),
120
+ element: element[0]
121
+ });
122
+ }
123
+
124
+ $.each(hasImgProperties, function (i, property) {
125
+ var propertyValue = element.css(property);
126
+ var match;
127
+
128
+ // If it doesn't contain this property, skip.
129
+ if (!propertyValue) {
130
+ return true;
131
+ }
132
+
133
+ // Get all url() of this element.
134
+ while (match = matchUrl.exec(propertyValue)) {
135
+ allImgs.push({
136
+ src: match[2],
137
+ element: element[0]
138
+ });
139
+ }
140
+ });
141
+
142
+ $.each(hasImageAttributes, function (i, attribute) {
143
+ var attributeValue = element.attr(attribute);
144
+ var attributeValues;
145
+
146
+ // If it doesn't contain this property, skip.
147
+ if (!attributeValue) {
148
+ return true;
149
+ }
150
+
151
+ // Check for multiple comma separated images
152
+ attributeValues = attributeValue.split(',');
153
+
154
+ $.each(attributeValues, function(i, value) {
155
+ // Trim value and get string before first
156
+ // whitespace (for use with srcset).
157
+ value = $.trim(value).split(' ')[0];
158
+ allImgs.push({
159
+ src: value,
160
+ element: element[0]
161
+ });
162
+ });
163
+ });
164
+ });
165
+ } else {
166
+ // For images only, the task is simpler.
167
+ obj.find('img:has-src')
168
+ .each(function () {
169
+ allImgs.push({
170
+ src: this.src,
171
+ element: this
172
+ });
173
+ });
174
+ }
175
+
176
+ allImgsLength = allImgs.length;
177
+ allImgsLoaded = 0;
178
+
179
+ // If no images found, don't bother.
180
+ if (allImgsLength === 0) {
181
+ finishedCallback.call(obj[0]);
182
+ deferred.resolveWith(obj[0]);
183
+ }
184
+
185
+ $.each(allImgs, function (i, img) {
186
+
187
+ var image = new Image();
188
+ var events =
189
+ 'load.' + eventNamespace + ' error.' + eventNamespace;
190
+
191
+ // Handle the image loading and error with the same callback.
192
+ $(image).one(events, function me (event) {
193
+ // If an error occurred with loading the image, set the
194
+ // third argument accordingly.
195
+ var eachArguments = [
196
+ allImgsLoaded,
197
+ allImgsLength,
198
+ event.type == 'load'
199
+ ];
200
+ allImgsLoaded++;
201
+
202
+ eachCallback.apply(img.element, eachArguments);
203
+ deferred.notifyWith(img.element, eachArguments);
204
+
205
+ // Unbind the event listeners. I use this in addition to
206
+ // `one` as one of those events won't be called (either
207
+ // 'load' or 'error' will be called).
208
+ $(this).off(events, me);
209
+
210
+ if (allImgsLoaded == allImgsLength) {
211
+ finishedCallback.call(obj[0]);
212
+ deferred.resolveWith(obj[0]);
213
+ return false;
214
+ }
215
+
216
+ });
217
+
218
+ image.src = img.src;
219
+ });
220
+ });
221
+
222
+ return deferred.promise();
223
+
224
+ };
225
+ }));
core/js/modules/almMasonry.js ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ almMasonry
3
+
4
+ Function to trigger built-in Ajax Load More masonry
5
+
6
+ @param container object
7
+ @param items object
8
+ @param selector string
9
+ @since 3.1
10
+ */
11
+
12
+ let almMasonryInit = true; // flag
13
+
14
+ let almMasonry = (container, items, selector) => {
15
+
16
+ if(almMasonryInit){
17
+ container.imagesLoaded( () => {
18
+ items.fadeIn(250);
19
+ container.masonry({
20
+ itemSelector: selector,
21
+ });
22
+ almMasonryInit = false;
23
+ });
24
+ }
25
+ else{
26
+ container.append( items );
27
+ container.imagesLoaded( () => {
28
+ items.show();
29
+ container.masonry( 'appended', items );
30
+ });
31
+ }
32
+ };
core/js/vendor/pace/pace.js ADDED
@@ -0,0 +1,935 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function() {
2
+ var AjaxMonitor, Bar, DocumentMonitor, ElementMonitor, ElementTracker, EventLagMonitor, Evented, Events, NoTargetError, Pace, RequestIntercept, SOURCE_KEYS, Scaler, SocketRequestTracker, XHRRequestTracker, animation, avgAmplitude, bar, cancelAnimation, cancelAnimationFrame, defaultOptions, extend, extendNative, getFromDOM, getIntercept, handlePushState, ignoreStack, init, now, options, requestAnimationFrame, result, runAnimation, scalers, shouldIgnoreURL, shouldTrack, source, sources, uniScaler, _WebSocket, _XDomainRequest, _XMLHttpRequest, _i, _intercept, _len, _pushState, _ref, _ref1, _replaceState,
3
+ __slice = [].slice,
4
+ __hasProp = {}.hasOwnProperty,
5
+ __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
6
+ __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
7
+
8
+ defaultOptions = {
9
+ catchupTime: 100,
10
+ initialRate: .03,
11
+ minTime: 250,
12
+ ghostTime: 100,
13
+ maxProgressPerFrame: 20,
14
+ easeFactor: 1.25,
15
+ startOnPageLoad: true,
16
+ restartOnPushState: true,
17
+ restartOnRequestAfter: 500,
18
+ target: 'body',
19
+ elements: {
20
+ checkInterval: 100,
21
+ selectors: ['body']
22
+ },
23
+ eventLag: {
24
+ minSamples: 10,
25
+ sampleCount: 3,
26
+ lagThreshold: 3
27
+ },
28
+ ajax: {
29
+ trackMethods: ['GET'],
30
+ trackWebSockets: true,
31
+ ignoreURLs: []
32
+ }
33
+ };
34
+
35
+ now = function() {
36
+ var _ref;
37
+ return (_ref = typeof performance !== "undefined" && performance !== null ? typeof performance.now === "function" ? performance.now() : void 0 : void 0) != null ? _ref : +(new Date);
38
+ };
39
+
40
+ requestAnimationFrame = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame;
41
+
42
+ cancelAnimationFrame = window.cancelAnimationFrame || window.mozCancelAnimationFrame;
43
+
44
+ if (requestAnimationFrame == null) {
45
+ requestAnimationFrame = function(fn) {
46
+ return setTimeout(fn, 50);
47
+ };
48
+ cancelAnimationFrame = function(id) {
49
+ return clearTimeout(id);
50
+ };
51
+ }
52
+
53
+ runAnimation = function(fn) {
54
+ var last, tick;
55
+ last = now();
56
+ tick = function() {
57
+ var diff;
58
+ diff = now() - last;
59
+ if (diff >= 33) {
60
+ last = now();
61
+ return fn(diff, function() {
62
+ return requestAnimationFrame(tick);
63
+ });
64
+ } else {
65
+ return setTimeout(tick, 33 - diff);
66
+ }
67
+ };
68
+ return tick();
69
+ };
70
+
71
+ result = function() {
72
+ var args, key, obj;
73
+ obj = arguments[0], key = arguments[1], args = 3 <= arguments.length ? __slice.call(arguments, 2) : [];
74
+ if (typeof obj[key] === 'function') {
75
+ return obj[key].apply(obj, args);
76
+ } else {
77
+ return obj[key];
78
+ }
79
+ };
80
+
81
+ extend = function() {
82
+ var key, out, source, sources, val, _i, _len;
83
+ out = arguments[0], sources = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
84
+ for (_i = 0, _len = sources.length; _i < _len; _i++) {
85
+ source = sources[_i];
86
+ if (source) {
87
+ for (key in source) {
88
+ if (!__hasProp.call(source, key)) continue;
89
+ val = source[key];
90
+ if ((out[key] != null) && typeof out[key] === 'object' && (val != null) && typeof val === 'object') {
91
+ extend(out[key], val);
92
+ } else {
93
+ out[key] = val;
94
+ }
95
+ }
96
+ }
97
+ }
98
+ return out;
99
+ };
100
+
101
+ avgAmplitude = function(arr) {
102
+ var count, sum, v, _i, _len;
103
+ sum = count = 0;
104
+ for (_i = 0, _len = arr.length; _i < _len; _i++) {
105
+ v = arr[_i];
106
+ sum += Math.abs(v);
107
+ count++;
108
+ }
109
+ return sum / count;
110
+ };
111
+
112
+ getFromDOM = function(key, json) {
113
+ var data, e, el;
114
+ if (key == null) {
115
+ key = 'options';
116
+ }
117
+ if (json == null) {
118
+ json = true;
119
+ }
120
+ el = document.querySelector("[data-pace-" + key + "]");
121
+ if (!el) {
122
+ return;
123
+ }
124
+ data = el.getAttribute("data-pace-" + key);
125
+ if (!json) {
126
+ return data;
127
+ }
128
+ try {
129
+ return JSON.parse(data);
130
+ } catch (_error) {
131
+ e = _error;
132
+ return typeof console !== "undefined" && console !== null ? console.error("Error parsing inline pace options", e) : void 0;
133
+ }
134
+ };
135
+
136
+ Evented = (function() {
137
+ function Evented() {}
138
+
139
+ Evented.prototype.on = function(event, handler, ctx, once) {
140
+ var _base;
141
+ if (once == null) {
142
+ once = false;
143
+ }
144
+ if (this.bindings == null) {
145
+ this.bindings = {};
146
+ }
147
+ if ((_base = this.bindings)[event] == null) {
148
+ _base[event] = [];
149
+ }
150
+ return this.bindings[event].push({
151
+ handler: handler,
152
+ ctx: ctx,
153
+ once: once
154
+ });
155
+ };
156
+
157
+ Evented.prototype.once = function(event, handler, ctx) {
158
+ return this.on(event, handler, ctx, true);
159
+ };
160
+
161
+ Evented.prototype.off = function(event, handler) {
162
+ var i, _ref, _results;
163
+ if (((_ref = this.bindings) != null ? _ref[event] : void 0) == null) {
164
+ return;
165
+ }
166
+ if (handler == null) {
167
+ return delete this.bindings[event];
168
+ } else {
169
+ i = 0;
170
+ _results = [];
171
+ while (i < this.bindings[event].length) {
172
+ if (this.bindings[event][i].handler === handler) {
173
+ _results.push(this.bindings[event].splice(i, 1));
174
+ } else {
175
+ _results.push(i++);
176
+ }
177
+ }
178
+ return _results;
179
+ }
180
+ };
181
+
182
+ Evented.prototype.trigger = function() {
183
+ var args, ctx, event, handler, i, once, _ref, _ref1, _results;
184
+ event = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
185
+ if ((_ref = this.bindings) != null ? _ref[event] : void 0) {
186
+ i = 0;
187
+ _results = [];
188
+ while (i < this.bindings[event].length) {
189
+ _ref1 = this.bindings[event][i], handler = _ref1.handler, ctx = _ref1.ctx, once = _ref1.once;
190
+ handler.apply(ctx != null ? ctx : this, args);
191
+ if (once) {
192
+ _results.push(this.bindings[event].splice(i, 1));
193
+ } else {
194
+ _results.push(i++);
195
+ }
196
+ }
197
+ return _results;
198
+ }
199
+ };
200
+
201
+ return Evented;
202
+
203
+ })();
204
+
205
+ Pace = window.Pace || {};
206
+
207
+ window.Pace = Pace;
208
+
209
+ extend(Pace, Evented.prototype);
210
+
211
+ options = Pace.options = extend({}, defaultOptions, window.paceOptions, getFromDOM());
212
+
213
+ _ref = ['ajax', 'document', 'eventLag', 'elements'];
214
+ for (_i = 0, _len = _ref.length; _i < _len; _i++) {
215
+ source = _ref[_i];
216
+ if (options[source] === true) {
217
+ options[source] = defaultOptions[source];
218
+ }
219
+ }
220
+
221
+ NoTargetError = (function(_super) {
222
+ __extends(NoTargetError, _super);
223
+
224
+ function NoTargetError() {
225
+ _ref1 = NoTargetError.__super__.constructor.apply(this, arguments);
226
+ return _ref1;
227
+ }
228
+
229
+ return NoTargetError;
230
+
231
+ })(Error);
232
+
233
+ Bar = (function() {
234
+ function Bar() {
235
+ this.progress = 0;
236
+ }
237
+
238
+ Bar.prototype.getElement = function() {
239
+ var targetElement;
240
+ if (this.el == null) {
241
+ targetElement = document.querySelector(options.target);
242
+ if (!targetElement) {
243
+ throw new NoTargetError;
244
+ }
245
+ this.el = document.createElement('div');
246
+ this.el.className = "pace pace-active";
247
+ document.body.className = document.body.className.replace(/pace-done/g, '');
248
+ document.body.className += ' pace-running';
249
+ this.el.innerHTML = '<div class="pace-progress">\n <div class="pace-progress-inner"></div>\n</div>\n<div class="pace-activity"></div>';
250
+ if (targetElement.firstChild != null) {
251
+ targetElement.insertBefore(this.el, targetElement.firstChild);
252
+ } else {
253
+ targetElement.appendChild(this.el);
254
+ }
255
+ }
256
+ return this.el;
257
+ };
258
+
259
+ Bar.prototype.finish = function() {
260
+ var el;
261
+ el = this.getElement();
262
+ el.className = el.className.replace('pace-active', '');
263
+ el.className += ' pace-inactive';
264
+ document.body.className = document.body.className.replace('pace-running', '');
265
+ return document.body.className += ' pace-done';
266
+ };
267
+
268
+ Bar.prototype.update = function(prog) {
269
+ this.progress = prog;
270
+ return this.render();
271
+ };
272
+
273
+ Bar.prototype.destroy = function() {
274
+ try {
275
+ this.getElement().parentNode.removeChild(this.getElement());
276
+ } catch (_error) {
277
+ NoTargetError = _error;
278
+ }
279
+ return this.el = void 0;
280
+ };
281
+
282
+ Bar.prototype.render = function() {
283
+ var el, key, progressStr, transform, _j, _len1, _ref2;
284
+ if (document.querySelector(options.target) == null) {
285
+ return false;
286
+ }
287
+ el = this.getElement();
288
+ transform = "translate3d(" + this.progress + "%, 0, 0)";
289
+ _ref2 = ['webkitTransform', 'msTransform', 'transform'];
290
+ for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) {
291
+ key = _ref2[_j];
292
+ el.children[0].style[key] = transform;
293
+ }
294
+ if (!this.lastRenderedProgress || this.lastRenderedProgress | 0 !== this.progress | 0) {
295
+ el.children[0].setAttribute('data-progress-text', "" + (this.progress | 0) + "%");
296
+ if (this.progress >= 100) {
297
+ progressStr = '99';
298
+ } else {
299
+ progressStr = this.progress < 10 ? "0" : "";
300
+ progressStr += this.progress | 0;
301
+ }
302
+ el.children[0].setAttribute('data-progress', "" + progressStr);
303
+ }
304
+ return this.lastRenderedProgress = this.progress;
305
+ };
306
+
307
+ Bar.prototype.done = function() {
308
+ return this.progress >= 100;
309
+ };
310
+
311
+ return Bar;
312
+
313
+ })();
314
+
315
+ Events = (function() {
316
+ function Events() {
317
+ this.bindings = {};
318
+ }
319
+
320
+ Events.prototype.trigger = function(name, val) {
321
+ var binding, _j, _len1, _ref2, _results;
322
+ if (this.bindings[name] != null) {
323
+ _ref2 = this.bindings[name];
324
+ _results = [];
325
+ for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) {
326
+ binding = _ref2[_j];
327
+ _results.push(binding.call(this, val));
328
+ }
329
+ return _results;
330
+ }
331
+ };
332
+
333
+ Events.prototype.on = function(name, fn) {
334
+ var _base;
335
+ if ((_base = this.bindings)[name] == null) {
336
+ _base[name] = [];
337
+ }
338
+ return this.bindings[name].push(fn);
339
+ };
340
+
341
+ return Events;
342
+
343
+ })();
344
+
345
+ _XMLHttpRequest = window.XMLHttpRequest;
346
+
347
+ _XDomainRequest = window.XDomainRequest;
348
+
349
+ _WebSocket = window.WebSocket;
350
+
351
+ extendNative = function(to, from) {
352
+ var e, key, _results;
353
+ _results = [];
354
+ for (key in from.prototype) {
355
+ try {
356
+ if ((to[key] == null) && typeof from[key] !== 'function') {
357
+ if (typeof Object.defineProperty === 'function') {
358
+ _results.push(Object.defineProperty(to, key, {
359
+ get: function() {
360
+ return from.prototype[key];
361
+ },
362
+ configurable: true,
363
+ enumerable: true
364
+ }));
365
+ } else {
366
+ _results.push(to[key] = from.prototype[key]);
367
+ }
368
+ } else {
369
+ _results.push(void 0);
370
+ }
371
+ } catch (_error) {
372
+ e = _error;
373
+ }
374
+ }
375
+ return _results;
376
+ };
377
+
378
+ ignoreStack = [];
379
+
380
+ Pace.ignore = function() {
381
+ var args, fn, ret;
382
+ fn = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
383
+ ignoreStack.unshift('ignore');
384
+ ret = fn.apply(null, args);
385
+ ignoreStack.shift();
386
+ return ret;
387
+ };
388
+
389
+ Pace.track = function() {
390
+ var args, fn, ret;
391
+ fn = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
392
+ ignoreStack.unshift('track');
393
+ ret = fn.apply(null, args);
394
+ ignoreStack.shift();
395
+ return ret;
396
+ };
397
+
398
+ shouldTrack = function(method) {
399
+ var _ref2;
400
+ if (method == null) {
401
+ method = 'GET';
402
+ }
403
+ if (ignoreStack[0] === 'track') {
404
+ return 'force';
405
+ }
406
+ if (!ignoreStack.length && options.ajax) {
407
+ if (method === 'socket' && options.ajax.trackWebSockets) {
408
+ return true;
409
+ } else if (_ref2 = method.toUpperCase(), __indexOf.call(options.ajax.trackMethods, _ref2) >= 0) {
410
+ return true;
411
+ }
412
+ }
413
+ return false;
414
+ };
415
+
416
+ RequestIntercept = (function(_super) {
417
+ __extends(RequestIntercept, _super);
418
+
419
+ function RequestIntercept() {
420
+ var monitorXHR,
421
+ _this = this;
422
+ RequestIntercept.__super__.constructor.apply(this, arguments);
423
+ monitorXHR = function(req) {
424
+ var _open;
425
+ _open = req.open;
426
+ return req.open = function(type, url, async) {
427
+ if (shouldTrack(type)) {
428
+ _this.trigger('request', {
429
+ type: type,
430
+ url: url,
431
+ request: req
432
+ });
433
+ }
434
+ return _open.apply(req, arguments);
435
+ };
436
+ };
437
+ window.XMLHttpRequest = function(flags) {
438
+ var req;
439
+ req = new _XMLHttpRequest(flags);
440
+ monitorXHR(req);
441
+ return req;
442
+ };
443
+ try {
444
+ extendNative(window.XMLHttpRequest, _XMLHttpRequest);
445
+ } catch (_error) {}
446
+ if (_XDomainRequest != null) {
447
+ window.XDomainRequest = function() {
448
+ var req;
449
+ req = new _XDomainRequest;
450
+ monitorXHR(req);
451
+ return req;
452
+ };
453
+ try {
454
+ extendNative(window.XDomainRequest, _XDomainRequest);
455
+ } catch (_error) {}
456
+ }
457
+ if ((_WebSocket != null) && options.ajax.trackWebSockets) {
458
+ window.WebSocket = function(url, protocols) {
459
+ var req;
460
+ if (protocols != null) {
461
+ req = new _WebSocket(url, protocols);
462
+ } else {
463
+ req = new _WebSocket(url);
464
+ }
465
+ if (shouldTrack('socket')) {
466
+ _this.trigger('request', {
467
+ type: 'socket',
468
+ url: url,
469
+ protocols: protocols,
470
+ request: req
471
+ });
472
+ }
473
+ return req;
474
+ };
475
+ try {
476
+ extendNative(window.WebSocket, _WebSocket);
477
+ } catch (_error) {}
478
+ }
479
+ }
480
+
481
+ return RequestIntercept;
482
+
483
+ })(Events);
484
+
485
+ _intercept = null;
486
+
487
+ getIntercept = function() {
488
+ if (_intercept == null) {
489
+ _intercept = new RequestIntercept;
490
+ }
491
+ return _intercept;
492
+ };
493
+
494
+ shouldIgnoreURL = function(url) {
495
+ var pattern, _j, _len1, _ref2;
496
+ _ref2 = options.ajax.ignoreURLs;
497
+ for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) {
498
+ pattern = _ref2[_j];
499
+ if (typeof pattern === 'string') {
500
+ if (url.indexOf(pattern) !== -1) {
501
+ return true;
502
+ }
503
+ } else {
504
+ if (pattern.test(url)) {
505
+ return true;
506
+ }
507
+ }
508
+ }
509
+ return false;
510
+ };
511
+
512
+ getIntercept().on('request', function(_arg) {
513
+ var after, args, request, type, url;
514
+ type = _arg.type, request = _arg.request, url = _arg.url;
515
+ if (shouldIgnoreURL(url)) {
516
+ return;
517
+ }
518
+ if (!Pace.running && (options.restartOnRequestAfter !== false || shouldTrack(type) === 'force')) {
519
+ args = arguments;
520
+ after = options.restartOnRequestAfter || 0;
521
+ if (typeof after === 'boolean') {
522
+ after = 0;
523
+ }
524
+ return setTimeout(function() {
525
+ var stillActive, _j, _len1, _ref2, _ref3, _results;
526
+ if (type === 'socket') {
527
+ stillActive = request.readyState < 2;
528
+ } else {
529
+ stillActive = (0 < (_ref2 = request.readyState) && _ref2 < 4);
530
+ }
531
+ if (stillActive) {
532
+ Pace.restart();
533
+ _ref3 = Pace.sources;
534
+ _results = [];
535
+ for (_j = 0, _len1 = _ref3.length; _j < _len1; _j++) {
536
+ source = _ref3[_j];
537
+ if (source instanceof AjaxMonitor) {
538
+ source.watch.apply(source, args);
539
+ break;
540
+ } else {
541
+ _results.push(void 0);
542
+ }
543
+ }
544
+ return _results;
545
+ }
546
+ }, after);
547
+ }
548
+ });
549
+
550
+ AjaxMonitor = (function() {
551
+ function AjaxMonitor() {
552
+ var _this = this;
553
+ this.elements = [];
554
+ getIntercept().on('request', function() {
555
+ return _this.watch.apply(_this, arguments);
556
+ });
557
+ }
558
+
559
+ AjaxMonitor.prototype.watch = function(_arg) {
560
+ var request, tracker, type, url;
561
+ type = _arg.type, request = _arg.request, url = _arg.url;
562
+ if (shouldIgnoreURL(url)) {
563
+ return;
564
+ }
565
+ if (type === 'socket') {
566
+ tracker = new SocketRequestTracker(request);
567
+ } else {
568
+ tracker = new XHRRequestTracker(request);
569
+ }
570
+ return this.elements.push(tracker);
571
+ };
572
+
573
+ return AjaxMonitor;
574
+
575
+ })();
576
+
577
+ XHRRequestTracker = (function() {
578
+ function XHRRequestTracker(request) {
579
+ var event, size, _j, _len1, _onreadystatechange, _ref2,
580
+ _this = this;
581
+ this.progress = 0;
582
+ if (window.ProgressEvent != null) {
583
+ size = null;
584
+ request.addEventListener('progress', function(evt) {
585
+ if (evt.lengthComputable) {
586
+ return _this.progress = 100 * evt.loaded / evt.total;
587
+ } else {
588
+ return _this.progress = _this.progress + (100 - _this.progress) / 2;
589
+ }
590
+ }, false);
591
+ _ref2 = ['load', 'abort', 'timeout', 'error'];
592
+ for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) {
593
+ event = _ref2[_j];
594
+ request.addEventListener(event, function() {
595
+ return _this.progress = 100;
596
+ }, false);
597
+ }
598
+ } else {
599
+ _onreadystatechange = request.onreadystatechange;
600
+ request.onreadystatechange = function() {
601
+ var _ref3;
602
+ if ((_ref3 = request.readyState) === 0 || _ref3 === 4) {
603
+ _this.progress = 100;
604
+ } else if (request.readyState === 3) {
605
+ _this.progress = 50;
606
+ }
607
+ return typeof _onreadystatechange === "function" ? _onreadystatechange.apply(null, arguments) : void 0;
608
+ };
609
+ }
610
+ }
611
+
612
+ return XHRRequestTracker;
613
+
614
+ })();
615
+
616
+ SocketRequestTracker = (function() {
617
+ function SocketRequestTracker(request) {
618
+ var event, _j, _len1, _ref2,
619
+ _this = this;
620
+ this.progress = 0;
621
+ _ref2 = ['error', 'open'];
622
+ for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) {
623
+ event = _ref2[_j];
624
+ request.addEventListener(event, function() {
625
+ return _this.progress = 100;
626
+ }, false);
627
+ }
628
+ }
629
+
630
+ return SocketRequestTracker;
631
+
632
+ })();
633
+
634
+ ElementMonitor = (function() {
635
+ function ElementMonitor(options) {
636
+ var selector, _j, _len1, _ref2;
637
+ if (options == null) {
638
+ options = {};
639
+ }
640
+ this.elements = [];
641
+ if (options.selectors == null) {
642
+ options.selectors = [];
643
+ }
644
+ _ref2 = options.selectors;
645
+ for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) {
646
+ selector = _ref2[_j];
647
+ this.elements.push(new ElementTracker(selector));
648
+ }
649
+ }
650
+
651
+ return ElementMonitor;
652
+
653
+ })();
654
+
655
+ ElementTracker = (function() {
656
+ function ElementTracker(selector) {
657
+ this.selector = selector;
658
+ this.progress = 0;
659
+ this.check();
660
+ }
661
+
662
+ ElementTracker.prototype.check = function() {
663
+ var _this = this;
664
+ if (document.querySelector(this.selector)) {
665
+ return this.done();
666
+ } else {
667
+ return setTimeout((function() {
668
+ return _this.check();
669
+ }), options.elements.checkInterval);
670
+ }
671
+ };
672
+
673
+ ElementTracker.prototype.done = function() {
674
+ return this.progress = 100;
675
+ };
676
+
677
+ return ElementTracker;
678
+
679
+ })();
680
+
681
+ DocumentMonitor = (function() {
682
+ DocumentMonitor.prototype.states = {
683
+ loading: 0,
684
+ interactive: 50,
685
+ complete: 100
686
+ };
687
+
688
+ function DocumentMonitor() {
689
+ var _onreadystatechange, _ref2,
690
+ _this = this;
691
+ this.progress = (_ref2 = this.states[document.readyState]) != null ? _ref2 : 100;
692
+ _onreadystatechange = document.onreadystatechange;
693
+ document.onreadystatechange = function() {
694
+ if (_this.states[document.readyState] != null) {
695
+ _this.progress = _this.states[document.readyState];
696
+ }
697
+ return typeof _onreadystatechange === "function" ? _onreadystatechange.apply(null, arguments) : void 0;
698
+ };
699
+ }
700
+
701
+ return DocumentMonitor;
702
+
703
+ })();
704
+
705
+ EventLagMonitor = (function() {
706
+ function EventLagMonitor() {
707
+ var avg, interval, last, points, samples,
708
+ _this = this;
709
+ this.progress = 0;
710
+ avg = 0;
711
+ samples = [];
712
+ points = 0;
713
+ last = now();
714
+ interval = setInterval(function() {
715
+ var diff;
716
+ diff = now() - last - 50;
717
+ last = now();
718
+ samples.push(diff);
719
+ if (samples.length > options.eventLag.sampleCount) {
720
+ samples.shift();
721
+ }
722
+ avg = avgAmplitude(samples);
723
+ if (++points >= options.eventLag.minSamples && avg < options.eventLag.lagThreshold) {
724
+ _this.progress = 100;
725
+ return clearInterval(interval);
726
+ } else {
727
+ return _this.progress = 100 * (3 / (avg + 3));
728
+ }
729
+ }, 50);
730
+ }
731
+
732
+ return EventLagMonitor;
733
+
734
+ })();
735
+
736
+ Scaler = (function() {
737
+ function Scaler(source) {
738
+ this.source = source;
739
+ this.last = this.sinceLastUpdate = 0;
740
+ this.rate = options.initialRate;
741
+ this.catchup = 0;
742
+ this.progress = this.lastProgress = 0;
743
+ if (this.source != null) {
744
+ this.progress = result(this.source, 'progress');
745
+ }
746
+ }
747
+
748
+ Scaler.prototype.tick = function(frameTime, val) {
749
+ var scaling;
750
+ if (val == null) {
751
+ val = result(this.source, 'progress');
752
+ }
753
+ if (val >= 100) {
754
+ this.done = true;
755
+ }
756
+ if (val === this.last) {
757
+ this.sinceLastUpdate += frameTime;
758
+ } else {
759
+ if (this.sinceLastUpdate) {
760
+ this.rate = (val - this.last) / this.sinceLastUpdate;
761
+ }
762
+ this.catchup = (val - this.progress) / options.catchupTime;
763
+ this.sinceLastUpdate = 0;
764
+ this.last = val;
765
+ }
766
+ if (val > this.progress) {
767
+ this.progress += this.catchup * frameTime;
768
+ }
769
+ scaling = 1 - Math.pow(this.progress / 100, options.easeFactor);
770
+ this.progress += scaling * this.rate * frameTime;
771
+ this.progress = Math.min(this.lastProgress + options.maxProgressPerFrame, this.progress);
772
+ this.progress = Math.max(0, this.progress);
773
+ this.progress = Math.min(100, this.progress);
774
+ this.lastProgress = this.progress;
775
+ return this.progress;
776
+ };
777
+
778
+ return Scaler;
779
+
780
+ })();
781
+
782
+ sources = null;
783
+
784
+ scalers = null;
785
+
786
+ bar = null;
787
+
788
+ uniScaler = null;
789
+
790
+ animation = null;
791
+
792
+ cancelAnimation = null;
793
+
794
+ Pace.running = false;
795
+
796
+ handlePushState = function() {
797
+ if (options.restartOnPushState) {
798
+ return Pace.restart();
799
+ }
800
+ };
801
+
802
+ if (window.history.pushState != null) {
803
+ _pushState = window.history.pushState;
804
+ window.history.pushState = function() {
805
+ handlePushState();
806
+ return _pushState.apply(window.history, arguments);
807
+ };
808
+ }
809
+
810
+ if (window.history.replaceState != null) {
811
+ _replaceState = window.history.replaceState;
812
+ window.history.replaceState = function() {
813
+ handlePushState();
814
+ return _replaceState.apply(window.history, arguments);
815
+ };
816
+ }
817
+
818
+ SOURCE_KEYS = {
819
+ ajax: AjaxMonitor,
820
+ elements: ElementMonitor,
821
+ document: DocumentMonitor,
822
+ eventLag: EventLagMonitor
823
+ };
824
+
825
+ (init = function() {
826
+ var type, _j, _k, _len1, _len2, _ref2, _ref3, _ref4;
827
+ Pace.sources = sources = [];
828
+ _ref2 = ['ajax', 'elements', 'document', 'eventLag'];
829
+ for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) {
830
+ type = _ref2[_j];
831
+ if (options[type] !== false) {
832
+ sources.push(new SOURCE_KEYS[type](options[type]));
833
+ }
834
+ }
835
+ _ref4 = (_ref3 = options.extraSources) != null ? _ref3 : [];
836
+ for (_k = 0, _len2 = _ref4.length; _k < _len2; _k++) {
837
+ source = _ref4[_k];
838
+ sources.push(new source(options));
839
+ }
840
+ Pace.bar = bar = new Bar;
841
+ scalers = [];
842
+ return uniScaler = new Scaler;
843
+ })();
844
+
845
+ Pace.stop = function() {
846
+ Pace.trigger('stop');
847
+ Pace.running = false;
848
+ bar.destroy();
849
+ cancelAnimation = true;
850
+ if (animation != null) {
851
+ if (typeof cancelAnimationFrame === "function") {
852
+ cancelAnimationFrame(animation);
853
+ }
854
+ animation = null;
855
+ }
856
+ return init();
857
+ };
858
+
859
+ Pace.restart = function() {
860
+ Pace.trigger('restart');
861
+ Pace.stop();
862
+ return Pace.start();
863
+ };
864
+
865
+ Pace.go = function() {
866
+ var start;
867
+ Pace.running = true;
868
+ bar.render();
869
+ start = now();
870
+ cancelAnimation = false;
871
+ return animation = runAnimation(function(frameTime, enqueueNextFrame) {
872
+ var avg, count, done, element, elements, i, j, remaining, scaler, scalerList, sum, _j, _k, _len1, _len2, _ref2;
873
+ remaining = 100 - bar.progress;
874
+ count = sum = 0;
875
+ done = true;
876
+ for (i = _j = 0, _len1 = sources.length; _j < _len1; i = ++_j) {
877
+ source = sources[i];
878
+ scalerList = scalers[i] != null ? scalers[i] : scalers[i] = [];
879
+ elements = (_ref2 = source.elements) != null ? _ref2 : [source];
880
+ for (j = _k = 0, _len2 = elements.length; _k < _len2; j = ++_k) {
881
+ element = elements[j];
882
+ scaler = scalerList[j] != null ? scalerList[j] : scalerList[j] = new Scaler(element);
883
+ done &= scaler.done;
884
+ if (scaler.done) {
885
+ continue;
886
+ }
887
+ count++;
888
+ sum += scaler.tick(frameTime);
889
+ }
890
+ }
891
+ avg = sum / count;
892
+ bar.update(uniScaler.tick(frameTime, avg));
893
+ if (bar.done() || done || cancelAnimation) {
894
+ bar.update(100);
895
+ Pace.trigger('done');
896
+ return setTimeout(function() {
897
+ bar.finish();
898
+ Pace.running = false;
899
+ return Pace.trigger('hide');
900
+ }, Math.max(options.ghostTime, Math.max(options.minTime - (now() - start), 0)));
901
+ } else {
902
+ return enqueueNextFrame();
903
+ }
904
+ });
905
+ };
906
+
907
+ Pace.start = function(_options) {
908
+ extend(options, _options);
909
+ Pace.running = true;
910
+ try {
911
+ bar.render();
912
+ } catch (_error) {
913
+ NoTargetError = _error;
914
+ }
915
+ if (!document.querySelector('.pace')) {
916
+ return setTimeout(Pace.start, 50);
917
+ } else {
918
+ Pace.trigger('start');
919
+ return Pace.go();
920
+ }
921
+ };
922
+
923
+ if (typeof define === 'function' && define.amd) {
924
+ define(['pace'], function() {
925
+ return Pace;
926
+ });
927
+ } else if (typeof exports === 'object') {
928
+ module.exports = Pace;
929
+ } else {
930
+ if (options.startOnPageLoad) {
931
+ Pace.start();
932
+ }
933
+ }
934
+
935
+ }).call(this);
core/js/vendor/pace/pace.min.js ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function(){var AjaxMonitor,Bar,DocumentMonitor,ElementMonitor,ElementTracker,EventLagMonitor,Evented,Events,NoTargetError,Pace,RequestIntercept,SOURCE_KEYS,Scaler,SocketRequestTracker,XHRRequestTracker,animation,avgAmplitude,bar,cancelAnimation,cancelAnimationFrame,defaultOptions,extend,extendNative,getFromDOM,getIntercept,handlePushState,ignoreStack,init,now,options,requestAnimationFrame,result,runAnimation,scalers,shouldIgnoreURL,shouldTrack,source,sources,uniScaler,_WebSocket,_XDomainRequest,_XMLHttpRequest,_i,_intercept,_len,_pushState,_ref,_ref1,_replaceState,__slice=[].slice,__hasProp={}.hasOwnProperty,__extends=function(child,parent){for(var key in parent){if(__hasProp.call(parent,key))child[key]=parent[key];}function ctor(){this.constructor=child;}ctor.prototype=parent.prototype;child.prototype=new ctor();child.__super__=parent.prototype;return child;},__indexOf=[].indexOf||function(item){for(var i=0,l=this.length;i<l;i++){if(i in this&&this[i]===item)return i;}return-1;};defaultOptions={catchupTime:100,initialRate:.03,minTime:250,ghostTime:100,maxProgressPerFrame:20,easeFactor:1.25,startOnPageLoad:true,restartOnPushState:true,restartOnRequestAfter:500,target:'body',elements:{checkInterval:100,selectors:['body']},eventLag:{minSamples:10,sampleCount:3,lagThreshold:3},ajax:{trackMethods:['GET'],trackWebSockets:true,ignoreURLs:[]}};now=function(){var _ref;return(_ref=typeof performance!=="undefined"&&performance!==null?typeof performance.now==="function"?performance.now():void 0:void 0)!=null?_ref:+(new Date);};requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame;cancelAnimationFrame=window.cancelAnimationFrame||window.mozCancelAnimationFrame;if(requestAnimationFrame==null){requestAnimationFrame=function(fn){return setTimeout(fn,50);};cancelAnimationFrame=function(id){return clearTimeout(id);};}
2
+ runAnimation=function(fn){var last,tick;last=now();tick=function(){var diff;diff=now()-last;if(diff>=33){last=now();return fn(diff,function(){return requestAnimationFrame(tick);});}else{return setTimeout(tick,33-diff);}};return tick();};result=function(){var args,key,obj;obj=arguments[0],key=arguments[1],args=3<=arguments.length?__slice.call(arguments,2):[];if(typeof obj[key]==='function'){return obj[key].apply(obj,args);}else{return obj[key];}};extend=function(){var key,out,source,sources,val,_i,_len;out=arguments[0],sources=2<=arguments.length?__slice.call(arguments,1):[];for(_i=0,_len=sources.length;_i<_len;_i++){source=sources[_i];if(source){for(key in source){if(!__hasProp.call(source,key))continue;val=source[key];if((out[key]!=null)&&typeof out[key]==='object'&&(val!=null)&&typeof val==='object'){extend(out[key],val);}else{out[key]=val;}}}}
3
+ return out;};avgAmplitude=function(arr){var count,sum,v,_i,_len;sum=count=0;for(_i=0,_len=arr.length;_i<_len;_i++){v=arr[_i];sum+=Math.abs(v);count++;}
4
+ return sum/count;};getFromDOM=function(key,json){var data,e,el;if(key==null){key='options';}
5
+ if(json==null){json=true;}
6
+ el=document.querySelector("[data-pace-"+key+"]");if(!el){return;}
7
+ data=el.getAttribute("data-pace-"+key);if(!json){return data;}
8
+ try{return JSON.parse(data);}catch(_error){e=_error;return typeof console!=="undefined"&&console!==null?console.error("Error parsing inline pace options",e):void 0;}};Evented=(function(){function Evented(){}
9
+ Evented.prototype.on=function(event,handler,ctx,once){var _base;if(once==null){once=false;}
10
+ if(this.bindings==null){this.bindings={};}
11
+ if((_base=this.bindings)[event]==null){_base[event]=[];}
12
+ return this.bindings[event].push({handler:handler,ctx:ctx,once:once});};Evented.prototype.once=function(event,handler,ctx){return this.on(event,handler,ctx,true);};Evented.prototype.off=function(event,handler){var i,_ref,_results;if(((_ref=this.bindings)!=null?_ref[event]:void 0)==null){return;}
13
+ if(handler==null){return delete this.bindings[event];}else{i=0;_results=[];while(i<this.bindings[event].length){if(this.bindings[event][i].handler===handler){_results.push(this.bindings[event].splice(i,1));}else{_results.push(i++);}}
14
+ return _results;}};Evented.prototype.trigger=function(){var args,ctx,event,handler,i,once,_ref,_ref1,_results;event=arguments[0],args=2<=arguments.length?__slice.call(arguments,1):[];if((_ref=this.bindings)!=null?_ref[event]:void 0){i=0;_results=[];while(i<this.bindings[event].length){_ref1=this.bindings[event][i],handler=_ref1.handler,ctx=_ref1.ctx,once=_ref1.once;handler.apply(ctx!=null?ctx:this,args);if(once){_results.push(this.bindings[event].splice(i,1));}else{_results.push(i++);}}
15
+ return _results;}};return Evented;})();Pace=window.Pace||{};window.Pace=Pace;extend(Pace,Evented.prototype);options=Pace.options=extend({},defaultOptions,window.paceOptions,getFromDOM());_ref=['ajax','document','eventLag','elements'];for(_i=0,_len=_ref.length;_i<_len;_i++){source=_ref[_i];if(options[source]===true){options[source]=defaultOptions[source];}}
16
+ NoTargetError=(function(_super){__extends(NoTargetError,_super);function NoTargetError(){_ref1=NoTargetError.__super__.constructor.apply(this,arguments);return _ref1;}
17
+ return NoTargetError;})(Error);Bar=(function(){function Bar(){this.progress=0;}
18
+ Bar.prototype.getElement=function(){var targetElement;if(this.el==null){targetElement=document.querySelector(options.target);if(!targetElement){throw new NoTargetError;}
19
+ this.el=document.createElement('div');this.el.className="pace pace-active";document.body.className=document.body.className.replace(/pace-done/g,'');document.body.className+=' pace-running';this.el.innerHTML='<div class="pace-progress">\n <div class="pace-progress-inner"></div>\n</div>\n<div class="pace-activity"></div>';if(targetElement.firstChild!=null){targetElement.insertBefore(this.el,targetElement.firstChild);}else{targetElement.appendChild(this.el);}}
20
+ return this.el;};Bar.prototype.finish=function(){var el;el=this.getElement();el.className=el.className.replace('pace-active','');el.className+=' pace-inactive';document.body.className=document.body.className.replace('pace-running','');return document.body.className+=' pace-done';};Bar.prototype.update=function(prog){this.progress=prog;return this.render();};Bar.prototype.destroy=function(){try{this.getElement().parentNode.removeChild(this.getElement());}catch(_error){NoTargetError=_error;}
21
+ return this.el=void 0;};Bar.prototype.render=function(){var el,key,progressStr,transform,_j,_len1,_ref2;if(document.querySelector(options.target)==null){return false;}
22
+ el=this.getElement();transform="translate3d("+this.progress+"%, 0, 0)";_ref2=['webkitTransform','msTransform','transform'];for(_j=0,_len1=_ref2.length;_j<_len1;_j++){key=_ref2[_j];el.children[0].style[key]=transform;}
23
+ if(!this.lastRenderedProgress||this.lastRenderedProgress|0!==this.progress|0){el.children[0].setAttribute('data-progress-text',""+(this.progress|0)+"%");if(this.progress>=100){progressStr='99';}else{progressStr=this.progress<10?"0":"";progressStr+=this.progress|0;}
24
+ el.children[0].setAttribute('data-progress',""+progressStr);}
25
+ return this.lastRenderedProgress=this.progress;};Bar.prototype.done=function(){return this.progress>=100;};return Bar;})();Events=(function(){function Events(){this.bindings={};}
26
+ Events.prototype.trigger=function(name,val){var binding,_j,_len1,_ref2,_results;if(this.bindings[name]!=null){_ref2=this.bindings[name];_results=[];for(_j=0,_len1=_ref2.length;_j<_len1;_j++){binding=_ref2[_j];_results.push(binding.call(this,val));}
27
+ return _results;}};Events.prototype.on=function(name,fn){var _base;if((_base=this.bindings)[name]==null){_base[name]=[];}
28
+ return this.bindings[name].push(fn);};return Events;})();_XMLHttpRequest=window.XMLHttpRequest;_XDomainRequest=window.XDomainRequest;_WebSocket=window.WebSocket;extendNative=function(to,from){var e,key,_results;_results=[];for(key in from.prototype){try{if((to[key]==null)&&typeof from[key]!=='function'){if(typeof Object.defineProperty==='function'){_results.push(Object.defineProperty(to,key,{get:function(){return from.prototype[key];},configurable:true,enumerable:true}));}else{_results.push(to[key]=from.prototype[key]);}}else{_results.push(void 0);}}catch(_error){e=_error;}}
29
+ return _results;};ignoreStack=[];Pace.ignore=function(){var args,fn,ret;fn=arguments[0],args=2<=arguments.length?__slice.call(arguments,1):[];ignoreStack.unshift('ignore');ret=fn.apply(null,args);ignoreStack.shift();return ret;};Pace.track=function(){var args,fn,ret;fn=arguments[0],args=2<=arguments.length?__slice.call(arguments,1):[];ignoreStack.unshift('track');ret=fn.apply(null,args);ignoreStack.shift();return ret;};shouldTrack=function(method){var _ref2;if(method==null){method='GET';}
30
+ if(ignoreStack[0]==='track'){return'force';}
31
+ if(!ignoreStack.length&&options.ajax){if(method==='socket'&&options.ajax.trackWebSockets){return true;}else if(_ref2=method.toUpperCase(),__indexOf.call(options.ajax.trackMethods,_ref2)>=0){return true;}}
32
+ return false;};RequestIntercept=(function(_super){__extends(RequestIntercept,_super);function RequestIntercept(){var monitorXHR,_this=this;RequestIntercept.__super__.constructor.apply(this,arguments);monitorXHR=function(req){var _open;_open=req.open;return req.open=function(type,url,async){if(shouldTrack(type)){_this.trigger('request',{type:type,url:url,request:req});}
33
+ return _open.apply(req,arguments);};};window.XMLHttpRequest=function(flags){var req;req=new _XMLHttpRequest(flags);monitorXHR(req);return req;};try{extendNative(window.XMLHttpRequest,_XMLHttpRequest);}catch(_error){}
34
+ if(_XDomainRequest!=null){window.XDomainRequest=function(){var req;req=new _XDomainRequest;monitorXHR(req);return req;};try{extendNative(window.XDomainRequest,_XDomainRequest);}catch(_error){}}
35
+ if((_WebSocket!=null)&&options.ajax.trackWebSockets){window.WebSocket=function(url,protocols){var req;if(protocols!=null){req=new _WebSocket(url,protocols);}else{req=new _WebSocket(url);}
36
+ if(shouldTrack('socket')){_this.trigger('request',{type:'socket',url:url,protocols:protocols,request:req});}
37
+ return req;};try{extendNative(window.WebSocket,_WebSocket);}catch(_error){}}}
38
+ return RequestIntercept;})(Events);_intercept=null;getIntercept=function(){if(_intercept==null){_intercept=new RequestIntercept;}
39
+ return _intercept;};shouldIgnoreURL=function(url){var pattern,_j,_len1,_ref2;_ref2=options.ajax.ignoreURLs;for(_j=0,_len1=_ref2.length;_j<_len1;_j++){pattern=_ref2[_j];if(typeof pattern==='string'){if(url.indexOf(pattern)!==-1){return true;}}else{if(pattern.test(url)){return true;}}}
40
+ return false;};getIntercept().on('request',function(_arg){var after,args,request,type,url;type=_arg.type,request=_arg.request,url=_arg.url;if(shouldIgnoreURL(url)){return;}
41
+ if(!Pace.running&&(options.restartOnRequestAfter!==false||shouldTrack(type)==='force')){args=arguments;after=options.restartOnRequestAfter||0;if(typeof after==='boolean'){after=0;}
42
+ return setTimeout(function(){var stillActive,_j,_len1,_ref2,_ref3,_results;if(type==='socket'){stillActive=request.readyState<2;}else{stillActive=(0<(_ref2=request.readyState)&&_ref2<4);}
43
+ if(stillActive){Pace.restart();_ref3=Pace.sources;_results=[];for(_j=0,_len1=_ref3.length;_j<_len1;_j++){source=_ref3[_j];if(source instanceof AjaxMonitor){source.watch.apply(source,args);break;}else{_results.push(void 0);}}
44
+ return _results;}},after);}});AjaxMonitor=(function(){function AjaxMonitor(){var _this=this;this.elements=[];getIntercept().on('request',function(){return _this.watch.apply(_this,arguments);});}
45
+ AjaxMonitor.prototype.watch=function(_arg){var request,tracker,type,url;type=_arg.type,request=_arg.request,url=_arg.url;if(shouldIgnoreURL(url)){return;}
46
+ if(type==='socket'){tracker=new SocketRequestTracker(request);}else{tracker=new XHRRequestTracker(request);}
47
+ return this.elements.push(tracker);};return AjaxMonitor;})();XHRRequestTracker=(function(){function XHRRequestTracker(request){var event,size,_j,_len1,_onreadystatechange,_ref2,_this=this;this.progress=0;if(window.ProgressEvent!=null){size=null;request.addEventListener('progress',function(evt){if(evt.lengthComputable){return _this.progress=100*evt.loaded/evt.total;}else{return _this.progress=_this.progress+(100-_this.progress)/2;}},false);_ref2=['load','abort','timeout','error'];for(_j=0,_len1=_ref2.length;_j<_len1;_j++){event=_ref2[_j];request.addEventListener(event,function(){return _this.progress=100;},false);}}else{_onreadystatechange=request.onreadystatechange;request.onreadystatechange=function(){var _ref3;if((_ref3=request.readyState)===0||_ref3===4){_this.progress=100;}else if(request.readyState===3){_this.progress=50;}
48
+ return typeof _onreadystatechange==="function"?_onreadystatechange.apply(null,arguments):void 0;};}}
49
+ return XHRRequestTracker;})();SocketRequestTracker=(function(){function SocketRequestTracker(request){var event,_j,_len1,_ref2,_this=this;this.progress=0;_ref2=['error','open'];for(_j=0,_len1=_ref2.length;_j<_len1;_j++){event=_ref2[_j];request.addEventListener(event,function(){return _this.progress=100;},false);}}
50
+ return SocketRequestTracker;})();ElementMonitor=(function(){function ElementMonitor(options){var selector,_j,_len1,_ref2;if(options==null){options={};}
51
+ this.elements=[];if(options.selectors==null){options.selectors=[];}
52
+ _ref2=options.selectors;for(_j=0,_len1=_ref2.length;_j<_len1;_j++){selector=_ref2[_j];this.elements.push(new ElementTracker(selector));}}
53
+ return ElementMonitor;})();ElementTracker=(function(){function ElementTracker(selector){this.selector=selector;this.progress=0;this.check();}
54
+ ElementTracker.prototype.check=function(){var _this=this;if(document.querySelector(this.selector)){return this.done();}else{return setTimeout((function(){return _this.check();}),options.elements.checkInterval);}};ElementTracker.prototype.done=function(){return this.progress=100;};return ElementTracker;})();DocumentMonitor=(function(){DocumentMonitor.prototype.states={loading:0,interactive:50,complete:100};function DocumentMonitor(){var _onreadystatechange,_ref2,_this=this;this.progress=(_ref2=this.states[document.readyState])!=null?_ref2:100;_onreadystatechange=document.onreadystatechange;document.onreadystatechange=function(){if(_this.states[document.readyState]!=null){_this.progress=_this.states[document.readyState];}
55
+ return typeof _onreadystatechange==="function"?_onreadystatechange.apply(null,arguments):void 0;};}
56
+ return DocumentMonitor;})();EventLagMonitor=(function(){function EventLagMonitor(){var avg,interval,last,points,samples,_this=this;this.progress=0;avg=0;samples=[];points=0;last=now();interval=setInterval(function(){var diff;diff=now()-last-50;last=now();samples.push(diff);if(samples.length>options.eventLag.sampleCount){samples.shift();}
57
+ avg=avgAmplitude(samples);if(++points>=options.eventLag.minSamples&&avg<options.eventLag.lagThreshold){_this.progress=100;return clearInterval(interval);}else{return _this.progress=100*(3/(avg+3));}},50);}
58
+ return EventLagMonitor;})();Scaler=(function(){function Scaler(source){this.source=source;this.last=this.sinceLastUpdate=0;this.rate=options.initialRate;this.catchup=0;this.progress=this.lastProgress=0;if(this.source!=null){this.progress=result(this.source,'progress');}}
59
+ Scaler.prototype.tick=function(frameTime,val){var scaling;if(val==null){val=result(this.source,'progress');}
60
+ if(val>=100){this.done=true;}
61
+ if(val===this.last){this.sinceLastUpdate+=frameTime;}else{if(this.sinceLastUpdate){this.rate=(val-this.last)/this.sinceLastUpdate;}
62
+ this.catchup=(val-this.progress)/options.catchupTime;this.sinceLastUpdate=0;this.last=val;}
63
+ if(val>this.progress){this.progress+=this.catchup*frameTime;}
64
+ scaling=1-Math.pow(this.progress/100,options.easeFactor);this.progress+=scaling*this.rate*frameTime;this.progress=Math.min(this.lastProgress+options.maxProgressPerFrame,this.progress);this.progress=Math.max(0,this.progress);this.progress=Math.min(100,this.progress);this.lastProgress=this.progress;return this.progress;};return Scaler;})();sources=null;scalers=null;bar=null;uniScaler=null;animation=null;cancelAnimation=null;Pace.running=false;handlePushState=function(){if(options.restartOnPushState){return Pace.restart();}};if(window.history.pushState!=null){_pushState=window.history.pushState;window.history.pushState=function(){handlePushState();return _pushState.apply(window.history,arguments);};}
65
+ if(window.history.replaceState!=null){_replaceState=window.history.replaceState;window.history.replaceState=function(){handlePushState();return _replaceState.apply(window.history,arguments);};}
66
+ SOURCE_KEYS={ajax:AjaxMonitor,elements:ElementMonitor,document:DocumentMonitor,eventLag:EventLagMonitor};(init=function(){var type,_j,_k,_len1,_len2,_ref2,_ref3,_ref4;Pace.sources=sources=[];_ref2=['ajax','elements','document','eventLag'];for(_j=0,_len1=_ref2.length;_j<_len1;_j++){type=_ref2[_j];if(options[type]!==false){sources.push(new SOURCE_KEYS[type](options[type]));}}
67
+ _ref4=(_ref3=options.extraSources)!=null?_ref3:[];for(_k=0,_len2=_ref4.length;_k<_len2;_k++){source=_ref4[_k];sources.push(new source(options));}
68
+ Pace.bar=bar=new Bar;scalers=[];return uniScaler=new Scaler;})();Pace.stop=function(){Pace.trigger('stop');Pace.running=false;bar.destroy();cancelAnimation=true;if(animation!=null){if(typeof cancelAnimationFrame==="function"){cancelAnimationFrame(animation);}
69
+ animation=null;}
70
+ return init();};Pace.restart=function(){Pace.trigger('restart');Pace.stop();return Pace.start();};Pace.go=function(){var start;Pace.running=true;bar.render();start=now();cancelAnimation=false;return animation=runAnimation(function(frameTime,enqueueNextFrame){var avg,count,done,element,elements,i,j,remaining,scaler,scalerList,sum,_j,_k,_len1,_len2,_ref2;remaining=100-bar.progress;count=sum=0;done=true;for(i=_j=0,_len1=sources.length;_j<_len1;i=++_j){source=sources[i];scalerList=scalers[i]!=null?scalers[i]:scalers[i]=[];elements=(_ref2=source.elements)!=null?_ref2:[source];for(j=_k=0,_len2=elements.length;_k<_len2;j=++_k){element=elements[j];scaler=scalerList[j]!=null?scalerList[j]:scalerList[j]=new Scaler(element);done&=scaler.done;if(scaler.done){continue;}
71
+ count++;sum+=scaler.tick(frameTime);}}
72
+ avg=sum/count;bar.update(uniScaler.tick(frameTime,avg));if(bar.done()||done||cancelAnimation){bar.update(100);Pace.trigger('done');return setTimeout(function(){bar.finish();Pace.running=false;return Pace.trigger('hide');},Math.max(options.ghostTime,Math.max(options.minTime-(now()-start),0)));}else{return enqueueNextFrame();}});};Pace.start=function(_options){extend(options,_options);Pace.running=true;try{bar.render();}catch(_error){NoTargetError=_error;}
73
+ if(!document.querySelector('.pace')){return setTimeout(Pace.start,50);}else{Pace.trigger('start');return Pace.go();}};if(typeof define==='function'&&define.amd){define(['pace'],function(){return Pace;});}else if(typeof exports==='object'){module.exports=Pace;}else{if(options.startOnPageLoad){Pace.start();}}}).call(this);
core/scss/ajax-load-more.scss ADDED
@@ -0,0 +1,237 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Ajax Load More
3
+ * http://wordpress.org/plugins/ajax-load-more/
4
+ *
5
+ * Copyright 2015-2017 Connekt Media - https://connekthq.com
6
+ * Free to use under the GPLv2 license.
7
+ * http://www.gnu.org/licenses/gpl-2.0.html
8
+ *
9
+ * Author: Darren Cooney
10
+ * Twitter: @KaptonKaos
11
+ */
12
+
13
+
14
+ button.alm-load-more-btn{
15
+ font-size:15px;
16
+ font-weight: 600;
17
+ width:auto;
18
+ height: 42px;
19
+ line-height: 42px;
20
+ background: #ed7070;
21
+ color:#fff;
22
+ border: none;
23
+ -webkit-border-radius:3px;
24
+ -moz-border-radius:3px;
25
+ border-radius:3px;
26
+ margin: 0 0 4px;
27
+ padding:0 20px;
28
+ display: inline-block;
29
+ position: relative;
30
+ transition: padding 0.25s ease-in-out, width 0.25s ease-in-out;
31
+ text-align: center;
32
+ text-decoration: none;
33
+ appearance: none;
34
+ user-select: none;
35
+ cursor: pointer;
36
+ &:hover{
37
+ background-color: #e06464;
38
+ color: #fff;
39
+ text-decoration: none;
40
+ }
41
+ &:active{
42
+ box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.1);
43
+ text-decoration: none;
44
+ }
45
+ &:focus,
46
+ &:active{
47
+ outline: none;
48
+ }
49
+
50
+ /* Loading */
51
+ &.loading{
52
+ padding-left: 44px;
53
+ }
54
+
55
+ /* Loaded / Done */
56
+ &.done{
57
+ cursor: default;
58
+ opacity: 0.2;
59
+ background-color: #ed7070;
60
+ outline: none !important;
61
+ box-shadow: none !important;
62
+ }
63
+
64
+ /* Loading Icon */
65
+ &:before,
66
+ &.done:before{
67
+ background: none;
68
+ width: 0;
69
+ }
70
+
71
+ /* Loading :before */
72
+ &.loading:before {
73
+ background: #fff url("../../../core/img/ajax-loader.gif") no-repeat center center;
74
+ width: 30px;
75
+ height: 30px;
76
+ margin: 6px;
77
+ border-radius:2px;
78
+ display: inline-block;
79
+ z-index: 0;
80
+ content: '';
81
+ position: absolute;
82
+ left: 0;
83
+ top: 0;
84
+ overflow: hidden;
85
+ transition: width 0.5s ease-in-out;
86
+ }
87
+ }
88
+
89
+ .alm-masonry,
90
+ .alm-btn-wrap{
91
+ display: block;
92
+ overflow: hidden;
93
+ clear: both;
94
+ }
95
+ .alm-btn-wrap{
96
+ text-align: center;
97
+ padding: 10px 0 25px;
98
+ }
99
+
100
+ /* Blue */
101
+ .ajax-load-more-wrap.blue button.alm-load-more-btn{
102
+ background-color: #0081bf;
103
+ &:hover,
104
+ &.done{
105
+ background-color: #0073aa;
106
+ }
107
+ }
108
+
109
+ /* green */
110
+ .ajax-load-more-wrap.green button.alm-load-more-btn{
111
+ background-color: #6fca68;
112
+ &:hover,
113
+ &.done{
114
+ background-color: #64b95e;
115
+ }
116
+ }
117
+ /* red */
118
+ .ajax-load-more-wrap.red button.alm-load-more-btn{
119
+ background-color: #ca4b4b;
120
+ &:hover,
121
+ &.done{
122
+ background-color: #b13b3b;
123
+ }
124
+ }
125
+
126
+ /* purple */
127
+ .ajax-load-more-wrap.purple button.alm-load-more-btn{
128
+ background-color: #a86bb9;
129
+ &:hover,
130
+ &.done{
131
+ background-color: #9963a8;
132
+ }
133
+ }
134
+
135
+ /* grey */
136
+ .ajax-load-more-wrap.grey button.alm-load-more-btn{
137
+ background-color: #888;
138
+ &:hover,
139
+ &.done{
140
+ background-color: #777;
141
+ }
142
+ }
143
+
144
+ /* white */
145
+ .ajax-load-more-wrap.white button.alm-load-more-btn{
146
+ background-color: #fff;
147
+ color: #666;
148
+ border: 1px solid #efefef;
149
+ &:hover,
150
+ &.done{
151
+ background-color: #efefef;
152
+ color: #333;
153
+ }
154
+ &.done{
155
+ border-color: #fff;
156
+ }
157
+ }
158
+
159
+ /* Infinite */
160
+ .ajax-load-more-wrap.infinite{
161
+ button.alm-load-more-btn {
162
+ width: 100%;
163
+ background-color: transparent !important;
164
+ background-position: center center;
165
+ background-repeat: no-repeat;
166
+ background-image: url("../../../core/img/spinner.gif");
167
+ border: none !important;
168
+ opacity: 0;
169
+ transition: opacity 0.25s ease;
170
+ box-shadow: none !important;
171
+ overflow: hidden;
172
+ text-indent: -9999px;
173
+ cursor: default !important;
174
+ outline: none !important;
175
+ &:before {
176
+ display: none !important;
177
+ }
178
+ &:active{
179
+ box-shadow: none;
180
+ }
181
+ &.done {
182
+ opacity: 0;
183
+ }
184
+ &.loading {
185
+ opacity: 1;
186
+ }
187
+ }
188
+ &.skype button.alm-load-more-btn {
189
+ background-image: url("../../../core/img/spinner-skype.gif");
190
+ }
191
+ &.ring button.alm-load-more-btn {
192
+ background-image: url("../../../core/img/spinner-ring.gif");
193
+ }
194
+ &.fading-blocks button.alm-load-more-btn {
195
+ background-image: url("../../../core/img/loader-fading-blocks.gif");
196
+ }
197
+ &.fading-circles button.alm-load-more-btn {
198
+ background-image: url("../../../core/img/loader-fading-circles.gif");
199
+ }
200
+ &.chasing-arrows button.alm-load-more-btn {
201
+ background-image: url("../../../core/img/spinner-chasing-arrows.gif");
202
+ }
203
+ }
204
+
205
+
206
+ /*
207
+ * Generic alm-listing styles
208
+ * @since 1.0.0
209
+ */
210
+
211
+ .alm-listing{
212
+ margin: 0;
213
+ padding: 0;
214
+ li{
215
+ background: none;
216
+ margin: 0 0 30px;
217
+ padding: 0 0 0 170px;
218
+ overflow: hidden;
219
+ position: relative;
220
+ list-style: none;
221
+ &.no-img{
222
+ padding: 0;
223
+ }
224
+ p{
225
+ margin: 0;
226
+ }
227
+ h3{
228
+ margin: 0 0 10px;
229
+ }
230
+ img{
231
+ position: absolute;
232
+ left: 0;
233
+ top: 0;
234
+ border-radius: 2px;
235
+ }
236
+ }
237
+ }
gulpfile.js ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ // Load plugins
3
+ var gulp = require('gulp'),
4
+ babel = require('gulp-babel'),
5
+ concat = require('gulp-concat'),
6
+ uglify = require('gulp-uglify'),
7
+ jshint = require('gulp-jshint'),
8
+ watch = require('gulp-watch'),
9
+ notify = require('gulp-notify'),
10
+ sass = require('gulp-sass'),
11
+ cleanCSS = require('gulp-clean-css'),
12
+ rename = require('gulp-rename'),
13
+ sequence = require('gulp-sequence'),
14
+ prefix = require('gulp-autoprefixer');
15
+
16
+
17
+ const appname = 'ajax-load-more';
18
+ const dist = './core/dist';
19
+
20
+
21
+
22
+ // JS [Lint JS]
23
+ gulp.task('lint', () => {
24
+ return gulp.src(['./core/js/'+ appname +'.js'])
25
+ .pipe(jshint())
26
+ .pipe(jshint.reporter('default'))
27
+ .pipe(notify({ message: 'JSHint Complete' }));
28
+ });
29
+
30
+
31
+
32
+ // JS [Concat custom JS to app.min.js]
33
+ gulp.task('scripts', () => {
34
+ return gulp.src([
35
+ './core/js/modules/*.js',
36
+ './core/js/'+ appname +'.js',
37
+ './core/js/libs/*.js',
38
+ ])
39
+ .pipe(babel({presets: ['es2015']}))
40
+ .pipe(concat(appname +'.js'))
41
+ .pipe(gulp.dest( dist +'/js/'))
42
+ .pipe(rename({ suffix: '.min' }))
43
+ .pipe(uglify())
44
+ .pipe(gulp.dest( dist +'/js/'))
45
+ .pipe(notify({ message: 'Scripts Task Complete' }));
46
+ });
47
+
48
+
49
+ // Sass [Compile]
50
+ gulp.task('sass', () => {
51
+ gulp.src('./core/scss/'+ appname +'.scss')
52
+ .pipe(sass())
53
+ .pipe(prefix({browsers: ['last 2 versions', 'ie >= 9', 'and_chr >= 2.3']}))
54
+ .pipe(gulp.dest( dist +'/css/'))
55
+ .pipe(cleanCSS())
56
+ .pipe(rename({ suffix: '.min' }))
57
+ .pipe(gulp.dest( dist +'/css/'))
58
+ .pipe(notify({ message: 'Sass Task Complete' }));
59
+ });
60
+
61
+
62
+ gulp.task('watch', function() {
63
+ gulp.watch('core/js/**/*.js', ['lint', 'scripts']);
64
+ gulp.watch('core/scss/**/*.scss', ['sass']);
65
+ });
66
+
67
+
68
+
69
+ // RUN TASKS
70
+
71
+ // Default task [Watches all scss and .js changes]
72
+ gulp.task('default', ['sass', 'lint', 'scripts', 'watch']);
73
+
74
+
75
+ // Concat all JS plugin files.
76
+ gulp.task('plugins', () => {
77
+ gulp.start('libs');
78
+ });
lang/ajax-load-more.pot CHANGED
@@ -1,22 +1,22 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Ajax Load More\n"
4
- "POT-Creation-Date: 2017-05-22 21:25-0500\n"
5
- "PO-Revision-Date: 2017-05-22 21:25-0500\n"
6
- "Last-Translator: Darren Cooney <darren.cooney@gmail.com>\n"
7
  "Language-Team: \n"
8
  "Language: en_CA\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.6.7\n"
13
  "X-Poedit-Basepath: .\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
  "X-Poedit-KeywordsList: __;_e\n"
16
  "X-Poedit-SearchPath-0: ..\n"
17
 
18
- #: ../admin/admin.php:94 ../admin/admin.php:153 ../admin/admin.php:738
19
- #: ../admin/admin.php:782 ../admin/admin.php:832
20
  msgid "You don't belong here."
21
  msgstr ""
22
 
@@ -104,143 +104,143 @@ msgid ""
104
  "to read and write files within the /ajax-load-more/core/repeater directory."
105
  msgstr ""
106
 
107
- #: ../admin/admin.php:696
108
  msgid "[Ajax Load More] Unable to open repeater template - "
109
  msgstr ""
110
 
111
- #: ../admin/admin.php:700
112
  msgid "[Ajax Load More] Error saving repeater template - "
113
  msgstr ""
114
 
115
- #: ../admin/admin.php:733
116
  msgid "Error Writing File"
117
  msgstr ""
118
 
119
- #: ../admin/admin.php:936 ../admin/shortcode-builder/shortcode-builder.php:928
120
  msgid "Container Type"
121
  msgstr ""
122
 
123
- #: ../admin/admin.php:944 ../admin/shortcode-builder/shortcode-builder.php:958
124
  msgid "Container Classes"
125
  msgstr ""
126
 
127
- #: ../admin/admin.php:952
128
  msgid "Disable CSS"
129
  msgstr ""
130
 
131
- #: ../admin/admin.php:960
132
  msgid "Button/Loading Style"
133
  msgstr ""
134
 
135
- #: ../admin/admin.php:968
136
  msgid "Button Classes"
137
  msgstr ""
138
 
139
- #: ../admin/admin.php:976
140
  msgid "Ajax Security"
141
  msgstr ""
142
 
143
- #: ../admin/admin.php:984
144
  msgid "Top of Page"
145
  msgstr ""
146
 
147
- #: ../admin/admin.php:992
148
  msgid "Dynamic Content"
149
  msgstr ""
150
 
151
- #: ../admin/admin.php:1000
152
  msgid "Editor Button"
153
  msgstr ""
154
 
155
- #: ../admin/admin.php:1008
156
  msgid "Error Notices"
157
  msgstr ""
158
 
159
- #: ../admin/admin.php:1079
160
  msgid ""
161
  "Customize the user experience of Ajax Load More by updating the fields below."
162
  msgstr ""
163
 
164
- #: ../admin/admin.php:1092
165
  msgid "The following settings affect the WordPress admin area only."
166
  msgstr ""
167
 
168
- #: ../admin/admin.php:1123
169
  msgid "I want to use my own CSS styles."
170
  msgstr ""
171
 
172
- #: ../admin/admin.php:1123
173
  msgid "View Ajax Load More CSS"
174
  msgstr ""
175
 
176
- #: ../admin/admin.php:1143
177
  msgid "Hide shortcode button in WYSIWYG editor."
178
  msgstr ""
179
 
180
- #: ../admin/admin.php:1164
181
  msgid ""
182
  "Display error messaging regarding repeater template updates in the browser "
183
  "console."
184
  msgstr ""
185
 
186
- #: ../admin/admin.php:1185
187
  msgid ""
188
  "Disable dynamic population of categories, tags and authors in the Shortcode "
189
  "Builder.<span style=\"display:block\">Recommended if you have an "
190
  "extraordinary number of categories, tags and/or authors."
191
  msgstr ""
192
 
193
- #: ../admin/admin.php:1206 ../admin/admin.php:1209
194
  msgid "Ajax Posts Here"
195
  msgstr ""
196
 
197
- #: ../admin/admin.php:1211
198
  msgid "You can modify the container type when building a shortcode."
199
  msgstr ""
200
 
201
- #: ../admin/admin.php:1228
202
  msgid ""
203
  "Add classes to Ajax Load More container - classes are applied globally and "
204
  "will appear with every instance of Ajax Load More. <span style=\"display:"
205
  "block\">You can also add classes when building a shortcode.</span>"
206
  msgstr ""
207
 
208
- #: ../admin/admin.php:1290
209
  msgid ""
210
  "Select an Ajax loading style - you can choose between a <strong>Button</"
211
  "strong> or <strong>Infinite Scroll</strong>"
212
  msgstr ""
213
 
214
- #: ../admin/admin.php:1295
215
  msgid "Button"
216
  msgstr ""
217
 
218
- #: ../admin/admin.php:1303
219
  msgid "Infinite Scroll (No Button)"
220
  msgstr ""
221
 
222
- #: ../admin/admin.php:1314
223
  msgid "Preview"
224
  msgstr ""
225
 
226
- #: ../admin/admin.php:1314
227
- #: ../admin/shortcode-builder/shortcode-builder.php:983
228
- #: ../core/classes/class.alm-shortcode.php:132
229
  msgid "Older Posts"
230
  msgstr ""
231
 
232
- #: ../admin/admin.php:1333
233
  msgid "Add classes to your <strong>Load More</strong> button"
234
  msgstr ""
235
 
236
- #: ../admin/admin.php:1376
237
  msgid ""
238
  "On initial page load, move the user's browser window to the top of the "
239
  "screen.<span style=\"display:block\">This <u>may</u> help prevent the "
240
  "loading of unnecessary posts.</span>"
241
  msgstr ""
242
 
243
- #: ../admin/admin.php:1397
244
  msgid ""
245
  "Enable <a href=\"https://codex.wordpress.org/WordPress_Nonces\" target="
246
  "\"_blank\">WP nonce</a> verification to help protect URLs against certain "
@@ -265,14 +265,14 @@ msgid "You are not allowed to be here"
265
  msgstr ""
266
 
267
  #: ../admin/includes/components/example-list.php:2
268
- #: ../admin/shortcode-builder/shortcode-builder.php:1
269
  #: ../admin/views/repeater-templates.php:104
270
  #: ../admin/views/repeater-templates.php:134
271
  msgid "Collapse All"
272
  msgstr ""
273
 
274
  #: ../admin/includes/components/example-list.php:2
275
- #: ../admin/shortcode-builder/shortcode-builder.php:1
276
  #: ../admin/views/repeater-templates.php:105
277
  #: ../admin/views/repeater-templates.php:135
278
  msgid "Expand All"
@@ -340,7 +340,7 @@ msgid ""
340
  msgstr ""
341
 
342
  #: ../admin/includes/components/repeater-options.php:2
343
- #: ../admin/shortcode-builder/shortcode-builder.php:908
344
  msgid "Options"
345
  msgstr ""
346
 
@@ -551,7 +551,7 @@ msgstr ""
551
  #: ../admin/shortcode-builder/includes/tax-query-options.php:5
552
  #: ../admin/shortcode-builder/includes/tax-query-options.php:50
553
  #: ../admin/shortcode-builder/includes/tax-query-options.php:81
554
- #: ../admin/shortcode-builder/shortcode-builder.php:676
555
  msgid "Select Taxonomy"
556
  msgstr ""
557
 
@@ -568,7 +568,7 @@ msgid "Taxonomy Operator:"
568
  msgstr ""
569
 
570
  #: ../admin/shortcode-builder/includes/tax-query-options.php:36
571
- #: ../admin/shortcode-builder/shortcode-builder.php:1508
572
  msgid "Relation:"
573
  msgstr ""
574
 
@@ -577,301 +577,303 @@ msgid ""
577
  "The logical relationship between each taxonomy when there is more than one."
578
  msgstr ""
579
 
580
- #: ../admin/shortcode-builder/shortcode-builder.php:16
581
  msgid "Add-ons & Extensions"
582
  msgstr ""
583
 
584
- #: ../admin/shortcode-builder/shortcode-builder.php:21
585
  #: ../admin/views/licenses.php:45
586
  msgid "Advanced Custom Fields"
587
  msgstr ""
588
 
589
- #: ../admin/shortcode-builder/shortcode-builder.php:24
590
  msgid "Enable compatibility with Advanced Custom Fields."
591
  msgstr ""
592
 
593
- #: ../admin/shortcode-builder/shortcode-builder.php:31
594
- #: ../admin/shortcode-builder/shortcode-builder.php:111
595
- #: ../admin/shortcode-builder/shortcode-builder.php:155
596
- #: ../admin/shortcode-builder/shortcode-builder.php:249
597
- #: ../admin/shortcode-builder/shortcode-builder.php:400
598
- #: ../admin/shortcode-builder/shortcode-builder.php:517
599
- #: ../admin/shortcode-builder/shortcode-builder.php:540
600
- #: ../admin/shortcode-builder/shortcode-builder.php:594
601
- #: ../admin/shortcode-builder/shortcode-builder.php:635
602
- #: ../admin/shortcode-builder/shortcode-builder.php:728
603
- #: ../admin/shortcode-builder/shortcode-builder.php:808
604
- #: ../admin/shortcode-builder/shortcode-builder.php:842
605
- #: ../admin/shortcode-builder/shortcode-builder.php:1018
606
- #: ../admin/shortcode-builder/shortcode-builder.php:1043
607
- #: ../admin/shortcode-builder/shortcode-builder.php:1069
608
- #: ../admin/shortcode-builder/shortcode-builder.php:1116
 
609
  msgid "True"
610
  msgstr ""
611
 
612
- #: ../admin/shortcode-builder/shortcode-builder.php:35
613
- #: ../admin/shortcode-builder/shortcode-builder.php:115
614
- #: ../admin/shortcode-builder/shortcode-builder.php:159
615
- #: ../admin/shortcode-builder/shortcode-builder.php:253
616
- #: ../admin/shortcode-builder/shortcode-builder.php:404
617
- #: ../admin/shortcode-builder/shortcode-builder.php:521
618
- #: ../admin/shortcode-builder/shortcode-builder.php:544
619
- #: ../admin/shortcode-builder/shortcode-builder.php:598
620
- #: ../admin/shortcode-builder/shortcode-builder.php:639
621
- #: ../admin/shortcode-builder/shortcode-builder.php:732
622
- #: ../admin/shortcode-builder/shortcode-builder.php:812
623
- #: ../admin/shortcode-builder/shortcode-builder.php:846
624
- #: ../admin/shortcode-builder/shortcode-builder.php:1022
625
- #: ../admin/shortcode-builder/shortcode-builder.php:1047
626
- #: ../admin/shortcode-builder/shortcode-builder.php:1073
627
- #: ../admin/shortcode-builder/shortcode-builder.php:1120
 
628
  msgid "False"
629
  msgstr ""
630
 
631
- #: ../admin/shortcode-builder/shortcode-builder.php:47
632
- #: ../admin/shortcode-builder/shortcode-builder.php:264
633
- #: ../admin/shortcode-builder/shortcode-builder.php:417
634
- #: ../admin/shortcode-builder/shortcode-builder.php:649
635
  msgid "Post ID"
636
  msgstr ""
637
 
638
- #: ../admin/shortcode-builder/shortcode-builder.php:47
639
  msgid ""
640
  "Leave this field blank and Ajax Load More will get the ID from the global "
641
  "$post object"
642
  msgstr ""
643
 
644
- #: ../admin/shortcode-builder/shortcode-builder.php:48
645
- #: ../admin/shortcode-builder/shortcode-builder.php:418
646
  msgid "The ID of the current page/post."
647
  msgstr ""
648
 
649
- #: ../admin/shortcode-builder/shortcode-builder.php:61
650
  #: ../admin/shortcode-builder/shortcode-builder.php:66
651
- #: ../admin/shortcode-builder/shortcode-builder.php:87
 
652
  msgid "Field Type"
653
  msgstr ""
654
 
655
- #: ../admin/shortcode-builder/shortcode-builder.php:62
656
  msgid "Select the type of ACF field"
657
  msgstr ""
658
 
659
- #: ../admin/shortcode-builder/shortcode-builder.php:68
660
  msgid "Select Field Type"
661
  msgstr ""
662
 
663
- #: ../admin/shortcode-builder/shortcode-builder.php:69
664
  msgid "Flexible Content"
665
  msgstr ""
666
 
667
- #: ../admin/shortcode-builder/shortcode-builder.php:70
668
  msgid "Gallery"
669
  msgstr ""
670
 
671
- #: ../admin/shortcode-builder/shortcode-builder.php:71
672
  msgid "Relationship"
673
  msgstr ""
674
 
675
- #: ../admin/shortcode-builder/shortcode-builder.php:72
676
  msgid "Repeater"
677
  msgstr ""
678
 
679
- #: ../admin/shortcode-builder/shortcode-builder.php:82
680
  msgid "Field Name"
681
  msgstr ""
682
 
683
- #: ../admin/shortcode-builder/shortcode-builder.php:83
684
  msgid "Enter the name of the ACF field"
685
  msgstr ""
686
 
687
- #: ../admin/shortcode-builder/shortcode-builder.php:101
688
  #: ../admin/views/add-ons.php:21 ../admin/views/licenses.php:111
689
  #: ../admin/views/settings.php:57
690
  msgid "Cache"
691
  msgstr ""
692
 
693
- #: ../admin/shortcode-builder/shortcode-builder.php:104
694
  msgid "Turn on content caching."
695
  msgstr ""
696
 
697
- #: ../admin/shortcode-builder/shortcode-builder.php:125
698
  msgid "Cache ID"
699
  msgstr ""
700
 
701
- #: ../admin/shortcode-builder/shortcode-builder.php:126
702
  msgid ""
703
  "You <u>must</u> generate a unique ID for this cached query - this unique ID "
704
  "will be used as a content identifier."
705
  msgstr ""
706
 
707
- #: ../admin/shortcode-builder/shortcode-builder.php:132
708
  msgid "Generate Cache ID"
709
  msgstr ""
710
 
711
- #: ../admin/shortcode-builder/shortcode-builder.php:144
712
  #: ../admin/views/add-ons.php:48 ../admin/views/licenses.php:176
713
  msgid "Call to Actions"
714
  msgstr ""
715
 
716
- #: ../admin/shortcode-builder/shortcode-builder.php:148
717
  msgid "Insert call to action block."
718
  msgstr ""
719
 
720
- #: ../admin/shortcode-builder/shortcode-builder.php:172
721
  msgid "CTA Positioning"
722
  msgstr ""
723
 
724
- #: ../admin/shortcode-builder/shortcode-builder.php:173
725
  msgid ""
726
  "Insert call to action <strong><em id=\"sequence-update-before-after"
727
  "\">before</em></strong> post #<strong><em id=\"sequence-update\">1</em></"
728
  "strong>"
729
  msgstr ""
730
 
731
- #: ../admin/shortcode-builder/shortcode-builder.php:178
732
  msgid "Before / After"
733
  msgstr ""
734
 
735
- #: ../admin/shortcode-builder/shortcode-builder.php:180
736
  msgid "Before"
737
  msgstr ""
738
 
739
- #: ../admin/shortcode-builder/shortcode-builder.php:181
740
  msgid "After"
741
  msgstr ""
742
 
743
- #: ../admin/shortcode-builder/shortcode-builder.php:185
744
  msgid "Post #"
745
  msgstr ""
746
 
747
- #: ../admin/shortcode-builder/shortcode-builder.php:196
748
- #: ../admin/shortcode-builder/shortcode-builder.php:868
749
  msgid "Template"
750
  msgstr ""
751
 
752
- #: ../admin/shortcode-builder/shortcode-builder.php:198
753
  msgid ""
754
  "Select the <a href=\"admin.php?page=ajax-load-more-repeaters\" target="
755
  "\"_parent\">repeater template</a> that will display your call to action."
756
  msgstr ""
757
 
758
- #: ../admin/shortcode-builder/shortcode-builder.php:205
759
  #, fuzzy
760
  msgid "-- Select Repeater --"
761
  msgstr "Sélectionnez province"
762
 
763
- #: ../admin/shortcode-builder/shortcode-builder.php:225
764
  msgid ""
765
  "Call to actions do NOT count as a post within an Ajax Load More loop.<br/>\n"
766
  " For example, if you set <strong>posts_per_page=\"5\"</"
767
  "strong> in your shortcode, 6 items will be displayed."
768
  msgstr ""
769
 
770
- #: ../admin/shortcode-builder/shortcode-builder.php:239
771
  #: ../admin/views/add-ons.php:75 ../admin/views/licenses.php:241
772
  msgid "Comments"
773
  msgstr ""
774
 
775
- #: ../admin/shortcode-builder/shortcode-builder.php:242
776
  msgid "Enable Ajax Load More to display blog comments."
777
  msgstr ""
778
 
779
- #: ../admin/shortcode-builder/shortcode-builder.php:265
780
- #: ../admin/shortcode-builder/shortcode-builder.php:650
781
  msgid "The ID of the current single post."
782
  msgstr ""
783
 
784
- #: ../admin/shortcode-builder/shortcode-builder.php:276
785
  msgid "Comments Per Page"
786
  msgstr ""
787
 
788
- #: ../admin/shortcode-builder/shortcode-builder.php:277
789
  msgid "The number of top level items to show for each page of comments."
790
  msgstr ""
791
 
792
- #: ../admin/shortcode-builder/shortcode-builder.php:285
793
  msgid ""
794
  "<strong>Note</strong>: The amount selected does NOT include comment replies."
795
  msgstr ""
796
 
797
- #: ../admin/shortcode-builder/shortcode-builder.php:291
798
  msgid "Comment Type"
799
  msgstr ""
800
 
801
- #: ../admin/shortcode-builder/shortcode-builder.php:292
802
  msgid "The type of comment(s) to display."
803
  msgstr ""
804
 
805
- #: ../admin/shortcode-builder/shortcode-builder.php:297
806
  msgid "Comment"
807
  msgstr ""
808
 
809
- #: ../admin/shortcode-builder/shortcode-builder.php:298
810
  msgid "All"
811
  msgstr ""
812
 
813
- #: ../admin/shortcode-builder/shortcode-builder.php:299
814
  msgid "Trackback"
815
  msgstr ""
816
 
817
- #: ../admin/shortcode-builder/shortcode-builder.php:300
818
  msgid "Pingback"
819
  msgstr ""
820
 
821
- #: ../admin/shortcode-builder/shortcode-builder.php:301
822
  msgid "Pings"
823
  msgstr ""
824
 
825
- #: ../admin/shortcode-builder/shortcode-builder.php:309
826
  msgid "Comment Style"
827
  msgstr ""
828
 
829
- #: ../admin/shortcode-builder/shortcode-builder.php:310
830
  msgid "Select the HTML container style for your comments."
831
  msgstr ""
832
 
833
- #: ../admin/shortcode-builder/shortcode-builder.php:335
834
  msgid "Comment Template"
835
  msgstr ""
836
 
837
- #: ../admin/shortcode-builder/shortcode-builder.php:336
838
  msgid "Select a repeater template that will display comment data."
839
  msgstr ""
840
 
841
- #: ../admin/shortcode-builder/shortcode-builder.php:342
842
- #: ../admin/shortcode-builder/shortcode-builder.php:1150
843
  msgid "None"
844
  msgstr ""
845
 
846
- #: ../admin/shortcode-builder/shortcode-builder.php:343
847
  msgid "Default"
848
  msgstr ""
849
 
850
- #: ../admin/shortcode-builder/shortcode-builder.php:355
851
  msgid ""
852
  "<strong>Note</strong>: <span>None</span> will use the default WordPress "
853
  "comment layout."
854
  msgstr ""
855
 
856
- #: ../admin/shortcode-builder/shortcode-builder.php:364
857
  msgid "Callback Function"
858
  msgstr ""
859
 
860
- #: ../admin/shortcode-builder/shortcode-builder.php:365
861
  msgid ""
862
  "A custom <a href=\"https://codex.wordpress.org/Function_Reference/"
863
  "wp_list_comments#Arguments\" target=\"_blank\">callback</a> function that "
864
  "will display each comment."
865
  msgstr ""
866
 
867
- #: ../admin/shortcode-builder/shortcode-builder.php:373
868
  msgid ""
869
  "<strong>Note</strong>: The majority of premium themes have a custom callback "
870
  "function for displaying comments. Please see comments.php or functions.php "
871
  "within your theme directory to locate the callback function for your theme."
872
  msgstr ""
873
 
874
- #: ../admin/shortcode-builder/shortcode-builder.php:378
875
  msgid ""
876
  "You must add the comments shortcode directly to your single template file "
877
  "using the <a href=\"https://developer.wordpress.org/reference/functions/"
@@ -880,81 +882,81 @@ msgid ""
880
  "\"_blank\">View documentation</a>"
881
  msgstr ""
882
 
883
- #: ../admin/shortcode-builder/shortcode-builder.php:390
884
  #: ../admin/views/add-ons.php:154 ../admin/views/licenses.php:440
885
  #, fuzzy
886
  msgid "Next Page"
887
  msgstr "Imprimer cette page"
888
 
889
- #: ../admin/shortcode-builder/shortcode-builder.php:393
890
  msgid "Enable the infinite scrolling of multipage WordPress content using the"
891
  msgstr ""
892
 
893
- #: ../admin/shortcode-builder/shortcode-builder.php:393
894
  msgid "Quicktag"
895
  msgstr ""
896
 
897
- #: ../admin/shortcode-builder/shortcode-builder.php:430
898
  msgid "URL Rewrite"
899
  msgstr ""
900
 
901
- #: ../admin/shortcode-builder/shortcode-builder.php:431
902
  msgid "Update the browser address bar as pages come into view"
903
  msgstr ""
904
 
905
- #: ../admin/shortcode-builder/shortcode-builder.php:438
906
  msgid "Yes, update the URL"
907
  msgstr ""
908
 
909
- #: ../admin/shortcode-builder/shortcode-builder.php:450
910
  msgid "Google Analytics"
911
  msgstr ""
912
 
913
- #: ../admin/shortcode-builder/shortcode-builder.php:451
914
  msgid ""
915
  "You must have a reference to your Google Analytics tracking code already on "
916
  "the page"
917
  msgstr ""
918
 
919
- #: ../admin/shortcode-builder/shortcode-builder.php:453
920
  msgid "Each time a page is loaded it will count as a pageview"
921
  msgstr ""
922
 
923
- #: ../admin/shortcode-builder/shortcode-builder.php:460
924
  msgid "Yes, send pageviews to Google Analytics"
925
  msgstr ""
926
 
927
- #: ../admin/shortcode-builder/shortcode-builder.php:471
928
  msgid "Scroll to Page"
929
  msgstr ""
930
 
931
- #: ../admin/shortcode-builder/shortcode-builder.php:472
932
  msgid "Set Scroll Speed to 0 to disable scrolling to page"
933
  msgstr ""
934
 
935
- #: ../admin/shortcode-builder/shortcode-builder.php:475
936
  msgid "Scroll users automatically to the next page on 'Load More' button click"
937
  msgstr ""
938
 
939
- #: ../admin/shortcode-builder/shortcode-builder.php:481
940
  msgid "Scroll Speed"
941
  msgstr ""
942
 
943
- #: ../admin/shortcode-builder/shortcode-builder.php:482
944
  msgid "Scrolling speed in milliseconds (e.g. 1 second = 1000)"
945
  msgstr ""
946
 
947
- #: ../admin/shortcode-builder/shortcode-builder.php:488
948
  msgid "Scroll Top"
949
  msgstr ""
950
 
951
- #: ../admin/shortcode-builder/shortcode-builder.php:489
952
  msgid ""
953
  "The scrolltop position of the window (used with scrolling and fwd/back "
954
  "browser buttons)"
955
  msgstr ""
956
 
957
- #: ../admin/shortcode-builder/shortcode-builder.php:496
958
  msgid ""
959
  "You must add the Next Page shortcode directly to your single template file "
960
  "using the <a href=\"https://developer.wordpress.org/reference/functions/"
@@ -963,94 +965,94 @@ msgid ""
963
  "\"_blank\">View documentation</a>"
964
  msgstr ""
965
 
966
- #: ../admin/shortcode-builder/shortcode-builder.php:508
967
  #: ../admin/views/add-ons.php:180 ../admin/views/licenses.php:507
968
  #: ../admin/views/settings.php:61
969
  msgid "Paging"
970
  msgstr ""
971
 
972
- #: ../admin/shortcode-builder/shortcode-builder.php:510
973
  msgid "Replace infinite scrolling with a paged ajax navigation system."
974
  msgstr ""
975
 
976
- #: ../admin/shortcode-builder/shortcode-builder.php:532
977
  msgid "Paging Controls"
978
  msgstr ""
979
 
980
- #: ../admin/shortcode-builder/shortcode-builder.php:533
981
  msgid "Show (&laquo;)previous and next(&raquo;) buttons."
982
  msgstr ""
983
 
984
- #: ../admin/shortcode-builder/shortcode-builder.php:553
985
  msgid "Paging Navigation Classes"
986
  msgstr ""
987
 
988
- #: ../admin/shortcode-builder/shortcode-builder.php:554
989
  msgid "Add custom CSS classes to the paging navigation menu."
990
  msgstr ""
991
 
992
- #: ../admin/shortcode-builder/shortcode-builder.php:565
993
  msgid "Show at Most"
994
  msgstr ""
995
 
996
- #: ../admin/shortcode-builder/shortcode-builder.php:566
997
  msgid ""
998
  "The maximum amount of page menu items to show at a time. <br/.>0 = no maximum"
999
  msgstr ""
1000
 
1001
- #: ../admin/shortcode-builder/shortcode-builder.php:584
1002
  #: ../admin/views/add-ons.php:207 ../admin/views/licenses.php:572
1003
  msgid "Preloaded"
1004
  msgstr ""
1005
 
1006
- #: ../admin/shortcode-builder/shortcode-builder.php:587
1007
  msgid "Preload posts prior to making Ajax requests."
1008
  msgstr ""
1009
 
1010
- #: ../admin/shortcode-builder/shortcode-builder.php:608
1011
  msgid "Preload Amount"
1012
  msgstr ""
1013
 
1014
- #: ../admin/shortcode-builder/shortcode-builder.php:609
1015
  msgid "Enter the number of posts to preload."
1016
  msgstr ""
1017
 
1018
- #: ../admin/shortcode-builder/shortcode-builder.php:625
1019
  #: ../admin/views/add-ons.php:233 ../admin/views/licenses.php:636
1020
  #: ../admin/views/settings.php:63
1021
  msgid "Previous Post"
1022
  msgstr ""
1023
 
1024
- #: ../admin/shortcode-builder/shortcode-builder.php:628
1025
  msgid "Enable the infinite scrolling of single posts."
1026
  msgstr ""
1027
 
1028
- #: ../admin/shortcode-builder/shortcode-builder.php:662
1029
- #: ../admin/shortcode-builder/shortcode-builder.php:1448
1030
  msgid "Taxonomy"
1031
  msgstr ""
1032
 
1033
- #: ../admin/shortcode-builder/shortcode-builder.php:662
1034
  msgid ""
1035
  "Selecting a taxonomy means only previous posts from the same taxonomy will "
1036
  "be returned"
1037
  msgstr ""
1038
 
1039
- #: ../admin/shortcode-builder/shortcode-builder.php:663
1040
  msgid "Query previous posts from the same taxonomy."
1041
  msgstr ""
1042
 
1043
- #: ../admin/shortcode-builder/shortcode-builder.php:677
1044
- #: ../admin/shortcode-builder/shortcode-builder.php:1329
1045
  msgid "Category"
1046
  msgstr ""
1047
 
1048
- #: ../admin/shortcode-builder/shortcode-builder.php:678
1049
- #: ../admin/shortcode-builder/shortcode-builder.php:1389
1050
  msgid "Tag"
1051
  msgstr ""
1052
 
1053
- #: ../admin/shortcode-builder/shortcode-builder.php:692
1054
  msgid ""
1055
  "You must add the Previous Post shortcode directly to your single template "
1056
  "file using the <a href=\"https://developer.wordpress.org/reference/functions/"
@@ -1059,84 +1061,85 @@ msgid ""
1059
  "target=\"_blank\">View documentation</a>"
1060
  msgstr ""
1061
 
1062
- #: ../admin/shortcode-builder/shortcode-builder.php:718
1063
  #: ../admin/views/settings.php:65
1064
  msgid "REST API"
1065
  msgstr ""
1066
 
1067
- #: ../admin/shortcode-builder/shortcode-builder.php:721
1068
  msgid "Enable the WordPress REST API."
1069
  msgstr ""
1070
 
1071
- #: ../admin/shortcode-builder/shortcode-builder.php:745
1072
  msgid "Base URL"
1073
  msgstr ""
1074
 
1075
- #: ../admin/shortcode-builder/shortcode-builder.php:746
1076
  msgid "Set a default Base URL in the Ajax Load More settings panel"
1077
  msgstr ""
1078
 
1079
- #: ../admin/shortcode-builder/shortcode-builder.php:747
1080
  msgid "Enter the base URL to your installation of the REST API."
1081
  msgstr ""
1082
 
1083
- #: ../admin/shortcode-builder/shortcode-builder.php:759
1084
  msgid "Namespace"
1085
  msgstr ""
1086
 
1087
- #: ../admin/shortcode-builder/shortcode-builder.php:760
1088
  msgid "Set a default Namespace in the Ajax Load More settings panel"
1089
  msgstr ""
1090
 
1091
- #: ../admin/shortcode-builder/shortcode-builder.php:761
1092
  msgid "Enter the custom namespace for this Ajax Load More query."
1093
  msgstr ""
1094
 
1095
- #: ../admin/shortcode-builder/shortcode-builder.php:773
1096
  msgid "Endpoint"
1097
  msgstr ""
1098
 
1099
- #: ../admin/shortcode-builder/shortcode-builder.php:774
1100
  msgid "Set a default Endpoint in the Ajax Load More settings panel"
1101
  msgstr ""
1102
 
1103
- #: ../admin/shortcode-builder/shortcode-builder.php:775
1104
  msgid "Enter your custom endpoint for this Ajax Load More query."
1105
  msgstr ""
1106
 
1107
- #: ../admin/shortcode-builder/shortcode-builder.php:787
1108
  msgid "Template ID"
1109
  msgstr ""
1110
 
1111
- #: ../admin/shortcode-builder/shortcode-builder.php:787
1112
  msgid ""
1113
  "Ajax Load More references this ID while looping and displaying your data. "
1114
  "You must still select a repeater template for this instance of Ajax Load More"
1115
  msgstr ""
1116
 
1117
- #: ../admin/shortcode-builder/shortcode-builder.php:788
1118
  msgid ""
1119
  "Enter the ID of your javascript template.<br/><br/>e.g. <em>tmpl-alm-"
1120
  "template</em> = <em>alm-template</em>"
1121
  msgstr ""
1122
 
1123
- #: ../admin/shortcode-builder/shortcode-builder.php:788
1124
- #: ../admin/shortcode-builder/shortcode-builder.php:1334
1125
- #: ../admin/shortcode-builder/shortcode-builder.php:1393
1126
- #: ../admin/shortcode-builder/shortcode-builder.php:1593
 
1127
  msgid "View Example"
1128
  msgstr ""
1129
 
1130
- #: ../admin/shortcode-builder/shortcode-builder.php:800
1131
  msgid "Debug Mode"
1132
  msgstr ""
1133
 
1134
- #: ../admin/shortcode-builder/shortcode-builder.php:801
1135
  msgid ""
1136
  "Enable debugging (console.log) of REST API responses in the browser console. "
1137
  msgstr ""
1138
 
1139
- #: ../admin/shortcode-builder/shortcode-builder.php:819
1140
  msgid ""
1141
  "Visit <a href=\"http://v2.wp-api.org/\" target=\"_blank\">http://v2.wp-api."
1142
  "org</a> for documentation on creating custom <a href=\"http://v2.wp-api.org/"
@@ -1144,462 +1147,498 @@ msgid ""
1144
  "More."
1145
  msgstr ""
1146
 
1147
- #: ../admin/shortcode-builder/shortcode-builder.php:832
1148
  msgid "SEO (Search Engine Optimization)"
1149
  msgstr ""
1150
 
1151
- #: ../admin/shortcode-builder/shortcode-builder.php:835
1152
  msgid ""
1153
  "Enable address bar URL rewrites as users page through ajax loaded content."
1154
  msgstr ""
1155
 
1156
- #: ../admin/shortcode-builder/shortcode-builder.php:863
1157
  msgid "Display Settings"
1158
  msgstr ""
1159
 
1160
- #: ../admin/shortcode-builder/shortcode-builder.php:872
1161
  msgid "Repeater Template"
1162
  msgstr ""
1163
 
1164
- #: ../admin/shortcode-builder/shortcode-builder.php:874
1165
  msgid ""
1166
  "Select which <a href=\"admin.php?page=ajax-load-more-repeaters\" target="
1167
  "\"_parent\">repeater template</a> you would like to use."
1168
  msgstr ""
1169
 
1170
- #: ../admin/shortcode-builder/shortcode-builder.php:912
1171
  msgid "ID"
1172
  msgstr ""
1173
 
1174
- #: ../admin/shortcode-builder/shortcode-builder.php:912
1175
  msgid ""
1176
  "Adding a unique ID will allow you target this specific Ajax Load More "
1177
  "instance with the alm_query_args_id() filter."
1178
  msgstr ""
1179
 
1180
- #: ../admin/shortcode-builder/shortcode-builder.php:913
1181
  msgid "Set a unique ID for this Ajax Load More instance."
1182
  msgstr ""
1183
 
1184
- #: ../admin/shortcode-builder/shortcode-builder.php:920
1185
  msgid "Generate Unique ID"
1186
  msgstr ""
1187
 
1188
- #: ../admin/shortcode-builder/shortcode-builder.php:928
1189
  msgid ""
1190
  "You can define a global container type on the Ajax Load More settings screen"
1191
  msgstr ""
1192
 
1193
- #: ../admin/shortcode-builder/shortcode-builder.php:929
1194
  msgid ""
1195
- "Override the global Container Type that was set on <a href=\"admin.php?"
1196
- "page=ajax-load-more\">ALM Settings page</a>."
1197
  msgstr ""
1198
 
1199
- #: ../admin/shortcode-builder/shortcode-builder.php:958
1200
  msgid ""
1201
  "You can define global container classes on the Ajax Load More settings screen"
1202
  msgstr ""
1203
 
1204
- #: ../admin/shortcode-builder/shortcode-builder.php:959
1205
  msgid ""
1206
  "Add custom CSS classes to the Ajax Load More container. <br/><br/> e.g. "
1207
  "portfolio-listing large-12 etc"
1208
  msgstr ""
1209
 
1210
- #: ../admin/shortcode-builder/shortcode-builder.php:973
1211
  msgid "Button Labels"
1212
  msgstr ""
1213
 
1214
- #: ../admin/shortcode-builder/shortcode-builder.php:978
1215
  msgid "Label"
1216
  msgstr ""
1217
 
1218
- #: ../admin/shortcode-builder/shortcode-builder.php:979
1219
  msgid "Customize the text of the <em>Load More</em> button."
1220
  msgstr ""
1221
 
1222
- #: ../admin/shortcode-builder/shortcode-builder.php:991
1223
  msgid "Loading Label"
1224
  msgstr ""
1225
 
1226
- #: ../admin/shortcode-builder/shortcode-builder.php:991
1227
  msgid "Leave field empty to not update text while loading content"
1228
  msgstr ""
1229
 
1230
- #: ../admin/shortcode-builder/shortcode-builder.php:992
1231
  msgid ""
1232
  "Update the text of the <em>Load More</em> button while content is loading."
1233
  msgstr ""
1234
 
1235
- #: ../admin/shortcode-builder/shortcode-builder.php:996
1236
  msgid "Loading Posts..."
1237
  msgstr ""
1238
 
1239
- #: ../admin/shortcode-builder/shortcode-builder.php:1006
1240
- msgid "Images Loaded"
1241
- msgstr ""
1242
-
1243
- #: ../admin/shortcode-builder/shortcode-builder.php:1009
1244
- msgid "Wait for all images to load before displaying ajax loaded content"
1245
- msgstr ""
1246
-
1247
- #: ../admin/shortcode-builder/shortcode-builder.php:1010
1248
- msgid "Background images are currently not supported"
1249
- msgstr ""
1250
-
1251
- #: ../admin/shortcode-builder/shortcode-builder.php:1033
1252
- msgid "Pause"
1253
- msgstr ""
1254
-
1255
- #: ../admin/shortcode-builder/shortcode-builder.php:1036
1256
- msgid ""
1257
- "Do <u>NOT</u> load any posts until user clicks the <em>Load More</em> button."
1258
- msgstr ""
1259
-
1260
- #: ../admin/shortcode-builder/shortcode-builder.php:1058
1261
  msgid "Scrolling"
1262
  msgstr ""
1263
 
1264
- #: ../admin/shortcode-builder/shortcode-builder.php:1061
1265
  msgid "Enable Scrolling"
1266
  msgstr ""
1267
 
1268
- #: ../admin/shortcode-builder/shortcode-builder.php:1062
1269
  msgid "Load more posts as the user scrolls the page."
1270
  msgstr ""
1271
 
1272
- #: ../admin/shortcode-builder/shortcode-builder.php:1083
1273
  msgid "Scroll Distance"
1274
  msgstr ""
1275
 
1276
- #: ../admin/shortcode-builder/shortcode-builder.php:1083
1277
  msgid ""
1278
  "Distance is based on the position of the loading button from the bottom of "
1279
  "the screen"
1280
  msgstr ""
1281
 
1282
- #: ../admin/shortcode-builder/shortcode-builder.php:1084
1283
  msgid ""
1284
  "The distance from the bottom of the screen to trigger loading of posts. "
1285
  "(Default = 150)"
1286
  msgstr ""
1287
 
1288
- #: ../admin/shortcode-builder/shortcode-builder.php:1096
1289
  msgid "Maximum Pages"
1290
  msgstr ""
1291
 
1292
- #: ../admin/shortcode-builder/shortcode-builder.php:1096
1293
  msgid "If using an Infinite Scroll button style you should set this to 0"
1294
  msgstr ""
1295
 
1296
- #: ../admin/shortcode-builder/shortcode-builder.php:1097
1297
  msgid "Maximum number of pages to load while scrolling. (0 = unlimited)"
1298
  msgstr ""
1299
 
1300
- #: ../admin/shortcode-builder/shortcode-builder.php:1109
1301
  msgid "Pause Override"
1302
  msgstr ""
1303
 
1304
- #: ../admin/shortcode-builder/shortcode-builder.php:1110
1305
  msgid ""
1306
  "Allow scrolling to override the Pause parameter and trigger the loading of "
1307
  "posts on scroll."
1308
  msgstr ""
1309
 
1310
- #: ../admin/shortcode-builder/shortcode-builder.php:1131
1311
  msgid "Transition"
1312
  msgstr ""
1313
 
1314
- #: ../admin/shortcode-builder/shortcode-builder.php:1134
1315
- msgid "Transition Type"
1316
  msgstr ""
1317
 
1318
- #: ../admin/shortcode-builder/shortcode-builder.php:1135
1319
  msgid "Select a loading transition style."
1320
  msgstr ""
1321
 
1322
- #: ../admin/shortcode-builder/shortcode-builder.php:1142
1323
  msgid "Slide"
1324
  msgstr ""
1325
 
1326
- #: ../admin/shortcode-builder/shortcode-builder.php:1146
1327
  msgid "Fade"
1328
  msgstr ""
1329
 
1330
- #: ../admin/shortcode-builder/shortcode-builder.php:1160
1331
- msgid "Transition Speed"
 
 
 
 
 
 
 
 
 
1332
  msgstr ""
1333
 
1334
- #: ../admin/shortcode-builder/shortcode-builder.php:1160
 
 
 
 
 
 
 
 
1335
  msgid "0.5 seconds = 500, 1 second = 1000 etc."
1336
  msgstr ""
1337
 
1338
- #: ../admin/shortcode-builder/shortcode-builder.php:1161
1339
  msgid "The speed of the loading transition in milliseconds"
1340
  msgstr ""
1341
 
1342
- #: ../admin/shortcode-builder/shortcode-builder.php:1173
1343
- msgid "Transition Container"
1344
  msgstr ""
1345
 
1346
- #: ../admin/shortcode-builder/shortcode-builder.php:1173
1347
  msgid ""
1348
  "Removing the transition container may have undesired results and is not "
1349
  "recommended."
1350
  msgstr ""
1351
 
1352
- #: ../admin/shortcode-builder/shortcode-builder.php:1174
1353
- msgid "Remove the Ajax Load More (.alm-reveal) loading container."
 
1354
  msgstr ""
1355
 
1356
- #: ../admin/shortcode-builder/shortcode-builder.php:1181
1357
  msgid "Remove Container"
1358
  msgstr ""
1359
 
1360
- #: ../admin/shortcode-builder/shortcode-builder.php:1192
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1361
  msgid "Destroy After"
1362
  msgstr ""
1363
 
1364
- #: ../admin/shortcode-builder/shortcode-builder.php:1195
1365
  msgid ""
1366
- "Remove ajax load more functionality after '<em>n</em>' number of pages have "
1367
  "been loaded."
1368
  msgstr ""
1369
 
1370
- #: ../admin/shortcode-builder/shortcode-builder.php:1213
1371
  msgid "Query Parameters"
1372
  msgstr ""
1373
 
1374
- #: ../admin/shortcode-builder/shortcode-builder.php:1217
1375
  msgid "Posts Per Page"
1376
  msgstr ""
1377
 
1378
- #: ../admin/shortcode-builder/shortcode-builder.php:1220
1379
  msgid "Select the number of posts to load with each request."
1380
  msgstr ""
1381
 
1382
- #: ../admin/shortcode-builder/shortcode-builder.php:1239
1383
  msgid "Post Type"
1384
  msgstr ""
1385
 
1386
- #: ../admin/shortcode-builder/shortcode-builder.php:1244
1387
  msgid "Select the Post Types to include in this Ajax Load More query."
1388
  msgstr ""
1389
 
1390
- #: ../admin/shortcode-builder/shortcode-builder.php:1258
1391
  msgid "Any"
1392
  msgstr ""
1393
 
1394
- #: ../admin/shortcode-builder/shortcode-builder.php:1270
1395
  msgid "Sticky Posts"
1396
  msgstr ""
1397
 
1398
- #: ../admin/shortcode-builder/shortcode-builder.php:1270
1399
  msgid "Sticky posts are only available for Posts."
1400
  msgstr ""
1401
 
1402
- #: ../admin/shortcode-builder/shortcode-builder.php:1271
1403
  msgid ""
1404
  "Preserve the ordering of sticky posts by having them appear first in the "
1405
  "Ajax listing."
1406
  msgstr ""
1407
 
1408
- #: ../admin/shortcode-builder/shortcode-builder.php:1278
1409
  msgid "Enable Sticky Posts"
1410
  msgstr ""
1411
 
1412
- #: ../admin/shortcode-builder/shortcode-builder.php:1300
1413
  msgid "Post Format"
1414
  msgstr ""
1415
 
1416
- #: ../admin/shortcode-builder/shortcode-builder.php:1303
1417
  msgid ""
1418
  "Select a <a href=\"http://codex.wordpress.org/Post_Formats\" target=\"_blank"
1419
  "\">Post Format</a> to query."
1420
  msgstr ""
1421
 
1422
- #: ../admin/shortcode-builder/shortcode-builder.php:1306
1423
  msgid "Select Post Format"
1424
  msgstr ""
1425
 
1426
- #: ../admin/shortcode-builder/shortcode-builder.php:1307
1427
  msgid "Standard"
1428
  msgstr ""
1429
 
1430
- #: ../admin/shortcode-builder/shortcode-builder.php:1333
1431
  msgid ""
1432
  "A comma separated list of categories to include by slug. (design, research "
1433
  "etc...)"
1434
  msgstr ""
1435
 
1436
- #: ../admin/shortcode-builder/shortcode-builder.php:1356
1437
- #: ../admin/shortcode-builder/shortcode-builder.php:1414
1438
- #: ../admin/shortcode-builder/shortcode-builder.php:1592
1439
  msgid "Exclude"
1440
  msgstr ""
1441
 
1442
- #: ../admin/shortcode-builder/shortcode-builder.php:1357
1443
  msgid ""
1444
  "A comma separated list of categories to exclude by ID. (3, 12, 35 etc..)"
1445
  msgstr ""
1446
 
1447
- #: ../admin/shortcode-builder/shortcode-builder.php:1392
1448
- #: ../admin/shortcode-builder/shortcode-builder.php:1581
1449
  msgid "Include"
1450
  msgstr ""
1451
 
1452
- #: ../admin/shortcode-builder/shortcode-builder.php:1393
1453
  msgid ""
1454
  "A comma separated list of tags to include by slug. (toronto, canada etc...)"
1455
  msgstr ""
1456
 
1457
- #: ../admin/shortcode-builder/shortcode-builder.php:1415
1458
  msgid "A comma separated list of tags to exclude by ID. (30, 12, 99 etc..)"
1459
  msgstr ""
1460
 
1461
- #: ../admin/shortcode-builder/shortcode-builder.php:1451
1462
  msgid "Select a taxonomy then select the terms and an operator."
1463
  msgstr ""
1464
 
1465
- #: ../admin/shortcode-builder/shortcode-builder.php:1456
1466
- #: ../admin/shortcode-builder/shortcode-builder.php:1522
1467
  msgid "Add Another"
1468
  msgstr ""
1469
 
1470
- #: ../admin/shortcode-builder/shortcode-builder.php:1466
1471
  msgid "Date"
1472
  msgstr ""
1473
 
1474
- #: ../admin/shortcode-builder/shortcode-builder.php:1469
1475
  msgid ""
1476
  "Enter a year, month(number) and day to query by date archive.<br/>&raquo; <a "
1477
  "href=\"admin.php?page=ajax-load-more-examples#example-date\">View Example</a>"
1478
  msgstr ""
1479
 
1480
- #: ../admin/shortcode-builder/shortcode-builder.php:1475
1481
  msgid "Year:"
1482
  msgstr ""
1483
 
1484
- #: ../admin/shortcode-builder/shortcode-builder.php:1479
1485
  msgid "Month:"
1486
  msgstr ""
1487
 
1488
- #: ../admin/shortcode-builder/shortcode-builder.php:1483
1489
  msgid "Day:"
1490
  msgstr ""
1491
 
1492
- #: ../admin/shortcode-builder/shortcode-builder.php:1494
1493
  msgid "Custom Fields (Meta_Query)"
1494
  msgstr ""
1495
 
1496
- #: ../admin/shortcode-builder/shortcode-builder.php:1497
1497
  msgid ""
1498
  "Query for <a href=\"http://codex.wordpress.org/Class_Reference/WP_Meta_Query"
1499
  "\" target=\"_blank\">custom field</a> by entering a custom field key, value "
1500
  "and operator."
1501
  msgstr ""
1502
 
1503
- #: ../admin/shortcode-builder/shortcode-builder.php:1508
1504
  msgid ""
1505
  "The logical relationship between each custom field when there is more than "
1506
  "one."
1507
  msgstr ""
1508
 
1509
- #: ../admin/shortcode-builder/shortcode-builder.php:1538
1510
  msgid "Author"
1511
  msgstr ""
1512
 
1513
- #: ../admin/shortcode-builder/shortcode-builder.php:1541
1514
  msgid "Select an Author to query(by ID)."
1515
  msgstr ""
1516
 
1517
- #: ../admin/shortcode-builder/shortcode-builder.php:1562
1518
  msgid "Search Term"
1519
  msgstr ""
1520
 
1521
- #: ../admin/shortcode-builder/shortcode-builder.php:1565
1522
  msgid "Enter a search term to query."
1523
  msgstr ""
1524
 
1525
- #: ../admin/shortcode-builder/shortcode-builder.php:1569
1526
  msgid "Enter search term"
1527
  msgstr ""
1528
 
1529
- #: ../admin/shortcode-builder/shortcode-builder.php:1578
1530
  msgid "Post Parameters"
1531
  msgstr ""
1532
 
1533
- #: ../admin/shortcode-builder/shortcode-builder.php:1582
1534
  msgid "A comma separated list of post ID's to query."
1535
  msgstr ""
1536
 
1537
- #: ../admin/shortcode-builder/shortcode-builder.php:1586
1538
  msgid "225, 340, 818, etc..."
1539
  msgstr ""
1540
 
1541
- #: ../admin/shortcode-builder/shortcode-builder.php:1593
1542
  msgid "A comma separated list of post ID's to exclude from query."
1543
  msgstr ""
1544
 
1545
- #: ../admin/shortcode-builder/shortcode-builder.php:1603
1546
  msgid "Post Status"
1547
  msgstr ""
1548
 
1549
- #: ../admin/shortcode-builder/shortcode-builder.php:1603
1550
  msgid ""
1551
  "Post Status parameters are only available for logged in (admin) users. Non "
1552
  "logged in users will only have access to view content in a 'publish' or "
1553
  "'inherit' state. "
1554
  msgstr ""
1555
 
1556
- #: ../admin/shortcode-builder/shortcode-builder.php:1604
1557
  msgid "Select status of the post."
1558
  msgstr ""
1559
 
1560
- #: ../admin/shortcode-builder/shortcode-builder.php:1609
1561
  msgid "Published"
1562
  msgstr ""
1563
 
1564
- #: ../admin/shortcode-builder/shortcode-builder.php:1626
1565
  msgid "Ordering"
1566
  msgstr ""
1567
 
1568
- #: ../admin/shortcode-builder/shortcode-builder.php:1629
1569
  msgid "Sort posts by Order and Orderby parameters."
1570
  msgstr ""
1571
 
1572
- #: ../admin/shortcode-builder/shortcode-builder.php:1633
1573
  msgid "Order"
1574
  msgstr ""
1575
 
1576
- #: ../admin/shortcode-builder/shortcode-builder.php:1640
1577
  msgid "Order By"
1578
  msgstr ""
1579
 
1580
- #: ../admin/shortcode-builder/shortcode-builder.php:1661
1581
  msgid "Offset"
1582
  msgstr ""
1583
 
1584
- #: ../admin/shortcode-builder/shortcode-builder.php:1664
1585
  msgid "Offset the initial query by <em>'n'</em> number of posts"
1586
  msgstr ""
1587
 
1588
- #: ../admin/shortcode-builder/shortcode-builder.php:1677
1589
  msgid "Custom Arguments"
1590
  msgstr ""
1591
 
1592
- #: ../admin/shortcode-builder/shortcode-builder.php:1680
1593
  msgid "A semicolon separated list of custom value:pair arguments."
1594
  msgstr ""
1595
 
1596
- #: ../admin/shortcode-builder/shortcode-builder.php:1680
1597
  msgid ""
1598
  "Custom Arguments can be used to query by parameters not available in the "
1599
  "Shortcode Builder."
1600
  msgstr ""
1601
 
1602
- #: ../admin/shortcode-builder/shortcode-builder.php:1684
1603
  msgid "event_display:upcoming"
1604
  msgstr ""
1605
 
@@ -1791,9 +1830,9 @@ msgstr ""
1791
 
1792
  #: ../admin/views/help.php:67
1793
  msgid ""
1794
- "We have a collection of over 20 real-world Ajax Load More <a href=\"https://"
1795
- "connekthq.com/plugins/ajax-load-more/examples/\" target=\"_blank"
1796
- "\">examples</a> available on the plugin website"
1797
  msgstr ""
1798
 
1799
  #: ../admin/views/help.php:69
@@ -2054,11 +2093,11 @@ msgstr ""
2054
  msgid "Reset Shortcode Builder"
2055
  msgstr ""
2056
 
2057
- #: ../ajax-load-more.php:211
2058
  msgid "Settings"
2059
  msgstr ""
2060
 
2061
- #: ../core/functions.php:636
2062
  msgid "Pages:"
2063
  msgstr ""
2064
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Ajax Load More\n"
4
+ "POT-Creation-Date: 2017-05-30 15:48-0500\n"
5
+ "PO-Revision-Date: 2017-05-30 15:48-0500\n"
6
+ "Last-Translator: Darren Cooney <dcooney@ecentricarts.com>\n"
7
  "Language-Team: \n"
8
  "Language: en_CA\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.6.4\n"
13
  "X-Poedit-Basepath: .\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
  "X-Poedit-KeywordsList: __;_e\n"
16
  "X-Poedit-SearchPath-0: ..\n"
17
 
18
+ #: ../admin/admin.php:94 ../admin/admin.php:153 ../admin/admin.php:740
19
+ #: ../admin/admin.php:784 ../admin/admin.php:834
20
  msgid "You don't belong here."
21
  msgstr ""
22
 
104
  "to read and write files within the /ajax-load-more/core/repeater directory."
105
  msgstr ""
106
 
107
+ #: ../admin/admin.php:698
108
  msgid "[Ajax Load More] Unable to open repeater template - "
109
  msgstr ""
110
 
111
+ #: ../admin/admin.php:702
112
  msgid "[Ajax Load More] Error saving repeater template - "
113
  msgstr ""
114
 
115
+ #: ../admin/admin.php:735
116
  msgid "Error Writing File"
117
  msgstr ""
118
 
119
+ #: ../admin/admin.php:938 ../admin/shortcode-builder/shortcode-builder.php:935
120
  msgid "Container Type"
121
  msgstr ""
122
 
123
+ #: ../admin/admin.php:946 ../admin/shortcode-builder/shortcode-builder.php:966
124
  msgid "Container Classes"
125
  msgstr ""
126
 
127
+ #: ../admin/admin.php:954
128
  msgid "Disable CSS"
129
  msgstr ""
130
 
131
+ #: ../admin/admin.php:962
132
  msgid "Button/Loading Style"
133
  msgstr ""
134
 
135
+ #: ../admin/admin.php:970
136
  msgid "Button Classes"
137
  msgstr ""
138
 
139
+ #: ../admin/admin.php:978
140
  msgid "Ajax Security"
141
  msgstr ""
142
 
143
+ #: ../admin/admin.php:986
144
  msgid "Top of Page"
145
  msgstr ""
146
 
147
+ #: ../admin/admin.php:994
148
  msgid "Dynamic Content"
149
  msgstr ""
150
 
151
+ #: ../admin/admin.php:1002
152
  msgid "Editor Button"
153
  msgstr ""
154
 
155
+ #: ../admin/admin.php:1010
156
  msgid "Error Notices"
157
  msgstr ""
158
 
159
+ #: ../admin/admin.php:1081
160
  msgid ""
161
  "Customize the user experience of Ajax Load More by updating the fields below."
162
  msgstr ""
163
 
164
+ #: ../admin/admin.php:1094
165
  msgid "The following settings affect the WordPress admin area only."
166
  msgstr ""
167
 
168
+ #: ../admin/admin.php:1125
169
  msgid "I want to use my own CSS styles."
170
  msgstr ""
171
 
172
+ #: ../admin/admin.php:1125
173
  msgid "View Ajax Load More CSS"
174
  msgstr ""
175
 
176
+ #: ../admin/admin.php:1145
177
  msgid "Hide shortcode button in WYSIWYG editor."
178
  msgstr ""
179
 
180
+ #: ../admin/admin.php:1166
181
  msgid ""
182
  "Display error messaging regarding repeater template updates in the browser "
183
  "console."
184
  msgstr ""
185
 
186
+ #: ../admin/admin.php:1187
187
  msgid ""
188
  "Disable dynamic population of categories, tags and authors in the Shortcode "
189
  "Builder.<span style=\"display:block\">Recommended if you have an "
190
  "extraordinary number of categories, tags and/or authors."
191
  msgstr ""
192
 
193
+ #: ../admin/admin.php:1208 ../admin/admin.php:1211
194
  msgid "Ajax Posts Here"
195
  msgstr ""
196
 
197
+ #: ../admin/admin.php:1213
198
  msgid "You can modify the container type when building a shortcode."
199
  msgstr ""
200
 
201
+ #: ../admin/admin.php:1230
202
  msgid ""
203
  "Add classes to Ajax Load More container - classes are applied globally and "
204
  "will appear with every instance of Ajax Load More. <span style=\"display:"
205
  "block\">You can also add classes when building a shortcode.</span>"
206
  msgstr ""
207
 
208
+ #: ../admin/admin.php:1292
209
  msgid ""
210
  "Select an Ajax loading style - you can choose between a <strong>Button</"
211
  "strong> or <strong>Infinite Scroll</strong>"
212
  msgstr ""
213
 
214
+ #: ../admin/admin.php:1297
215
  msgid "Button"
216
  msgstr ""
217
 
218
+ #: ../admin/admin.php:1305
219
  msgid "Infinite Scroll (No Button)"
220
  msgstr ""
221
 
222
+ #: ../admin/admin.php:1316
223
  msgid "Preview"
224
  msgstr ""
225
 
226
+ #: ../admin/admin.php:1316
227
+ #: ../admin/shortcode-builder/shortcode-builder.php:990
228
+ #: ../core/classes/class.alm-shortcode.php:135
229
  msgid "Older Posts"
230
  msgstr ""
231
 
232
+ #: ../admin/admin.php:1335
233
  msgid "Add classes to your <strong>Load More</strong> button"
234
  msgstr ""
235
 
236
+ #: ../admin/admin.php:1378
237
  msgid ""
238
  "On initial page load, move the user's browser window to the top of the "
239
  "screen.<span style=\"display:block\">This <u>may</u> help prevent the "
240
  "loading of unnecessary posts.</span>"
241
  msgstr ""
242
 
243
+ #: ../admin/admin.php:1399
244
  msgid ""
245
  "Enable <a href=\"https://codex.wordpress.org/WordPress_Nonces\" target="
246
  "\"_blank\">WP nonce</a> verification to help protect URLs against certain "
265
  msgstr ""
266
 
267
  #: ../admin/includes/components/example-list.php:2
268
+ #: ../admin/shortcode-builder/shortcode-builder.php:3
269
  #: ../admin/views/repeater-templates.php:104
270
  #: ../admin/views/repeater-templates.php:134
271
  msgid "Collapse All"
272
  msgstr ""
273
 
274
  #: ../admin/includes/components/example-list.php:2
275
+ #: ../admin/shortcode-builder/shortcode-builder.php:4
276
  #: ../admin/views/repeater-templates.php:105
277
  #: ../admin/views/repeater-templates.php:135
278
  msgid "Expand All"
340
  msgstr ""
341
 
342
  #: ../admin/includes/components/repeater-options.php:2
343
+ #: ../admin/shortcode-builder/shortcode-builder.php:913
344
  msgid "Options"
345
  msgstr ""
346
 
551
  #: ../admin/shortcode-builder/includes/tax-query-options.php:5
552
  #: ../admin/shortcode-builder/includes/tax-query-options.php:50
553
  #: ../admin/shortcode-builder/includes/tax-query-options.php:81
554
+ #: ../admin/shortcode-builder/shortcode-builder.php:681
555
  msgid "Select Taxonomy"
556
  msgstr ""
557
 
568
  msgstr ""
569
 
570
  #: ../admin/shortcode-builder/includes/tax-query-options.php:36
571
+ #: ../admin/shortcode-builder/shortcode-builder.php:1586
572
  msgid "Relation:"
573
  msgstr ""
574
 
577
  "The logical relationship between each taxonomy when there is more than one."
578
  msgstr ""
579
 
580
+ #: ../admin/shortcode-builder/shortcode-builder.php:21
581
  msgid "Add-ons & Extensions"
582
  msgstr ""
583
 
584
+ #: ../admin/shortcode-builder/shortcode-builder.php:26
585
  #: ../admin/views/licenses.php:45
586
  msgid "Advanced Custom Fields"
587
  msgstr ""
588
 
589
+ #: ../admin/shortcode-builder/shortcode-builder.php:29
590
  msgid "Enable compatibility with Advanced Custom Fields."
591
  msgstr ""
592
 
593
+ #: ../admin/shortcode-builder/shortcode-builder.php:36
594
+ #: ../admin/shortcode-builder/shortcode-builder.php:116
595
+ #: ../admin/shortcode-builder/shortcode-builder.php:160
596
+ #: ../admin/shortcode-builder/shortcode-builder.php:254
597
+ #: ../admin/shortcode-builder/shortcode-builder.php:405
598
+ #: ../admin/shortcode-builder/shortcode-builder.php:522
599
+ #: ../admin/shortcode-builder/shortcode-builder.php:545
600
+ #: ../admin/shortcode-builder/shortcode-builder.php:599
601
+ #: ../admin/shortcode-builder/shortcode-builder.php:640
602
+ #: ../admin/shortcode-builder/shortcode-builder.php:733
603
+ #: ../admin/shortcode-builder/shortcode-builder.php:813
604
+ #: ../admin/shortcode-builder/shortcode-builder.php:847
605
+ #: ../admin/shortcode-builder/shortcode-builder.php:1024
606
+ #: ../admin/shortcode-builder/shortcode-builder.php:1071
607
+ #: ../admin/shortcode-builder/shortcode-builder.php:1176
608
+ #: ../admin/shortcode-builder/shortcode-builder.php:1204
609
+ #: ../admin/shortcode-builder/shortcode-builder.php:1251
610
  msgid "True"
611
  msgstr ""
612
 
613
+ #: ../admin/shortcode-builder/shortcode-builder.php:40
614
+ #: ../admin/shortcode-builder/shortcode-builder.php:120
615
+ #: ../admin/shortcode-builder/shortcode-builder.php:164
616
+ #: ../admin/shortcode-builder/shortcode-builder.php:258
617
+ #: ../admin/shortcode-builder/shortcode-builder.php:409
618
+ #: ../admin/shortcode-builder/shortcode-builder.php:526
619
+ #: ../admin/shortcode-builder/shortcode-builder.php:549
620
+ #: ../admin/shortcode-builder/shortcode-builder.php:603
621
+ #: ../admin/shortcode-builder/shortcode-builder.php:644
622
+ #: ../admin/shortcode-builder/shortcode-builder.php:737
623
+ #: ../admin/shortcode-builder/shortcode-builder.php:817
624
+ #: ../admin/shortcode-builder/shortcode-builder.php:851
625
+ #: ../admin/shortcode-builder/shortcode-builder.php:1028
626
+ #: ../admin/shortcode-builder/shortcode-builder.php:1075
627
+ #: ../admin/shortcode-builder/shortcode-builder.php:1180
628
+ #: ../admin/shortcode-builder/shortcode-builder.php:1208
629
+ #: ../admin/shortcode-builder/shortcode-builder.php:1255
630
  msgid "False"
631
  msgstr ""
632
 
633
+ #: ../admin/shortcode-builder/shortcode-builder.php:52
634
+ #: ../admin/shortcode-builder/shortcode-builder.php:269
635
+ #: ../admin/shortcode-builder/shortcode-builder.php:422
636
+ #: ../admin/shortcode-builder/shortcode-builder.php:654
637
  msgid "Post ID"
638
  msgstr ""
639
 
640
+ #: ../admin/shortcode-builder/shortcode-builder.php:52
641
  msgid ""
642
  "Leave this field blank and Ajax Load More will get the ID from the global "
643
  "$post object"
644
  msgstr ""
645
 
646
+ #: ../admin/shortcode-builder/shortcode-builder.php:53
647
+ #: ../admin/shortcode-builder/shortcode-builder.php:423
648
  msgid "The ID of the current page/post."
649
  msgstr ""
650
 
 
651
  #: ../admin/shortcode-builder/shortcode-builder.php:66
652
+ #: ../admin/shortcode-builder/shortcode-builder.php:71
653
+ #: ../admin/shortcode-builder/shortcode-builder.php:92
654
  msgid "Field Type"
655
  msgstr ""
656
 
657
+ #: ../admin/shortcode-builder/shortcode-builder.php:67
658
  msgid "Select the type of ACF field"
659
  msgstr ""
660
 
661
+ #: ../admin/shortcode-builder/shortcode-builder.php:73
662
  msgid "Select Field Type"
663
  msgstr ""
664
 
665
+ #: ../admin/shortcode-builder/shortcode-builder.php:74
666
  msgid "Flexible Content"
667
  msgstr ""
668
 
669
+ #: ../admin/shortcode-builder/shortcode-builder.php:75
670
  msgid "Gallery"
671
  msgstr ""
672
 
673
+ #: ../admin/shortcode-builder/shortcode-builder.php:76
674
  msgid "Relationship"
675
  msgstr ""
676
 
677
+ #: ../admin/shortcode-builder/shortcode-builder.php:77
678
  msgid "Repeater"
679
  msgstr ""
680
 
681
+ #: ../admin/shortcode-builder/shortcode-builder.php:87
682
  msgid "Field Name"
683
  msgstr ""
684
 
685
+ #: ../admin/shortcode-builder/shortcode-builder.php:88
686
  msgid "Enter the name of the ACF field"
687
  msgstr ""
688
 
689
+ #: ../admin/shortcode-builder/shortcode-builder.php:106
690
  #: ../admin/views/add-ons.php:21 ../admin/views/licenses.php:111
691
  #: ../admin/views/settings.php:57
692
  msgid "Cache"
693
  msgstr ""
694
 
695
+ #: ../admin/shortcode-builder/shortcode-builder.php:109
696
  msgid "Turn on content caching."
697
  msgstr ""
698
 
699
+ #: ../admin/shortcode-builder/shortcode-builder.php:130
700
  msgid "Cache ID"
701
  msgstr ""
702
 
703
+ #: ../admin/shortcode-builder/shortcode-builder.php:131
704
  msgid ""
705
  "You <u>must</u> generate a unique ID for this cached query - this unique ID "
706
  "will be used as a content identifier."
707
  msgstr ""
708
 
709
+ #: ../admin/shortcode-builder/shortcode-builder.php:137
710
  msgid "Generate Cache ID"
711
  msgstr ""
712
 
713
+ #: ../admin/shortcode-builder/shortcode-builder.php:149
714
  #: ../admin/views/add-ons.php:48 ../admin/views/licenses.php:176
715
  msgid "Call to Actions"
716
  msgstr ""
717
 
718
+ #: ../admin/shortcode-builder/shortcode-builder.php:153
719
  msgid "Insert call to action block."
720
  msgstr ""
721
 
722
+ #: ../admin/shortcode-builder/shortcode-builder.php:177
723
  msgid "CTA Positioning"
724
  msgstr ""
725
 
726
+ #: ../admin/shortcode-builder/shortcode-builder.php:178
727
  msgid ""
728
  "Insert call to action <strong><em id=\"sequence-update-before-after"
729
  "\">before</em></strong> post #<strong><em id=\"sequence-update\">1</em></"
730
  "strong>"
731
  msgstr ""
732
 
733
+ #: ../admin/shortcode-builder/shortcode-builder.php:183
734
  msgid "Before / After"
735
  msgstr ""
736
 
737
+ #: ../admin/shortcode-builder/shortcode-builder.php:185
738
  msgid "Before"
739
  msgstr ""
740
 
741
+ #: ../admin/shortcode-builder/shortcode-builder.php:186
742
  msgid "After"
743
  msgstr ""
744
 
745
+ #: ../admin/shortcode-builder/shortcode-builder.php:190
746
  msgid "Post #"
747
  msgstr ""
748
 
749
+ #: ../admin/shortcode-builder/shortcode-builder.php:201
750
+ #: ../admin/shortcode-builder/shortcode-builder.php:873
751
  msgid "Template"
752
  msgstr ""
753
 
754
+ #: ../admin/shortcode-builder/shortcode-builder.php:203
755
  msgid ""
756
  "Select the <a href=\"admin.php?page=ajax-load-more-repeaters\" target="
757
  "\"_parent\">repeater template</a> that will display your call to action."
758
  msgstr ""
759
 
760
+ #: ../admin/shortcode-builder/shortcode-builder.php:210
761
  #, fuzzy
762
  msgid "-- Select Repeater --"
763
  msgstr "Sélectionnez province"
764
 
765
+ #: ../admin/shortcode-builder/shortcode-builder.php:230
766
  msgid ""
767
  "Call to actions do NOT count as a post within an Ajax Load More loop.<br/>\n"
768
  " For example, if you set <strong>posts_per_page=\"5\"</"
769
  "strong> in your shortcode, 6 items will be displayed."
770
  msgstr ""
771
 
772
+ #: ../admin/shortcode-builder/shortcode-builder.php:244
773
  #: ../admin/views/add-ons.php:75 ../admin/views/licenses.php:241
774
  msgid "Comments"
775
  msgstr ""
776
 
777
+ #: ../admin/shortcode-builder/shortcode-builder.php:247
778
  msgid "Enable Ajax Load More to display blog comments."
779
  msgstr ""
780
 
781
+ #: ../admin/shortcode-builder/shortcode-builder.php:270
782
+ #: ../admin/shortcode-builder/shortcode-builder.php:655
783
  msgid "The ID of the current single post."
784
  msgstr ""
785
 
786
+ #: ../admin/shortcode-builder/shortcode-builder.php:281
787
  msgid "Comments Per Page"
788
  msgstr ""
789
 
790
+ #: ../admin/shortcode-builder/shortcode-builder.php:282
791
  msgid "The number of top level items to show for each page of comments."
792
  msgstr ""
793
 
794
+ #: ../admin/shortcode-builder/shortcode-builder.php:290
795
  msgid ""
796
  "<strong>Note</strong>: The amount selected does NOT include comment replies."
797
  msgstr ""
798
 
799
+ #: ../admin/shortcode-builder/shortcode-builder.php:296
800
  msgid "Comment Type"
801
  msgstr ""
802
 
803
+ #: ../admin/shortcode-builder/shortcode-builder.php:297
804
  msgid "The type of comment(s) to display."
805
  msgstr ""
806
 
807
+ #: ../admin/shortcode-builder/shortcode-builder.php:302
808
  msgid "Comment"
809
  msgstr ""
810
 
811
+ #: ../admin/shortcode-builder/shortcode-builder.php:303
812
  msgid "All"
813
  msgstr ""
814
 
815
+ #: ../admin/shortcode-builder/shortcode-builder.php:304
816
  msgid "Trackback"
817
  msgstr ""
818
 
819
+ #: ../admin/shortcode-builder/shortcode-builder.php:305
820
  msgid "Pingback"
821
  msgstr ""
822
 
823
+ #: ../admin/shortcode-builder/shortcode-builder.php:306
824
  msgid "Pings"
825
  msgstr ""
826
 
827
+ #: ../admin/shortcode-builder/shortcode-builder.php:314
828
  msgid "Comment Style"
829
  msgstr ""
830
 
831
+ #: ../admin/shortcode-builder/shortcode-builder.php:315
832
  msgid "Select the HTML container style for your comments."
833
  msgstr ""
834
 
835
+ #: ../admin/shortcode-builder/shortcode-builder.php:340
836
  msgid "Comment Template"
837
  msgstr ""
838
 
839
+ #: ../admin/shortcode-builder/shortcode-builder.php:341
840
  msgid "Select a repeater template that will display comment data."
841
  msgstr ""
842
 
843
+ #: ../admin/shortcode-builder/shortcode-builder.php:347
844
+ #: ../admin/shortcode-builder/shortcode-builder.php:1098
845
  msgid "None"
846
  msgstr ""
847
 
848
+ #: ../admin/shortcode-builder/shortcode-builder.php:348
849
  msgid "Default"
850
  msgstr ""
851
 
852
+ #: ../admin/shortcode-builder/shortcode-builder.php:360
853
  msgid ""
854
  "<strong>Note</strong>: <span>None</span> will use the default WordPress "
855
  "comment layout."
856
  msgstr ""
857
 
858
+ #: ../admin/shortcode-builder/shortcode-builder.php:369
859
  msgid "Callback Function"
860
  msgstr ""
861
 
862
+ #: ../admin/shortcode-builder/shortcode-builder.php:370
863
  msgid ""
864
  "A custom <a href=\"https://codex.wordpress.org/Function_Reference/"
865
  "wp_list_comments#Arguments\" target=\"_blank\">callback</a> function that "
866
  "will display each comment."
867
  msgstr ""
868
 
869
+ #: ../admin/shortcode-builder/shortcode-builder.php:378
870
  msgid ""
871
  "<strong>Note</strong>: The majority of premium themes have a custom callback "
872
  "function for displaying comments. Please see comments.php or functions.php "
873
  "within your theme directory to locate the callback function for your theme."
874
  msgstr ""
875
 
876
+ #: ../admin/shortcode-builder/shortcode-builder.php:383
877
  msgid ""
878
  "You must add the comments shortcode directly to your single template file "
879
  "using the <a href=\"https://developer.wordpress.org/reference/functions/"
882
  "\"_blank\">View documentation</a>"
883
  msgstr ""
884
 
885
+ #: ../admin/shortcode-builder/shortcode-builder.php:395
886
  #: ../admin/views/add-ons.php:154 ../admin/views/licenses.php:440
887
  #, fuzzy
888
  msgid "Next Page"
889
  msgstr "Imprimer cette page"
890
 
891
+ #: ../admin/shortcode-builder/shortcode-builder.php:398
892
  msgid "Enable the infinite scrolling of multipage WordPress content using the"
893
  msgstr ""
894
 
895
+ #: ../admin/shortcode-builder/shortcode-builder.php:398
896
  msgid "Quicktag"
897
  msgstr ""
898
 
899
+ #: ../admin/shortcode-builder/shortcode-builder.php:435
900
  msgid "URL Rewrite"
901
  msgstr ""
902
 
903
+ #: ../admin/shortcode-builder/shortcode-builder.php:436
904
  msgid "Update the browser address bar as pages come into view"
905
  msgstr ""
906
 
907
+ #: ../admin/shortcode-builder/shortcode-builder.php:443
908
  msgid "Yes, update the URL"
909
  msgstr ""
910
 
911
+ #: ../admin/shortcode-builder/shortcode-builder.php:455
912
  msgid "Google Analytics"
913
  msgstr ""
914
 
915
+ #: ../admin/shortcode-builder/shortcode-builder.php:456
916
  msgid ""
917
  "You must have a reference to your Google Analytics tracking code already on "
918
  "the page"
919
  msgstr ""
920
 
921
+ #: ../admin/shortcode-builder/shortcode-builder.php:458
922
  msgid "Each time a page is loaded it will count as a pageview"
923
  msgstr ""
924
 
925
+ #: ../admin/shortcode-builder/shortcode-builder.php:465
926
  msgid "Yes, send pageviews to Google Analytics"
927
  msgstr ""
928
 
929
+ #: ../admin/shortcode-builder/shortcode-builder.php:476
930
  msgid "Scroll to Page"
931
  msgstr ""
932
 
933
+ #: ../admin/shortcode-builder/shortcode-builder.php:477
934
  msgid "Set Scroll Speed to 0 to disable scrolling to page"
935
  msgstr ""
936
 
937
+ #: ../admin/shortcode-builder/shortcode-builder.php:480
938
  msgid "Scroll users automatically to the next page on 'Load More' button click"
939
  msgstr ""
940
 
941
+ #: ../admin/shortcode-builder/shortcode-builder.php:486
942
  msgid "Scroll Speed"
943
  msgstr ""
944
 
945
+ #: ../admin/shortcode-builder/shortcode-builder.php:487
946
  msgid "Scrolling speed in milliseconds (e.g. 1 second = 1000)"
947
  msgstr ""
948
 
949
+ #: ../admin/shortcode-builder/shortcode-builder.php:493
950
  msgid "Scroll Top"
951
  msgstr ""
952
 
953
+ #: ../admin/shortcode-builder/shortcode-builder.php:494
954
  msgid ""
955
  "The scrolltop position of the window (used with scrolling and fwd/back "
956
  "browser buttons)"
957
  msgstr ""
958
 
959
+ #: ../admin/shortcode-builder/shortcode-builder.php:501
960
  msgid ""
961
  "You must add the Next Page shortcode directly to your single template file "
962
  "using the <a href=\"https://developer.wordpress.org/reference/functions/"
965
  "\"_blank\">View documentation</a>"
966
  msgstr ""
967
 
968
+ #: ../admin/shortcode-builder/shortcode-builder.php:513
969
  #: ../admin/views/add-ons.php:180 ../admin/views/licenses.php:507
970
  #: ../admin/views/settings.php:61
971
  msgid "Paging"
972
  msgstr ""
973
 
974
+ #: ../admin/shortcode-builder/shortcode-builder.php:515
975
  msgid "Replace infinite scrolling with a paged ajax navigation system."
976
  msgstr ""
977
 
978
+ #: ../admin/shortcode-builder/shortcode-builder.php:537
979
  msgid "Paging Controls"
980
  msgstr ""
981
 
982
+ #: ../admin/shortcode-builder/shortcode-builder.php:538
983
  msgid "Show (&laquo;)previous and next(&raquo;) buttons."
984
  msgstr ""
985
 
986
+ #: ../admin/shortcode-builder/shortcode-builder.php:558
987
  msgid "Paging Navigation Classes"
988
  msgstr ""
989
 
990
+ #: ../admin/shortcode-builder/shortcode-builder.php:559
991
  msgid "Add custom CSS classes to the paging navigation menu."
992
  msgstr ""
993
 
994
+ #: ../admin/shortcode-builder/shortcode-builder.php:570
995
  msgid "Show at Most"
996
  msgstr ""
997
 
998
+ #: ../admin/shortcode-builder/shortcode-builder.php:571
999
  msgid ""
1000
  "The maximum amount of page menu items to show at a time. <br/.>0 = no maximum"
1001
  msgstr ""
1002
 
1003
+ #: ../admin/shortcode-builder/shortcode-builder.php:589
1004
  #: ../admin/views/add-ons.php:207 ../admin/views/licenses.php:572
1005
  msgid "Preloaded"
1006
  msgstr ""
1007
 
1008
+ #: ../admin/shortcode-builder/shortcode-builder.php:592
1009
  msgid "Preload posts prior to making Ajax requests."
1010
  msgstr ""
1011
 
1012
+ #: ../admin/shortcode-builder/shortcode-builder.php:613
1013
  msgid "Preload Amount"
1014
  msgstr ""
1015
 
1016
+ #: ../admin/shortcode-builder/shortcode-builder.php:614
1017
  msgid "Enter the number of posts to preload."
1018
  msgstr ""
1019
 
1020
+ #: ../admin/shortcode-builder/shortcode-builder.php:630
1021
  #: ../admin/views/add-ons.php:233 ../admin/views/licenses.php:636
1022
  #: ../admin/views/settings.php:63
1023
  msgid "Previous Post"
1024
  msgstr ""
1025
 
1026
+ #: ../admin/shortcode-builder/shortcode-builder.php:633
1027
  msgid "Enable the infinite scrolling of single posts."
1028
  msgstr ""
1029
 
1030
+ #: ../admin/shortcode-builder/shortcode-builder.php:667
1031
+ #: ../admin/shortcode-builder/shortcode-builder.php:1526
1032
  msgid "Taxonomy"
1033
  msgstr ""
1034
 
1035
+ #: ../admin/shortcode-builder/shortcode-builder.php:667
1036
  msgid ""
1037
  "Selecting a taxonomy means only previous posts from the same taxonomy will "
1038
  "be returned"
1039
  msgstr ""
1040
 
1041
+ #: ../admin/shortcode-builder/shortcode-builder.php:668
1042
  msgid "Query previous posts from the same taxonomy."
1043
  msgstr ""
1044
 
1045
+ #: ../admin/shortcode-builder/shortcode-builder.php:682
1046
+ #: ../admin/shortcode-builder/shortcode-builder.php:1407
1047
  msgid "Category"
1048
  msgstr ""
1049
 
1050
+ #: ../admin/shortcode-builder/shortcode-builder.php:683
1051
+ #: ../admin/shortcode-builder/shortcode-builder.php:1467
1052
  msgid "Tag"
1053
  msgstr ""
1054
 
1055
+ #: ../admin/shortcode-builder/shortcode-builder.php:697
1056
  msgid ""
1057
  "You must add the Previous Post shortcode directly to your single template "
1058
  "file using the <a href=\"https://developer.wordpress.org/reference/functions/"
1061
  "target=\"_blank\">View documentation</a>"
1062
  msgstr ""
1063
 
1064
+ #: ../admin/shortcode-builder/shortcode-builder.php:723
1065
  #: ../admin/views/settings.php:65
1066
  msgid "REST API"
1067
  msgstr ""
1068
 
1069
+ #: ../admin/shortcode-builder/shortcode-builder.php:726
1070
  msgid "Enable the WordPress REST API."
1071
  msgstr ""
1072
 
1073
+ #: ../admin/shortcode-builder/shortcode-builder.php:750
1074
  msgid "Base URL"
1075
  msgstr ""
1076
 
1077
+ #: ../admin/shortcode-builder/shortcode-builder.php:751
1078
  msgid "Set a default Base URL in the Ajax Load More settings panel"
1079
  msgstr ""
1080
 
1081
+ #: ../admin/shortcode-builder/shortcode-builder.php:752
1082
  msgid "Enter the base URL to your installation of the REST API."
1083
  msgstr ""
1084
 
1085
+ #: ../admin/shortcode-builder/shortcode-builder.php:764
1086
  msgid "Namespace"
1087
  msgstr ""
1088
 
1089
+ #: ../admin/shortcode-builder/shortcode-builder.php:765
1090
  msgid "Set a default Namespace in the Ajax Load More settings panel"
1091
  msgstr ""
1092
 
1093
+ #: ../admin/shortcode-builder/shortcode-builder.php:766
1094
  msgid "Enter the custom namespace for this Ajax Load More query."
1095
  msgstr ""
1096
 
1097
+ #: ../admin/shortcode-builder/shortcode-builder.php:778
1098
  msgid "Endpoint"
1099
  msgstr ""
1100
 
1101
+ #: ../admin/shortcode-builder/shortcode-builder.php:779
1102
  msgid "Set a default Endpoint in the Ajax Load More settings panel"
1103
  msgstr ""
1104
 
1105
+ #: ../admin/shortcode-builder/shortcode-builder.php:780
1106
  msgid "Enter your custom endpoint for this Ajax Load More query."
1107
  msgstr ""
1108
 
1109
+ #: ../admin/shortcode-builder/shortcode-builder.php:792
1110
  msgid "Template ID"
1111
  msgstr ""
1112
 
1113
+ #: ../admin/shortcode-builder/shortcode-builder.php:792
1114
  msgid ""
1115
  "Ajax Load More references this ID while looping and displaying your data. "
1116
  "You must still select a repeater template for this instance of Ajax Load More"
1117
  msgstr ""
1118
 
1119
+ #: ../admin/shortcode-builder/shortcode-builder.php:793
1120
  msgid ""
1121
  "Enter the ID of your javascript template.<br/><br/>e.g. <em>tmpl-alm-"
1122
  "template</em> = <em>alm-template</em>"
1123
  msgstr ""
1124
 
1125
+ #: ../admin/shortcode-builder/shortcode-builder.php:793
1126
+ #: ../admin/shortcode-builder/shortcode-builder.php:1195
1127
+ #: ../admin/shortcode-builder/shortcode-builder.php:1412
1128
+ #: ../admin/shortcode-builder/shortcode-builder.php:1471
1129
+ #: ../admin/shortcode-builder/shortcode-builder.php:1671
1130
  msgid "View Example"
1131
  msgstr ""
1132
 
1133
+ #: ../admin/shortcode-builder/shortcode-builder.php:805
1134
  msgid "Debug Mode"
1135
  msgstr ""
1136
 
1137
+ #: ../admin/shortcode-builder/shortcode-builder.php:806
1138
  msgid ""
1139
  "Enable debugging (console.log) of REST API responses in the browser console. "
1140
  msgstr ""
1141
 
1142
+ #: ../admin/shortcode-builder/shortcode-builder.php:824
1143
  msgid ""
1144
  "Visit <a href=\"http://v2.wp-api.org/\" target=\"_blank\">http://v2.wp-api."
1145
  "org</a> for documentation on creating custom <a href=\"http://v2.wp-api.org/"
1147
  "More."
1148
  msgstr ""
1149
 
1150
+ #: ../admin/shortcode-builder/shortcode-builder.php:837
1151
  msgid "SEO (Search Engine Optimization)"
1152
  msgstr ""
1153
 
1154
+ #: ../admin/shortcode-builder/shortcode-builder.php:840
1155
  msgid ""
1156
  "Enable address bar URL rewrites as users page through ajax loaded content."
1157
  msgstr ""
1158
 
1159
+ #: ../admin/shortcode-builder/shortcode-builder.php:868
1160
  msgid "Display Settings"
1161
  msgstr ""
1162
 
1163
+ #: ../admin/shortcode-builder/shortcode-builder.php:877
1164
  msgid "Repeater Template"
1165
  msgstr ""
1166
 
1167
+ #: ../admin/shortcode-builder/shortcode-builder.php:879
1168
  msgid ""
1169
  "Select which <a href=\"admin.php?page=ajax-load-more-repeaters\" target="
1170
  "\"_parent\">repeater template</a> you would like to use."
1171
  msgstr ""
1172
 
1173
+ #: ../admin/shortcode-builder/shortcode-builder.php:918
1174
  msgid "ID"
1175
  msgstr ""
1176
 
1177
+ #: ../admin/shortcode-builder/shortcode-builder.php:918
1178
  msgid ""
1179
  "Adding a unique ID will allow you target this specific Ajax Load More "
1180
  "instance with the alm_query_args_id() filter."
1181
  msgstr ""
1182
 
1183
+ #: ../admin/shortcode-builder/shortcode-builder.php:919
1184
  msgid "Set a unique ID for this Ajax Load More instance."
1185
  msgstr ""
1186
 
1187
+ #: ../admin/shortcode-builder/shortcode-builder.php:926
1188
  msgid "Generate Unique ID"
1189
  msgstr ""
1190
 
1191
+ #: ../admin/shortcode-builder/shortcode-builder.php:935
1192
  msgid ""
1193
  "You can define a global container type on the Ajax Load More settings screen"
1194
  msgstr ""
1195
 
1196
+ #: ../admin/shortcode-builder/shortcode-builder.php:936
1197
  msgid ""
1198
+ "Override the global Container Type set on the <a href=\"admin.php?page=ajax-"
1199
+ "load-more\">ALM Settings page</a>."
1200
  msgstr ""
1201
 
1202
+ #: ../admin/shortcode-builder/shortcode-builder.php:966
1203
  msgid ""
1204
  "You can define global container classes on the Ajax Load More settings screen"
1205
  msgstr ""
1206
 
1207
+ #: ../admin/shortcode-builder/shortcode-builder.php:967
1208
  msgid ""
1209
  "Add custom CSS classes to the Ajax Load More container. <br/><br/> e.g. "
1210
  "portfolio-listing large-12 etc"
1211
  msgstr ""
1212
 
1213
+ #: ../admin/shortcode-builder/shortcode-builder.php:980
1214
  msgid "Button Labels"
1215
  msgstr ""
1216
 
1217
+ #: ../admin/shortcode-builder/shortcode-builder.php:985
1218
  msgid "Label"
1219
  msgstr ""
1220
 
1221
+ #: ../admin/shortcode-builder/shortcode-builder.php:986
1222
  msgid "Customize the text of the <em>Load More</em> button."
1223
  msgstr ""
1224
 
1225
+ #: ../admin/shortcode-builder/shortcode-builder.php:998
1226
  msgid "Loading Label"
1227
  msgstr ""
1228
 
1229
+ #: ../admin/shortcode-builder/shortcode-builder.php:998
1230
  msgid "Leave field empty to not update text while loading content"
1231
  msgstr ""
1232
 
1233
+ #: ../admin/shortcode-builder/shortcode-builder.php:999
1234
  msgid ""
1235
  "Update the text of the <em>Load More</em> button while content is loading."
1236
  msgstr ""
1237
 
1238
+ #: ../admin/shortcode-builder/shortcode-builder.php:1003
1239
  msgid "Loading Posts..."
1240
  msgstr ""
1241
 
1242
+ #: ../admin/shortcode-builder/shortcode-builder.php:1013
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1243
  msgid "Scrolling"
1244
  msgstr ""
1245
 
1246
+ #: ../admin/shortcode-builder/shortcode-builder.php:1016
1247
  msgid "Enable Scrolling"
1248
  msgstr ""
1249
 
1250
+ #: ../admin/shortcode-builder/shortcode-builder.php:1017
1251
  msgid "Load more posts as the user scrolls the page."
1252
  msgstr ""
1253
 
1254
+ #: ../admin/shortcode-builder/shortcode-builder.php:1038
1255
  msgid "Scroll Distance"
1256
  msgstr ""
1257
 
1258
+ #: ../admin/shortcode-builder/shortcode-builder.php:1038
1259
  msgid ""
1260
  "Distance is based on the position of the loading button from the bottom of "
1261
  "the screen"
1262
  msgstr ""
1263
 
1264
+ #: ../admin/shortcode-builder/shortcode-builder.php:1039
1265
  msgid ""
1266
  "The distance from the bottom of the screen to trigger loading of posts. "
1267
  "(Default = 150)"
1268
  msgstr ""
1269
 
1270
+ #: ../admin/shortcode-builder/shortcode-builder.php:1051
1271
  msgid "Maximum Pages"
1272
  msgstr ""
1273
 
1274
+ #: ../admin/shortcode-builder/shortcode-builder.php:1051
1275
  msgid "If using an Infinite Scroll button style you should set this to 0"
1276
  msgstr ""
1277
 
1278
+ #: ../admin/shortcode-builder/shortcode-builder.php:1052
1279
  msgid "Maximum number of pages to load while scrolling. (0 = unlimited)"
1280
  msgstr ""
1281
 
1282
+ #: ../admin/shortcode-builder/shortcode-builder.php:1064
1283
  msgid "Pause Override"
1284
  msgstr ""
1285
 
1286
+ #: ../admin/shortcode-builder/shortcode-builder.php:1065
1287
  msgid ""
1288
  "Allow scrolling to override the Pause parameter and trigger the loading of "
1289
  "posts on scroll."
1290
  msgstr ""
1291
 
1292
+ #: ../admin/shortcode-builder/shortcode-builder.php:1086
1293
  msgid "Transition"
1294
  msgstr ""
1295
 
1296
+ #: ../admin/shortcode-builder/shortcode-builder.php:1089
1297
+ msgid "Type"
1298
  msgstr ""
1299
 
1300
+ #: ../admin/shortcode-builder/shortcode-builder.php:1090
1301
  msgid "Select a loading transition style."
1302
  msgstr ""
1303
 
1304
+ #: ../admin/shortcode-builder/shortcode-builder.php:1095
1305
  msgid "Slide"
1306
  msgstr ""
1307
 
1308
+ #: ../admin/shortcode-builder/shortcode-builder.php:1096
1309
  msgid "Fade"
1310
  msgstr ""
1311
 
1312
+ #: ../admin/shortcode-builder/shortcode-builder.php:1097
1313
+ msgid "Masonry"
1314
+ msgstr ""
1315
+
1316
+ #: ../admin/shortcode-builder/shortcode-builder.php:1111
1317
+ msgid "Masonry Item Selector"
1318
+ msgstr ""
1319
+
1320
+ #: ../admin/shortcode-builder/shortcode-builder.php:1111
1321
+ msgid ""
1322
+ "Item Selector is required for Masonry to target each element loaded with Ajax"
1323
  msgstr ""
1324
 
1325
+ #: ../admin/shortcode-builder/shortcode-builder.php:1112
1326
+ msgid "Enter the target classname of each masonry item"
1327
+ msgstr ""
1328
+
1329
+ #: ../admin/shortcode-builder/shortcode-builder.php:1131
1330
+ msgid "Speed"
1331
+ msgstr ""
1332
+
1333
+ #: ../admin/shortcode-builder/shortcode-builder.php:1131
1334
  msgid "0.5 seconds = 500, 1 second = 1000 etc."
1335
  msgstr ""
1336
 
1337
+ #: ../admin/shortcode-builder/shortcode-builder.php:1132
1338
  msgid "The speed of the loading transition in milliseconds"
1339
  msgstr ""
1340
 
1341
+ #: ../admin/shortcode-builder/shortcode-builder.php:1144
1342
+ msgid "Container"
1343
  msgstr ""
1344
 
1345
+ #: ../admin/shortcode-builder/shortcode-builder.php:1144
1346
  msgid ""
1347
  "Removing the transition container may have undesired results and is not "
1348
  "recommended."
1349
  msgstr ""
1350
 
1351
+ #: ../admin/shortcode-builder/shortcode-builder.php:1145
1352
+ msgid ""
1353
+ "Remove the <span>.alm-reveal</span> loading container from Ajax Load More"
1354
  msgstr ""
1355
 
1356
+ #: ../admin/shortcode-builder/shortcode-builder.php:1152
1357
  msgid "Remove Container"
1358
  msgstr ""
1359
 
1360
+ #: ../admin/shortcode-builder/shortcode-builder.php:1166
1361
+ msgid "Pause"
1362
+ msgstr ""
1363
+
1364
+ #: ../admin/shortcode-builder/shortcode-builder.php:1169
1365
+ msgid ""
1366
+ "Do <u>NOT</u> load any posts until user clicks the <em>Load More</em> button."
1367
+ msgstr ""
1368
+
1369
+ #: ../admin/shortcode-builder/shortcode-builder.php:1191
1370
+ msgid "Progress Bar"
1371
+ msgstr ""
1372
+
1373
+ #: ../admin/shortcode-builder/shortcode-builder.php:1194
1374
+ msgid ""
1375
+ "Display progress bar indicator at the top of the window while loading Ajax "
1376
+ "content"
1377
+ msgstr ""
1378
+
1379
+ #: ../admin/shortcode-builder/shortcode-builder.php:1223
1380
+ msgid "Color"
1381
+ msgstr ""
1382
+
1383
+ #: ../admin/shortcode-builder/shortcode-builder.php:1224
1384
+ msgid "Enter the hex color of the progress bar"
1385
+ msgstr ""
1386
+
1387
+ #: ../admin/shortcode-builder/shortcode-builder.php:1241
1388
+ msgid "Images Loaded"
1389
+ msgstr ""
1390
+
1391
+ #: ../admin/shortcode-builder/shortcode-builder.php:1244
1392
+ msgid "Wait for all images to load before displaying ajax loaded content"
1393
+ msgstr ""
1394
+
1395
+ #: ../admin/shortcode-builder/shortcode-builder.php:1244
1396
+ msgid "Background images are not supported"
1397
+ msgstr ""
1398
+
1399
+ #: ../admin/shortcode-builder/shortcode-builder.php:1266
1400
  msgid "Destroy After"
1401
  msgstr ""
1402
 
1403
+ #: ../admin/shortcode-builder/shortcode-builder.php:1271
1404
  msgid ""
1405
+ "Remove Ajax Load More functionality after '<em>n</em>' number of pages have "
1406
  "been loaded."
1407
  msgstr ""
1408
 
1409
+ #: ../admin/shortcode-builder/shortcode-builder.php:1291
1410
  msgid "Query Parameters"
1411
  msgstr ""
1412
 
1413
+ #: ../admin/shortcode-builder/shortcode-builder.php:1295
1414
  msgid "Posts Per Page"
1415
  msgstr ""
1416
 
1417
+ #: ../admin/shortcode-builder/shortcode-builder.php:1298
1418
  msgid "Select the number of posts to load with each request."
1419
  msgstr ""
1420
 
1421
+ #: ../admin/shortcode-builder/shortcode-builder.php:1317
1422
  msgid "Post Type"
1423
  msgstr ""
1424
 
1425
+ #: ../admin/shortcode-builder/shortcode-builder.php:1322
1426
  msgid "Select the Post Types to include in this Ajax Load More query."
1427
  msgstr ""
1428
 
1429
+ #: ../admin/shortcode-builder/shortcode-builder.php:1336
1430
  msgid "Any"
1431
  msgstr ""
1432
 
1433
+ #: ../admin/shortcode-builder/shortcode-builder.php:1348
1434
  msgid "Sticky Posts"
1435
  msgstr ""
1436
 
1437
+ #: ../admin/shortcode-builder/shortcode-builder.php:1348
1438
  msgid "Sticky posts are only available for Posts."
1439
  msgstr ""
1440
 
1441
+ #: ../admin/shortcode-builder/shortcode-builder.php:1349
1442
  msgid ""
1443
  "Preserve the ordering of sticky posts by having them appear first in the "
1444
  "Ajax listing."
1445
  msgstr ""
1446
 
1447
+ #: ../admin/shortcode-builder/shortcode-builder.php:1356
1448
  msgid "Enable Sticky Posts"
1449
  msgstr ""
1450
 
1451
+ #: ../admin/shortcode-builder/shortcode-builder.php:1378
1452
  msgid "Post Format"
1453
  msgstr ""
1454
 
1455
+ #: ../admin/shortcode-builder/shortcode-builder.php:1381
1456
  msgid ""
1457
  "Select a <a href=\"http://codex.wordpress.org/Post_Formats\" target=\"_blank"
1458
  "\">Post Format</a> to query."
1459
  msgstr ""
1460
 
1461
+ #: ../admin/shortcode-builder/shortcode-builder.php:1384
1462
  msgid "Select Post Format"
1463
  msgstr ""
1464
 
1465
+ #: ../admin/shortcode-builder/shortcode-builder.php:1385
1466
  msgid "Standard"
1467
  msgstr ""
1468
 
1469
+ #: ../admin/shortcode-builder/shortcode-builder.php:1411
1470
  msgid ""
1471
  "A comma separated list of categories to include by slug. (design, research "
1472
  "etc...)"
1473
  msgstr ""
1474
 
1475
+ #: ../admin/shortcode-builder/shortcode-builder.php:1434
1476
+ #: ../admin/shortcode-builder/shortcode-builder.php:1492
1477
+ #: ../admin/shortcode-builder/shortcode-builder.php:1670
1478
  msgid "Exclude"
1479
  msgstr ""
1480
 
1481
+ #: ../admin/shortcode-builder/shortcode-builder.php:1435
1482
  msgid ""
1483
  "A comma separated list of categories to exclude by ID. (3, 12, 35 etc..)"
1484
  msgstr ""
1485
 
1486
+ #: ../admin/shortcode-builder/shortcode-builder.php:1470
1487
+ #: ../admin/shortcode-builder/shortcode-builder.php:1659
1488
  msgid "Include"
1489
  msgstr ""
1490
 
1491
+ #: ../admin/shortcode-builder/shortcode-builder.php:1471
1492
  msgid ""
1493
  "A comma separated list of tags to include by slug. (toronto, canada etc...)"
1494
  msgstr ""
1495
 
1496
+ #: ../admin/shortcode-builder/shortcode-builder.php:1493
1497
  msgid "A comma separated list of tags to exclude by ID. (30, 12, 99 etc..)"
1498
  msgstr ""
1499
 
1500
+ #: ../admin/shortcode-builder/shortcode-builder.php:1529
1501
  msgid "Select a taxonomy then select the terms and an operator."
1502
  msgstr ""
1503
 
1504
+ #: ../admin/shortcode-builder/shortcode-builder.php:1534
1505
+ #: ../admin/shortcode-builder/shortcode-builder.php:1600
1506
  msgid "Add Another"
1507
  msgstr ""
1508
 
1509
+ #: ../admin/shortcode-builder/shortcode-builder.php:1544
1510
  msgid "Date"
1511
  msgstr ""
1512
 
1513
+ #: ../admin/shortcode-builder/shortcode-builder.php:1547
1514
  msgid ""
1515
  "Enter a year, month(number) and day to query by date archive.<br/>&raquo; <a "
1516
  "href=\"admin.php?page=ajax-load-more-examples#example-date\">View Example</a>"
1517
  msgstr ""
1518
 
1519
+ #: ../admin/shortcode-builder/shortcode-builder.php:1553
1520
  msgid "Year:"
1521
  msgstr ""
1522
 
1523
+ #: ../admin/shortcode-builder/shortcode-builder.php:1557
1524
  msgid "Month:"
1525
  msgstr ""
1526
 
1527
+ #: ../admin/shortcode-builder/shortcode-builder.php:1561
1528
  msgid "Day:"
1529
  msgstr ""
1530
 
1531
+ #: ../admin/shortcode-builder/shortcode-builder.php:1572
1532
  msgid "Custom Fields (Meta_Query)"
1533
  msgstr ""
1534
 
1535
+ #: ../admin/shortcode-builder/shortcode-builder.php:1575
1536
  msgid ""
1537
  "Query for <a href=\"http://codex.wordpress.org/Class_Reference/WP_Meta_Query"
1538
  "\" target=\"_blank\">custom field</a> by entering a custom field key, value "
1539
  "and operator."
1540
  msgstr ""
1541
 
1542
+ #: ../admin/shortcode-builder/shortcode-builder.php:1586
1543
  msgid ""
1544
  "The logical relationship between each custom field when there is more than "
1545
  "one."
1546
  msgstr ""
1547
 
1548
+ #: ../admin/shortcode-builder/shortcode-builder.php:1616
1549
  msgid "Author"
1550
  msgstr ""
1551
 
1552
+ #: ../admin/shortcode-builder/shortcode-builder.php:1619
1553
  msgid "Select an Author to query(by ID)."
1554
  msgstr ""
1555
 
1556
+ #: ../admin/shortcode-builder/shortcode-builder.php:1640
1557
  msgid "Search Term"
1558
  msgstr ""
1559
 
1560
+ #: ../admin/shortcode-builder/shortcode-builder.php:1643
1561
  msgid "Enter a search term to query."
1562
  msgstr ""
1563
 
1564
+ #: ../admin/shortcode-builder/shortcode-builder.php:1647
1565
  msgid "Enter search term"
1566
  msgstr ""
1567
 
1568
+ #: ../admin/shortcode-builder/shortcode-builder.php:1656
1569
  msgid "Post Parameters"
1570
  msgstr ""
1571
 
1572
+ #: ../admin/shortcode-builder/shortcode-builder.php:1660
1573
  msgid "A comma separated list of post ID's to query."
1574
  msgstr ""
1575
 
1576
+ #: ../admin/shortcode-builder/shortcode-builder.php:1664
1577
  msgid "225, 340, 818, etc..."
1578
  msgstr ""
1579
 
1580
+ #: ../admin/shortcode-builder/shortcode-builder.php:1671
1581
  msgid "A comma separated list of post ID's to exclude from query."
1582
  msgstr ""
1583
 
1584
+ #: ../admin/shortcode-builder/shortcode-builder.php:1681
1585
  msgid "Post Status"
1586
  msgstr ""
1587
 
1588
+ #: ../admin/shortcode-builder/shortcode-builder.php:1681
1589
  msgid ""
1590
  "Post Status parameters are only available for logged in (admin) users. Non "
1591
  "logged in users will only have access to view content in a 'publish' or "
1592
  "'inherit' state. "
1593
  msgstr ""
1594
 
1595
+ #: ../admin/shortcode-builder/shortcode-builder.php:1682
1596
  msgid "Select status of the post."
1597
  msgstr ""
1598
 
1599
+ #: ../admin/shortcode-builder/shortcode-builder.php:1687
1600
  msgid "Published"
1601
  msgstr ""
1602
 
1603
+ #: ../admin/shortcode-builder/shortcode-builder.php:1704
1604
  msgid "Ordering"
1605
  msgstr ""
1606
 
1607
+ #: ../admin/shortcode-builder/shortcode-builder.php:1707
1608
  msgid "Sort posts by Order and Orderby parameters."
1609
  msgstr ""
1610
 
1611
+ #: ../admin/shortcode-builder/shortcode-builder.php:1711
1612
  msgid "Order"
1613
  msgstr ""
1614
 
1615
+ #: ../admin/shortcode-builder/shortcode-builder.php:1718
1616
  msgid "Order By"
1617
  msgstr ""
1618
 
1619
+ #: ../admin/shortcode-builder/shortcode-builder.php:1739
1620
  msgid "Offset"
1621
  msgstr ""
1622
 
1623
+ #: ../admin/shortcode-builder/shortcode-builder.php:1742
1624
  msgid "Offset the initial query by <em>'n'</em> number of posts"
1625
  msgstr ""
1626
 
1627
+ #: ../admin/shortcode-builder/shortcode-builder.php:1755
1628
  msgid "Custom Arguments"
1629
  msgstr ""
1630
 
1631
+ #: ../admin/shortcode-builder/shortcode-builder.php:1758
1632
  msgid "A semicolon separated list of custom value:pair arguments."
1633
  msgstr ""
1634
 
1635
+ #: ../admin/shortcode-builder/shortcode-builder.php:1758
1636
  msgid ""
1637
  "Custom Arguments can be used to query by parameters not available in the "
1638
  "Shortcode Builder."
1639
  msgstr ""
1640
 
1641
+ #: ../admin/shortcode-builder/shortcode-builder.php:1762
1642
  msgid "event_display:upcoming"
1643
  msgstr ""
1644
 
1830
 
1831
  #: ../admin/views/help.php:67
1832
  msgid ""
1833
+ "We have a collection of over 20 real world Ajax Load More <a href=\"https://"
1834
+ "connekthq.com/plugins/ajax-load-more/examples/\" target=\"_blank\">examples</"
1835
+ "a> available on the plugin website"
1836
  msgstr ""
1837
 
1838
  #: ../admin/views/help.php:69
2093
  msgid "Reset Shortcode Builder"
2094
  msgstr ""
2095
 
2096
+ #: ../ajax-load-more.php:195
2097
  msgid "Settings"
2098
  msgstr ""
2099
 
2100
+ #: ../core/functions.php:706
2101
  msgid "Pages:"
2102
  msgstr ""
2103
 
package.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "ajax-load-more",
3
+ "version": "",
4
+ "description": "Ajax Load More WordPress Plugin",
5
+ "main": "",
6
+ "author": "connekt",
7
+ "private": true,
8
+ "repository": {
9
+ "private": true
10
+ },
11
+ "devDependencies": {
12
+ "babel-preset-es2015": "latest",
13
+ "gulp": "latest",
14
+ "gulp-autoprefixer": "latest",
15
+ "gulp-babel": "latest",
16
+ "gulp-clean-css": "latest",
17
+ "gulp-concat": "latest",
18
+ "gulp-jshint": "latest",
19
+ "gulp-notify": "latest",
20
+ "gulp-rename": "latest",
21
+ "gulp-sass": "latest",
22
+ "gulp-sequence": "latest",
23
+ "gulp-uglify": "latest",
24
+ "gulp-util": "latest",
25
+ "gulp-watch": "latest",
26
+ "jshint": "latest"
27
+ },
28
+ "dependencies": {
29
+ "lodash": "^4.17.4"
30
+ }
31
+ }