Version Description
- February 13, 2018 =
- NEW - Adding various functionality to support the new
Filters
add-on. - FIX - Fixed bug with passing search parameter to Preloaded add-on.
- FIX - Fixed issue with license activation for Theme Repeaters, SEO and User add-ons.
- UPDATE - Updated default loading transition to be fade, previously slide.
- UPDATE - Added support for multiple instances of Ajax Load More and Masonry.
- UPDATE - Fixed issue with the Post ID field in the ACF section of shortcode builder.
- UPDATE - Various UI/UX enhancements
Download this release
Release Info
Developer | dcooney |
Plugin | WordPress Infinite Scroll – Ajax Load More |
Version | 3.4.0 |
Comparing to | |
See all releases |
Code changes from version 3.3.1 to 3.4.0
- README.txt +14 -3
- admin/admin-functions.php +41 -27
- admin/admin.php +68 -26
- admin/dist/css/admin.css +90 -64
- admin/dist/js/admin.js +10 -8
- admin/editor/editor-build.php +1 -1
- admin/img/add-ons/filters-add-on.jpg +0 -0
- admin/img/add-ons/rest-api-add-on.jpg +0 -0
- admin/img/alm-logo-16x16.png +0 -0
- admin/shortcode-builder/components/acf.php +1 -1
- admin/shortcode-builder/components/filters.php +75 -0
- admin/shortcode-builder/js/shortcode-builder.js +31 -4
- admin/shortcode-builder/shortcode-builder.php +17 -18
- admin/src/js/admin.js +11 -9
- admin/src/scss/admin.scss +72 -69
- admin/src/scss/partials/_header.scss +2 -2
- admin/views/add-ons.php +33 -37
- admin/views/licenses.php +1 -1
- admin/views/settings.php +8 -6
- admin/views/shortcode-builder.php +1 -1
- ajax-load-more.php +22 -4
- core/classes/class.alm-shortcode.php +185 -97
- core/dist/js/ajax-load-more.js +146 -78
- core/dist/js/ajax-load-more.min.js +1 -1
- core/src/js/ajax-load-more.js +158 -91
- core/src/js/helpers/helpers.js +11 -1
- core/src/js/modules/filtering.js +7 -1
- core/src/js/modules/masonry.js +15 -15
- lang/ajax-load-more.pot +308 -255
README.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: dcooney, connekthq
|
|
3 |
Donate link: https://connekthq.com/donate/
|
4 |
Tags: infinite scroll, infinite scrolling, scroll, infinite, lazy load, lazy loading, endless scroll, pagination, ajax pagination, ajax, ajax posts, ajax load posts, woocommerce, ajax load more
|
5 |
Requires at least: 3.6
|
6 |
-
Tested up to: 4.9.
|
7 |
-
Stable tag: 3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -38,6 +38,7 @@ Check out the **[demo site](https://connekthq.com/plugins/ajax-load-more/)** for
|
|
38 |
|
39 |
|
40 |
#### What's New 3.0
|
|
|
41 |
* **[User Query](https://connekthq.com/plugins/ajax-load-more/add-ons/users/)** - Query and display a list of WordPress users by role using a `WP_User_Query` and Ajax Load More.
|
42 |
* **[Advanced Custom Fields](https://connekthq.com/plugins/ajax-load-more/examples/advanced-custom-fields/)** - Compatibility and integration added for infinite scrolling Flexible Content, Gallery, Relationship and Repeater fields for Advanced Custom Fields.
|
43 |
* **[Masonry](https://connekthq.com/plugins/ajax-load-more/examples/masonry/)** - Built-in support and functionality for Masonry layouts.
|
@@ -139,7 +140,6 @@ Ajax Load More accepts a number of parameters that are passed to the WordPress q
|
|
139 |
* **[Attachments](https://connekthq.com/plugins/ajax-load-more/examples/attachments/)** - Endless scroll post attachments.
|
140 |
* **[Destroy After](https://connekthq.com/plugins/ajax-load-more/examples/destroy-after/)** - Remove Ajax Load More functionality after 'n' number of pages.
|
141 |
* **[Event Listing](https://connekthq.com/plugins/ajax-load-more/examples/event-listing/)** - Ordering and listing events by custom field date.
|
142 |
-
* **[Fade Transition](https://connekthq.com/plugins/ajax-load-more/examples/fade-transition/)** - Elements fade in as posts are loaded.
|
143 |
* **[Filtering](https://connekthq.com/plugins/ajax-load-more/examples/filtering/)** - Reset and filter an Ajax Load More instance.
|
144 |
* **[Flexbox](https://connekthq.com/plugins/ajax-load-more/examples/flexbox/)** - Creating a responsive Ajax Load More grid with Flexbox.
|
145 |
* **[Infinite Scroll](https://connekthq.com/plugins/ajax-load-more/examples/infinite-scroll/)** - A look at the new loading functionality and styles.
|
@@ -172,6 +172,7 @@ The [Custom Repeater Add-On](https://connekthq.com/plugins/ajax-load-more/custom
|
|
172 |
* **[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.
|
173 |
* **[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.
|
174 |
* **[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.
|
|
|
175 |
* **[Layouts](https://connekthq.com/plugins/ajax-load-more/add-ons/layouts/)**: Predefined responsive layouts for Ajax Load More repeater templates.
|
176 |
* **[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.
|
177 |
* **[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.
|
@@ -369,6 +370,16 @@ How to install Ajax Load More.
|
|
369 |
|
370 |
== Changelog ==
|
371 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
372 |
= 3.3.1 - December 7, 2017 =
|
373 |
|
374 |
### Notice
|
3 |
Donate link: https://connekthq.com/donate/
|
4 |
Tags: infinite scroll, infinite scrolling, scroll, infinite, lazy load, lazy loading, endless scroll, pagination, ajax pagination, ajax, ajax posts, ajax load posts, woocommerce, ajax load more
|
5 |
Requires at least: 3.6
|
6 |
+
Tested up to: 4.9.4
|
7 |
+
Stable tag: 3.4.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
38 |
|
39 |
|
40 |
#### What's New 3.0
|
41 |
+
* **[Filters](https://connekthq.com/plugins/ajax-load-more/add-ons/filters/)** - The Filters add-on provides front-end and admin functionality for building and managing Ajax filters.
|
42 |
* **[User Query](https://connekthq.com/plugins/ajax-load-more/add-ons/users/)** - Query and display a list of WordPress users by role using a `WP_User_Query` and Ajax Load More.
|
43 |
* **[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.
|
44 |
* **[Masonry](https://connekthq.com/plugins/ajax-load-more/examples/masonry/)** - Built-in support and functionality for Masonry layouts.
|
140 |
* **[Attachments](https://connekthq.com/plugins/ajax-load-more/examples/attachments/)** - Endless scroll post attachments.
|
141 |
* **[Destroy After](https://connekthq.com/plugins/ajax-load-more/examples/destroy-after/)** - Remove Ajax Load More functionality after 'n' number of pages.
|
142 |
* **[Event Listing](https://connekthq.com/plugins/ajax-load-more/examples/event-listing/)** - Ordering and listing events by custom field date.
|
|
|
143 |
* **[Filtering](https://connekthq.com/plugins/ajax-load-more/examples/filtering/)** - Reset and filter an Ajax Load More instance.
|
144 |
* **[Flexbox](https://connekthq.com/plugins/ajax-load-more/examples/flexbox/)** - Creating a responsive Ajax Load More grid with Flexbox.
|
145 |
* **[Infinite Scroll](https://connekthq.com/plugins/ajax-load-more/examples/infinite-scroll/)** - A look at the new loading functionality and styles.
|
172 |
* **[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.
|
173 |
* **[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.
|
174 |
* **[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.
|
175 |
+
* **[Filters](https://connekthq.com/plugins/ajax-load-more/add-ons/filters/)**: Front-end and admin functionality for creating, managing and displaying Ajax Load More filters.
|
176 |
* **[Layouts](https://connekthq.com/plugins/ajax-load-more/add-ons/layouts/)**: Predefined responsive layouts for Ajax Load More repeater templates.
|
177 |
* **[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.
|
178 |
* **[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.
|
370 |
|
371 |
== Changelog ==
|
372 |
|
373 |
+
= 3.4.0 - February 13, 2018 =
|
374 |
+
* NEW - Adding various functionality to support the new [`Filters`](https://connekthq.com/plugins/ajax-load-more/add-ons/filters/) add-on.
|
375 |
+
* FIX - Fixed bug with passing search parameter to Preloaded add-on.
|
376 |
+
* FIX - Fixed issue with license activation for Theme Repeaters, SEO and User add-ons.
|
377 |
+
* UPDATE - Updated default loading transition to be fade, previously slide.
|
378 |
+
* UPDATE - Added support for multiple instances of Ajax Load More and Masonry.
|
379 |
+
* UPDATE - Fixed issue with the Post ID field in the ACF section of shortcode builder.
|
380 |
+
* UPDATE - Various UI/UX enhancements
|
381 |
+
|
382 |
+
|
383 |
= 3.3.1 - December 7, 2017 =
|
384 |
|
385 |
### Notice
|
admin/admin-functions.php
CHANGED
@@ -76,9 +76,21 @@ function alm_get_addons(){
|
|
76 |
'url' => 'https://connekthq.com/plugins/ajax-load-more/add-ons/custom-repeaters/',
|
77 |
'item_id' => ALM_UNLIMITED_ITEM_NAME
|
78 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
array(
|
80 |
'name' => __('Layouts', 'ajax-load-more'),
|
81 |
-
'intro' => __('Predefined layouts for
|
82 |
'desc' => __('The Layouts add-on provides a collection of unique, well designed and fully responsive templates.', 'ajax-load-more'),
|
83 |
'action' => 'alm_layouts_installed',
|
84 |
'key' => 'alm_layouts_license_key',
|
@@ -153,9 +165,9 @@ function alm_get_addons(){
|
|
153 |
'intro' => __('Manage repeater templates within your current theme directory.', 'ajax-load-more'),
|
154 |
'desc' => __('The Theme Repeater add-on will allow you load, edit and maintain templates from your current theme directory.', 'ajax-load-more'),
|
155 |
'action' => 'alm_theme_repeaters_installed',
|
156 |
-
'key' => '
|
157 |
-
'status' => '
|
158 |
-
'settings_field' => '
|
159 |
'img' => 'img/add-ons/theme-repeater-add-on.jpg',
|
160 |
'url' => 'https://connekthq.com/plugins/ajax-load-more/add-ons/theme-repeaters/',
|
161 |
'item_id' => ALM_THEME_REPEATERS_ITEM_NAME
|
@@ -165,9 +177,9 @@ function alm_get_addons(){
|
|
165 |
'intro' => __('Enable infinite scrolling of WordPress users.', 'ajax-load-more'),
|
166 |
'desc' => __('The Users add-on will allow lazy loading of users by role using a WP_User_Query.', 'ajax-load-more'),
|
167 |
'action' => 'alm_users_installed',
|
168 |
-
'key' => '
|
169 |
-
'status' => '
|
170 |
-
'settings_field' => '
|
171 |
'img' => 'img/add-ons/users-add-on.jpg',
|
172 |
'url' => 'https://connekthq.com/plugins/ajax-load-more/add-ons/users/',
|
173 |
'item_id' => ALM_USERS_ITEM_NAME
|
@@ -178,26 +190,6 @@ function alm_get_addons(){
|
|
178 |
|
179 |
|
180 |
|
181 |
-
/*
|
182 |
-
* alm_has_addon
|
183 |
-
* Does user have add-ons installed and activated
|
184 |
-
* License Page
|
185 |
-
*
|
186 |
-
* @return boolean
|
187 |
-
* @since 2.13.0
|
188 |
-
* @depreacted 3.3.0
|
189 |
-
*/
|
190 |
-
|
191 |
-
function alm_has_addon(){
|
192 |
-
if(has_action('alm_cta_installed') || has_action('alm_comments_installed') || has_action('alm_unlimited_installed') || has_action('alm_layouts_installed') || has_action('alm_nextpage_installed') || has_action('alm_preload_installed') || has_action('alm_paging_installed') || has_action('alm_prev_post_installed') || has_action('alm_rest_api_installed') || has_action('alm_seo_installed') || has_action('alm_theme_repeaters_installed') || has_action('alm_users_installed')) {
|
193 |
-
return true;
|
194 |
-
} else {
|
195 |
-
return false;
|
196 |
-
}
|
197 |
-
}
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
/*
|
202 |
* alm_has_addon_shortcodes
|
203 |
* Does user have an add-ons or extensions for shortcode builder installed and activated?
|
@@ -213,6 +205,7 @@ function alm_has_addon_shortcodes(){
|
|
213 |
'alm_cache_installed',
|
214 |
'alm_cache_installed',
|
215 |
'alm_cta_installed',
|
|
|
216 |
'alm_comments_installed',
|
217 |
'alm_unlimited_installed',
|
218 |
'alm_nextpage_installed',
|
@@ -236,3 +229,24 @@ function alm_has_addon_shortcodes(){
|
|
236 |
return false;
|
237 |
}
|
238 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
'url' => 'https://connekthq.com/plugins/ajax-load-more/add-ons/custom-repeaters/',
|
77 |
'item_id' => ALM_UNLIMITED_ITEM_NAME
|
78 |
),
|
79 |
+
array(
|
80 |
+
'name' => __('Filters', 'ajax-load-more'),
|
81 |
+
'intro' => __('Create custom Ajax Load More filters in seconds.', 'ajax-load-more'),
|
82 |
+
'desc' => __('The Filters add-on provides front-end and admin functionality for building and managing Ajax filters.', 'ajax-load-more'),
|
83 |
+
'action' => 'alm_filters_installed',
|
84 |
+
'key' => 'alm_filters_license_key',
|
85 |
+
'status' => 'alm_filters_license_status',
|
86 |
+
'settings_field' => 'alm_filters_license',
|
87 |
+
'img' => 'img/add-ons/filters-add-on.jpg',
|
88 |
+
'url' => 'https://connekthq.com/plugins/ajax-load-more/add-ons/filters/',
|
89 |
+
'item_id' => ALM_FILTERS_ITEM_NAME
|
90 |
+
),
|
91 |
array(
|
92 |
'name' => __('Layouts', 'ajax-load-more'),
|
93 |
+
'intro' => __('Predefined layouts for repeater templates.', 'ajax-load-more'),
|
94 |
'desc' => __('The Layouts add-on provides a collection of unique, well designed and fully responsive templates.', 'ajax-load-more'),
|
95 |
'action' => 'alm_layouts_installed',
|
96 |
'key' => 'alm_layouts_license_key',
|
165 |
'intro' => __('Manage repeater templates within your current theme directory.', 'ajax-load-more'),
|
166 |
'desc' => __('The Theme Repeater add-on will allow you load, edit and maintain templates from your current theme directory.', 'ajax-load-more'),
|
167 |
'action' => 'alm_theme_repeaters_installed',
|
168 |
+
'key' => 'alm_theme_repeaters_license_key',
|
169 |
+
'status' => 'alm_theme_repeaters_license_status',
|
170 |
+
'settings_field' => 'alm_theme_repeaters_license',
|
171 |
'img' => 'img/add-ons/theme-repeater-add-on.jpg',
|
172 |
'url' => 'https://connekthq.com/plugins/ajax-load-more/add-ons/theme-repeaters/',
|
173 |
'item_id' => ALM_THEME_REPEATERS_ITEM_NAME
|
177 |
'intro' => __('Enable infinite scrolling of WordPress users.', 'ajax-load-more'),
|
178 |
'desc' => __('The Users add-on will allow lazy loading of users by role using a WP_User_Query.', 'ajax-load-more'),
|
179 |
'action' => 'alm_users_installed',
|
180 |
+
'key' => 'alm_users_license_key',
|
181 |
+
'status' => 'alm_users_license_status',
|
182 |
+
'settings_field' => 'alm_users_license',
|
183 |
'img' => 'img/add-ons/users-add-on.jpg',
|
184 |
'url' => 'https://connekthq.com/plugins/ajax-load-more/add-ons/users/',
|
185 |
'item_id' => ALM_USERS_ITEM_NAME
|
190 |
|
191 |
|
192 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
193 |
/*
|
194 |
* alm_has_addon_shortcodes
|
195 |
* Does user have an add-ons or extensions for shortcode builder installed and activated?
|
205 |
'alm_cache_installed',
|
206 |
'alm_cache_installed',
|
207 |
'alm_cta_installed',
|
208 |
+
'alm_filters_installed',
|
209 |
'alm_comments_installed',
|
210 |
'alm_unlimited_installed',
|
211 |
'alm_nextpage_installed',
|
229 |
return false;
|
230 |
}
|
231 |
}
|
232 |
+
|
233 |
+
|
234 |
+
|
235 |
+
|
236 |
+
/*
|
237 |
+
* alm_has_addon
|
238 |
+
* Does user have add-ons installed and activated
|
239 |
+
* License Page
|
240 |
+
*
|
241 |
+
* @return boolean
|
242 |
+
* @since 2.13.0
|
243 |
+
* @depreacted 3.3.0
|
244 |
+
*/
|
245 |
+
|
246 |
+
function alm_has_addon(){
|
247 |
+
if(has_action('alm_cta_installed') || has_action('alm_comments_installed') || has_action('alm_unlimited_installed') || has_action('alm_layouts_installed') || has_action('alm_nextpage_installed') || has_action('alm_preload_installed') || has_action('alm_paging_installed') || has_action('alm_prev_post_installed') || has_action('alm_rest_api_installed') || has_action('alm_seo_installed') || has_action('alm_theme_repeaters_installed') || has_action('alm_users_installed')) {
|
248 |
+
return true;
|
249 |
+
} else {
|
250 |
+
return false;
|
251 |
+
}
|
252 |
+
}
|
admin/admin.php
CHANGED
@@ -113,16 +113,17 @@ function alm_license_activation(){
|
|
113 |
}
|
114 |
}
|
115 |
$return["msg"] = $msg;
|
116 |
-
|
117 |
update_option( $option_status, $license_data->license);
|
118 |
update_option( $option_key, $license );
|
119 |
|
120 |
-
|
121 |
-
|
122 |
-
die();
|
123 |
|
124 |
} else {
|
|
|
125 |
echo __('You don\'t belong here.', 'ajax-load-more');
|
|
|
126 |
}
|
127 |
}
|
128 |
|
@@ -442,12 +443,17 @@ function alm_admin_menu() {
|
|
442 |
'ajax-load-more-licenses',
|
443 |
'alm_licenses_page'
|
444 |
);
|
|
|
|
|
|
|
|
|
|
|
445 |
|
446 |
if(has_action('alm_cache_installed')){
|
447 |
$alm_cache_page = add_submenu_page(
|
448 |
'ajax-load-more',
|
449 |
-
'Cache',
|
450 |
-
'<span
|
451 |
'edit_theme_options',
|
452 |
'ajax-load-more-cache',
|
453 |
'alm_cache_page'
|
@@ -455,6 +461,25 @@ function alm_admin_menu() {
|
|
455 |
add_action( 'load-' . $alm_cache_page, 'alm_load_admin_js' );
|
456 |
add_action( 'load-' . $alm_cache_page, 'alm_load_cache_admin_js' );
|
457 |
add_action( 'load-' . $alm_cache_page, 'alm_set_admin_nonce' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
458 |
}
|
459 |
|
460 |
//Add our admin scripts
|
@@ -592,6 +617,19 @@ function alm_cache_page(){
|
|
592 |
}
|
593 |
|
594 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
595 |
|
596 |
/**
|
597 |
* alm_load_admin_js
|
@@ -603,11 +641,18 @@ function alm_cache_page(){
|
|
603 |
function alm_load_admin_js(){
|
604 |
add_action( 'admin_enqueue_scripts', 'alm_enqueue_admin_scripts' );
|
605 |
}
|
|
|
606 |
function alm_load_cache_admin_js(){
|
607 |
if(class_exists('ALMCache')){
|
608 |
ALMCache::alm_enqueue_cache_admin_scripts();
|
609 |
}
|
610 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
611 |
|
612 |
|
613 |
|
@@ -993,14 +1038,6 @@ function alm_admin_init(){
|
|
993 |
'alm_general_settings'
|
994 |
);
|
995 |
|
996 |
-
add_settings_field( // Inline CSS
|
997 |
-
'_alm_inline_css',
|
998 |
-
__('Load CSS Inline', 'ajax-load-more' ),
|
999 |
-
'alm_inline_css_callback',
|
1000 |
-
'ajax-load-more',
|
1001 |
-
'alm_general_settings'
|
1002 |
-
);
|
1003 |
-
|
1004 |
add_settings_field( // Button classes
|
1005 |
'_alm_btn_classname',
|
1006 |
__('Button Classes', 'ajax-load-more' ),
|
@@ -1008,17 +1045,14 @@ function alm_admin_init(){
|
|
1008 |
'ajax-load-more',
|
1009 |
'alm_general_settings'
|
1010 |
);
|
1011 |
-
|
1012 |
-
|
1013 |
-
|
1014 |
-
|
1015 |
-
'
|
1016 |
-
__('Ajax Security', 'ajax-load-more' ),
|
1017 |
-
'_alm_nonce_security_callback',
|
1018 |
'ajax-load-more',
|
1019 |
'alm_general_settings'
|
1020 |
);
|
1021 |
-
*/
|
1022 |
|
1023 |
add_settings_field( // Scroll to top on load
|
1024 |
'_alm_scroll_top',
|
@@ -1065,6 +1099,12 @@ function alm_admin_init(){
|
|
1065 |
}
|
1066 |
|
1067 |
|
|
|
|
|
|
|
|
|
|
|
|
|
1068 |
// LAYOUTS
|
1069 |
if(has_action('alm_layouts_settings')){
|
1070 |
do_action('alm_layouts_settings');
|
@@ -1410,11 +1450,13 @@ function alm_btn_class_callback(){
|
|
1410 |
jQuery('input#alm_disable_css_input').change(function() {
|
1411 |
var el = jQuery(this);
|
1412 |
if(el.is(":checked")) {
|
1413 |
-
el.parent().parent('tr').next('tr').hide(); // Hide button
|
1414 |
-
el.parent().parent('tr').next('tr').next('tr').hide(); // Hide
|
|
|
1415 |
}else{
|
1416 |
-
el.parent().parent('tr').next('tr').show(); // show button
|
1417 |
-
el.parent().parent('tr').next('tr').next('tr').show(); // show
|
|
|
1418 |
}
|
1419 |
});
|
1420 |
|
113 |
}
|
114 |
}
|
115 |
$return["msg"] = $msg;
|
116 |
+
|
117 |
update_option( $option_status, $license_data->license);
|
118 |
update_option( $option_key, $license );
|
119 |
|
120 |
+
wp_send_json($return);
|
121 |
+
|
|
|
122 |
|
123 |
} else {
|
124 |
+
|
125 |
echo __('You don\'t belong here.', 'ajax-load-more');
|
126 |
+
|
127 |
}
|
128 |
}
|
129 |
|
443 |
'ajax-load-more-licenses',
|
444 |
'alm_licenses_page'
|
445 |
);
|
446 |
+
|
447 |
+
|
448 |
+
$before_link = '<span style="display:block; border-top: 1px solid #555; padding-top: 8px;">';
|
449 |
+
$after_link = '</span>';
|
450 |
+
$style_link_icon = 'style="opacity: 0.6; font-size: 18px; height: 18px; width: 20px;"';
|
451 |
|
452 |
if(has_action('alm_cache_installed')){
|
453 |
$alm_cache_page = add_submenu_page(
|
454 |
'ajax-load-more',
|
455 |
+
__('Cache', 'ajax-load-more'),
|
456 |
+
$before_link . '<span class="dashicons dashicons-admin-generic" '.$style_link_icon.'></span> ' .__('Cache', 'ajax-load-more') . $after_link,
|
457 |
'edit_theme_options',
|
458 |
'ajax-load-more-cache',
|
459 |
'alm_cache_page'
|
461 |
add_action( 'load-' . $alm_cache_page, 'alm_load_admin_js' );
|
462 |
add_action( 'load-' . $alm_cache_page, 'alm_load_cache_admin_js' );
|
463 |
add_action( 'load-' . $alm_cache_page, 'alm_set_admin_nonce' );
|
464 |
+
}
|
465 |
+
|
466 |
+
if(has_action('alm_filters_installed')){
|
467 |
+
|
468 |
+
if(has_action('alm_cache_installed')){
|
469 |
+
$before_link = '<span style="display:block;">';
|
470 |
+
}
|
471 |
+
|
472 |
+
$alm_filters_page = add_submenu_page(
|
473 |
+
'ajax-load-more',
|
474 |
+
__('Filters', 'ajax-load-more'),
|
475 |
+
$before_link . '<span class="dashicons dashicons-filter" '.$style_link_icon.'></span> '. __('Filters', 'ajax-load-more') . $after_link,
|
476 |
+
'edit_theme_options',
|
477 |
+
'ajax-load-more-filters',
|
478 |
+
'alm_filters_page'
|
479 |
+
);
|
480 |
+
add_action( 'load-' . $alm_filters_page, 'alm_load_admin_js' );
|
481 |
+
add_action( 'load-' . $alm_filters_page, 'alm_load_filters_admin_scripts' );
|
482 |
+
add_action( 'load-' . $alm_filters_page, 'alm_set_admin_nonce' );
|
483 |
}
|
484 |
|
485 |
//Add our admin scripts
|
617 |
}
|
618 |
|
619 |
|
620 |
+
/*
|
621 |
+
* alm_filters_page
|
622 |
+
* Filters Add-on page
|
623 |
+
*
|
624 |
+
* @since 3.4.0
|
625 |
+
*/
|
626 |
+
|
627 |
+
function alm_filters_page(){
|
628 |
+
include_once( ALM_FILTERS_PATH . 'admin/functions.php');
|
629 |
+
include_once( ALM_FILTERS_PATH . 'admin/views/filters.php');
|
630 |
+
}
|
631 |
+
|
632 |
+
|
633 |
|
634 |
/**
|
635 |
* alm_load_admin_js
|
641 |
function alm_load_admin_js(){
|
642 |
add_action( 'admin_enqueue_scripts', 'alm_enqueue_admin_scripts' );
|
643 |
}
|
644 |
+
// Cache Scripts
|
645 |
function alm_load_cache_admin_js(){
|
646 |
if(class_exists('ALMCache')){
|
647 |
ALMCache::alm_enqueue_cache_admin_scripts();
|
648 |
}
|
649 |
}
|
650 |
+
// Filters Scripts
|
651 |
+
function alm_load_filters_admin_scripts(){
|
652 |
+
if(class_exists('ALMFilters')){
|
653 |
+
ALMFilters::alm_enqueue_filters_admin_scripts();
|
654 |
+
}
|
655 |
+
}
|
656 |
|
657 |
|
658 |
|
1038 |
'alm_general_settings'
|
1039 |
);
|
1040 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1041 |
add_settings_field( // Button classes
|
1042 |
'_alm_btn_classname',
|
1043 |
__('Button Classes', 'ajax-load-more' ),
|
1045 |
'ajax-load-more',
|
1046 |
'alm_general_settings'
|
1047 |
);
|
1048 |
+
|
1049 |
+
add_settings_field( // Inline CSS
|
1050 |
+
'_alm_inline_css',
|
1051 |
+
__('Load CSS Inline', 'ajax-load-more' ),
|
1052 |
+
'alm_inline_css_callback',
|
|
|
|
|
1053 |
'ajax-load-more',
|
1054 |
'alm_general_settings'
|
1055 |
);
|
|
|
1056 |
|
1057 |
add_settings_field( // Scroll to top on load
|
1058 |
'_alm_scroll_top',
|
1099 |
}
|
1100 |
|
1101 |
|
1102 |
+
// FILTERS
|
1103 |
+
if(has_action('alm_filters_settings')){
|
1104 |
+
do_action('alm_filters_settings');
|
1105 |
+
}
|
1106 |
+
|
1107 |
+
|
1108 |
// LAYOUTS
|
1109 |
if(has_action('alm_layouts_settings')){
|
1110 |
do_action('alm_layouts_settings');
|
1450 |
jQuery('input#alm_disable_css_input').change(function() {
|
1451 |
var el = jQuery(this);
|
1452 |
if(el.is(":checked")) {
|
1453 |
+
el.parent().parent('tr').next('tr').hide(); // Hide button
|
1454 |
+
el.parent().parent('tr').next('tr').next('tr').hide(); // Hide button color
|
1455 |
+
el.parent().parent('tr').next('tr').next('tr').next('tr').hide(); // Hide inline css
|
1456 |
}else{
|
1457 |
+
el.parent().parent('tr').next('tr').show(); // show button
|
1458 |
+
el.parent().parent('tr').next('tr').next('tr').show(); // show button color
|
1459 |
+
el.parent().parent('tr').next('tr').next('tr').next('tr').show(); // show inline css
|
1460 |
}
|
1461 |
});
|
1462 |
|
admin/dist/css/admin.css
CHANGED
@@ -528,13 +528,13 @@ disabled look for disabled choices in the results dropdown
|
|
528 |
.ajax-load-more .header-wrap h1 em {
|
529 |
display: block;
|
530 |
position: relative;
|
531 |
-
margin
|
532 |
font-size: 14px;
|
533 |
opacity: 0.7;
|
534 |
font-style: normal;
|
535 |
font-weight: 400;
|
536 |
line-height: 1.35;
|
537 |
-
|
538 |
.ajax-load-more .header-wrap h1 strong {
|
539 |
font-weight: 700; }
|
540 |
.ajax-load-more .header-wrap h1 span {
|
@@ -685,7 +685,8 @@ body.ajax-load-more_page_ajax-load-more-add-ons,
|
|
685 |
body.ajax-load-more_page_ajax-load-more-extensions,
|
686 |
body.ajax-load-more_page_ajax-load-more-help,
|
687 |
body.ajax-load-more_page_ajax-load-more-licenses,
|
688 |
-
body.ajax-load-more_page_ajax-load-more-cache
|
|
|
689 |
background-color: #f7f7f7; }
|
690 |
body.toplevel_page_ajax-load-more #wpcontent,
|
691 |
body.ajax-load-more_page_ajax-load-more-repeaters #wpcontent,
|
@@ -694,7 +695,8 @@ body.ajax-load-more_page_ajax-load-more-cache {
|
|
694 |
body.ajax-load-more_page_ajax-load-more-extensions #wpcontent,
|
695 |
body.ajax-load-more_page_ajax-load-more-help #wpcontent,
|
696 |
body.ajax-load-more_page_ajax-load-more-licenses #wpcontent,
|
697 |
-
body.ajax-load-more_page_ajax-load-more-cache #wpcontent
|
|
|
698 |
padding-left: 0;
|
699 |
padding-bottom: 40px;
|
700 |
background-color: #efefef; }
|
@@ -705,7 +707,8 @@ body.ajax-load-more_page_ajax-load-more-cache {
|
|
705 |
body.ajax-load-more_page_ajax-load-more-extensions #wpbody-content,
|
706 |
body.ajax-load-more_page_ajax-load-more-help #wpbody-content,
|
707 |
body.ajax-load-more_page_ajax-load-more-licenses #wpbody-content,
|
708 |
-
body.ajax-load-more_page_ajax-load-more-cache #wpbody-content
|
|
|
709 |
padding-bottom: 0; }
|
710 |
|
711 |
body.toplevel_page_ajax-load-more,
|
@@ -715,7 +718,8 @@ body.ajax-load-more_page_ajax-load-more-add-ons,
|
|
715 |
body.ajax-load-more_page_ajax-load-more-extensions,
|
716 |
body.ajax-load-more_page_ajax-load-more-help,
|
717 |
body.ajax-load-more_page_ajax-load-more-licenses,
|
718 |
-
body.ajax-load-more_page_ajax-load-more-cache
|
|
|
719 |
background: #efefef; }
|
720 |
body.toplevel_page_ajax-load-more #wpfooter,
|
721 |
body.ajax-load-more_page_ajax-load-more-repeaters #wpfooter,
|
@@ -724,7 +728,8 @@ body.ajax-load-more_page_ajax-load-more-cache {
|
|
724 |
body.ajax-load-more_page_ajax-load-more-extensions #wpfooter,
|
725 |
body.ajax-load-more_page_ajax-load-more-help #wpfooter,
|
726 |
body.ajax-load-more_page_ajax-load-more-licenses #wpfooter,
|
727 |
-
body.ajax-load-more_page_ajax-load-more-cache #wpfooter
|
|
|
728 |
padding-top: 0;
|
729 |
padding-bottom: 0;
|
730 |
line-height: 40px;
|
@@ -740,7 +745,8 @@ body.ajax-load-more_page_ajax-load-more-cache {
|
|
740 |
body.ajax-load-more_page_ajax-load-more-extensions #wpfooter p,
|
741 |
body.ajax-load-more_page_ajax-load-more-help #wpfooter p,
|
742 |
body.ajax-load-more_page_ajax-load-more-licenses #wpfooter p,
|
743 |
-
body.ajax-load-more_page_ajax-load-more-cache #wpfooter p
|
|
|
744 |
line-height: 40px; }
|
745 |
@media screen and (min-width: 901px) {
|
746 |
body.toplevel_page_ajax-load-more .ajax-load-more .cnkt-main,
|
@@ -750,7 +756,8 @@ body.ajax-load-more_page_ajax-load-more-cache {
|
|
750 |
body.ajax-load-more_page_ajax-load-more-extensions .ajax-load-more .cnkt-main,
|
751 |
body.ajax-load-more_page_ajax-load-more-help .ajax-load-more .cnkt-main,
|
752 |
body.ajax-load-more_page_ajax-load-more-licenses .ajax-load-more .cnkt-main,
|
753 |
-
body.ajax-load-more_page_ajax-load-more-cache .ajax-load-more .cnkt-main
|
|
|
754 |
min-height: 100vh; } }
|
755 |
|
756 |
body.ajax-load-more_page_ajax-load-more-extensions {
|
@@ -1472,7 +1479,7 @@ a.layout-hover:hover img {
|
|
1472 |
.ajax-load-more .expand-wrap hr {
|
1473 |
border: 0;
|
1474 |
height: 0;
|
1475 |
-
border-top: 1px solid
|
1476 |
border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
|
1477 |
|
1478 |
hr.indented {
|
@@ -1502,23 +1509,28 @@ hr.indented {
|
|
1502 |
margin: 0;
|
1503 |
font-style: italic; }
|
1504 |
|
1505 |
-
.ajax-load-more .section-title p .fa.tooltip,
|
1506 |
-
.form-table label .fa.tooltip {
|
1507 |
-
margin: 0 2px;
|
1508 |
-
display: inline-block;
|
1509 |
-
font-size: 15px;
|
1510 |
-
opacity: 0.9;
|
1511 |
-
top: 0; }
|
1512 |
-
|
1513 |
.ajax-load-more .section-title p .fa.tooltip:hover,
|
1514 |
.form-table label .fa.tooltip:hover {
|
1515 |
opacity: 1; }
|
1516 |
|
1517 |
-
.fa.tooltip {
|
|
|
|
|
1518 |
text-decoration: none;
|
1519 |
cursor: help;
|
1520 |
position: relative;
|
1521 |
-
top:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1522 |
|
1523 |
.ajax-load-more .section-title p span,
|
1524 |
.admin.ajax-load-more.settings .form-table p.notify span {
|
@@ -1556,6 +1568,7 @@ hr.indented {
|
|
1556 |
.alternate_template_wrap,
|
1557 |
.cta_template_wrap,
|
1558 |
.restapi_options,
|
|
|
1559 |
.next-page-content,
|
1560 |
.acf-options,
|
1561 |
.masonry-options,
|
@@ -2011,7 +2024,7 @@ table.highlight {
|
|
2011 |
margin-top: 0; }
|
2012 |
|
2013 |
.form-table tr {
|
2014 |
-
border-top: 1px solid #
|
2015 |
|
2016 |
.form-table {
|
2017 |
border: 1px solid #e1e1e1;
|
@@ -2118,57 +2131,60 @@ table.highlight {
|
|
2118 |
display: -ms-flexbox;
|
2119 |
display: flex;
|
2120 |
-ms-flex-wrap: wrap;
|
2121 |
-
flex-wrap: wrap;
|
|
|
|
|
|
|
2122 |
|
2123 |
#alm-add-ons .group {
|
2124 |
overflow: hidden;
|
2125 |
-
width:
|
2126 |
-
display:
|
|
|
|
|
2127 |
vertical-align: top;
|
2128 |
text-align: center;
|
2129 |
-
margin: 0
|
2130 |
-
|
2131 |
-
|
2132 |
-
|
2133 |
-
|
2134 |
-
#alm-add-ons .group {
|
2135 |
-
|
2136 |
-
|
2137 |
-
|
2138 |
-
|
2139 |
-
|
2140 |
-
|
2141 |
-
|
|
|
2142 |
|
2143 |
#alm-add-ons .group span.cnkt-button {
|
2144 |
position: absolute;
|
2145 |
-
left:
|
2146 |
-
bottom:
|
2147 |
width: 100%;
|
|
|
2148 |
display: block;
|
2149 |
font-size: 14px;
|
2150 |
padding: 10px 14px;
|
2151 |
-webkit-transition: all 0.15s ease;
|
2152 |
-
transition: all 0.15s ease;
|
2153 |
-
|
2154 |
-
|
2155 |
-
|
2156 |
-
-webkit-filter: grayscale(0.85);
|
2157 |
-
filter: grayscale(0.85); }
|
2158 |
-
|
2159 |
-
.ajax-load-more .cnkt-main .group.installed p:before {
|
2160 |
-
display: none !important; }
|
2161 |
|
2162 |
#alm-add-ons .group img {
|
2163 |
-
padding:
|
2164 |
|
2165 |
#alm-add-ons .group a {
|
2166 |
text-decoration: none;
|
2167 |
display: block;
|
2168 |
-
padding:
|
|
|
2169 |
|
2170 |
-
#alm-add-ons .group:hover {
|
2171 |
-
|
2172 |
|
2173 |
#alm-add-ons .group a h2 {
|
2174 |
-webkit-transition: all 0.15s ease;
|
@@ -2467,7 +2483,7 @@ span.cnkt-button.installed i,
|
|
2467 |
|
2468 |
/*
|
2469 |
* Plugin Sidebar
|
2470 |
-
*
|
2471 |
* @since 1.0
|
2472 |
*/
|
2473 |
.ajax-load-more .cnkt-sidebar .cta {
|
@@ -3166,17 +3182,27 @@ p.cache-stats {
|
|
3166 |
border: 1px solid #e1e1e1;
|
3167 |
border-radius: 3px;
|
3168 |
margin-bottom: 20px; }
|
3169 |
-
|
3170 |
-
|
3171 |
-
|
3172 |
-
|
3173 |
-
|
3174 |
-
|
3175 |
-
|
3176 |
-
|
3177 |
-
|
3178 |
-
|
3179 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3180 |
|
3181 |
.forceColors #alm-shortcode-builder-form .shortcode-parameter-wrap h2 {
|
3182 |
padding: 12px 22px;
|
528 |
.ajax-load-more .header-wrap h1 em {
|
529 |
display: block;
|
530 |
position: relative;
|
531 |
+
margin: 1px 0 0;
|
532 |
font-size: 14px;
|
533 |
opacity: 0.7;
|
534 |
font-style: normal;
|
535 |
font-weight: 400;
|
536 |
line-height: 1.35;
|
537 |
+
padding: 1px 0 12.5px; }
|
538 |
.ajax-load-more .header-wrap h1 strong {
|
539 |
font-weight: 700; }
|
540 |
.ajax-load-more .header-wrap h1 span {
|
685 |
body.ajax-load-more_page_ajax-load-more-extensions,
|
686 |
body.ajax-load-more_page_ajax-load-more-help,
|
687 |
body.ajax-load-more_page_ajax-load-more-licenses,
|
688 |
+
body.ajax-load-more_page_ajax-load-more-cache,
|
689 |
+
body.ajax-load-more_page_ajax-load-more-filters {
|
690 |
background-color: #f7f7f7; }
|
691 |
body.toplevel_page_ajax-load-more #wpcontent,
|
692 |
body.ajax-load-more_page_ajax-load-more-repeaters #wpcontent,
|
695 |
body.ajax-load-more_page_ajax-load-more-extensions #wpcontent,
|
696 |
body.ajax-load-more_page_ajax-load-more-help #wpcontent,
|
697 |
body.ajax-load-more_page_ajax-load-more-licenses #wpcontent,
|
698 |
+
body.ajax-load-more_page_ajax-load-more-cache #wpcontent,
|
699 |
+
body.ajax-load-more_page_ajax-load-more-filters #wpcontent {
|
700 |
padding-left: 0;
|
701 |
padding-bottom: 40px;
|
702 |
background-color: #efefef; }
|
707 |
body.ajax-load-more_page_ajax-load-more-extensions #wpbody-content,
|
708 |
body.ajax-load-more_page_ajax-load-more-help #wpbody-content,
|
709 |
body.ajax-load-more_page_ajax-load-more-licenses #wpbody-content,
|
710 |
+
body.ajax-load-more_page_ajax-load-more-cache #wpbody-content,
|
711 |
+
body.ajax-load-more_page_ajax-load-more-filters #wpbody-content {
|
712 |
padding-bottom: 0; }
|
713 |
|
714 |
body.toplevel_page_ajax-load-more,
|
718 |
body.ajax-load-more_page_ajax-load-more-extensions,
|
719 |
body.ajax-load-more_page_ajax-load-more-help,
|
720 |
body.ajax-load-more_page_ajax-load-more-licenses,
|
721 |
+
body.ajax-load-more_page_ajax-load-more-cache,
|
722 |
+
body.ajax-load-more_page_ajax-load-more-filters {
|
723 |
background: #efefef; }
|
724 |
body.toplevel_page_ajax-load-more #wpfooter,
|
725 |
body.ajax-load-more_page_ajax-load-more-repeaters #wpfooter,
|
728 |
body.ajax-load-more_page_ajax-load-more-extensions #wpfooter,
|
729 |
body.ajax-load-more_page_ajax-load-more-help #wpfooter,
|
730 |
body.ajax-load-more_page_ajax-load-more-licenses #wpfooter,
|
731 |
+
body.ajax-load-more_page_ajax-load-more-cache #wpfooter,
|
732 |
+
body.ajax-load-more_page_ajax-load-more-filters #wpfooter {
|
733 |
padding-top: 0;
|
734 |
padding-bottom: 0;
|
735 |
line-height: 40px;
|
745 |
body.ajax-load-more_page_ajax-load-more-extensions #wpfooter p,
|
746 |
body.ajax-load-more_page_ajax-load-more-help #wpfooter p,
|
747 |
body.ajax-load-more_page_ajax-load-more-licenses #wpfooter p,
|
748 |
+
body.ajax-load-more_page_ajax-load-more-cache #wpfooter p,
|
749 |
+
body.ajax-load-more_page_ajax-load-more-filters #wpfooter p {
|
750 |
line-height: 40px; }
|
751 |
@media screen and (min-width: 901px) {
|
752 |
body.toplevel_page_ajax-load-more .ajax-load-more .cnkt-main,
|
756 |
body.ajax-load-more_page_ajax-load-more-extensions .ajax-load-more .cnkt-main,
|
757 |
body.ajax-load-more_page_ajax-load-more-help .ajax-load-more .cnkt-main,
|
758 |
body.ajax-load-more_page_ajax-load-more-licenses .ajax-load-more .cnkt-main,
|
759 |
+
body.ajax-load-more_page_ajax-load-more-cache .ajax-load-more .cnkt-main,
|
760 |
+
body.ajax-load-more_page_ajax-load-more-filters .ajax-load-more .cnkt-main {
|
761 |
min-height: 100vh; } }
|
762 |
|
763 |
body.ajax-load-more_page_ajax-load-more-extensions {
|
1479 |
.ajax-load-more .expand-wrap hr {
|
1480 |
border: 0;
|
1481 |
height: 0;
|
1482 |
+
border-top: 1px solid #efefef;
|
1483 |
border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
|
1484 |
|
1485 |
hr.indented {
|
1509 |
margin: 0;
|
1510 |
font-style: italic; }
|
1511 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1512 |
.ajax-load-more .section-title p .fa.tooltip:hover,
|
1513 |
.form-table label .fa.tooltip:hover {
|
1514 |
opacity: 1; }
|
1515 |
|
1516 |
+
.ajax-load-more .fa.tooltip {
|
1517 |
+
display: inline-block;
|
1518 |
+
margin: 0 2px;
|
1519 |
text-decoration: none;
|
1520 |
cursor: help;
|
1521 |
position: relative;
|
1522 |
+
top: 0;
|
1523 |
+
background: #fff;
|
1524 |
+
border-radius: 100%;
|
1525 |
+
width: 20px;
|
1526 |
+
height: 20px;
|
1527 |
+
text-align: center;
|
1528 |
+
line-height: 20px;
|
1529 |
+
-webkit-box-shadow: 0 -1px 1px #ccc;
|
1530 |
+
box-shadow: 0 -1px 1px #ccc; }
|
1531 |
+
|
1532 |
+
.cta h3 .fa.tooltip {
|
1533 |
+
top: 1px; }
|
1534 |
|
1535 |
.ajax-load-more .section-title p span,
|
1536 |
.admin.ajax-load-more.settings .form-table p.notify span {
|
1568 |
.alternate_template_wrap,
|
1569 |
.cta_template_wrap,
|
1570 |
.restapi_options,
|
1571 |
+
.filters_options,
|
1572 |
.next-page-content,
|
1573 |
.acf-options,
|
1574 |
.masonry-options,
|
2024 |
margin-top: 0; }
|
2025 |
|
2026 |
.form-table tr {
|
2027 |
+
border-top: 1px solid #e1e1e1; }
|
2028 |
|
2029 |
.form-table {
|
2030 |
border: 1px solid #e1e1e1;
|
2131 |
display: -ms-flexbox;
|
2132 |
display: flex;
|
2133 |
-ms-flex-wrap: wrap;
|
2134 |
+
flex-wrap: wrap;
|
2135 |
+
margin-bottom: 20px;
|
2136 |
+
border-top: 1px solid #e1e1e1;
|
2137 |
+
border-left: 1px solid #e1e1e1; }
|
2138 |
|
2139 |
#alm-add-ons .group {
|
2140 |
overflow: hidden;
|
2141 |
+
width: 33.333%;
|
2142 |
+
display: -webkit-box;
|
2143 |
+
display: -ms-flexbox;
|
2144 |
+
display: flex;
|
2145 |
vertical-align: top;
|
2146 |
text-align: center;
|
2147 |
+
margin: 0 !important;
|
2148 |
+
padding: 0;
|
2149 |
+
border-radius: 0;
|
2150 |
+
border-top: none;
|
2151 |
+
border-left: none; }
|
2152 |
+
#alm-add-ons .group.installed {
|
2153 |
+
opacity: 0.85;
|
2154 |
+
-webkit-filter: grayscale(1);
|
2155 |
+
filter: grayscale(1); }
|
2156 |
+
#alm-add-ons .group.installed p:before {
|
2157 |
+
display: none !important; }
|
2158 |
+
@media screen and (max-width: 1350px) {
|
2159 |
+
#alm-add-ons .group {
|
2160 |
+
width: 50%; } }
|
2161 |
|
2162 |
#alm-add-ons .group span.cnkt-button {
|
2163 |
position: absolute;
|
2164 |
+
left: 20px;
|
2165 |
+
bottom: 20px;
|
2166 |
width: 100%;
|
2167 |
+
width: calc(100% - 40px);
|
2168 |
display: block;
|
2169 |
font-size: 14px;
|
2170 |
padding: 10px 14px;
|
2171 |
-webkit-transition: all 0.15s ease;
|
2172 |
+
transition: all 0.15s ease;
|
2173 |
+
border-bottom: none;
|
2174 |
+
border-left: none;
|
2175 |
+
border-right: none; }
|
|
|
|
|
|
|
|
|
|
|
2176 |
|
2177 |
#alm-add-ons .group img {
|
2178 |
+
padding: 0 15px 15px; }
|
2179 |
|
2180 |
#alm-add-ons .group a {
|
2181 |
text-decoration: none;
|
2182 |
display: block;
|
2183 |
+
padding: 25px 25px 70px;
|
2184 |
+
position: relative; }
|
2185 |
|
2186 |
+
#alm-add-ons .group:hover h2 {
|
2187 |
+
text-decoration: underline; }
|
2188 |
|
2189 |
#alm-add-ons .group a h2 {
|
2190 |
-webkit-transition: all 0.15s ease;
|
2483 |
|
2484 |
/*
|
2485 |
* Plugin Sidebar
|
2486 |
+
*
|
2487 |
* @since 1.0
|
2488 |
*/
|
2489 |
.ajax-load-more .cnkt-sidebar .cta {
|
3182 |
border: 1px solid #e1e1e1;
|
3183 |
border-radius: 3px;
|
3184 |
margin-bottom: 20px; }
|
3185 |
+
#alm-shortcode-builder-form .shortcode-parameter-wrap h2 {
|
3186 |
+
padding: 20px 22px;
|
3187 |
+
margin: 0 -20px 20px;
|
3188 |
+
display: block;
|
3189 |
+
font-size: 20px;
|
3190 |
+
width: calc(100% + 40px);
|
3191 |
+
border-bottom: 1px solid #e1e1e1;
|
3192 |
+
background-color: #f7f7f7;
|
3193 |
+
border-radius: 2px 2px 0 0;
|
3194 |
+
color: #23282d;
|
3195 |
+
position: relative; }
|
3196 |
+
#alm-shortcode-builder-form .shortcode-parameter-wrap h2 i {
|
3197 |
+
position: absolute;
|
3198 |
+
right: 15px;
|
3199 |
+
top: 50%;
|
3200 |
+
-webkit-transform: translateY(-50%);
|
3201 |
+
-ms-transform: translateY(-50%);
|
3202 |
+
transform: translateY(-50%);
|
3203 |
+
font-size: 25px;
|
3204 |
+
color: #ccc;
|
3205 |
+
opacity: 0.45; }
|
3206 |
|
3207 |
.forceColors #alm-shortcode-builder-form .shortcode-parameter-wrap h2 {
|
3208 |
padding: 12px 22px;
|
admin/dist/js/admin.js
CHANGED
@@ -1311,7 +1311,7 @@ jQuery(document).ready(function ($) {
|
|
1311 |
settingsTarget.classList.add('--saved');
|
1312 |
settingsTarget.innerHTML = alm_admin_localize.settings_saved;
|
1313 |
settingsForm.classList.remove('--saving');
|
1314 |
-
console.log(alm_admin_localize.ajax_load_more +
|
1315 |
savingSettings = false;
|
1316 |
|
1317 |
setTimeout(function () {
|
@@ -1358,10 +1358,12 @@ jQuery(document).ready(function ($) {
|
|
1358 |
* @since 2.8.4
|
1359 |
*/
|
1360 |
|
1361 |
-
$('.tooltip')
|
1362 |
-
|
1363 |
-
|
1364 |
-
|
|
|
|
|
1365 |
});
|
1366 |
|
1367 |
/*
|
@@ -1426,7 +1428,7 @@ jQuery(document).ready(function ($) {
|
|
1426 |
};
|
1427 |
|
1428 |
// Copy link on shortcode builder
|
1429 |
-
$('.
|
1430 |
var c = $('#shortcode_output').html();
|
1431 |
_alm.copyToClipboard(c);
|
1432 |
});
|
@@ -1697,11 +1699,11 @@ jQuery(document).ready(function ($) {
|
|
1697 |
if ($('#alm-add-ons').length) {
|
1698 |
var addOnColumns = $('#alm-add-ons .group .expand-wrap');
|
1699 |
$(window).load(function () {
|
1700 |
-
equalheight(addOnColumns);
|
1701 |
});
|
1702 |
$(window).resize(function () {
|
1703 |
setTimeout(function () {
|
1704 |
-
equalheight(addOnColumns);
|
1705 |
}, 500);
|
1706 |
});
|
1707 |
}
|
1311 |
settingsTarget.classList.add('--saved');
|
1312 |
settingsTarget.innerHTML = alm_admin_localize.settings_saved;
|
1313 |
settingsForm.classList.remove('--saving');
|
1314 |
+
//console.log(alm_admin_localize.ajax_load_more +' - '+ alm_admin_localize.settings_saved);
|
1315 |
savingSettings = false;
|
1316 |
|
1317 |
setTimeout(function () {
|
1358 |
* @since 2.8.4
|
1359 |
*/
|
1360 |
|
1361 |
+
$('body').on('mouseenter', '.tooltip:not(.tooltipstered)', function () {
|
1362 |
+
$(this).tooltipster({
|
1363 |
+
delay: 100,
|
1364 |
+
speed: 150,
|
1365 |
+
maxWidth: 325
|
1366 |
+
}).tooltipster('show');
|
1367 |
});
|
1368 |
|
1369 |
/*
|
1428 |
};
|
1429 |
|
1430 |
// Copy link on shortcode builder
|
1431 |
+
$('.copy-to-clipboard').on('click', function () {
|
1432 |
var c = $('#shortcode_output').html();
|
1433 |
_alm.copyToClipboard(c);
|
1434 |
});
|
1699 |
if ($('#alm-add-ons').length) {
|
1700 |
var addOnColumns = $('#alm-add-ons .group .expand-wrap');
|
1701 |
$(window).load(function () {
|
1702 |
+
//equalheight(addOnColumns);
|
1703 |
});
|
1704 |
$(window).resize(function () {
|
1705 |
setTimeout(function () {
|
1706 |
+
//equalheight(addOnColumns);
|
1707 |
}, 500);
|
1708 |
});
|
1709 |
}
|
admin/editor/editor-build.php
CHANGED
@@ -53,7 +53,7 @@ tinyMCEPopup.onInit.add(AjaxLoadMoreModal.init, AjaxLoadMoreModal);
|
|
53 |
<a href="javascript:AjaxLoadMoreModal.insert(AjaxLoadMoreModal.local_ed)" id="insert" class="insert_alm"><i class="fa fa-chevron-circle-right"></i> <?php _e('Insert Shortcode', 'ajax-load-more'); ?></a>
|
54 |
<div class="shortcode-display">
|
55 |
<div id="shortcode_output"></div>
|
56 |
-
<span class="copy"><?php _e('Copy', 'ajax-load-more'); ?></span>
|
57 |
</div>
|
58 |
</div>
|
59 |
|
53 |
<a href="javascript:AjaxLoadMoreModal.insert(AjaxLoadMoreModal.local_ed)" id="insert" class="insert_alm"><i class="fa fa-chevron-circle-right"></i> <?php _e('Insert Shortcode', 'ajax-load-more'); ?></a>
|
54 |
<div class="shortcode-display">
|
55 |
<div id="shortcode_output"></div>
|
56 |
+
<span class="copy copy-to-clipboard"><?php _e('Copy', 'ajax-load-more'); ?></span>
|
57 |
</div>
|
58 |
</div>
|
59 |
|
admin/img/add-ons/filters-add-on.jpg
ADDED
Binary file
|
admin/img/add-ons/rest-api-add-on.jpg
DELETED
Binary file
|
admin/img/alm-logo-16x16.png
DELETED
Binary file
|
admin/shortcode-builder/components/acf.php
CHANGED
@@ -31,7 +31,7 @@
|
|
31 |
</div>
|
32 |
<div class="wrap">
|
33 |
<div class="inner">
|
34 |
-
<input type="text" value="" id="acf_post_id" class="alm_element">
|
35 |
</div>
|
36 |
</div>
|
37 |
|
31 |
</div>
|
32 |
<div class="wrap">
|
33 |
<div class="inner">
|
34 |
+
<input type="text" value="" id="acf_post_id" class="alm_element numbers-only">
|
35 |
</div>
|
36 |
</div>
|
37 |
|
admin/shortcode-builder/components/filters.php
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php if(has_action('alm_filters_installed')){ ?>
|
2 |
+
<div class="row input filters add-on" id="alm-filters">
|
3 |
+
<h3 class="heading"><?php _e('Filters', 'ajax-load-more'); ?></h3>
|
4 |
+
<div class="expand-wrap">
|
5 |
+
<div class="section-title">
|
6 |
+
<p><?php _e('Enable filters with this Ajax Load More instance.', 'ajax-load-more'); ?></p>
|
7 |
+
</div>
|
8 |
+
<div class="wrap">
|
9 |
+
<div class="inner">
|
10 |
+
<ul>
|
11 |
+
<li>
|
12 |
+
<input class="alm_element" type="radio" name="filters" value="true" id="filters-true" >
|
13 |
+
<label for="filters-true"><?php _e('True', 'ajax-load-more'); ?></label>
|
14 |
+
</li>
|
15 |
+
<li>
|
16 |
+
<input class="alm_element" type="radio" name="filters" value="false" id="filters-false" checked="checked">
|
17 |
+
<label for="filters-false"><?php _e('False', 'ajax-load-more'); ?></label>
|
18 |
+
</li>
|
19 |
+
</ul>
|
20 |
+
</div>
|
21 |
+
</div>
|
22 |
+
|
23 |
+
<div class="clear"></div>
|
24 |
+
|
25 |
+
<div class="filters_options">
|
26 |
+
|
27 |
+
<div class="clear"></div>
|
28 |
+
<hr>
|
29 |
+
|
30 |
+
<div class="section-title">
|
31 |
+
<h4><?php _e('Analytics', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Each time the filter is updated a pageview will be sent to Google Analytics','ajax-load-more'); ?>."></a></h4>
|
32 |
+
<p><?php _e('Send pageviews to Google Analytics', 'ajax-load-more'); ?>.</p>
|
33 |
+
</div>
|
34 |
+
<div class="wrap">
|
35 |
+
<div class="inner">
|
36 |
+
<ul>
|
37 |
+
<li>
|
38 |
+
<input class="alm_element" type="radio" name="filters-analytics" value="true" id="filters-analytics-true" checked="checked">
|
39 |
+
<label for="filters-analytics-true"><?php _e('True', 'ajax-load-more'); ?></label>
|
40 |
+
</li>
|
41 |
+
<li>
|
42 |
+
<input class="alm_element" type="radio" name="filters-analytics" value="false" id="filters-analytics-false">
|
43 |
+
<label for="filters-analytics-false"><?php _e('False', 'ajax-load-more'); ?></label>
|
44 |
+
</li>
|
45 |
+
</ul>
|
46 |
+
</div>
|
47 |
+
</div>
|
48 |
+
|
49 |
+
<div class="clear"></div>
|
50 |
+
<hr>
|
51 |
+
|
52 |
+
<div class="section-title">
|
53 |
+
<h4><?php _e('Debug Mode', 'ajax-load-more'); ?></h4>
|
54 |
+
<p><?php _e('Enable debugging of the Ajax Load More filter object in the browser console', 'ajax-load-more'); ?>.</p>
|
55 |
+
</div>
|
56 |
+
<div class="wrap">
|
57 |
+
<div class="inner">
|
58 |
+
<ul>
|
59 |
+
<li>
|
60 |
+
<input class="alm_element" type="radio" name="filters-debug" value="true" id="filters-debug-true">
|
61 |
+
<label for="filters-debug-true"><?php _e('True', 'ajax-load-more'); ?></label>
|
62 |
+
</li>
|
63 |
+
<li>
|
64 |
+
<input class="alm_element" type="radio" name="filters-debug" value="false" id="filters-debug-false" checked="checked">
|
65 |
+
<label for="filters-debug-false"><?php _e('False', 'ajax-load-more'); ?></label>
|
66 |
+
</li>
|
67 |
+
</ul>
|
68 |
+
</div>
|
69 |
+
</div>
|
70 |
+
|
71 |
+
</div>
|
72 |
+
|
73 |
+
</div>
|
74 |
+
</div>
|
75 |
+
<?php } ?>
|
admin/shortcode-builder/js/shortcode-builder.js
CHANGED
@@ -2,7 +2,7 @@ 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
|
@@ -17,7 +17,7 @@ jQuery(document).ready(function($) {
|
|
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({
|
@@ -203,7 +203,7 @@ jQuery(document).ready(function($) {
|
|
203 |
if(acf_field_type !== '' && acf_field_name !== ''){
|
204 |
output += ' acf="'+acf+'"';
|
205 |
if(acf_post_id !== ''){
|
206 |
-
output += ' acf_post_id="
|
207 |
}
|
208 |
output += ' acf_field_type="'+ acf_field_type +'"';
|
209 |
output += ' acf_field_name="'+ acf_field_name +'"';
|
@@ -311,6 +311,33 @@ jQuery(document).ready(function($) {
|
|
311 |
|
312 |
|
313 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
314 |
// ---------------------------
|
315 |
// - Next Page
|
316 |
// ---------------------------
|
@@ -976,7 +1003,7 @@ jQuery(document).ready(function($) {
|
|
976 |
// ---------------------------
|
977 |
|
978 |
var transition = $('.transition select[name=transition]').val();
|
979 |
-
if(transition !== '
|
980 |
output += ' transition="'+transition+'"';
|
981 |
|
982 |
if(transition === 'masonry'){
|
2 |
"use strict";
|
3 |
|
4 |
var _alm = {},
|
5 |
+
output_div = $('.ajax-load-more.shortcode-builder #shortcode_output'),
|
6 |
output = '[ajax_load_more]';
|
7 |
|
8 |
output_div.text(output); //Init the shortcode output
|
17 |
*/
|
18 |
_alm.select2 = function(){
|
19 |
// Default Select2
|
20 |
+
$('.row select, .cnkt-main select, select.jump-menu').not('.multiple, .meta-compare, .meta-type, .alm-filter-select').select2({});
|
21 |
|
22 |
// multiple
|
23 |
$('.ajax-load-more .categories select.multiple').select2({
|
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 +'"';
|
311 |
|
312 |
|
313 |
|
314 |
+
// ---------------------------
|
315 |
+
// - Filters
|
316 |
+
// ---------------------------
|
317 |
+
|
318 |
+
var filters = $('.filters input[name=filters]:checked').val();
|
319 |
+
if(filters !== 'false' && filters != undefined){
|
320 |
+
|
321 |
+
$('.filters_options').slideDown(150, 'alm_easeInOutQuad');
|
322 |
+
|
323 |
+
output += ' filters="'+filters+'"';
|
324 |
+
|
325 |
+
var filters_analytics = $('#alm-filters input[name=filters-analytics]:checked').val().trim();
|
326 |
+
if(filters_analytics !== '' && filters_analytics !== 'true')
|
327 |
+
output += ' filters_analytics="'+filters_analytics+'"';
|
328 |
+
|
329 |
+
var filters_debug = $('#alm-filters input[name=filters-debug]:checked').val().trim();
|
330 |
+
if(filters_debug !== '' && filters_debug !== 'false')
|
331 |
+
output += ' filters_debug="'+filters_debug+'"';
|
332 |
+
|
333 |
+
}else{
|
334 |
+
|
335 |
+
$('.filters_options').slideUp(150, 'alm_easeInOutQuad');
|
336 |
+
|
337 |
+
}
|
338 |
+
|
339 |
+
|
340 |
+
|
341 |
// ---------------------------
|
342 |
// - Next Page
|
343 |
// ---------------------------
|
1003 |
// ---------------------------
|
1004 |
|
1005 |
var transition = $('.transition select[name=transition]').val();
|
1006 |
+
if(transition !== 'fade')
|
1007 |
output += ' transition="'+transition+'"';
|
1008 |
|
1009 |
if(transition === 'masonry'){
|
admin/shortcode-builder/shortcode-builder.php
CHANGED
@@ -20,13 +20,14 @@
|
|
20 |
if(alm_has_addon_shortcodes()) : ?>
|
21 |
|
22 |
<div class="shortcode-parameter-wrap">
|
23 |
-
<h2 class="shortcode-title"><?php _e('Add-ons & Extensions', 'ajax-load-more'); ?></h2>
|
24 |
-
|
25 |
<?php
|
26 |
require_once('components/acf.php');
|
27 |
require_once('components/cache.php');
|
28 |
require_once('components/cta.php');
|
29 |
require_once('components/comments.php');
|
|
|
30 |
require_once('components/nextpage.php');
|
31 |
require_once('components/paging.php');
|
32 |
require_once('components/preloaded.php');
|
@@ -42,8 +43,8 @@
|
|
42 |
|
43 |
<!-- Display Settings -->
|
44 |
<div class="shortcode-parameter-wrap">
|
45 |
-
<h2 class="shortcode-title"><?php _e('Display Settings', 'ajax-load-more'); ?></h2>
|
46 |
-
|
47 |
<!-- Template Selection -->
|
48 |
<?php
|
49 |
echo '<div class="row repeater" id="alm-repeaters">';
|
@@ -282,8 +283,8 @@
|
|
282 |
<div class="wrap">
|
283 |
<div class="inner">
|
284 |
<select class="alm_element transition" name="transition">
|
285 |
-
<option value="
|
286 |
-
<option value="
|
287 |
<option value="masonry"><?php _e('Masonry', 'ajax-load-more'); ?></option>
|
288 |
<option value="none"><?php _e('None', 'ajax-load-more'); ?></option>
|
289 |
</select>
|
@@ -547,18 +548,16 @@
|
|
547 |
<!-- Destroy After -->
|
548 |
<div class="row input alm-destroy-after" id="alm-destroy-after">
|
549 |
<h3 class="heading"><?php _e('Destroy After', 'ajax-load-more'); ?></h3>
|
|
|
550 |
<div class="expand-wrap">
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
</div>
|
560 |
-
</div>
|
561 |
-
</div>
|
562 |
</div>
|
563 |
</div>
|
564 |
<!-- End Destroy After -->
|
@@ -571,7 +570,7 @@
|
|
571 |
|
572 |
<!-- Query Parameters -->
|
573 |
<div class="shortcode-parameter-wrap">
|
574 |
-
<h2 class="shortcode-title"><?php _e('Query Parameters', 'ajax-load-more'); ?></h2>
|
575 |
|
576 |
<!-- Posts Per Page -->
|
577 |
<div class="row input posts_per_page" id="alm-post-page">
|
20 |
if(alm_has_addon_shortcodes()) : ?>
|
21 |
|
22 |
<div class="shortcode-parameter-wrap">
|
23 |
+
<h2 class="shortcode-title"><i class="fa fa-plus-circle"></i><?php _e('Add-ons & Extensions', 'ajax-load-more'); ?></h2>
|
24 |
+
|
25 |
<?php
|
26 |
require_once('components/acf.php');
|
27 |
require_once('components/cache.php');
|
28 |
require_once('components/cta.php');
|
29 |
require_once('components/comments.php');
|
30 |
+
require_once('components/filters.php');
|
31 |
require_once('components/nextpage.php');
|
32 |
require_once('components/paging.php');
|
33 |
require_once('components/preloaded.php');
|
43 |
|
44 |
<!-- Display Settings -->
|
45 |
<div class="shortcode-parameter-wrap">
|
46 |
+
<h2 class="shortcode-title"><i class="fa fa-cog"></i><?php _e('Display Settings', 'ajax-load-more'); ?></h2>
|
47 |
+
|
48 |
<!-- Template Selection -->
|
49 |
<?php
|
50 |
echo '<div class="row repeater" id="alm-repeaters">';
|
283 |
<div class="wrap">
|
284 |
<div class="inner">
|
285 |
<select class="alm_element transition" name="transition">
|
286 |
+
<option value="fade" selected="selected"><?php _e('Fade', 'ajax-load-more'); ?></option>
|
287 |
+
<option value="slide"><?php _e('Slide', 'ajax-load-more'); ?></option>
|
288 |
<option value="masonry"><?php _e('Masonry', 'ajax-load-more'); ?></option>
|
289 |
<option value="none"><?php _e('None', 'ajax-load-more'); ?></option>
|
290 |
</select>
|
548 |
<!-- Destroy After -->
|
549 |
<div class="row input alm-destroy-after" id="alm-destroy-after">
|
550 |
<h3 class="heading"><?php _e('Destroy After', 'ajax-load-more'); ?></h3>
|
551 |
+
<!-- Destroy After -->
|
552 |
<div class="expand-wrap">
|
553 |
+
<div class="section-title">
|
554 |
+
<p><?php _e('Remove Ajax Load More functionality after {<em>n</em>} number of pages have been loaded.', 'ajax-load-more'); ?></p>
|
555 |
+
</div>
|
556 |
+
<div class="wrap">
|
557 |
+
<div class="inner">
|
558 |
+
<input type="number" class="alm_element numbers-only" name="destroy-after" id="disable-after" step="1" min="0" value="">
|
559 |
+
</div>
|
560 |
+
</div>
|
|
|
|
|
|
|
561 |
</div>
|
562 |
</div>
|
563 |
<!-- End Destroy After -->
|
570 |
|
571 |
<!-- Query Parameters -->
|
572 |
<div class="shortcode-parameter-wrap">
|
573 |
+
<h2 class="shortcode-title"><i class="fa fa-database"></i><?php _e('Query Parameters', 'ajax-load-more'); ?></h2>
|
574 |
|
575 |
<!-- Posts Per Page -->
|
576 |
<div class="row input posts_per_page" id="alm-post-page">
|
admin/src/js/admin.js
CHANGED
@@ -42,7 +42,7 @@ jQuery(document).ready(function($) {
|
|
42 |
settingsTarget.classList.add('--saved');
|
43 |
settingsTarget.innerHTML = alm_admin_localize.settings_saved;
|
44 |
settingsForm.classList.remove('--saving');
|
45 |
-
console.log(alm_admin_localize.ajax_load_more +' - '+ alm_admin_localize.settings_saved);
|
46 |
savingSettings = false;
|
47 |
|
48 |
setTimeout(function(){
|
@@ -96,11 +96,13 @@ jQuery(document).ready(function($) {
|
|
96 |
*
|
97 |
* @since 2.8.4
|
98 |
*/
|
99 |
-
|
100 |
-
$('.tooltip')
|
101 |
-
|
102 |
-
|
103 |
-
|
|
|
|
|
104 |
});
|
105 |
|
106 |
|
@@ -174,7 +176,7 @@ jQuery(document).ready(function($) {
|
|
174 |
};
|
175 |
|
176 |
// Copy link on shortcode builder
|
177 |
-
$('.
|
178 |
var c = $('#shortcode_output').html();
|
179 |
_alm.copyToClipboard(c);
|
180 |
});
|
@@ -463,11 +465,11 @@ jQuery(document).ready(function($) {
|
|
463 |
if($('#alm-add-ons').length){
|
464 |
var addOnColumns = $('#alm-add-ons .group .expand-wrap');
|
465 |
$(window).load(function() {
|
466 |
-
equalheight(addOnColumns);
|
467 |
});
|
468 |
$(window).resize(function() {
|
469 |
setTimeout(function(){
|
470 |
-
equalheight(addOnColumns);
|
471 |
}, 500);
|
472 |
});
|
473 |
}
|
42 |
settingsTarget.classList.add('--saved');
|
43 |
settingsTarget.innerHTML = alm_admin_localize.settings_saved;
|
44 |
settingsForm.classList.remove('--saving');
|
45 |
+
//console.log(alm_admin_localize.ajax_load_more +' - '+ alm_admin_localize.settings_saved);
|
46 |
savingSettings = false;
|
47 |
|
48 |
setTimeout(function(){
|
96 |
*
|
97 |
* @since 2.8.4
|
98 |
*/
|
99 |
+
|
100 |
+
$('body').on('mouseenter', '.tooltip:not(.tooltipstered)', function(){
|
101 |
+
$(this).tooltipster({
|
102 |
+
delay: 100,
|
103 |
+
speed: 150,
|
104 |
+
maxWidth: 325
|
105 |
+
}).tooltipster('show');
|
106 |
});
|
107 |
|
108 |
|
176 |
};
|
177 |
|
178 |
// Copy link on shortcode builder
|
179 |
+
$('.copy-to-clipboard').on('click', function(){
|
180 |
var c = $('#shortcode_output').html();
|
181 |
_alm.copyToClipboard(c);
|
182 |
});
|
465 |
if($('#alm-add-ons').length){
|
466 |
var addOnColumns = $('#alm-add-ons .group .expand-wrap');
|
467 |
$(window).load(function() {
|
468 |
+
//equalheight(addOnColumns);
|
469 |
});
|
470 |
$(window).resize(function() {
|
471 |
setTimeout(function(){
|
472 |
+
//equalheight(addOnColumns);
|
473 |
}, 500);
|
474 |
});
|
475 |
}
|
admin/src/scss/admin.scss
CHANGED
@@ -14,7 +14,8 @@ body.ajax-load-more_page_ajax-load-more-add-ons,
|
|
14 |
body.ajax-load-more_page_ajax-load-more-extensions,
|
15 |
body.ajax-load-more_page_ajax-load-more-help,
|
16 |
body.ajax-load-more_page_ajax-load-more-licenses,
|
17 |
-
body.ajax-load-more_page_ajax-load-more-cache
|
|
|
18 |
background-color: #f7f7f7;
|
19 |
#wpcontent{
|
20 |
padding-left: 0;
|
@@ -32,7 +33,8 @@ body.ajax-load-more_page_ajax-load-more-add-ons,
|
|
32 |
body.ajax-load-more_page_ajax-load-more-extensions,
|
33 |
body.ajax-load-more_page_ajax-load-more-help,
|
34 |
body.ajax-load-more_page_ajax-load-more-licenses,
|
35 |
-
body.ajax-load-more_page_ajax-load-more-cache
|
|
|
36 |
background: #efefef;
|
37 |
#wpfooter {
|
38 |
padding-top: 0;
|
@@ -849,7 +851,7 @@ a.layout-hover{
|
|
849 |
.ajax-load-more .expand-wrap hr{
|
850 |
border: 0;
|
851 |
height: 0;
|
852 |
-
border-top: 1px solid
|
853 |
border-bottom: 1px solid rgba(255, 255, 255, 0.3);
|
854 |
}
|
855 |
hr.indented{ // Indented as fake padding in shortcode builder
|
@@ -881,26 +883,29 @@ hr.indented{ // Indented as fake padding in shortcode builder
|
|
881 |
margin: 0;
|
882 |
font-style: italic;
|
883 |
}
|
884 |
-
.ajax-load-more .section-title p .fa.tooltip,
|
885 |
-
.form-table label .fa.tooltip{
|
886 |
-
margin: 0 2px;
|
887 |
-
display: inline-block;
|
888 |
-
font-size: 15px;
|
889 |
-
opacity: 0.9;
|
890 |
-
top: 0;
|
891 |
-
}
|
892 |
.ajax-load-more .section-title p .fa.tooltip:hover,
|
893 |
.form-table label .fa.tooltip:hover{
|
894 |
opacity: 1;
|
895 |
}
|
896 |
-
.fa.tooltip{
|
|
|
|
|
897 |
text-decoration: none;
|
898 |
cursor: help;
|
899 |
position: relative;
|
900 |
-
top:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
901 |
}
|
902 |
-
|
903 |
-
|
|
|
|
|
904 |
.admin.ajax-load-more.settings .form-table p.notify span{
|
905 |
display: inline-block;
|
906 |
padding: 0 4px;
|
@@ -926,28 +931,27 @@ hr.indented{ // Indented as fake padding in shortcode builder
|
|
926 |
padding: 0 0 10px;
|
927 |
margin: 0;
|
928 |
font-size: 13px;
|
929 |
-
color: #888;
|
930 |
}
|
931 |
|
932 |
.ajax-load-more label input._alm_repeater_alias{
|
933 |
height: auto;
|
934 |
line-height: normal !important;
|
935 |
}
|
936 |
-
|
937 |
.preload_amount,
|
938 |
.cache_id,
|
939 |
.alternate_template_wrap,
|
940 |
.cta_template_wrap,
|
941 |
.restapi_options,
|
|
|
942 |
.next-page-content,
|
943 |
.acf-options,
|
944 |
-
.masonry-options,
|
945 |
.progress-bar-options{
|
946 |
display: none;
|
947 |
}
|
948 |
-
|
949 |
-
|
950 |
-
|
951 |
.ajax-load-more .row .wrap{
|
952 |
padding: 20px 0 0 5%;
|
953 |
margin: 0;
|
@@ -1433,7 +1437,7 @@ table.highlight{
|
|
1433 |
margin-top: 0;
|
1434 |
}
|
1435 |
.form-table tr{
|
1436 |
-
border-top: 1px solid #
|
1437 |
}
|
1438 |
.form-table {
|
1439 |
border: 1px solid #e1e1e1;
|
@@ -1547,72 +1551,61 @@ table.highlight{
|
|
1547 |
/* Add-ons & Extensions */
|
1548 |
|
1549 |
.flexbox-wrap{
|
1550 |
-
display: -webkit-box;
|
1551 |
-
display: -moz-box;
|
1552 |
-
display: -ms-flexbox;
|
1553 |
-
display: -webkit-flex;
|
1554 |
display: flex;
|
1555 |
flex-wrap: wrap;
|
|
|
|
|
|
|
1556 |
}
|
1557 |
#alm-add-ons {}
|
1558 |
-
#alm-add-ons .group{
|
1559 |
overflow: hidden;
|
1560 |
-
width:
|
1561 |
-
display:
|
1562 |
vertical-align: top;
|
1563 |
text-align: center;
|
1564 |
-
margin: 0
|
1565 |
-
word-spacing : -4px;
|
1566 |
padding: 0;
|
1567 |
-
|
1568 |
-
|
1569 |
-
|
1570 |
-
|
1571 |
-
|
1572 |
-
|
1573 |
-
|
1574 |
-
|
1575 |
-
|
1576 |
}
|
1577 |
-
|
1578 |
-
|
1579 |
-
#alm-add-ons .group{
|
1580 |
-
//width: 17%;
|
1581 |
}
|
1582 |
}
|
1583 |
-
|
1584 |
-
display: block;
|
1585 |
-
padding-bottom: 50px;
|
1586 |
-
position: relative;
|
1587 |
-
word-spacing : 0;
|
1588 |
-
}
|
1589 |
#alm-add-ons .group span.cnkt-button{
|
1590 |
position: absolute;
|
1591 |
-
left:
|
1592 |
-
bottom:
|
1593 |
width: 100%;
|
|
|
1594 |
display: block;
|
1595 |
font-size: 14px;
|
1596 |
padding: 10px 14px;
|
1597 |
transition: all 0.15s ease;
|
1598 |
-
|
1599 |
-
|
1600 |
-
|
1601 |
-
filter: grayscale(0.85);
|
1602 |
-
}
|
1603 |
-
.ajax-load-more .cnkt-main .group.installed p:before{
|
1604 |
-
display: none !important;
|
1605 |
}
|
1606 |
#alm-add-ons .group img{
|
1607 |
-
padding:
|
1608 |
}
|
1609 |
#alm-add-ons .group a{
|
1610 |
text-decoration: none;
|
1611 |
display: block;
|
1612 |
-
padding:
|
1613 |
-
|
1614 |
-
|
1615 |
-
|
|
|
1616 |
}
|
1617 |
#alm-add-ons .group a h2{
|
1618 |
transition: all 0.15s ease;
|
@@ -1922,7 +1915,7 @@ table.highlight{
|
|
1922 |
|
1923 |
/*
|
1924 |
* Plugin Sidebar
|
1925 |
-
*
|
1926 |
* @since 1.0
|
1927 |
*/
|
1928 |
.ajax-load-more .cnkt-sidebar{}
|
@@ -2687,19 +2680,29 @@ p.cache-stats{
|
|
2687 |
background: #fff;
|
2688 |
border: 1px solid #e1e1e1;
|
2689 |
border-radius: 3px;
|
2690 |
-
margin-bottom: 20px;
|
2691 |
-
|
2692 |
-
#alm-shortcode-builder-form .shortcode-parameter-wrap h2{
|
2693 |
padding: 20px 22px;
|
2694 |
margin: 0 -20px 20px;
|
2695 |
display: block;
|
2696 |
-
font-size:
|
2697 |
width: calc(100% + 40px);
|
2698 |
border-bottom: 1px solid #e1e1e1;
|
2699 |
background-color: #f7f7f7;
|
2700 |
border-radius: 2px 2px 0 0;
|
2701 |
color: #23282d;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2702 |
}
|
|
|
2703 |
.forceColors #alm-shortcode-builder-form .shortcode-parameter-wrap h2{
|
2704 |
padding: 12px 22px;
|
2705 |
font-size: 20px;
|
14 |
body.ajax-load-more_page_ajax-load-more-extensions,
|
15 |
body.ajax-load-more_page_ajax-load-more-help,
|
16 |
body.ajax-load-more_page_ajax-load-more-licenses,
|
17 |
+
body.ajax-load-more_page_ajax-load-more-cache,
|
18 |
+
body.ajax-load-more_page_ajax-load-more-filters{
|
19 |
background-color: #f7f7f7;
|
20 |
#wpcontent{
|
21 |
padding-left: 0;
|
33 |
body.ajax-load-more_page_ajax-load-more-extensions,
|
34 |
body.ajax-load-more_page_ajax-load-more-help,
|
35 |
body.ajax-load-more_page_ajax-load-more-licenses,
|
36 |
+
body.ajax-load-more_page_ajax-load-more-cache,
|
37 |
+
body.ajax-load-more_page_ajax-load-more-filters{
|
38 |
background: #efefef;
|
39 |
#wpfooter {
|
40 |
padding-top: 0;
|
851 |
.ajax-load-more .expand-wrap hr{
|
852 |
border: 0;
|
853 |
height: 0;
|
854 |
+
border-top: 1px solid #efefef;
|
855 |
border-bottom: 1px solid rgba(255, 255, 255, 0.3);
|
856 |
}
|
857 |
hr.indented{ // Indented as fake padding in shortcode builder
|
883 |
margin: 0;
|
884 |
font-style: italic;
|
885 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
886 |
.ajax-load-more .section-title p .fa.tooltip:hover,
|
887 |
.form-table label .fa.tooltip:hover{
|
888 |
opacity: 1;
|
889 |
}
|
890 |
+
.ajax-load-more .fa.tooltip{
|
891 |
+
display: inline-block;
|
892 |
+
margin: 0 2px;
|
893 |
text-decoration: none;
|
894 |
cursor: help;
|
895 |
position: relative;
|
896 |
+
top: 0;
|
897 |
+
background: #fff;
|
898 |
+
border-radius: 100%;
|
899 |
+
width: 20px;
|
900 |
+
height: 20px;
|
901 |
+
text-align: center;
|
902 |
+
line-height: 20px;
|
903 |
+
box-shadow: 0 -1px 1px #ccc;
|
904 |
}
|
905 |
+
.cta h3 .fa.tooltip{
|
906 |
+
top: 1px;
|
907 |
+
}
|
908 |
+
.ajax-load-more .section-title p span,
|
909 |
.admin.ajax-load-more.settings .form-table p.notify span{
|
910 |
display: inline-block;
|
911 |
padding: 0 4px;
|
931 |
padding: 0 0 10px;
|
932 |
margin: 0;
|
933 |
font-size: 13px;
|
934 |
+
color: #888;
|
935 |
}
|
936 |
|
937 |
.ajax-load-more label input._alm_repeater_alias{
|
938 |
height: auto;
|
939 |
line-height: normal !important;
|
940 |
}
|
941 |
+
|
942 |
.preload_amount,
|
943 |
.cache_id,
|
944 |
.alternate_template_wrap,
|
945 |
.cta_template_wrap,
|
946 |
.restapi_options,
|
947 |
+
.filters_options,
|
948 |
.next-page-content,
|
949 |
.acf-options,
|
950 |
+
.masonry-options,
|
951 |
.progress-bar-options{
|
952 |
display: none;
|
953 |
}
|
954 |
+
|
|
|
|
|
955 |
.ajax-load-more .row .wrap{
|
956 |
padding: 20px 0 0 5%;
|
957 |
margin: 0;
|
1437 |
margin-top: 0;
|
1438 |
}
|
1439 |
.form-table tr{
|
1440 |
+
border-top: 1px solid #e1e1e1;
|
1441 |
}
|
1442 |
.form-table {
|
1443 |
border: 1px solid #e1e1e1;
|
1551 |
/* Add-ons & Extensions */
|
1552 |
|
1553 |
.flexbox-wrap{
|
|
|
|
|
|
|
|
|
1554 |
display: flex;
|
1555 |
flex-wrap: wrap;
|
1556 |
+
margin-bottom: 20px;
|
1557 |
+
border-top: 1px solid #e1e1e1;
|
1558 |
+
border-left: 1px solid #e1e1e1;
|
1559 |
}
|
1560 |
#alm-add-ons {}
|
1561 |
+
#alm-add-ons .group{
|
1562 |
overflow: hidden;
|
1563 |
+
width: 33.333%;
|
1564 |
+
display: flex;
|
1565 |
vertical-align: top;
|
1566 |
text-align: center;
|
1567 |
+
margin: 0 !important;
|
|
|
1568 |
padding: 0;
|
1569 |
+
border-radius: 0;
|
1570 |
+
border-top: none;
|
1571 |
+
border-left: none;
|
1572 |
+
&.installed{
|
1573 |
+
opacity: 0.85;
|
1574 |
+
filter: grayscale(1);
|
1575 |
+
p:before{
|
1576 |
+
display: none !important;
|
1577 |
+
}
|
1578 |
}
|
1579 |
+
@media screen and (max-width: 1350px){
|
1580 |
+
width: 50%;
|
|
|
|
|
1581 |
}
|
1582 |
}
|
1583 |
+
|
|
|
|
|
|
|
|
|
|
|
1584 |
#alm-add-ons .group span.cnkt-button{
|
1585 |
position: absolute;
|
1586 |
+
left: 20px;
|
1587 |
+
bottom: 20px;
|
1588 |
width: 100%;
|
1589 |
+
width: calc(100% - 40px);
|
1590 |
display: block;
|
1591 |
font-size: 14px;
|
1592 |
padding: 10px 14px;
|
1593 |
transition: all 0.15s ease;
|
1594 |
+
border-bottom: none;
|
1595 |
+
border-left: none;
|
1596 |
+
border-right: none;
|
|
|
|
|
|
|
|
|
1597 |
}
|
1598 |
#alm-add-ons .group img{
|
1599 |
+
padding: 0 15px 15px;
|
1600 |
}
|
1601 |
#alm-add-ons .group a{
|
1602 |
text-decoration: none;
|
1603 |
display: block;
|
1604 |
+
padding: 25px 25px 70px;
|
1605 |
+
position: relative;
|
1606 |
+
}
|
1607 |
+
#alm-add-ons .group:hover h2{
|
1608 |
+
text-decoration: underline;
|
1609 |
}
|
1610 |
#alm-add-ons .group a h2{
|
1611 |
transition: all 0.15s ease;
|
1915 |
|
1916 |
/*
|
1917 |
* Plugin Sidebar
|
1918 |
+
*
|
1919 |
* @since 1.0
|
1920 |
*/
|
1921 |
.ajax-load-more .cnkt-sidebar{}
|
2680 |
background: #fff;
|
2681 |
border: 1px solid #e1e1e1;
|
2682 |
border-radius: 3px;
|
2683 |
+
margin-bottom: 20px;
|
2684 |
+
h2{
|
|
|
2685 |
padding: 20px 22px;
|
2686 |
margin: 0 -20px 20px;
|
2687 |
display: block;
|
2688 |
+
font-size: 20px;
|
2689 |
width: calc(100% + 40px);
|
2690 |
border-bottom: 1px solid #e1e1e1;
|
2691 |
background-color: #f7f7f7;
|
2692 |
border-radius: 2px 2px 0 0;
|
2693 |
color: #23282d;
|
2694 |
+
position: relative;
|
2695 |
+
i{
|
2696 |
+
position: absolute;
|
2697 |
+
right: 15px;
|
2698 |
+
top: 50%;
|
2699 |
+
transform: translateY(-50%);
|
2700 |
+
font-size: 25px;
|
2701 |
+
color: #ccc;
|
2702 |
+
opacity: 0.45;
|
2703 |
+
}
|
2704 |
}
|
2705 |
+
}
|
2706 |
.forceColors #alm-shortcode-builder-form .shortcode-parameter-wrap h2{
|
2707 |
padding: 12px 22px;
|
2708 |
font-size: 20px;
|
admin/src/scss/partials/_header.scss
CHANGED
@@ -12,13 +12,13 @@
|
|
12 |
em{
|
13 |
display: block;
|
14 |
position: relative;
|
15 |
-
margin
|
16 |
font-size: 14px;
|
17 |
opacity: 0.7;
|
18 |
font-style: normal;
|
19 |
font-weight: 400;
|
20 |
line-height: 1.35;
|
21 |
-
|
22 |
}
|
23 |
strong{
|
24 |
font-weight: 700;
|
12 |
em{
|
13 |
display: block;
|
14 |
position: relative;
|
15 |
+
margin: 1px 0 0;
|
16 |
font-size: 14px;
|
17 |
opacity: 0.7;
|
18 |
font-style: normal;
|
19 |
font-weight: 400;
|
20 |
line-height: 1.35;
|
21 |
+
padding: 1px 0 $gutter/2;
|
22 |
}
|
23 |
strong{
|
24 |
font-weight: 700;
|
admin/views/add-ons.php
CHANGED
@@ -11,48 +11,44 @@
|
|
11 |
<div class="ajax-load-more-inner-wrapper">
|
12 |
|
13 |
<div class="cnkt-main">
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
<div class="row no-brd">
|
32 |
<a href="<?php echo $url; ?>?utm_source=WP%20Admin&utm_medium=ALM%20Add-ons&utm_campaign=<?php echo $name; ?>" <?php echo $target; ?>>
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
?>
|
45 |
-
</div>
|
46 |
</a>
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
<div class="call-out light no-shadow">
|
52 |
<p><?php _e('All add-ons are installed as stand alone plugins and with a valid license key will receive plugin update notifications directly within the <a href="plugins.php">WordPress plugin dashboard</a>.', 'ajax-load-more'); ?></p>
|
53 |
</div>
|
54 |
-
|
55 |
-
</div>
|
56 |
|
57 |
<aside class="cnkt-sidebar">
|
58 |
<div id="cnkt-sticky-wrapper">
|
11 |
<div class="ajax-load-more-inner-wrapper">
|
12 |
|
13 |
<div class="cnkt-main">
|
14 |
+
|
15 |
+
<div class="flexbox-wrap">
|
16 |
+
<?php
|
17 |
+
$target = 'target="_blank"';
|
18 |
+
$addons = alm_get_addons();
|
19 |
+
foreach($addons as $addon){
|
20 |
+
$name = $addon['name'];
|
21 |
+
$intro = $addon['intro'];
|
22 |
+
$desc = $addon['desc'];
|
23 |
+
$action = $addon['action'];
|
24 |
+
$key = $addon['key'];
|
25 |
+
$status = $addon['status'];
|
26 |
+
$settings_field = $addon['settings_field'];
|
27 |
+
$url = $addon['url'];
|
28 |
+
$img = $addon['img'];
|
29 |
+
?>
|
30 |
+
<div class="group no-shadow<?php if (has_action($action)){ echo ' installed'; } ?>">
|
|
|
31 |
<a href="<?php echo $url; ?>?utm_source=WP%20Admin&utm_medium=ALM%20Add-ons&utm_campaign=<?php echo $name; ?>" <?php echo $target; ?>>
|
32 |
+
<img src="<?php echo ALM_ADMIN_URL; ?><?php echo $img; ?>" alt="">
|
33 |
+
<h2 class="addon-title"><?php echo $name; ?></h2>
|
34 |
+
<p class="addon-intro"><?php echo $intro; ?></p>
|
35 |
+
<p><?php echo $desc; ?></p>
|
36 |
+
<?php
|
37 |
+
if (has_action($action)){
|
38 |
+
echo '<span class="cnkt-button installed"><i class="fa fa-check-square"></i> '. __('Installed', 'ajax-load-more') .'</span> ';
|
39 |
+
}else{
|
40 |
+
echo '<span class="cnkt-button"><i class="fa fa-download"></i> '. __('Purchase', 'ajax-load-more') .'</span>';
|
41 |
+
}
|
42 |
+
?>
|
|
|
|
|
43 |
</a>
|
44 |
+
</div>
|
45 |
+
<?php } ?>
|
46 |
+
</div>
|
47 |
+
|
48 |
<div class="call-out light no-shadow">
|
49 |
<p><?php _e('All add-ons are installed as stand alone plugins and with a valid license key will receive plugin update notifications directly within the <a href="plugins.php">WordPress plugin dashboard</a>.', 'ajax-load-more'); ?></p>
|
50 |
</div>
|
51 |
+
</div>
|
|
|
52 |
|
53 |
<aside class="cnkt-sidebar">
|
54 |
<div id="cnkt-sticky-wrapper">
|
admin/views/licenses.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
<header class="header-wrap">
|
4 |
<h1>
|
5 |
<?php echo ALM_TITLE; ?>: <strong><?php _e('Licenses', 'ajax-load-more'); ?></strong>
|
6 |
-
<em><?php _e('Enter your license keys to enable
|
7 |
</h1>
|
8 |
</header>
|
9 |
|
3 |
<header class="header-wrap">
|
4 |
<h1>
|
5 |
<?php echo ALM_TITLE; ?>: <strong><?php _e('Licenses', 'ajax-load-more'); ?></strong>
|
6 |
+
<em><?php _e('Enter your license keys to enable <a href="admin.php?page=ajax-load-more-add-ons">add-on</a> updates from the plugins dashboard', 'ajax-load-more'); ?>.</em>
|
7 |
</h1>
|
8 |
</header>
|
9 |
|
admin/views/settings.php
CHANGED
@@ -58,18 +58,20 @@
|
|
58 |
<?php
|
59 |
if(has_action('alm_cache_settings'))
|
60 |
echo '<option value="2">'.__('Cache', 'ajax-load-more').'</option>';
|
|
|
|
|
61 |
if(has_action('alm_layouts_installed'))
|
62 |
-
echo '<option value="
|
63 |
if(has_action('alm_paging_settings'))
|
64 |
-
echo '<option value="
|
65 |
if(has_action('alm_prev_post_settings'))
|
66 |
-
echo '<option value="
|
67 |
if(has_action('alm_rest_api_settings'))
|
68 |
-
echo '<option value="
|
69 |
if(has_action('alm_seo_settings'))
|
70 |
-
echo '<option value="
|
71 |
if(has_action('alm_theme_repeaters_settings'))
|
72 |
-
echo '<option value="
|
73 |
?>
|
74 |
</select>
|
75 |
</div>
|
58 |
<?php
|
59 |
if(has_action('alm_cache_settings'))
|
60 |
echo '<option value="2">'.__('Cache', 'ajax-load-more').'</option>';
|
61 |
+
if(has_action('alm_filters_installed'))
|
62 |
+
echo '<option value="3">'.__('Filters', 'ajax-load-more').'</options>';
|
63 |
if(has_action('alm_layouts_installed'))
|
64 |
+
echo '<option value="4">'.__('Layouts', 'ajax-load-more').'</options>';
|
65 |
if(has_action('alm_paging_settings'))
|
66 |
+
echo '<option value="5">'.__('Paging', 'ajax-load-more').'</option>';
|
67 |
if(has_action('alm_prev_post_settings'))
|
68 |
+
echo '<option value="6">'.__('Previous Post', 'ajax-load-more').'</option>';
|
69 |
if(has_action('alm_rest_api_settings'))
|
70 |
+
echo '<option value="7">'.__('REST API', 'ajax-load-more').'</option>';
|
71 |
if(has_action('alm_seo_settings'))
|
72 |
+
echo '<option value="8">'.__('SEO', 'ajax-load-more').'</option>';
|
73 |
if(has_action('alm_theme_repeaters_settings'))
|
74 |
+
echo '<option value="9">'.__('Theme Repeaters', 'ajax-load-more').'</option>';
|
75 |
?>
|
76 |
</select>
|
77 |
</div>
|
admin/views/shortcode-builder.php
CHANGED
@@ -35,7 +35,7 @@
|
|
35 |
<p class="small reset-shortcode-builder"><a href="javascript:void(0);"><i class="fa fa-refresh"></i> <?php _e('Reset', 'ajax-load-more'); ?></a></p>
|
36 |
</div>
|
37 |
<div class="major-publishing-actions">
|
38 |
-
<a class="button button-primary copy"><?php _e('Copy Shortcode', 'ajax-load-more'); ?></a>
|
39 |
</div>
|
40 |
</div>
|
41 |
</div>
|
35 |
<p class="small reset-shortcode-builder"><a href="javascript:void(0);"><i class="fa fa-refresh"></i> <?php _e('Reset', 'ajax-load-more'); ?></a></p>
|
36 |
</div>
|
37 |
<div class="major-publishing-actions">
|
38 |
+
<a class="button button-primary copy copy-to-clipboard"><?php _e('Copy Shortcode', 'ajax-load-more'); ?></a>
|
39 |
</div>
|
40 |
</div>
|
41 |
</div>
|
ajax-load-more.php
CHANGED
@@ -7,15 +7,15 @@ Text Domain: ajax-load-more
|
|
7 |
Author: Darren Cooney
|
8 |
Twitter: @KaptonKaos
|
9 |
Author URI: https://connekthq.com
|
10 |
-
Version: 3.
|
11 |
License: GPL
|
12 |
Copyright: Darren Cooney & Connekt Media
|
13 |
*/
|
14 |
|
15 |
|
16 |
|
17 |
-
define('ALM_VERSION', '3.
|
18 |
-
define('ALM_RELEASE', '
|
19 |
define('ALM_STORE_URL', 'https://connekthq.com');
|
20 |
|
21 |
|
@@ -112,8 +112,11 @@ if( !class_exists('AjaxLoadMore') ):
|
|
112 |
|
113 |
class AjaxLoadMore {
|
114 |
|
|
|
|
|
115 |
function __construct(){
|
116 |
|
|
|
117 |
$this->alm_define_constants();
|
118 |
$this->alm_includes();
|
119 |
|
@@ -153,6 +156,7 @@ if( !class_exists('AjaxLoadMore') ):
|
|
153 |
if (!defined('ALM_CTA_ITEM_NAME')) define('ALM_CTA_ITEM_NAME', '14456');
|
154 |
if (!defined('ALM_COMMENTS_ITEM_NAME')) define('ALM_COMMENTS_ITEM_NAME', '12172');
|
155 |
if (!defined('ALM_UNLIMITED_ITEM_NAME')) define('ALM_UNLIMITED_ITEM_NAME', '3118');
|
|
|
156 |
if (!defined('ALM_LAYOUTS_ITEM_NAME')) define('ALM_LAYOUTS_ITEM_NAME', '11398');
|
157 |
if (!defined('ALM_NEXTPAGE_ITEM_NAME')) define('ALM_NEXTPAGE_ITEM_NAME', '24540');
|
158 |
if (!defined('ALM_PAGING_ITEM_NAME')) define('ALM_PAGING_ITEM_NAME', '6898');
|
@@ -302,14 +306,28 @@ if( !class_exists('AjaxLoadMore') ):
|
|
302 |
* The AjaxLoadMore shortcode
|
303 |
*
|
304 |
* @since 2.0.0
|
|
|
305 |
*/
|
306 |
|
307 |
public function alm_shortcode($atts) {
|
|
|
308 |
return ALM_SHORTCODE::alm_render_shortcode($atts);
|
309 |
}
|
310 |
|
311 |
|
312 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
313 |
/*
|
314 |
* alm_query_posts
|
315 |
* Ajax Load More Query
|
@@ -372,7 +390,7 @@ if( !class_exists('AjaxLoadMore') ):
|
|
372 |
$meta_type = $_GET['meta_type'];
|
373 |
if($meta_type == '') $meta_type = 'CHAR';
|
374 |
|
375 |
-
$s = (isset($_GET['search'])) ? $_GET['search'] : '';
|
376 |
$custom_args = (isset($_GET['custom_args'])) ? $_GET['custom_args'] : '';
|
377 |
|
378 |
// Author
|
7 |
Author: Darren Cooney
|
8 |
Twitter: @KaptonKaos
|
9 |
Author URI: https://connekthq.com
|
10 |
+
Version: 3.4.0
|
11 |
License: GPL
|
12 |
Copyright: Darren Cooney & Connekt Media
|
13 |
*/
|
14 |
|
15 |
|
16 |
|
17 |
+
define('ALM_VERSION', '3.4.0');
|
18 |
+
define('ALM_RELEASE', 'February 13, 2018');
|
19 |
define('ALM_STORE_URL', 'https://connekthq.com');
|
20 |
|
21 |
|
112 |
|
113 |
class AjaxLoadMore {
|
114 |
|
115 |
+
static $shortcode_atts = null;
|
116 |
+
|
117 |
function __construct(){
|
118 |
|
119 |
+
|
120 |
$this->alm_define_constants();
|
121 |
$this->alm_includes();
|
122 |
|
156 |
if (!defined('ALM_CTA_ITEM_NAME')) define('ALM_CTA_ITEM_NAME', '14456');
|
157 |
if (!defined('ALM_COMMENTS_ITEM_NAME')) define('ALM_COMMENTS_ITEM_NAME', '12172');
|
158 |
if (!defined('ALM_UNLIMITED_ITEM_NAME')) define('ALM_UNLIMITED_ITEM_NAME', '3118');
|
159 |
+
if (!defined('ALM_FILTERS_ITEM_NAME')) define('ALM_FILTERS_ITEM_NAME', '35992');
|
160 |
if (!defined('ALM_LAYOUTS_ITEM_NAME')) define('ALM_LAYOUTS_ITEM_NAME', '11398');
|
161 |
if (!defined('ALM_NEXTPAGE_ITEM_NAME')) define('ALM_NEXTPAGE_ITEM_NAME', '24540');
|
162 |
if (!defined('ALM_PAGING_ITEM_NAME')) define('ALM_PAGING_ITEM_NAME', '6898');
|
306 |
* The AjaxLoadMore shortcode
|
307 |
*
|
308 |
* @since 2.0.0
|
309 |
+
* @updated 3.2.0
|
310 |
*/
|
311 |
|
312 |
public function alm_shortcode($atts) {
|
313 |
+
self::$shortcode_atts = $atts;
|
314 |
return ALM_SHORTCODE::alm_render_shortcode($atts);
|
315 |
}
|
316 |
|
317 |
|
318 |
|
319 |
+
/*
|
320 |
+
* alm_return_shortcode_atts
|
321 |
+
* Return the ALM shortcode atts
|
322 |
+
*
|
323 |
+
* @since 3.2.0
|
324 |
+
*/
|
325 |
+
public static function alm_return_shortcode_atts(){
|
326 |
+
return self::$shortcode_atts;
|
327 |
+
}
|
328 |
+
|
329 |
+
|
330 |
+
|
331 |
/*
|
332 |
* alm_query_posts
|
333 |
* Ajax Load More Query
|
390 |
$meta_type = $_GET['meta_type'];
|
391 |
if($meta_type == '') $meta_type = 'CHAR';
|
392 |
|
393 |
+
$s = (isset($_GET['search'])) ? sanitize_text_field($_GET['search']) : '';
|
394 |
$custom_args = (isset($_GET['custom_args'])) ? $_GET['custom_args'] : '';
|
395 |
|
396 |
// Author
|
core/classes/class.alm-shortcode.php
CHANGED
@@ -47,6 +47,9 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
47 |
}
|
48 |
|
49 |
extract(shortcode_atts(array(
|
|
|
|
|
|
|
50 |
'acf' => false,
|
51 |
'acf_post_id' => '',
|
52 |
'acf_field_type' => 'repeater',
|
@@ -134,7 +137,7 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
134 |
'pause_override' => 'false',
|
135 |
'pause' => 'false',
|
136 |
'destroy_after' => '',
|
137 |
-
'transition' => '
|
138 |
'transition_speed' => '250',
|
139 |
'transition_container' => 'true',
|
140 |
'transition_container_classes' => '',
|
@@ -150,7 +153,7 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
150 |
'css_classes' => '',
|
151 |
'id' => '',
|
152 |
'primary' => false
|
153 |
-
), $atts));
|
154 |
|
155 |
|
156 |
// Start Enqueue Scripts
|
@@ -195,6 +198,17 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
195 |
}
|
196 |
}
|
197 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
198 |
// Previous Post
|
199 |
if(has_action('alm_prev_post_installed') && $previous_post === 'true'){
|
200 |
wp_enqueue_script( 'ajax-load-more-previous-post' );
|
@@ -204,7 +218,7 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
204 |
if(has_action('alm_seo_installed') && $seo === 'true'){
|
205 |
wp_enqueue_script( 'ajax-load-more-seo' );
|
206 |
}
|
207 |
-
|
208 |
|
209 |
|
210 |
/*
|
@@ -217,16 +231,29 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
217 |
do_action('alm_enqueue_external_scripts', $atts);
|
218 |
|
219 |
|
220 |
-
// End Enqueue Scripts
|
221 |
-
|
222 |
|
223 |
-
|
224 |
-
|
225 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
226 |
|
227 |
-
if($seo === "true" || $previous_post){
|
228 |
$transition_container = "true";
|
229 |
}
|
|
|
230 |
if(!empty($transition_container_classes)){
|
231 |
$transition_container_classes = ' '. $transition_container_classes;
|
232 |
}
|
@@ -406,6 +433,11 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
406 |
if(has_action('alm_seo_installed') && $seo === 'true' && !$users){
|
407 |
$preloaded_amount = $posts_per_page;
|
408 |
}
|
|
|
|
|
|
|
|
|
|
|
409 |
|
410 |
// Paging Add-on
|
411 |
// - Set $preloaded_amount to $posts_per_page
|
@@ -470,7 +502,7 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
470 |
'author' => $author,
|
471 |
'post__in' => $post__in,
|
472 |
'post__not_in' => $post__not_in,
|
473 |
-
'
|
474 |
'custom_args' => $custom_args,
|
475 |
'post_status' => $post_status,
|
476 |
'order' => $order,
|
@@ -481,7 +513,8 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
481 |
'lang' => $lang,
|
482 |
'css_classes' => $css_classes,
|
483 |
);
|
484 |
-
|
|
|
485 |
$type = alm_get_repeater_type($repeater);
|
486 |
|
487 |
if($comments){ // Comments
|
@@ -508,7 +541,7 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
508 |
}
|
509 |
|
510 |
}
|
511 |
-
|
512 |
elseif($users){ // Users
|
513 |
|
514 |
if(has_action('alm_users_preloaded') && $users){
|
@@ -569,13 +602,13 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
569 |
|
570 |
}
|
571 |
|
572 |
-
else { // Standard
|
573 |
|
574 |
|
575 |
/*
|
576 |
* alm_preload_args
|
577 |
*
|
578 |
-
* ALM Preloaded
|
579 |
*
|
580 |
* @return $args;
|
581 |
*/
|
@@ -583,17 +616,29 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
583 |
|
584 |
|
585 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
586 |
/*
|
587 |
* alm_modify_query_args
|
588 |
*
|
589 |
-
* ALM Core Filter Hook
|
590 |
*
|
591 |
* @return $args;
|
592 |
* Deprecated 2.10
|
593 |
*/
|
594 |
$args = apply_filters('alm_modify_query_args', $args, $slug);
|
595 |
-
|
596 |
-
|
597 |
|
598 |
/*
|
599 |
* alm_query_args_[id]
|
@@ -612,33 +657,39 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
612 |
$noscript = '';
|
613 |
|
614 |
if ($alm_preload_query->have_posts()) :
|
615 |
-
|
616 |
-
$
|
617 |
$alm_found_posts = $alm_total_posts;
|
618 |
-
|
|
|
|
|
|
|
|
|
|
|
619 |
while ($alm_preload_query->have_posts()) : $alm_preload_query->the_post();
|
620 |
|
621 |
$alm_item++;
|
622 |
-
$alm_current++;
|
623 |
|
624 |
// Call to Action [Before]
|
625 |
if($cta && has_action('alm_cta_inc') && $cta_pos == 'before'){
|
626 |
-
|
627 |
-
$output .= apply_filters('alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, true);
|
628 |
-
}
|
629 |
}
|
630 |
|
631 |
$output .= apply_filters('alm_preload_inc', $repeater, $type, $theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current);
|
632 |
|
633 |
// Call to Action [After]
|
634 |
if($cta && has_action('alm_cta_inc') && $cta_pos == 'after'){
|
635 |
-
|
636 |
-
|
637 |
-
}
|
638 |
-
}
|
639 |
|
640 |
endwhile; wp_reset_query();
|
641 |
-
|
|
|
|
|
|
|
|
|
|
|
642 |
if(has_action('alm_seo_installed') && $seo === 'true'){ // If SEO, add noscript paging
|
643 |
// Create noscript paging for SEO if preload and seo are enabled
|
644 |
$noscript = alm_paging_no_script($alm_preload_query);
|
@@ -647,15 +698,23 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
647 |
endif;
|
648 |
|
649 |
$preloaded_output .= '<'.$container_element.' class="alm-listing alm-preloaded'. $classname . $css_classes .'" data-total-posts="'. $alm_total_posts .'">';
|
650 |
-
|
651 |
if($seo === "true" && $paging === 'false'){
|
|
|
|
|
|
|
|
|
|
|
652 |
if(is_search()){
|
653 |
// If search, append slug (?s=term) to data-url
|
654 |
-
$preloaded_output .= '<div class="alm-reveal alm-seo'. $transition_container_classes .'" data-page="1" data-url="'
|
655 |
}else{
|
656 |
-
|
|
|
|
|
657 |
}
|
658 |
}
|
|
|
659 |
if($seo === "false" && $paging === 'true' || $seo === "true" && $paging === 'true'){
|
660 |
$preloaded_output .= '<div class="alm-reveal'. $transition_container_classes .'">';
|
661 |
}
|
@@ -692,6 +751,20 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
692 |
$ajaxloadmore .= '<'.$container_element.' class="'.$listing_class.' alm-ajax'. $paging_container_class . $classname . $css_classes .'"'; // Build ALM container
|
693 |
|
694 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
695 |
// Cache Add-on
|
696 |
if(has_action('alm_cache_installed') && $cache === 'true'){
|
697 |
$cache_return = apply_filters(
|
@@ -717,20 +790,6 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
717 |
}
|
718 |
|
719 |
|
720 |
-
// Advanced Custom Fields Extension
|
721 |
-
if(has_action('alm_acf_installed') && $acf === 'true'){
|
722 |
-
$acf_return = apply_filters(
|
723 |
-
'alm_acf_shortcode',
|
724 |
-
$acf,
|
725 |
-
$acf_field_type,
|
726 |
-
$acf_field_name,
|
727 |
-
$acf_post_id,
|
728 |
-
$post_id
|
729 |
-
);
|
730 |
-
$ajaxloadmore .= $acf_return;
|
731 |
-
}
|
732 |
-
|
733 |
-
|
734 |
// Comments Add-on
|
735 |
if(has_action('alm_comments_installed') && $comments === 'true'){
|
736 |
$comments_return = apply_filters(
|
@@ -745,20 +804,18 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
745 |
);
|
746 |
$ajaxloadmore .= $comments_return;
|
747 |
}
|
748 |
-
|
749 |
-
|
750 |
-
//
|
751 |
-
if(has_action('
|
752 |
-
$
|
753 |
-
'
|
754 |
-
|
755 |
-
|
756 |
-
|
757 |
-
|
758 |
-
$restapi_template_id,
|
759 |
-
$restapi_debug
|
760 |
);
|
761 |
-
$ajaxloadmore .= $
|
762 |
}
|
763 |
|
764 |
|
@@ -783,6 +840,21 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
783 |
}
|
784 |
|
785 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
786 |
// SEO Add-on
|
787 |
if(has_action('alm_seo_installed') && $seo === 'true'){
|
788 |
$seo_return = apply_filters(
|
@@ -823,10 +895,8 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
823 |
|
824 |
|
825 |
// Users Add-on
|
826 |
-
if(has_action('alm_users_installed') && $users){
|
827 |
-
|
828 |
-
$posts_per_page = $users_per_page; // Update $posts_per_page var to be $users_per_page
|
829 |
-
|
830 |
$users_return = apply_filters(
|
831 |
'alm_users_shortcode',
|
832 |
$users_role,
|
@@ -916,11 +986,13 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
916 |
$ajaxloadmore .= '>';
|
917 |
|
918 |
|
919 |
-
// Previous Post
|
920 |
-
//
|
921 |
if(has_action('alm_prev_post_installed') && $previous_post){
|
|
|
922 |
$repeater_type = preg_split('/(?=\d)/', $repeater, 2); // split $repeater at number to retrieve type
|
923 |
$repeater_type = $repeater_type[0]; // (default | repeater | template_)
|
|
|
924 |
if($theme_repeater != 'null' && has_filter('alm_get_theme_repeater')){
|
925 |
$repeater_type = null;
|
926 |
}
|
@@ -928,34 +1000,31 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
928 |
$previous_post_permanlink = ($_SERVER["QUERY_STRING"]) ? get_permalink($previous_post_id) .'?'. $_SERVER["QUERY_STRING"] : get_permalink($previous_post_id);
|
929 |
|
930 |
// Get previous post include, build output from the next post filter
|
931 |
-
$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
|
932 |
|
933 |
|
934 |
-
|
935 |
-
|
936 |
-
|
937 |
-
|
938 |
-
|
939 |
-
|
940 |
-
|
941 |
-
|
942 |
|
943 |
$previous_post_output .= '</div>';
|
944 |
$ajaxloadmore .= $previous_post_output; // Add $previous_post_output data to $ajaxloadmore
|
945 |
|
946 |
}
|
947 |
-
// End Previous Post
|
948 |
|
949 |
|
950 |
// Next Page Add-on
|
951 |
if(has_action('alm_nextpage_installed') && $nextpage){
|
952 |
|
953 |
-
$nextpage_start = alm_get_startpage();
|
954 |
|
955 |
-
$nextpage_is_paged = false;
|
956 |
-
if($nextpage_start > 1){
|
957 |
-
$nextpage_is_paged = true;
|
958 |
-
}
|
959 |
|
960 |
$alm_nextpage_output = apply_filters('alm_init_nextpage', $nextpage_post_id, $nextpage_start,$nextpage_is_paged, $paging);
|
961 |
$ajaxloadmore .= $alm_nextpage_output;
|
@@ -982,23 +1051,7 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
982 |
|
983 |
|
984 |
// Create Load More button
|
985 |
-
$ajaxloadmore .=
|
986 |
-
|
987 |
-
if($paging !== 'true'){
|
988 |
-
|
989 |
-
$btn_element = 'button';
|
990 |
-
$btn_href = '';
|
991 |
-
if($seo === 'true'){
|
992 |
-
$btn_element = 'a'; // Convert to link for SEO
|
993 |
-
$btn_href = ' href="'.$canonicalURL.'"';
|
994 |
-
}
|
995 |
-
|
996 |
-
|
997 |
-
$ajaxloadmore .= '<'. $btn_element .' class="alm-load-more-btn more'. $button_classname .'"'. $btn_href .'>'. $button_label .'</'. $btn_element .'>';
|
998 |
-
|
999 |
-
}
|
1000 |
-
|
1001 |
-
$ajaxloadmore .= '</div>';
|
1002 |
|
1003 |
|
1004 |
|
@@ -1032,6 +1085,41 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
1032 |
|
1033 |
return $ajaxloadmore; // End ALM object
|
1034 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1035 |
|
1036 |
}
|
1037 |
|
47 |
}
|
48 |
|
49 |
extract(shortcode_atts(array(
|
50 |
+
'filters' => false,
|
51 |
+
'filters_analytics' => 'true',
|
52 |
+
'filters_debug' => false,
|
53 |
'acf' => false,
|
54 |
'acf_post_id' => '',
|
55 |
'acf_field_type' => 'repeater',
|
137 |
'pause_override' => 'false',
|
138 |
'pause' => 'false',
|
139 |
'destroy_after' => '',
|
140 |
+
'transition' => 'fade',
|
141 |
'transition_speed' => '250',
|
142 |
'transition_container' => 'true',
|
143 |
'transition_container_classes' => '',
|
153 |
'css_classes' => '',
|
154 |
'id' => '',
|
155 |
'primary' => false
|
156 |
+
), $atts));
|
157 |
|
158 |
|
159 |
// Start Enqueue Scripts
|
198 |
}
|
199 |
}
|
200 |
|
201 |
+
// Layouts
|
202 |
+
if(has_action('alm_layouts_installed')){
|
203 |
+
// Inline Layouts CSS
|
204 |
+
if( !is_admin() && alm_do_inline_css('_alm_inline_css') && self::$counter === 1 ){
|
205 |
+
if(defined('ALM_LAYOUTS_PATH') && defined('ALM_LAYOUTS_URL')){
|
206 |
+
$file = ALM_LAYOUTS_PATH.'/core/css/ajax-load-more-layouts.min.css';
|
207 |
+
echo ALM_ENQUEUE::alm_inline_css('ajax-load-more-layouts', $file, ALM_LAYOUTS_URL);
|
208 |
+
}
|
209 |
+
}
|
210 |
+
}
|
211 |
+
|
212 |
// Previous Post
|
213 |
if(has_action('alm_prev_post_installed') && $previous_post === 'true'){
|
214 |
wp_enqueue_script( 'ajax-load-more-previous-post' );
|
218 |
if(has_action('alm_seo_installed') && $seo === 'true'){
|
219 |
wp_enqueue_script( 'ajax-load-more-seo' );
|
220 |
}
|
221 |
+
|
222 |
|
223 |
|
224 |
/*
|
231 |
do_action('alm_enqueue_external_scripts', $atts);
|
232 |
|
233 |
|
|
|
|
|
234 |
|
235 |
+
// End Enqueue Scripts
|
236 |
+
|
237 |
+
|
238 |
+
// Filters - Set initial shortcode state
|
239 |
+
$filters = ($filters === 'true' && class_exists('ALMFilters')) ? true : false;
|
240 |
+
|
241 |
+
if($filters){
|
242 |
+
$previous_post = $seo = false;
|
243 |
+
$transition_container = "true"; // required
|
244 |
+
if(defined('ALM_FILTERS_PATH')){
|
245 |
+
include(ALM_FILTERS_PATH .'includes/initial-state-params.php');
|
246 |
+
}
|
247 |
+
}
|
248 |
+
|
249 |
+
|
250 |
+
$previous_post = ($previous_post === 'true') ? true : false;
|
251 |
+
|
252 |
|
253 |
+
if($seo === "true" || $previous_post || $filters){
|
254 |
$transition_container = "true";
|
255 |
}
|
256 |
+
|
257 |
if(!empty($transition_container_classes)){
|
258 |
$transition_container_classes = ' '. $transition_container_classes;
|
259 |
}
|
433 |
if(has_action('alm_seo_installed') && $seo === 'true' && !$users){
|
434 |
$preloaded_amount = $posts_per_page;
|
435 |
}
|
436 |
+
|
437 |
+
// If $filters, set $preloaded_amount to $posts_per_page
|
438 |
+
if($filters){
|
439 |
+
$preloaded_amount = $posts_per_page;
|
440 |
+
}
|
441 |
|
442 |
// Paging Add-on
|
443 |
// - Set $preloaded_amount to $posts_per_page
|
502 |
'author' => $author,
|
503 |
'post__in' => $post__in,
|
504 |
'post__not_in' => $post__not_in,
|
505 |
+
'search' => $search,
|
506 |
'custom_args' => $custom_args,
|
507 |
'post_status' => $post_status,
|
508 |
'order' => $order,
|
513 |
'lang' => $lang,
|
514 |
'css_classes' => $css_classes,
|
515 |
);
|
516 |
+
|
517 |
+
|
518 |
$type = alm_get_repeater_type($repeater);
|
519 |
|
520 |
if($comments){ // Comments
|
541 |
}
|
542 |
|
543 |
}
|
544 |
+
|
545 |
elseif($users){ // Users
|
546 |
|
547 |
if(has_action('alm_users_preloaded') && $users){
|
602 |
|
603 |
}
|
604 |
|
605 |
+
else { // Standard
|
606 |
|
607 |
|
608 |
/*
|
609 |
* alm_preload_args
|
610 |
*
|
611 |
+
* ALM Preloaded add-on Hook
|
612 |
*
|
613 |
* @return $args;
|
614 |
*/
|
616 |
|
617 |
|
618 |
|
619 |
+
/*
|
620 |
+
* alm_filters_preloaded_args
|
621 |
+
*
|
622 |
+
* ALM Filters add-on Hook
|
623 |
+
*
|
624 |
+
* @return $args;
|
625 |
+
*/
|
626 |
+
if($filters && has_action('alm_filters_preloaded_args')){
|
627 |
+
$args = apply_filters('alm_filters_preloaded_args', $args); // Create filters $args
|
628 |
+
}
|
629 |
+
|
630 |
+
|
631 |
+
|
632 |
/*
|
633 |
* alm_modify_query_args
|
634 |
*
|
635 |
+
* ALM Core Filter Hook
|
636 |
*
|
637 |
* @return $args;
|
638 |
* Deprecated 2.10
|
639 |
*/
|
640 |
$args = apply_filters('alm_modify_query_args', $args, $slug);
|
641 |
+
|
|
|
642 |
|
643 |
/*
|
644 |
* alm_query_args_[id]
|
657 |
$noscript = '';
|
658 |
|
659 |
if ($alm_preload_query->have_posts()) :
|
660 |
+
|
661 |
+
$alm_item = $alm_page = $alm_current = 0;
|
662 |
$alm_found_posts = $alm_total_posts;
|
663 |
+
|
664 |
+
// Filters Wrap [Open]
|
665 |
+
if($filters && has_filter('alm_filters_reveal_open')){
|
666 |
+
$output .= apply_filters('alm_filters_reveal_open', $transition_container_classes, $canonicalURL);
|
667 |
+
}
|
668 |
+
|
669 |
while ($alm_preload_query->have_posts()) : $alm_preload_query->the_post();
|
670 |
|
671 |
$alm_item++;
|
672 |
+
$alm_current++;
|
673 |
|
674 |
// Call to Action [Before]
|
675 |
if($cta && has_action('alm_cta_inc') && $cta_pos == 'before'){
|
676 |
+
$output .= ($alm_current == $cta_val) ? $output .= apply_filters('alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, true) : '';
|
|
|
|
|
677 |
}
|
678 |
|
679 |
$output .= apply_filters('alm_preload_inc', $repeater, $type, $theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current);
|
680 |
|
681 |
// Call to Action [After]
|
682 |
if($cta && has_action('alm_cta_inc') && $cta_pos == 'after'){
|
683 |
+
$output .= ($alm_current == $cta_val) ? apply_filters('alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, true) : '';
|
684 |
+
}
|
|
|
|
|
685 |
|
686 |
endwhile; wp_reset_query();
|
687 |
+
|
688 |
+
// Filters Wrap [close]
|
689 |
+
if($filters && has_filter('alm_filters_reveal_close')){
|
690 |
+
$output .= apply_filters('alm_filters_reveal_close', '</div>');
|
691 |
+
}
|
692 |
+
|
693 |
if(has_action('alm_seo_installed') && $seo === 'true'){ // If SEO, add noscript paging
|
694 |
// Create noscript paging for SEO if preload and seo are enabled
|
695 |
$noscript = alm_paging_no_script($alm_preload_query);
|
698 |
endif;
|
699 |
|
700 |
$preloaded_output .= '<'.$container_element.' class="alm-listing alm-preloaded'. $classname . $css_classes .'" data-total-posts="'. $alm_total_posts .'">';
|
701 |
+
|
702 |
if($seo === "true" && $paging === 'false'){
|
703 |
+
|
704 |
+
// Get querystring to append to URL (Maybe in the future)
|
705 |
+
// $querystring = $_SERVER['QUERY_STRING'];
|
706 |
+
$querystring = '';
|
707 |
+
|
708 |
if(is_search()){
|
709 |
// If search, append slug (?s=term) to data-url
|
710 |
+
$preloaded_output .= '<div class="alm-reveal alm-seo'. $transition_container_classes .'" data-page="1" data-url="'. $canonicalURL .''. $slug . $querystring .'">';
|
711 |
}else{
|
712 |
+
// Append querystring to data-url
|
713 |
+
$querystring = ($querystring) ? '?'.$querystring : '';
|
714 |
+
$preloaded_output .= '<div class="alm-reveal alm-seo'. $transition_container_classes .'" data-page="1" data-url="'. $canonicalURL . $querystring .'">';
|
715 |
}
|
716 |
}
|
717 |
+
|
718 |
if($seo === "false" && $paging === 'true' || $seo === "true" && $paging === 'true'){
|
719 |
$preloaded_output .= '<div class="alm-reveal'. $transition_container_classes .'">';
|
720 |
}
|
751 |
$ajaxloadmore .= '<'.$container_element.' class="'.$listing_class.' alm-ajax'. $paging_container_class . $classname . $css_classes .'"'; // Build ALM container
|
752 |
|
753 |
|
754 |
+
// Advanced Custom Fields Extension
|
755 |
+
if(has_action('alm_acf_installed') && $acf === 'true'){
|
756 |
+
$acf_return = apply_filters(
|
757 |
+
'alm_acf_shortcode',
|
758 |
+
$acf,
|
759 |
+
$acf_field_type,
|
760 |
+
$acf_field_name,
|
761 |
+
$acf_post_id,
|
762 |
+
$post_id
|
763 |
+
);
|
764 |
+
$ajaxloadmore .= $acf_return;
|
765 |
+
}
|
766 |
+
|
767 |
+
|
768 |
// Cache Add-on
|
769 |
if(has_action('alm_cache_installed') && $cache === 'true'){
|
770 |
$cache_return = apply_filters(
|
790 |
}
|
791 |
|
792 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
793 |
// Comments Add-on
|
794 |
if(has_action('alm_comments_installed') && $comments === 'true'){
|
795 |
$comments_return = apply_filters(
|
804 |
);
|
805 |
$ajaxloadmore .= $comments_return;
|
806 |
}
|
807 |
+
|
808 |
+
|
809 |
+
// Filters Add-on
|
810 |
+
if(has_action('alm_filters_installed') && $filters){
|
811 |
+
$filters_return = apply_filters(
|
812 |
+
'alm_filters_shortcode_params',
|
813 |
+
$filters,
|
814 |
+
$filters_analytics,
|
815 |
+
$filters_debug,
|
816 |
+
$options
|
|
|
|
|
817 |
);
|
818 |
+
$ajaxloadmore .= $filters_return;
|
819 |
}
|
820 |
|
821 |
|
840 |
}
|
841 |
|
842 |
|
843 |
+
// REST API Extension
|
844 |
+
if(has_action('alm_rest_api_installed') && $restapi === true){
|
845 |
+
$restapi_return = apply_filters(
|
846 |
+
'alm_rest_api_shortcode',
|
847 |
+
'true',
|
848 |
+
$restapi_base,
|
849 |
+
$restapi_namespace,
|
850 |
+
$restapi_endpoint,
|
851 |
+
$restapi_template_id,
|
852 |
+
$restapi_debug
|
853 |
+
);
|
854 |
+
$ajaxloadmore .= $restapi_return;
|
855 |
+
}
|
856 |
+
|
857 |
+
|
858 |
// SEO Add-on
|
859 |
if(has_action('alm_seo_installed') && $seo === 'true'){
|
860 |
$seo_return = apply_filters(
|
895 |
|
896 |
|
897 |
// Users Add-on
|
898 |
+
if(has_action('alm_users_installed') && $users){
|
899 |
+
$posts_per_page = $users_per_page; // Update $posts_per_page var to be $users_per_page
|
|
|
|
|
900 |
$users_return = apply_filters(
|
901 |
'alm_users_shortcode',
|
902 |
$users_role,
|
986 |
$ajaxloadmore .= '>';
|
987 |
|
988 |
|
989 |
+
// Previous Post
|
990 |
+
// Get first post and append to alm object
|
991 |
if(has_action('alm_prev_post_installed') && $previous_post){
|
992 |
+
|
993 |
$repeater_type = preg_split('/(?=\d)/', $repeater, 2); // split $repeater at number to retrieve type
|
994 |
$repeater_type = $repeater_type[0]; // (default | repeater | template_)
|
995 |
+
|
996 |
if($theme_repeater != 'null' && has_filter('alm_get_theme_repeater')){
|
997 |
$repeater_type = null;
|
998 |
}
|
1000 |
$previous_post_permanlink = ($_SERVER["QUERY_STRING"]) ? get_permalink($previous_post_id) .'?'. $_SERVER["QUERY_STRING"] : get_permalink($previous_post_id);
|
1001 |
|
1002 |
// Get previous post include, build output from the next post filter
|
1003 |
+
$previous_post_output = '<div class="alm-reveal alm-previous-post post-'. $previous_post_id .'" data-url="'. $previous_post_permanlink .'" data-title="'. strip_tags(get_the_title($previous_post_id)) .'" data-id="'. $previous_post_id .'" data-page="0">'; // Set the post id .alm-reveal div
|
1004 |
|
1005 |
|
1006 |
+
/*
|
1007 |
+
* alm_prev_post_inc
|
1008 |
+
*
|
1009 |
+
* Previous Post Add-on hook
|
1010 |
+
*
|
1011 |
+
* @return $args;
|
1012 |
+
*/
|
1013 |
+
$previous_post_output .= apply_filters('alm_prev_post_inc', $repeater, $repeater_type, $theme_repeater, $previous_post_id, $post_type);
|
1014 |
|
1015 |
$previous_post_output .= '</div>';
|
1016 |
$ajaxloadmore .= $previous_post_output; // Add $previous_post_output data to $ajaxloadmore
|
1017 |
|
1018 |
}
|
1019 |
+
// End Previous Post
|
1020 |
|
1021 |
|
1022 |
// Next Page Add-on
|
1023 |
if(has_action('alm_nextpage_installed') && $nextpage){
|
1024 |
|
1025 |
+
$nextpage_start = alm_get_startpage(); // core/functions.php
|
1026 |
|
1027 |
+
$nextpage_is_paged = ($nextpage_start > 1) ? true : false;
|
|
|
|
|
|
|
1028 |
|
1029 |
$alm_nextpage_output = apply_filters('alm_init_nextpage', $nextpage_post_id, $nextpage_start,$nextpage_is_paged, $paging);
|
1030 |
$ajaxloadmore .= $alm_nextpage_output;
|
1051 |
|
1052 |
|
1053 |
// Create Load More button
|
1054 |
+
$ajaxloadmore .= self::alm_render_button($seo, $paging, $button_classname, $button_label, $canonicalURL);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1055 |
|
1056 |
|
1057 |
|
1085 |
|
1086 |
return $ajaxloadmore; // End ALM object
|
1087 |
}
|
1088 |
+
|
1089 |
+
|
1090 |
+
|
1091 |
+
/**
|
1092 |
+
* alm_render_button
|
1093 |
+
* Render the load more button.
|
1094 |
+
*
|
1095 |
+
* @since 3.3.2
|
1096 |
+
* @return $html
|
1097 |
+
*/
|
1098 |
+
public static function alm_render_button($seo, $paging, $button_classname, $button_label, $canonicalURL){
|
1099 |
+
|
1100 |
+
$html = '<div class="alm-btn-wrap">';
|
1101 |
+
|
1102 |
+
if($paging !== 'true'){
|
1103 |
+
|
1104 |
+
$btn_element = 'button';
|
1105 |
+
$btn_href = $btn_rel = '';
|
1106 |
+
if($seo === 'true'){
|
1107 |
+
$btn_element = 'a'; // Convert to link for SEO
|
1108 |
+
$btn_href = ' href="'. $canonicalURL .'"';
|
1109 |
+
$btn_rel = ' rel="next"';
|
1110 |
+
}
|
1111 |
+
|
1112 |
+
$html .= '<'. $btn_element .' class="alm-load-more-btn more'. $button_classname .'"'. $btn_href . $btn_rel .'>'. $button_label .'</'. $btn_element .'>';
|
1113 |
+
|
1114 |
+
}
|
1115 |
+
|
1116 |
+
$html .= '</div>';
|
1117 |
+
|
1118 |
+
return $html;
|
1119 |
+
|
1120 |
+
}
|
1121 |
+
|
1122 |
+
|
1123 |
|
1124 |
}
|
1125 |
|
core/dist/js/ajax-load-more.js
CHANGED
@@ -81,6 +81,16 @@ if (!Array.from) {
|
|
81 |
};
|
82 |
}();
|
83 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
"use strict";
|
85 |
|
86 |
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
|
@@ -90,7 +100,7 @@ var alm_is_filtering = false; // Global Masonry/Filtering var
|
|
90 |
(function ($) {
|
91 |
|
92 |
/* $.fn.almFilter(type, speed, data)
|
93 |
-
*
|
94 |
* Filter Ajax Load More
|
95 |
*
|
96 |
* @param transition string;
|
@@ -177,9 +187,15 @@ var alm_is_filtering = false; // Global Masonry/Filtering var
|
|
177 |
key = key.replace(/\W+/g, '-').replace(/([a-z\d])([A-Z])/g, '$1-$2'); // Convert camelCase data() object back to dash (-)
|
178 |
$('.alm-listing', el).attr('data-' + key, value);
|
179 |
});
|
|
|
180 |
if ($.isFunction($.fn.almFilterComplete)) {
|
181 |
$.fn.almFilterComplete();
|
182 |
}
|
|
|
|
|
|
|
|
|
|
|
183 |
alm_is_filtering = true;
|
184 |
el.fadeIn(speed); // Fade ALM back in
|
185 |
|
@@ -200,20 +216,19 @@ var alm_is_filtering = false; // Global Masonry/Filtering var
|
|
200 |
|
201 |
Function to trigger built-in Ajax Load More Masonry
|
202 |
|
203 |
-
@param container
|
204 |
-
@param items
|
205 |
-
@param selector
|
206 |
-
@param animation
|
207 |
-
@param speed
|
208 |
-
@param
|
209 |
-
@param
|
|
|
210 |
@since 3.1
|
211 |
-
@updated 3.2
|
212 |
*/
|
213 |
|
214 |
-
var
|
215 |
-
|
216 |
-
var almMasonry = function almMasonry(container, items, selector, animation, horizontalOrder, speed, init, filtering) {
|
217 |
|
218 |
var duration = (speed + 100) / 1000 + 's'; // Add 100 for some delay
|
219 |
var hidden = 'scale(0.5)';
|
@@ -242,9 +257,9 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
|
|
242 |
horizontalOrder = horizontalOrder === 'true' ? true : false;
|
243 |
|
244 |
if (!filtering) {
|
|
|
245 |
// First Run
|
246 |
-
if (
|
247 |
-
almMasonryInit = false;
|
248 |
container.imagesLoaded(function () {
|
249 |
items.fadeIn(speed);
|
250 |
container.masonry({
|
@@ -261,9 +276,10 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
|
|
261 |
opacity: 1
|
262 |
}
|
263 |
});
|
264 |
-
container.masonry('reloadItems');
|
265 |
});
|
266 |
}
|
|
|
267 |
// Standard
|
268 |
else {
|
269 |
container.append(items); // Append new items
|
@@ -275,9 +291,8 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
|
|
275 |
} else {
|
276 |
// Filtering Reset
|
277 |
container.masonry('destroy'); // destroy masonry
|
278 |
-
almMasonryInit = true; // reset almMasonryInit
|
279 |
container.append(items);
|
280 |
-
almMasonry(container, items, selector, animation, horizontalOrder, speed, true, false);
|
281 |
}
|
282 |
};
|
283 |
'use strict';
|
@@ -289,7 +304,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
289 |
* http://wordpress.org/plugins/ajax-load-more/
|
290 |
* https://connekthq.com/plugins/ajax-load-more/
|
291 |
*
|
292 |
-
* Copyright
|
293 |
* Free to use under the GPLv2 license.
|
294 |
* http://www.gnu.org/licenses/gpl-2.0.html
|
295 |
*
|
@@ -302,7 +317,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
302 |
|
303 |
$.ajaxloadmore = function (el, e) {
|
304 |
|
305 |
-
//Prevent loading of unnessasry posts - move user to top of page
|
306 |
if (alm_localize.scrolltop === 'true') {
|
307 |
$(window).scrollTop(0);
|
308 |
}
|
@@ -319,6 +334,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
319 |
alm.init = true;
|
320 |
alm.loading = true;
|
321 |
alm.finished = false;
|
|
|
322 |
alm.el = el;
|
323 |
alm.container = el;
|
324 |
alm.container.addClass('alm-' + e).attr('data-alm-id', e); // Add unique classname and data id
|
@@ -328,7 +344,6 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
328 |
alm.is_search = alm.el.attr('data-search');
|
329 |
alm.slug = alm.el.attr('data-slug');
|
330 |
alm.post_id = alm.el.attr('data-post-id');
|
331 |
-
alm.prefix = 'alm-';
|
332 |
|
333 |
alm.repeater = alm.content.attr('data-repeater'); // Repeaters
|
334 |
alm.theme_repeater = alm.content.attr('data-theme-repeater');
|
@@ -339,9 +354,11 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
339 |
alm.btnWrap = $('.alm-btn-wrap', alm.container);
|
340 |
alm.button_label = alm.content.attr('data-button-label');
|
341 |
alm.button_loading_label = alm.content.attr('data-button-loading-label');
|
342 |
-
alm.scroll_distance =
|
|
|
343 |
alm.scroll_container = alm.content.attr('data-scroll-container');
|
344 |
-
alm.max_pages =
|
|
|
345 |
alm.pause_override = alm.content.attr('data-pause-override'); // true | false
|
346 |
alm.pause = alm.content.attr('data-pause'); // true | false
|
347 |
alm.transition = alm.content.attr('data-transition'); // Transition
|
@@ -356,9 +373,9 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
356 |
alm.offset = alm.content.attr('data-offset');
|
357 |
|
358 |
alm.cache = alm.content.attr('data-cache'); // Cache add-on
|
359 |
-
alm.cache_id = alm.content.attr('data-cache-id');
|
360 |
-
alm.cache_path = alm.content.attr('data-cache-path');
|
361 |
-
alm.cache_logged_in = alm.content.attr('data-cache-logged-in');
|
362 |
|
363 |
alm.cta = alm.content.attr('data-cta'); // CTA add-on
|
364 |
alm.cta_position = alm.content.attr('data-cta-position');
|
@@ -366,34 +383,36 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
366 |
alm.cta_theme_repeater = alm.content.attr('data-cta-theme-repeater');
|
367 |
|
368 |
alm.acf = alm.content.attr('data-acf'); // ACF add-on
|
369 |
-
alm.acf_field_type = alm.content.attr('data-acf-field-type');
|
370 |
-
alm.acf_field_name = alm.content.attr('data-acf-field-name');
|
371 |
-
alm.acf_post_id = alm.content.attr('data-acf-post-id');
|
372 |
|
373 |
alm.nextpage = alm.content.attr('data-nextpage'); // Nextpage add-on
|
374 |
-
alm.nextpage_urls = alm.content.attr('data-nextpage-urls');
|
375 |
-
alm.nextpage_scroll = alm.content.attr('data-nextpage-scroll');
|
376 |
-
alm.nextpage_pageviews = alm.content.attr('data-nextpage-pageviews');
|
377 |
-
alm.nextpage_post_id = alm.content.attr('data-nextpage-post-id');
|
378 |
-
alm.nextpage_startpage = alm.content.attr('data-nextpage-startpage');
|
379 |
|
380 |
alm.previous_post = alm.content.attr('data-previous-post'); // Previous Post add-on
|
381 |
-
alm.previous_post_id = alm.content.attr('data-previous-post-id');
|
382 |
-
alm.previous_post_taxonomy = alm.content.attr('data-previous-post-taxonomy');
|
383 |
-
alm.previous_post_excluded_terms = alm.content.attr('data-previous-post-excluded-terms');
|
384 |
|
385 |
-
alm.comments = alm.content.attr('data-comments'); //
|
386 |
if (alm.comments === 'true') {
|
387 |
-
// if comments,
|
388 |
alm.content = $('.alm-comments', alm.container);
|
389 |
}
|
390 |
-
alm.comments_post_id = alm.content.attr('data-comments_post_id');
|
391 |
alm.comments_per_page = alm.content.attr('data-comments_per_page');
|
392 |
alm.comments_type = alm.content.attr('data-comments_type');
|
393 |
alm.comments_style = alm.content.attr('data-comments_style');
|
394 |
alm.comments_template = alm.content.attr('data-comments_template');
|
395 |
alm.comments_callback = alm.content.attr('data-comments_callback');
|
396 |
|
|
|
|
|
397 |
alm.restapi = alm.content.attr('data-restapi');
|
398 |
alm.restapi_base_url = alm.content.attr('data-restapi-base-url');
|
399 |
alm.restapi_namespace = alm.content.attr('data-restapi-namespace');
|
@@ -401,16 +420,12 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
401 |
alm.restapi_template_id = alm.content.attr('data-restapi-template-id');
|
402 |
alm.restapi_debug = alm.content.attr('data-restapi-debug');
|
403 |
|
404 |
-
alm.seo = alm.content.attr('data-seo'); //
|
405 |
|
406 |
-
alm.preloaded = alm.content.attr('data-preloaded'); //
|
407 |
-
alm.preloaded_amount = alm.content.attr('data-preloaded-amount');
|
408 |
|
409 |
-
alm.paging = alm.content.attr('data-paging'); //
|
410 |
-
alm.paging_controls = alm.content.attr('data-paging-controls');
|
411 |
-
alm.paging_show_at_most = alm.content.attr('data-paging-show-at-most');
|
412 |
-
alm.paging_classes = alm.content.attr('data-paging-classes');
|
413 |
-
alm.paging_init = true;
|
414 |
|
415 |
alm.users = alm.content.attr('data-users') === 'true' ? true : false; // Users add-on
|
416 |
if (alm.users) {
|
@@ -419,6 +434,38 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
419 |
alm.posts_per_page = alm.content.attr('data-users-per-page');
|
420 |
}
|
421 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
422 |
/* REST API */
|
423 |
if (alm.restapi === 'true') {
|
424 |
alm.restapi = true;
|
@@ -436,18 +483,19 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
436 |
/* Paging */
|
437 |
if (alm.paging === 'true') {
|
438 |
alm.paging = true;
|
439 |
-
|
440 |
-
|
441 |
-
|
|
|
|
|
|
|
|
|
442 |
if (alm.preloaded === 'true') {
|
443 |
-
// If preloaded, pause ALM
|
444 |
alm.pause = true;
|
445 |
}
|
446 |
} else {
|
447 |
alm.paging = false;
|
448 |
}
|
449 |
-
|
450 |
-
alm.paging_controls = alm.paging_controls === 'true' ? true : false;
|
451 |
/* End Paging */
|
452 |
|
453 |
/* Cache */
|
@@ -503,9 +551,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
503 |
alm.seo_scroll_speed = alm.content.attr('data-seo-scroll-speed');
|
504 |
alm.seo_scrolltop = alm.content.attr('data-seo-scrolltop');
|
505 |
alm.seo_controls = alm.content.attr('data-seo-controls');
|
506 |
-
|
507 |
alm.isPaged = false;
|
508 |
-
|
509 |
if (alm.start_page > 1) {
|
510 |
alm.isPaged = true; // Is this a $paged page > 1 ?
|
511 |
alm.posts_per_page = alm.start_page * alm.posts_per_page;
|
@@ -617,7 +663,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
617 |
alm.scroll_container = alm.scroll_container === undefined ? '' : alm.scroll_container;
|
618 |
|
619 |
/* Transition */
|
620 |
-
alm.transition = alm.transition === undefined ? '
|
621 |
|
622 |
/* Transition Container Class */
|
623 |
alm.tcc = alm.tcc === undefined ? '' : alm.tcc;
|
@@ -625,6 +671,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
625 |
/* Masonry */
|
626 |
alm.is_masonry_preloaded = false;
|
627 |
if (alm.transition === 'masonry') {
|
|
|
628 |
alm.masonry_selector = alm.content.attr('data-masonry-selector');
|
629 |
alm.masonry_animation = alm.content.attr('data-masonry-animation');
|
630 |
alm.masonry_horizontalorder = alm.content.attr('data-masonry-horizontalorder');
|
@@ -1088,13 +1135,27 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1088 |
|
1089 |
// isPaged
|
1090 |
if (alm.isPaged) {
|
1091 |
-
|
1092 |
-
|
1093 |
-
|
1094 |
-
|
1095 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1096 |
}
|
1097 |
-
alm.page = alm.start_page - 1; // Set our new page #
|
1098 |
}
|
1099 |
}
|
1100 |
|
@@ -1118,14 +1179,15 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1118 |
} else {
|
1119 |
// Standard container
|
1120 |
|
1121 |
-
var pagenum;
|
|
|
1122 |
|
1123 |
// SEO
|
1124 |
if (alm.init && alm.start_page > 1) {
|
1125 |
// loop through items and break into separate alm-reveal divs for paging
|
1126 |
|
1127 |
-
var seo_data = []
|
1128 |
-
|
1129 |
|
1130 |
if (alm.cta === 'true') {
|
1131 |
// If CTA, +1 to posts_per_page to offset the CTA template and correct the display
|
@@ -1138,10 +1200,11 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1138 |
}
|
1139 |
|
1140 |
alm.el = alm.content; // Set alm.el to be alm-listing div
|
|
|
1141 |
for (var k = 0; k < seo_data.length; k++) {
|
1142 |
|
1143 |
var p = alm.preloaded === 'true' ? 1 : 0; // Add 1 page if items are preloaded.
|
1144 |
-
var div;
|
1145 |
|
1146 |
if (k > 0 || alm.preloaded === 'true') {
|
1147 |
// > Paged
|
@@ -1164,7 +1227,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1164 |
// End SEO -- /
|
1165 |
|
1166 |
else {
|
1167 |
-
// If is SEO and paged
|
1168 |
if (alm.seo && alm.page > 0 || alm.preloaded === 'true') {
|
1169 |
|
1170 |
var p2 = alm.preloaded === 'true' ? 1 : 0; // Add 1 page if items are preloaded.
|
@@ -1173,15 +1236,22 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1173 |
pagenum = alm.page + 1 + p2;
|
1174 |
|
1175 |
if (alm.seo) {
|
|
|
1176 |
if (alm.permalink === 'default') {
|
1177 |
alm.el = $('<div class="alm-reveal alm-seo' + alm.tcc + '" data-url="' + alm.canonical_url + '' + alm.search_value + '&paged=' + pagenum + '" data-page="' + pagenum + '" />');
|
1178 |
} else {
|
1179 |
alm.el = $('<div class="alm-reveal alm-seo' + alm.tcc + '" data-url="' + alm.canonical_url + 'page/' + pagenum + alm.trailing_slash + alm.search_value + '" data-page="' + pagenum + '" />');
|
1180 |
}
|
|
|
|
|
|
|
1181 |
} else {
|
1182 |
// Basic ALM
|
1183 |
alm.el = $('<div class="alm-reveal' + alm.tcc + '" />');
|
1184 |
}
|
|
|
|
|
|
|
1185 |
} else {
|
1186 |
|
1187 |
if (alm.seo) {
|
@@ -1231,9 +1301,9 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1231 |
});
|
1232 |
}
|
1233 |
} else if (alm.transition === 'masonry') {
|
1234 |
-
//
|
1235 |
|
1236 |
-
almMasonry(alm.masonry_wrap, alm.el, alm.masonry_selector, alm.masonry_animation, alm.masonry_horizontalorder, alm.speed, alm.init, alm_is_filtering);
|
1237 |
|
1238 |
if (!alm.paging) {
|
1239 |
alm.button.delay(alm.speed).removeClass('loading');
|
@@ -1468,7 +1538,6 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1468 |
alm.AjaxLoadMore.error(jqXHR, textStatus, errorThrown);
|
1469 |
alm.fetchingPreviousPost = false;
|
1470 |
}
|
1471 |
-
|
1472 |
});
|
1473 |
};
|
1474 |
|
@@ -1511,7 +1580,6 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1511 |
* @since 2.8.4
|
1512 |
*/
|
1513 |
alm.AjaxLoadMore.resetBtnText = function () {
|
1514 |
-
|
1515 |
if (alm.button_loading_label !== false) {
|
1516 |
// Reset button text
|
1517 |
if (!alm.paging) {
|
@@ -1555,6 +1623,11 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1555 |
alm.page++;
|
1556 |
alm.AjaxLoadMore.loadPosts();
|
1557 |
}
|
|
|
|
|
|
|
|
|
|
|
1558 |
});
|
1559 |
}
|
1560 |
|
@@ -1692,7 +1765,8 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1692 |
// Masonry + Preloaded
|
1693 |
alm.window.bind('load', function () {
|
1694 |
if (alm.is_masonry_preloaded) {
|
1695 |
-
almMasonry(alm.masonry_wrap, alm.el, alm.masonry_selector, alm.masonry_animation, alm.masonry_horizontalorder, alm.speed, true, false);
|
|
|
1696 |
}
|
1697 |
});
|
1698 |
};
|
@@ -1816,12 +1890,6 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1816 |
new $.ajaxloadmore($(alm), e);
|
1817 |
});
|
1818 |
}
|
1819 |
-
|
1820 |
-
/*
|
1821 |
-
if ($(".ajax-load-more-wrap").length){
|
1822 |
-
$(".ajax-load-more-wrap").ajaxloadmore();
|
1823 |
-
}
|
1824 |
-
*/
|
1825 |
})(jQuery);
|
1826 |
'use strict';
|
1827 |
|
81 |
};
|
82 |
}();
|
83 |
}
|
84 |
+
|
85 |
+
var almGetParameterByName = function almGetParameterByName(name, url) {
|
86 |
+
if (!url) url = window.location.href;
|
87 |
+
name = name.replace(/[\[\]]/g, "\\$&");
|
88 |
+
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
|
89 |
+
results = regex.exec(url);
|
90 |
+
if (!results) return null;
|
91 |
+
if (!results[2]) return '';
|
92 |
+
return decodeURIComponent(results[2].replace(/\+/g, " "));
|
93 |
+
};
|
94 |
"use strict";
|
95 |
|
96 |
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
|
100 |
(function ($) {
|
101 |
|
102 |
/* $.fn.almFilter(type, speed, data)
|
103 |
+
*
|
104 |
* Filter Ajax Load More
|
105 |
*
|
106 |
* @param transition string;
|
187 |
key = key.replace(/\W+/g, '-').replace(/([a-z\d])([A-Z])/g, '$1-$2'); // Convert camelCase data() object back to dash (-)
|
188 |
$('.alm-listing', el).attr('data-' + key, value);
|
189 |
});
|
190 |
+
// Regular Filtering
|
191 |
if ($.isFunction($.fn.almFilterComplete)) {
|
192 |
$.fn.almFilterComplete();
|
193 |
}
|
194 |
+
// Filters Add-on
|
195 |
+
if (typeof almFiltersAddonComplete == "function") {
|
196 |
+
almFiltersAddonComplete(el);
|
197 |
+
}
|
198 |
+
|
199 |
alm_is_filtering = true;
|
200 |
el.fadeIn(speed); // Fade ALM back in
|
201 |
|
216 |
|
217 |
Function to trigger built-in Ajax Load More Masonry
|
218 |
|
219 |
+
@param container object
|
220 |
+
@param items object
|
221 |
+
@param selector string
|
222 |
+
@param animation string
|
223 |
+
@param speed int
|
224 |
+
@param masonry_init boolean
|
225 |
+
@param init boolean
|
226 |
+
@param filtering boolean
|
227 |
@since 3.1
|
228 |
+
@updated 3.3.2
|
229 |
*/
|
230 |
|
231 |
+
var almMasonry = function almMasonry(container, items, selector, animation, horizontalOrder, speed, masonry_init, init, filtering) {
|
|
|
|
|
232 |
|
233 |
var duration = (speed + 100) / 1000 + 's'; // Add 100 for some delay
|
234 |
var hidden = 'scale(0.5)';
|
257 |
horizontalOrder = horizontalOrder === 'true' ? true : false;
|
258 |
|
259 |
if (!filtering) {
|
260 |
+
|
261 |
// First Run
|
262 |
+
if (masonry_init && init) {
|
|
|
263 |
container.imagesLoaded(function () {
|
264 |
items.fadeIn(speed);
|
265 |
container.masonry({
|
276 |
opacity: 1
|
277 |
}
|
278 |
});
|
279 |
+
//container.masonry('reloadItems');
|
280 |
});
|
281 |
}
|
282 |
+
|
283 |
// Standard
|
284 |
else {
|
285 |
container.append(items); // Append new items
|
291 |
} else {
|
292 |
// Filtering Reset
|
293 |
container.masonry('destroy'); // destroy masonry
|
|
|
294 |
container.append(items);
|
295 |
+
almMasonry(container, items, selector, animation, horizontalOrder, speed, true, true, false);
|
296 |
}
|
297 |
};
|
298 |
'use strict';
|
304 |
* http://wordpress.org/plugins/ajax-load-more/
|
305 |
* https://connekthq.com/plugins/ajax-load-more/
|
306 |
*
|
307 |
+
* Copyright 2018 Connekt Media - https://connekthq.com
|
308 |
* Free to use under the GPLv2 license.
|
309 |
* http://www.gnu.org/licenses/gpl-2.0.html
|
310 |
*
|
317 |
|
318 |
$.ajaxloadmore = function (el, e) {
|
319 |
|
320 |
+
// Prevent loading of unnessasry posts - move user to top of page
|
321 |
if (alm_localize.scrolltop === 'true') {
|
322 |
$(window).scrollTop(0);
|
323 |
}
|
334 |
alm.init = true;
|
335 |
alm.loading = true;
|
336 |
alm.finished = false;
|
337 |
+
alm.prefix = 'alm-';
|
338 |
alm.el = el;
|
339 |
alm.container = el;
|
340 |
alm.container.addClass('alm-' + e).attr('data-alm-id', e); // Add unique classname and data id
|
344 |
alm.is_search = alm.el.attr('data-search');
|
345 |
alm.slug = alm.el.attr('data-slug');
|
346 |
alm.post_id = alm.el.attr('data-post-id');
|
|
|
347 |
|
348 |
alm.repeater = alm.content.attr('data-repeater'); // Repeaters
|
349 |
alm.theme_repeater = alm.content.attr('data-theme-repeater');
|
354 |
alm.btnWrap = $('.alm-btn-wrap', alm.container);
|
355 |
alm.button_label = alm.content.attr('data-button-label');
|
356 |
alm.button_loading_label = alm.content.attr('data-button-loading-label');
|
357 |
+
alm.scroll_distance = alm.content.attr('data-scroll-distance');
|
358 |
+
alm.scroll_distance = alm.scroll_distance ? parseInt(alm.scroll_distance) : 150;
|
359 |
alm.scroll_container = alm.content.attr('data-scroll-container');
|
360 |
+
alm.max_pages = alm.content.attr('data-max-pages');
|
361 |
+
alm.max_pages = alm.max_pages ? parseInt(alm.max_pages) : 0;
|
362 |
alm.pause_override = alm.content.attr('data-pause-override'); // true | false
|
363 |
alm.pause = alm.content.attr('data-pause'); // true | false
|
364 |
alm.transition = alm.content.attr('data-transition'); // Transition
|
373 |
alm.offset = alm.content.attr('data-offset');
|
374 |
|
375 |
alm.cache = alm.content.attr('data-cache'); // Cache add-on
|
376 |
+
alm.cache_id = alm.content.attr('data-cache-id');
|
377 |
+
alm.cache_path = alm.content.attr('data-cache-path');
|
378 |
+
alm.cache_logged_in = alm.content.attr('data-cache-logged-in');
|
379 |
|
380 |
alm.cta = alm.content.attr('data-cta'); // CTA add-on
|
381 |
alm.cta_position = alm.content.attr('data-cta-position');
|
383 |
alm.cta_theme_repeater = alm.content.attr('data-cta-theme-repeater');
|
384 |
|
385 |
alm.acf = alm.content.attr('data-acf'); // ACF add-on
|
386 |
+
alm.acf_field_type = alm.content.attr('data-acf-field-type');
|
387 |
+
alm.acf_field_name = alm.content.attr('data-acf-field-name');
|
388 |
+
alm.acf_post_id = alm.content.attr('data-acf-post-id');
|
389 |
|
390 |
alm.nextpage = alm.content.attr('data-nextpage'); // Nextpage add-on
|
391 |
+
alm.nextpage_urls = alm.content.attr('data-nextpage-urls');
|
392 |
+
alm.nextpage_scroll = alm.content.attr('data-nextpage-scroll');
|
393 |
+
alm.nextpage_pageviews = alm.content.attr('data-nextpage-pageviews');
|
394 |
+
alm.nextpage_post_id = alm.content.attr('data-nextpage-post-id');
|
395 |
+
alm.nextpage_startpage = alm.content.attr('data-nextpage-startpage');
|
396 |
|
397 |
alm.previous_post = alm.content.attr('data-previous-post'); // Previous Post add-on
|
398 |
+
alm.previous_post_id = alm.content.attr('data-previous-post-id');
|
399 |
+
alm.previous_post_taxonomy = alm.content.attr('data-previous-post-taxonomy');
|
400 |
+
alm.previous_post_excluded_terms = alm.content.attr('data-previous-post-excluded-terms');
|
401 |
|
402 |
+
alm.comments = alm.content.attr('data-comments'); // Comments add-on
|
403 |
if (alm.comments === 'true') {
|
404 |
+
// if comments, set alm.content .alm-comments wrapper
|
405 |
alm.content = $('.alm-comments', alm.container);
|
406 |
}
|
407 |
+
alm.comments_post_id = alm.content.attr('data-comments_post_id');
|
408 |
alm.comments_per_page = alm.content.attr('data-comments_per_page');
|
409 |
alm.comments_type = alm.content.attr('data-comments_type');
|
410 |
alm.comments_style = alm.content.attr('data-comments_style');
|
411 |
alm.comments_template = alm.content.attr('data-comments_template');
|
412 |
alm.comments_callback = alm.content.attr('data-comments_callback');
|
413 |
|
414 |
+
alm.filters = alm.content.attr('data-filters');
|
415 |
+
|
416 |
alm.restapi = alm.content.attr('data-restapi');
|
417 |
alm.restapi_base_url = alm.content.attr('data-restapi-base-url');
|
418 |
alm.restapi_namespace = alm.content.attr('data-restapi-namespace');
|
420 |
alm.restapi_template_id = alm.content.attr('data-restapi-template-id');
|
421 |
alm.restapi_debug = alm.content.attr('data-restapi-debug');
|
422 |
|
423 |
+
alm.seo = alm.content.attr('data-seo'); // SEO add-on
|
424 |
|
425 |
+
alm.preloaded = alm.content.attr('data-preloaded'); // Preloaded add-on
|
426 |
+
alm.preloaded_amount = alm.content.attr('data-preloaded-amount');
|
427 |
|
428 |
+
alm.paging = alm.content.attr('data-paging'); // Paging add-on
|
|
|
|
|
|
|
|
|
429 |
|
430 |
alm.users = alm.content.attr('data-users') === 'true' ? true : false; // Users add-on
|
431 |
if (alm.users) {
|
434 |
alm.posts_per_page = alm.content.attr('data-users-per-page');
|
435 |
}
|
436 |
|
437 |
+
/* Filters */
|
438 |
+
if (alm.filters === 'true') {
|
439 |
+
alm.filters = true;
|
440 |
+
|
441 |
+
alm.filters_analtyics = alm.content.attr('data-filters-analtyics');
|
442 |
+
alm.filters_debug = alm.content.attr('data-filters-debug');
|
443 |
+
|
444 |
+
// Check for startpage param
|
445 |
+
/*
|
446 |
+
alm.filters_startpage = alm.content.attr('data-filters-startpage');
|
447 |
+
alm.filters_startpage = parseInt(alm.filters_startpage);
|
448 |
+
alm.page = alm.filters_startpage;
|
449 |
+
*/
|
450 |
+
|
451 |
+
// Get querystring value
|
452 |
+
alm.filters_startpage = 0;
|
453 |
+
var page = almGetParameterByName('pg');
|
454 |
+
if (page !== null) {
|
455 |
+
alm.filters_startpage = parseInt(page);
|
456 |
+
alm.page = alm.filters_startpage;
|
457 |
+
}
|
458 |
+
|
459 |
+
alm.isPaged = false;
|
460 |
+
if (alm.filters_startpage > 0) {
|
461 |
+
alm.isPaged = true;
|
462 |
+
alm.page = alm.filters_startpage - 1;
|
463 |
+
}
|
464 |
+
} else {
|
465 |
+
alm.filters = false;
|
466 |
+
}
|
467 |
+
/* End Filters */
|
468 |
+
|
469 |
/* REST API */
|
470 |
if (alm.restapi === 'true') {
|
471 |
alm.restapi = true;
|
483 |
/* Paging */
|
484 |
if (alm.paging === 'true') {
|
485 |
alm.paging = true;
|
486 |
+
alm.paging_controls = alm.content.attr('data-paging-controls') ? true : false;
|
487 |
+
alm.paging_show_at_most = alm.content.attr('data-paging-show-at-most');
|
488 |
+
alm.paging_classes = alm.content.attr('data-paging-classes');
|
489 |
+
alm.paging_init = true;
|
490 |
+
alm.paging_show_at_most = alm.paging_show_at_most === undefined ? 7 : alm.paging_show_at_most;
|
491 |
+
|
492 |
+
// If preloaded, pause ALM
|
493 |
if (alm.preloaded === 'true') {
|
|
|
494 |
alm.pause = true;
|
495 |
}
|
496 |
} else {
|
497 |
alm.paging = false;
|
498 |
}
|
|
|
|
|
499 |
/* End Paging */
|
500 |
|
501 |
/* Cache */
|
551 |
alm.seo_scroll_speed = alm.content.attr('data-seo-scroll-speed');
|
552 |
alm.seo_scrolltop = alm.content.attr('data-seo-scrolltop');
|
553 |
alm.seo_controls = alm.content.attr('data-seo-controls');
|
|
|
554 |
alm.isPaged = false;
|
|
|
555 |
if (alm.start_page > 1) {
|
556 |
alm.isPaged = true; // Is this a $paged page > 1 ?
|
557 |
alm.posts_per_page = alm.start_page * alm.posts_per_page;
|
663 |
alm.scroll_container = alm.scroll_container === undefined ? '' : alm.scroll_container;
|
664 |
|
665 |
/* Transition */
|
666 |
+
alm.transition = alm.transition === undefined ? 'fade' : alm.transition;
|
667 |
|
668 |
/* Transition Container Class */
|
669 |
alm.tcc = alm.tcc === undefined ? '' : alm.tcc;
|
671 |
/* Masonry */
|
672 |
alm.is_masonry_preloaded = false;
|
673 |
if (alm.transition === 'masonry') {
|
674 |
+
alm.masonry_init = true;
|
675 |
alm.masonry_selector = alm.content.attr('data-masonry-selector');
|
676 |
alm.masonry_animation = alm.content.attr('data-masonry-animation');
|
677 |
alm.masonry_horizontalorder = alm.content.attr('data-masonry-horizontalorder');
|
1135 |
|
1136 |
// isPaged
|
1137 |
if (alm.isPaged) {
|
1138 |
+
|
1139 |
+
// Reset the posts_per_page parameter
|
1140 |
+
alm.posts_per_page = alm.users ? alm.content.attr('data-users-per-page') : alm.content.attr('data-posts-per-page');
|
1141 |
+
|
1142 |
+
// SEO add-on
|
1143 |
+
if (alm.start_page) {
|
1144 |
+
// Set new page #
|
1145 |
+
alm.page = alm.start_page - 1;
|
1146 |
+
}
|
1147 |
+
|
1148 |
+
// Filters add-on
|
1149 |
+
if (alm.filters) {
|
1150 |
+
|
1151 |
+
if (alm.filters_startpage) {
|
1152 |
+
// Set new page #
|
1153 |
+
alm.page = alm.filters_startpage - 1;
|
1154 |
+
|
1155 |
+
// Reset filters-startpage data attr after the first run
|
1156 |
+
alm.posts_per_page = alm.content.attr('data-posts-per-page');
|
1157 |
+
}
|
1158 |
}
|
|
|
1159 |
}
|
1160 |
}
|
1161 |
|
1179 |
} else {
|
1180 |
// Standard container
|
1181 |
|
1182 |
+
var pagenum = void 0;
|
1183 |
+
var querystring = window.location.search;
|
1184 |
|
1185 |
// SEO
|
1186 |
if (alm.init && alm.start_page > 1) {
|
1187 |
// loop through items and break into separate alm-reveal divs for paging
|
1188 |
|
1189 |
+
var seo_data = [];
|
1190 |
+
var posts_per_page = parseInt(alm.posts_per_page);
|
1191 |
|
1192 |
if (alm.cta === 'true') {
|
1193 |
// If CTA, +1 to posts_per_page to offset the CTA template and correct the display
|
1200 |
}
|
1201 |
|
1202 |
alm.el = alm.content; // Set alm.el to be alm-listing div
|
1203 |
+
|
1204 |
for (var k = 0; k < seo_data.length; k++) {
|
1205 |
|
1206 |
var p = alm.preloaded === 'true' ? 1 : 0; // Add 1 page if items are preloaded.
|
1207 |
+
var div = void 0;
|
1208 |
|
1209 |
if (k > 0 || alm.preloaded === 'true') {
|
1210 |
// > Paged
|
1227 |
// End SEO -- /
|
1228 |
|
1229 |
else {
|
1230 |
+
// If is SEO and paged OR Preloaded.
|
1231 |
if (alm.seo && alm.page > 0 || alm.preloaded === 'true') {
|
1232 |
|
1233 |
var p2 = alm.preloaded === 'true' ? 1 : 0; // Add 1 page if items are preloaded.
|
1236 |
pagenum = alm.page + 1 + p2;
|
1237 |
|
1238 |
if (alm.seo) {
|
1239 |
+
|
1240 |
if (alm.permalink === 'default') {
|
1241 |
alm.el = $('<div class="alm-reveal alm-seo' + alm.tcc + '" data-url="' + alm.canonical_url + '' + alm.search_value + '&paged=' + pagenum + '" data-page="' + pagenum + '" />');
|
1242 |
} else {
|
1243 |
alm.el = $('<div class="alm-reveal alm-seo' + alm.tcc + '" data-url="' + alm.canonical_url + 'page/' + pagenum + alm.trailing_slash + alm.search_value + '" data-page="' + pagenum + '" />');
|
1244 |
}
|
1245 |
+
} else if (alm.filters) {
|
1246 |
+
// Filters
|
1247 |
+
alm.el = $('<div class="alm-reveal alm-filters' + alm.tcc + '" data-url="' + alm.canonical_url + '' + querystring + '" data-page="' + pagenum + '" />');
|
1248 |
} else {
|
1249 |
// Basic ALM
|
1250 |
alm.el = $('<div class="alm-reveal' + alm.tcc + '" />');
|
1251 |
}
|
1252 |
+
} else if (alm.filters) {
|
1253 |
+
// Filters
|
1254 |
+
alm.el = $('<div class="alm-reveal alm-filters' + alm.tcc + '" data-url="' + alm.canonical_url + '' + querystring + '" data-page="' + (alm.page + 1) + '" />');
|
1255 |
} else {
|
1256 |
|
1257 |
if (alm.seo) {
|
1301 |
});
|
1302 |
}
|
1303 |
} else if (alm.transition === 'masonry') {
|
1304 |
+
// Masonry
|
1305 |
|
1306 |
+
almMasonry(alm.masonry_wrap, alm.el, alm.masonry_selector, alm.masonry_animation, alm.masonry_horizontalorder, alm.speed, alm.masonry_init, alm.init, alm_is_filtering);alm.masonry_init = false;
|
1307 |
|
1308 |
if (!alm.paging) {
|
1309 |
alm.button.delay(alm.speed).removeClass('loading');
|
1538 |
alm.AjaxLoadMore.error(jqXHR, textStatus, errorThrown);
|
1539 |
alm.fetchingPreviousPost = false;
|
1540 |
}
|
|
|
1541 |
});
|
1542 |
};
|
1543 |
|
1580 |
* @since 2.8.4
|
1581 |
*/
|
1582 |
alm.AjaxLoadMore.resetBtnText = function () {
|
|
|
1583 |
if (alm.button_loading_label !== false) {
|
1584 |
// Reset button text
|
1585 |
if (!alm.paging) {
|
1623 |
alm.page++;
|
1624 |
alm.AjaxLoadMore.loadPosts();
|
1625 |
}
|
1626 |
+
|
1627 |
+
// call this function with each load more
|
1628 |
+
if (alm.filters && typeof almFiltersPaged === 'function') {
|
1629 |
+
almFiltersPaged(alm);
|
1630 |
+
}
|
1631 |
});
|
1632 |
}
|
1633 |
|
1765 |
// Masonry + Preloaded
|
1766 |
alm.window.bind('load', function () {
|
1767 |
if (alm.is_masonry_preloaded) {
|
1768 |
+
almMasonry(alm.masonry_wrap, alm.el, alm.masonry_selector, alm.masonry_animation, alm.masonry_horizontalorder, alm.speed, alm.masonry_init, true, false);
|
1769 |
+
alm.masonry_init = false;
|
1770 |
}
|
1771 |
});
|
1772 |
};
|
1890 |
new $.ajaxloadmore($(alm), e);
|
1891 |
});
|
1892 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
1893 |
})(jQuery);
|
1894 |
'use strict';
|
1895 |
|
core/dist/js/ajax-load-more.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
"use strict";function _toConsumableArray(t){if(Array.isArray(t)){for(var a=0,e=Array(t.length);a<t.length;a++)e[a]=t[a];return e}return Array.from(t)}function _toConsumableArray(t){if(Array.isArray(t)){for(var a=0,e=Array(t.length);a<t.length;a++)e[a]=t[a];return e}return Array.from(t)}Array.from||(Array.from=function(){var t=Object.prototype.toString,a=function(a){return"function"==typeof a||"[object Function]"===t.call(a)},e=function(t){var a=Number(t);return isNaN(a)?0:0!==a&&isFinite(a)?(a>0?1:-1)*Math.floor(Math.abs(a)):a},o=Math.pow(2,53)-1,n=function(t){var a=e(t);return Math.min(Math.max(a,0),o)};return function(t){var e=this,o=Object(t);if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r,s=arguments.length>1?arguments[1]:void 0;if(void 0!==s){if(!a(s))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(r=arguments[2])}for(var i,l=n(o.length),d=a(e)?Object(new e(l)):new Array(l),p=0;p<l;)i=o[p],d[p]=s?void 0===r?s(i,p):s.call(r,i,p):i,p+=1;return d.length=l,d}}());var alm_is_filtering=!1;!function(t){t.fn.almFilter=function(a,e,o){o.target?t(".ajax-load-more-wrap[data-id='"+o.target+"']").each(function(n){var r=t(this);t.fn.almFilterTransition(a,e,o,r)}):t(".ajax-load-more-wrap").each(function(n){var r=t(this);t.fn.almFilterTransition(a,e,o,r)})},t.fn.almFilterTransition=function(t,e,o,n){"slide"===t?n.slideUp(e,function(){a(e,o,n)}):"fade"===t||"masonry"===t?n.fadeOut(e,function(){a(e,o,n)}):a(e,o,n)};var a=function(t,a,o){var n=o.get(0),r=n.querySelectorAll(".alm-listing");[].concat(_toConsumableArray(r)).forEach(function(t){t.innerHTML=""});var s=n.querySelector(".alm-load-more-btn");s&&s.classList.remove("done"),e(t,a,o)},e=function(a,e,o){t.each(e,function(a,e){a=a.replace(/\W+/g,"-").replace(/([a-z\d])([A-Z])/g,"$1-$2"),t(".alm-listing",o).attr("data-"+a,e)}),t.isFunction(t.fn.almFilterComplete)&&t.fn.almFilterComplete(),alm_is_filtering=!0,o.fadeIn(a),e.target?t(".ajax-load-more-wrap[data-id="+e.target+"]").ajaxloadmore():t(".ajax-load-more-wrap").ajaxloadmore()}}(jQuery);var almMasonryInit=!0,almMasonry=function t(a,e,o,n,r,s,i,l){var d=(s+100)/1e3+"s",p="scale(0.5)",c="scale(1)";"zoom-out"===n&&(p="translateY(-20px) scale(1.25)",c="translateY(0) scale(1)"),"slide-up"===n&&(p="translateY(50px)",c="translateY(0)"),"slide-down"===n&&(p="translateY(-50px)",c="translateY(0)"),"none"===n&&(p="translateY(0)",c="translateY(0)"),r="true"===r,l?(a.masonry("destroy"),almMasonryInit=!0,a.append(e),t(a,e,o,n,r,s,!0,!1)):almMasonryInit&&i?(almMasonryInit=!1,a.imagesLoaded(function(){e.fadeIn(s),a.masonry({itemSelector:o,transitionDuration:d,columnWidth:o,horizontalOrder:r,hiddenStyle:{transform:p,opacity:0},visibleStyle:{transform:c,opacity:1}}),a.masonry("reloadItems")})):(a.append(e),a.imagesLoaded(function(){e.show(),a.masonry("appended",e)}))};!function(t){t.ajaxloadmore=function(a,e){"true"===alm_localize.scrolltop&&t(window).scrollTop(0);var o=this;o.AjaxLoadMore={},o.window=t(window),o.page=0,o.posts=0,o.totalposts=0,o.proceed=!1,o.disable_ajax=!1,o.init=!0,o.loading=!0,o.finished=!1,o.el=a,o.container=a,o.container.addClass("alm-"+e).attr("data-alm-id",e),o.content=t(".alm-ajax",o.container),o.content_preloaded=t(".alm-listing.alm-preloaded",o.container),o.canonical_url=o.el.attr("data-canonical-url"),o.is_search=o.el.attr("data-search"),o.slug=o.el.attr("data-slug"),o.post_id=o.el.attr("data-post-id"),o.prefix="alm-",o.repeater=o.content.attr("data-repeater"),o.theme_repeater=o.content.attr("data-theme-repeater"),o.post_type=o.content.attr("data-post-type"),o.post_type=o.post_type.split(","),o.sticky_posts=o.content.attr("data-sticky-posts"),o.btnWrap=t(".alm-btn-wrap",o.container),o.button_label=o.content.attr("data-button-label"),o.button_loading_label=o.content.attr("data-button-loading-label"),o.scroll_distance=parseInt(o.content.attr("data-scroll-distance")),o.scroll_container=o.content.attr("data-scroll-container"),o.max_pages=parseInt(o.content.attr("data-max-pages")),o.pause_override=o.content.attr("data-pause-override"),o.pause=o.content.attr("data-pause"),o.transition=o.content.attr("data-transition"),o.transition_container=o.content.attr("data-transition-container"),o.tcc=o.content.attr("data-transition-container-classes"),o.speed=o.content.attr("data-transition-speed"),o.images_loaded=o.content.attr("data-images-loaded"),o.destroy_after=o.content.attr("data-destroy-after"),o.lang=o.content.attr("data-lang"),o.orginal_posts_per_page=o.content.attr("data-posts-per-page"),o.posts_per_page=o.content.attr("data-posts-per-page"),o.offset=o.content.attr("data-offset"),o.cache=o.content.attr("data-cache"),o.cache_id=o.content.attr("data-cache-id"),o.cache_path=o.content.attr("data-cache-path"),o.cache_logged_in=o.content.attr("data-cache-logged-in"),o.cta=o.content.attr("data-cta"),o.cta_position=o.content.attr("data-cta-position"),o.cta_repeater=o.content.attr("data-cta-repeater"),o.cta_theme_repeater=o.content.attr("data-cta-theme-repeater"),o.acf=o.content.attr("data-acf"),o.acf_field_type=o.content.attr("data-acf-field-type"),o.acf_field_name=o.content.attr("data-acf-field-name"),o.acf_post_id=o.content.attr("data-acf-post-id"),o.nextpage=o.content.attr("data-nextpage"),o.nextpage_urls=o.content.attr("data-nextpage-urls"),o.nextpage_scroll=o.content.attr("data-nextpage-scroll"),o.nextpage_pageviews=o.content.attr("data-nextpage-pageviews"),o.nextpage_post_id=o.content.attr("data-nextpage-post-id"),o.nextpage_startpage=o.content.attr("data-nextpage-startpage"),o.previous_post=o.content.attr("data-previous-post"),o.previous_post_id=o.content.attr("data-previous-post-id"),o.previous_post_taxonomy=o.content.attr("data-previous-post-taxonomy"),o.previous_post_excluded_terms=o.content.attr("data-previous-post-excluded-terms"),o.comments=o.content.attr("data-comments"),"true"===o.comments&&(o.content=t(".alm-comments",o.container)),o.comments_post_id=o.content.attr("data-comments_post_id"),o.comments_per_page=o.content.attr("data-comments_per_page"),o.comments_type=o.content.attr("data-comments_type"),o.comments_style=o.content.attr("data-comments_style"),o.comments_template=o.content.attr("data-comments_template"),o.comments_callback=o.content.attr("data-comments_callback"),o.restapi=o.content.attr("data-restapi"),o.restapi_base_url=o.content.attr("data-restapi-base-url"),o.restapi_namespace=o.content.attr("data-restapi-namespace"),o.restapi_endpoint=o.content.attr("data-restapi-endpoint"),o.restapi_template_id=o.content.attr("data-restapi-template-id"),o.restapi_debug=o.content.attr("data-restapi-debug"),o.seo=o.content.attr("data-seo"),o.preloaded=o.content.attr("data-preloaded"),o.preloaded_amount=o.content.attr("data-preloaded-amount"),o.paging=o.content.attr("data-paging"),o.paging_controls=o.content.attr("data-paging-controls"),o.paging_show_at_most=o.content.attr("data-paging-show-at-most"),o.paging_classes=o.content.attr("data-paging-classes"),o.paging_init=!0,o.users="true"===o.content.attr("data-users"),o.users&&(o.orginal_posts_per_page=o.content.attr("data-users-per-page"),o.posts_per_page=o.content.attr("data-users-per-page")),"true"===o.restapi?(o.restapi=!0,void 0===o.restapi_debug&&(o.restapi_debug=!1),""===o.restapi_template_id&&(o.restapi=!1)):o.restapi=!1,"true"===o.paging?(o.paging=!0,void 0===o.paging_show_at_most&&(o.paging_show_at_most=7),"true"===o.preloaded&&(o.pause=!0)):o.paging=!1,o.paging_controls="true"===o.paging_controls,void 0===o.cache&&(o.cache=!1),void 0===o.cache_logged_in&&(o.cache_logged_in=!1),void 0===o.comments_per_page&&(o.comments_per_page="5"),"true"===o.preloaded?(o.preload_wrap=o.content.prev(".alm-preloaded"),o.preloaded_total_posts=parseInt(o.preload_wrap.attr("data-total-posts")),void 0===o.preloaded_amount&&(o.preloaded_amount=!1),o.preloaded_total_posts<=o.preloaded_amount&&(o.disable_ajax=!0)):o.preloaded="false",void 0===o.seo&&(o.seo=!1),"true"===o.seo&&(o.seo=!0),void 0===o.is_search&&(o.is_search=!1),o.search_value="true"===o.is_search?o.slug:"",o.permalink=o.content.attr("data-seo-permalink"),o.pageview=o.content.attr("data-seo-pageview"),o.start_page=o.content.attr("data-seo-start-page"),o.trailing_slash="false"===o.content.attr("data-seo-trailing-slash")?"":"/",o.start_page?(o.seo_scroll=o.content.attr("data-seo-scroll"),o.seo_scroll_speed=o.content.attr("data-seo-scroll-speed"),o.seo_scrolltop=o.content.attr("data-seo-scrolltop"),o.seo_controls=o.content.attr("data-seo-controls"),o.isPaged=!1,o.start_page>1&&(o.isPaged=!0,o.posts_per_page=o.start_page*o.posts_per_page),o.paging&&(o.posts_per_page=o.orginal_posts_per_page)):o.start_page=1,"true"===o.nextpage?(o.nextpage=!0,o.posts_per_page=1):o.nextpage=!1,void 0===o.nextpage_urls&&(o.nextpage_urls="true"),void 0===o.nextpage_scroll&&(o.nextpage_scroll="250:30"),void 0===o.nextpage_pageviews&&(o.nextpage_pageviews="true"),void 0===o.nextpage_post_id&&(o.nextpage=!1,o.nextpage_post_id=null),void 0===o.nextpage_startpage&&(o.nextpage_startpage=1),o.nextpage_startpage>1&&(o.isPaged=!0),o.acf="true"===o.acf,void 0!==o.acf_field_type&&void 0!==o.acf_field_name&&void 0!==o.acf_post_id||(o.acf=!1),"true"===o.previous_post?(o.previous_post=!0,o.previous_post_permalink="",o.previous_post_title="",o.previous_post_slug=""):o.previous_post=!1,void 0===o.previous_post_id&&(o.previous_post_id=""),void 0===o.previous_post_taxonomy&&(o.previous_post_taxonomy=""),void 0===o.previous_post_excluded_terms&&(o.previous_post_excluded_terms=""),o.previous_post_title_template=o.content.attr("data-previous-post-title-template"),o.siteTitle=o.content.attr("data-previous-post-site-title"),o.siteTagline=o.content.attr("data-previous-post-site-tagline"),o.previous_post_pageview=o.content.attr("data-previous-post-pageview"),o.previous_post_scroll=o.content.attr("data-previous-post-scroll"),o.previous_post_scroll_speed=o.content.attr("data-previous-post-scroll-speed"),o.previous_post_scroll_top=o.content.attr("data-previous-post-scrolltop"),o.previous_post_controls=o.content.attr("data-previous-post-controls"),o.offset=void 0===o.offset?0:o.offset,(void 0===o.pause||o.seo&&o.start_page>1)&&(o.pause=!1),"true"===o.preloaded&&o.seo&&o.start_page>0&&(o.pause=!1),"true"===o.preloaded&&o.paging&&(o.pause=!0),void 0===o.repeater&&(o.repeater="default"),void 0===o.theme_repeater&&(o.theme_repeater="null"),o.max_pages=void 0===o.max_pages||0===o.max_pages?1e4:o.max_pages,o.scroll_distance=void 0===o.scroll_distance?150:o.scroll_distance,o.scroll_container=void 0===o.scroll_container?"":o.scroll_container,o.transition=void 0===o.transition?"slide":o.transition,o.tcc=void 0===o.tcc?"":o.tcc,o.is_masonry_preloaded=!1,"masonry"===o.transition&&(o.masonry_selector=o.content.attr("data-masonry-selector"),o.masonry_animation=o.content.attr("data-masonry-animation"),o.masonry_horizontalorder=o.content.attr("data-masonry-horizontalorder"),void 0===o.masonry_animation&&(o.masonry_animation="standard"),void 0===o.masonry_horizontalorder&&(o.masonry_horizontalorder="true"),o.masonry_wrap=o.content,o.transition_container=!1,document.body.contains(o.content_preloaded.get(0))&&(o.masonry_wrap=o.content_preloaded,o.is_masonry_preloaded=!0)),o.speed=void 0===o.speed||""===o.speed?250:parseInt(o.speed),void 0===o.content.attr("data-scroll")?o.scroll=!0:"false"===o.content.attr("data-scroll")?o.scroll=!1:o.scroll=!0,o.transition_container=void 0===o.transition_container||"true"===o.transition_container,o.images_loaded=void 0===o.images_loaded?"false":o.images_loaded,o.button_label=void 0===o.button_label?"Older Posts":o.button_label,o.button_loading_label=void 0!==o.button_loading_label&&o.button_loading_label,o.paging?o.content.parent().addClass("loading"):o.button=t(".alm-load-more-btn",o.container),o.AjaxLoadMore.loadPosts=function(){if(!o.disable_ajax)if(o.paging||(o.button.addClass("loading"),!1!==o.button_loading_label&&o.button.html(o.button_loading_label)),o.container.addClass("alm-loading"),o.loading=!0,"true"!==o.cache||o.cache_logged_in)o.AjaxLoadMore.ajax("standard");else{var a;if(o.init&&o.seo&&o.isPaged){a=o.cache_path+o.cache_id+"/page-1-"+o.start_page+".html"}else if(o.nextpage){var e;o.paging?e=parseInt(o.page)+1:(e=parseInt(o.page)+2,o.isPaged&&(e=parseInt(o.page)+parseInt(o.nextpage_startpage)+1)),a=o.cache_path+o.cache_id+"/page-"+e+".html"}else a=o.previous_post?o.cache_path+o.cache_id+"/"+o.previous_post_id+".html":o.cache_path+o.cache_id+"/page-"+(o.page+1)+".html";t.get(a,function(t){o.AjaxLoadMore.success(t,!0)}).fail(function(){o.AjaxLoadMore.ajax("standard")})}},o.AjaxLoadMore.ajax=function(e){var n="alm_query_posts";if(o.acf_array="",o.acf&&("relationship"!==o.acf_field_type&&(n="alm_acf_query"),o.acf_array={acf:"true",post_id:o.acf_post_id,field_type:o.acf_field_type,field_name:o.acf_field_name}),o.nextpage_array="",o.nextpage&&(n="alm_nextpage_query",o.nextpage_array={nextpage:"true",urls:o.nextpage_urls,scroll:o.nextpage_scroll,pageviews:o.nextpage_pageviews,post_id:o.nextpage_post_id,startpage:o.nextpage_startpage}),o.previous_post_array="",o.previous_post&&(o.previous_post_array={previous_post:"true",id:o.previous_post_id,slug:o.previous_post_slug}),o.comments_array="","true"===o.comments&&(n="alm_comments_query",o.posts_per_page=o.comments_per_page,o.comments_array={comments:"true",post_id:o.comments_post_id,per_page:o.comments_per_page,type:o.comments_type,style:o.comments_style,template:o.comments_template,callback:o.comments_callback}),o.users_array="",o.users&&(n="alm_users_query",o.users_array={users:"true",role:o.content.attr("data-users-role"),include:o.content.attr("data-users-include"),exclude:o.content.attr("data-users-exclude"),per_page:o.posts_per_page,order:o.content.attr("data-users-order"),orderby:o.content.attr("data-users-orderby")}),o.cta_array="","true"===o.cta&&(o.cta_array={cta:"true",cta_position:o.cta_position,cta_repeater:o.cta_repeater,cta_theme_repeater:o.cta_theme_repeater}),o.restapi){var r=wp.template(o.restapi_template_id),s=o.restapi_base_url+"/"+o.restapi_namespace+"/"+o.restapi_endpoint,i={id:a.attr("data-id"),post_id:o.post_id,posts_per_page:o.posts_per_page,page:o.page,offset:o.offset,slug:o.slug,canonical_url:o.canonical_url,post_type:o.post_type,post_format:o.content.attr("data-post-format"),category:o.content.attr("data-category"),category__not_in:o.content.attr("data-category-not-in"),tag:o.content.attr("data-tag"),tag__not_in:o.content.attr("data-tag-not-in"),taxonomy:o.content.attr("data-taxonomy"),taxonomy_terms:o.content.attr("data-taxonomy-terms"),taxonomy_operator:o.content.attr("data-taxonomy-operator"),taxonomy_relation:o.content.attr("data-taxonomy-relation"),meta_key:o.content.attr("data-meta-key"),meta_value:o.content.attr("data-meta-value"),meta_compare:o.content.attr("data-meta-compare"),meta_relation:o.content.attr("data-meta-relation"),meta_type:o.content.attr("data-meta-type"),author:o.content.attr("data-author"),year:o.content.attr("data-year"),month:o.content.attr("data-month"),day:o.content.attr("data-day"),post_status:o.content.attr("data-post-status"),order:o.content.attr("data-order"),orderby:o.content.attr("data-orderby"),post__in:o.content.attr("data-post-in"),post__not_in:o.content.attr("data-post-not-in"),search:o.content.attr("data-search"),custom_args:o.content.attr("data-custom-args"),lang:o.lang,preloaded:o.preloaded,preloaded_amount:o.preloaded_amount,seo_start_page:o.start_page};t.ajax({type:"GET",url:s,data:i,dataType:"JSON",beforeSend:function(){1==o.page||o.paging||o.button.addClass("loading")},success:function(a){var e="",n=a.html,s=a.meta,i=s.postcount,l=s.totalposts;t.each(n,function(t){var a=n[t];"true"===o.restapi_debug&&console.log(a),e+=r(a)});var d={html:e,meta:{postcount:i,totalposts:l}};o.AjaxLoadMore.success(d,!1)}})}else t.ajax({type:"GET",url:alm_localize.ajaxurl,dataType:"JSON",data:{action:n,nonce:alm_localize.alm_nonce,query_type:e,post_id:o.post_id,id:a.attr("data-id"),slug:o.slug,canonical_url:o.canonical_url,cache_id:o.cache_id,cache_logged_in:o.cache_logged_in,repeater:o.repeater,theme_repeater:o.theme_repeater,acf:o.acf_array,nextpage:o.nextpage_array,cta:o.cta_array,comments:o.comments_array,users:o.users_array,post_type:o.post_type,sticky_posts:o.sticky_posts,post_format:o.content.attr("data-post-format"),category:o.content.attr("data-category"),category__not_in:o.content.attr("data-category-not-in"),tag:o.content.attr("data-tag"),tag__not_in:o.content.attr("data-tag-not-in"),taxonomy:o.content.attr("data-taxonomy"),taxonomy_terms:o.content.attr("data-taxonomy-terms"),taxonomy_operator:o.content.attr("data-taxonomy-operator"),taxonomy_relation:o.content.attr("data-taxonomy-relation"),meta_key:o.content.attr("data-meta-key"),meta_value:o.content.attr("data-meta-value"),meta_compare:o.content.attr("data-meta-compare"),meta_relation:o.content.attr("data-meta-relation"),meta_type:o.content.attr("data-meta-type"),author:o.content.attr("data-author"),year:o.content.attr("data-year"),month:o.content.attr("data-month"),day:o.content.attr("data-day"),post_status:o.content.attr("data-post-status"),order:o.content.attr("data-order"),orderby:o.content.attr("data-orderby"),post__in:o.content.attr("data-post-in"),post__not_in:o.content.attr("data-post-not-in"),exclude:o.content.attr("data-exclude"),search:o.content.attr("data-search"),custom_args:o.content.attr("data-custom-args"),posts_per_page:o.posts_per_page,page:o.page,offset:o.offset,preloaded:o.preloaded,preloaded_amount:o.preloaded_amount,seo_start_page:o.start_page,paging:o.paging,previous_post:o.previous_post_array,lang:o.lang},beforeSend:function(){1==o.page||o.paging||o.button.addClass("loading")},success:function(a){"standard"===e?o.AjaxLoadMore.success(a,!1):"totalpages"===e&&o.paging&&o.nextpage?t.isFunction(t.fn.almBuildPagination)&&t.fn.almBuildPagination(a,o):"totalposts"===e&&o.paging&&t.isFunction(t.fn.almBuildPagination)&&t.fn.almBuildPagination(a,o)},error:function(t,a,e){o.AjaxLoadMore.error(t,a,e)}})},o.paging&&(o.nextpage?o.AjaxLoadMore.ajax("totalpages"):o.AjaxLoadMore.ajax("totalposts")),o.AjaxLoadMore.success=function(a,e){o.previous_post&&o.AjaxLoadMore.getPreviousPost();var n,r,s;if(e?n=a:(n=a.html,r=a.meta,o.posts=o.posts+r.postcount,s=r.postcount,o.totalposts=r.totalposts,"true"===o.preloaded&&(o.totalposts=o.totalposts-o.preloaded_amount)),o.data=t(n),e&&(s=o.data.length),o.init&&(o.paging?s>0&&(o.el=t('<div class="alm-reveal'+o.tcc+'"/>'),o.el.append('<div class="alm-paging-content"></div><div class="alm-paging-loading"></div>'),t(".alm-paging-content",o.el).append(o.data).hide(),o.content.append(o.el),o.content.parent().removeClass("loading"),o.AjaxLoadMore.resetBtnText(),t(".alm-paging-content",o.el).fadeIn(o.speed,"alm_easeInOutQuad",function(){var a=parseInt(o.content.css("padding-top")),e=parseInt(o.content.css("padding-bottom"));o.content.css("height",o.el.height()+a+e+"px"),t.isFunction(t.fn.almFadePageControls)&&t.fn.almFadePageControls(o.btnWrap)})):o.button.html(o.button_label),0===s&&t.isFunction(t.fn.almEmpty)&&t.fn.almEmpty(o),o.isPaged&&(o.users?o.posts_per_page=o.content.attr("data-users-per-page"):o.posts_per_page=o.content.attr("data-posts-per-page"),o.page=o.start_page-1)),s>0){if(o.paging)o.init?(o.container.removeClass("alm-loading"),o.AjaxLoadMore.triggerAddons(o)):t(".alm-paging-content",o.el).html("").append(o.data).almWaitForImages().done(function(){t(".alm-paging-loading",o.el).fadeOut(o.speed),t.isFunction(t.fn.almOnPagingComplete)&&t.fn.almOnPagingComplete(o),o.container.removeClass("alm-loading"),o.AjaxLoadMore.triggerAddons(o)});else{if(o.previous_post)o.el=t('<div class="alm-reveal alm-previous-post post-'+o.previous_post_id+'" data-id="'+o.previous_post_id+'" data-title="'+o.previous_post_title+'" data-url="'+o.previous_post_permalink+'" data-page="'+o.page+'"/>'),o.el.append(o.data).hide();else if(o.transition_container){var i;if(o.init&&o.start_page>1){var l=[],d=parseInt(o.posts_per_page);"true"===o.cta&&(d+=1);Math.ceil(s/d);for(var p=0;p<s;p+=d)l.push(o.data.slice(p,d+p));o.el=o.content;for(var c=0;c<l.length;c++){var g,_="true"===o.preloaded?1:0;c>0||"true"===o.preloaded?(i=c+1+_,g=t("default"===o.permalink?'<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+o.search_value+"&paged="+i+'" data-page="'+i+'" />':'<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+"page/"+i+o.trailing_slash+o.search_value+'" data-page="'+i+'" />')):g=t('<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+o.search_value+'" data-page="1" />'),g.append(l[c]),g=t(g),o.el.append(g).hide()}}else{if(o.seo&&o.page>0||"true"===o.preloaded){var u="true"===o.preloaded?1:0;i=o.page+1+u,o.seo?"default"===o.permalink?o.el=t('<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+o.search_value+"&paged="+i+'" data-page="'+i+'" />'):o.el=t('<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+"page/"+i+o.trailing_slash+o.search_value+'" data-page="'+i+'" />'):o.el=t('<div class="alm-reveal'+o.tcc+'" />')}else o.seo?o.el=t('<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+o.search_value+'" data-page="1" />'):o.el=t('<div class="alm-reveal'+o.tcc+'" />');o.el.append(o.data).hide()}}else o.data.hide(),o.el=o.data;("masonry"!==o.transition||o.init&&!o.is_masonry_preloaded)&&o.content.append(o.el),"fade"===o.transition?"true"===o.images_loaded?o.el.almWaitForImages().done(function(){o.el.fadeIn(o.speed,"alm_easeInOutQuad",function(){o.loading=!1,o.paging||(o.button.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText()),o.container.removeClass("alm-loading"),o.AjaxLoadMore.triggerAddons(o)})}):o.el.fadeIn(o.speed,"alm_easeInOutQuad",function(){o.loading=!1,o.paging||(o.button.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText()),o.container.removeClass("alm-loading"),o.AjaxLoadMore.triggerAddons(o)}):"masonry"===o.transition?(almMasonry(o.masonry_wrap,o.el,o.masonry_selector,o.masonry_animation,o.masonry_horizontalorder,o.speed,o.init,alm_is_filtering),o.paging||(o.button.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText()),o.loading=!1,o.container.removeClass("alm-loading"),o.AjaxLoadMore.triggerAddons(o)):"none"===o.transition?("true"===o.images_loaded?o.el.almWaitForImages().done(function(){o.el.show(),o.AjaxLoadMore.triggerAddons(o)}):(o.el.show(),o.AjaxLoadMore.triggerAddons(o)),o.loading=!1,o.paging||(o.button.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText())):"true"===o.images_loaded?o.el.almWaitForImages().done(function(){o.el.slideDown(o.speed,"alm_easeInOutQuad",function(){o.loading=!1,o.paging||(o.button.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText()),o.container.removeClass("alm-loading"),o.AjaxLoadMore.triggerAddons(o)})}):o.el.slideDown(o.speed,"alm_easeInOutQuad",function(){o.loading=!1,o.paging||(o.button.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText()),o.container.removeClass("alm-loading"),o.AjaxLoadMore.triggerAddons(o)})}t.isFunction(t.fn.almComplete)&&("true"===o.images_loaded?o.el.almWaitForImages().done(function(){t.fn.almComplete(o)}):t.fn.almComplete(o)),o.cache?s<o.posts_per_page&&o.AjaxLoadMore.triggerDone():o.posts>=o.totalposts&&!o.previous_post&&o.AjaxLoadMore.triggerDone()}else o.paging||(o.button.delay(o.speed).removeClass("loading").addClass("done"),o.AjaxLoadMore.resetBtnText()),o.AjaxLoadMore.triggerDone();if(void 0!==o.destroy_after&&""!==o.destroy_after){var m=o.page+1;o.preload&&m++,m==o.destroy_after&&(o.disable_ajax=!0,o.paging||(o.button.delay(o.speed).fadeOut(o.speed),t.isFunction(t.fn.almDestroyed)&&t.fn.almDestroyed(o)))}alm_is_filtering=!1,o.init=!1},o.AjaxLoadMore.pagingPreloadedInit=function(a){o.el=t('<div class="alm-reveal'+o.tcc+'"/>'),o.el.append('<div class="alm-paging-content">'+a+'</div><div class="alm-paging-loading"></div>'),o.content.append(o.el),o.content.parent().removeClass("loading"),o.AjaxLoadMore.resetBtnText();var e=parseInt(o.content.css("padding-top")),n=parseInt(o.content.css("padding-bottom"));o.content.css("height",o.el.height()+e+n+"px"),t.isFunction(t.fn.almFadePageControls)&&t.fn.almFadePageControls(o.btnWrap)},o.AjaxLoadMore.pagingNextpageInit=function(a){o.el=t('<div class="alm-reveal alm-nextpage"/>'),o.el.append('<div class="alm-paging-content">'+a+'</div><div class="alm-paging-loading"></div>'),o.el.appendTo(o.content),o.content.parent().removeClass("loading"),o.AjaxLoadMore.resetBtnText();var e=parseInt(o.content.css("padding-top")),n=parseInt(o.content.css("padding-bottom"));o.content.css("height",o.el.height()+e+n+"px"),t.isFunction(t.fn.almSetNextPageVars)&&t.fn.almSetNextPageVars(o),setTimeout(function(){t.isFunction(t.fn.almFadePageControls)&&t.fn.almFadePageControls(o.btnWrap),t.isFunction(t.fn.almOnWindowResize)&&t.fn.almOnWindowResize(o)},200)},o.fetchingPreviousPost=!1,o.AjaxLoadMore.getPreviousPost=function(){o.fetchingPreviousPost=!0;var a={action:"alm_query_previous_post",id:o.previous_post_id,taxonomy:o.previous_post_taxonomy,excluded_terms:o.previous_post_excluded_terms};t.ajax({type:"GET",dataType:"JSON",url:alm_localize.ajaxurl,data:a,success:function(a){a.has_previous_post?(o.content.attr("data-previous-post-id",a.prev_id),o.previous_post_id=a.prev_id,o.previous_post_permalink=a.prev_permalink,o.previous_post_title=a.prev_title,o.previous_post_slug=a.prev_slug):a.has_previous_post||o.AjaxLoadMore.triggerDone(),t.isFunction(t.fn.almSetPreviousPost)&&t.fn.almSetPreviousPost(o,a.current_id,a.permalink,a.title),o.fetchingPreviousPost=!1},error:function(t,a,e){o.AjaxLoadMore.error(t,a,e),o.fetchingPreviousPost=!1}})},o.AjaxLoadMore.triggerAddons=function(a){t.isFunction(t.fn.almSEO)&&a.seo&&t.fn.almSEO(a,!1),t.isFunction(t.fn.almSetNextPage)&&t.fn.almSetNextPage(a)},o.AjaxLoadMore.triggerDone=function(){o.loading=!1,o.finished=!0,o.paging||o.button.addClass("done"),t.isFunction(t.fn.almDone)&&setTimeout(function(){t.fn.almDone(o)},o.speed+10)},o.AjaxLoadMore.resetBtnText=function(){!1!==o.button_loading_label&&(o.paging||o.button.html(o.button_label))},o.AjaxLoadMore.error=function(t,a,e){o.loading=!1,o.paging||(o.button.removeClass("loading"),o.AjaxLoadMore.resetBtnText()),console.log(e)},o.paging||o.fetchingPreviousPost||(o.button.unbind("click"),o.button.on("click",function(a){a.preventDefault(),"true"===o.pause&&(o.pause=!1,o.pause_override=!1,o.AjaxLoadMore.loadPosts()),o.loading||o.finished||t(this).hasClass("done")||(o.loading=!0,o.page++,o.AjaxLoadMore.loadPosts())})),o.paging&&(o.window.unbind("resizeEnd"),o.window.bind("resizeEnd",function(){t.isFunction(t.fn.almOnWindowResize)&&t.fn.almOnWindowResize(o)}),o.window.unbind("resize"),o.window.bind("resize",function(){this.resizeTO&&clearTimeout(this.resizeTO),this.resizeTO=setTimeout(function(){t(this).trigger("resizeEnd")},250)})),o.AjaxLoadMore.isVisible=function(){return o.visible=!1,o.el.is(":visible")&&(o.visible=!0),o.visible},o.scroll&&!o.paging&&(""!==o.scroll_container&&(o.window=t(o.scroll_container)),o.window.bind("scroll touchstart",function(){if(o.AjaxLoadMore.isVisible()&&!o.fetchingPreviousPost){var t=o.button.offset().top,a=Math.round(t-(o.window.height()-o.scroll_distance)),e=o.window.scrollTop()>=a;""!==o.scroll_container&&(e=o.button.offset().top-(o.window.height()-o.scroll_distance)<o.window.offset().top),!o.loading&&!o.finished&&e&&o.page<o.max_pages-1&&o.proceed&&"true"===o.pause&&"true"===o.pause_override?o.button.trigger("click"):!o.loading&&!o.finished&&e&&o.page<o.max_pages-1&&o.proceed&&"true"!==o.pause&&(o.page++,o.AjaxLoadMore.loadPosts())}})),o.AjaxLoadMore.init=function(){o.paging||o.previous_post||(o.disable_ajax?(o.finished=!0,o.button.addClass("done")):"true"===o.pause?(o.button.html(o.button_label),o.loading=!1):o.AjaxLoadMore.loadPosts()),o.previous_post&&(o.AjaxLoadMore.getPreviousPost(),o.loading=!1),"true"===o.preloaded&&o.seo&&!o.paging&&setTimeout(function(){t.isFunction(t.fn.almSEO)&&o.start_page<1&&t.fn.almSEO(o,!0)},300),o.nextpage&&t(".alm-nextpage").length>1&&t(".alm-nextpage").length==t(".alm-nextpage").eq(0).data("total-pages")&&o.AjaxLoadMore.triggerDone(),o.window.bind("load",function(){o.is_masonry_preloaded&&almMasonry(o.masonry_wrap,o.el,o.masonry_selector,o.masonry_animation,o.masonry_horizontalorder,o.speed,!0,!1)})},o.AjaxLoadMore.init(),setTimeout(function(){o.proceed=!0},300),t.fn.almUpdateCurrentPage=function(a,e,o){o.page=a,o.nextpage&&!o.paging&&(o.page=o.page-1);var n="";o.paging_init&&"true"===o.preloaded?(n=t(".alm-preloaded .alm-reveal",o.el).html(),t(".alm-preloaded",o.el).remove(),o.preloaded_amount=0,o.AjaxLoadMore.pagingPreloadedInit(n),o.paging_init=!1,o.init=!1):o.paging_init&&o.nextpage?(n=t(".alm-nextpage",o.el).html(),t(".alm-nextpage",o.el).remove(),o.AjaxLoadMore.pagingNextpageInit(n),o.paging_init=!1,o.init=!1):o.AjaxLoadMore.loadPosts()},t.fn.almGetParentContainer=function(){return o.el.closest("#ajax-load-more")},t.fn.almGetObj=function(){return o},t.fn.almTriggerClick=function(){o.button.trigger("click")},t.easing.alm_easeInOutQuad=function(t,a,e,o,n){return(a/=n/2)<1?o/2*a*a+e:-o/2*(--a*(a-2)-1)+e}},t.fn.ajaxloadmore=function(){return this.each(function(a){new t.ajaxloadmore(t(this),a)})};var a=document.querySelectorAll(".ajax-load-more-wrap");a.length&&[].concat(_toConsumableArray(a)).forEach(function(a,e){new t.ajaxloadmore(t(a),e)})}(jQuery);var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"===("undefined"==typeof exports?"undefined":_typeof(exports))?module.exports=t(require("jquery")):t(jQuery)}(function(t){t.almWaitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage","cursor"],hasImageAttributes:["srcset"]},t.expr[":"]["has-src"]=function(a){return t(a).is('img[src][src!=""]')},t.expr[":"].uncached=function(a){return!!t(a).is(":has-src")&&!a.complete},t.fn.almWaitForImages=function(){var a,e,o,n=0,r=0,s=t.Deferred();if(t.isPlainObject(arguments[0])?(o=arguments[0].waitForAll,e=arguments[0].each,a=arguments[0].finished):1===arguments.length&&"boolean"===t.type(arguments[0])?o=arguments[0]:(a=arguments[0],e=arguments[1],o=arguments[2]),a=a||t.noop,e=e||t.noop,o=!!o,!t.isFunction(a)||!t.isFunction(e))throw new TypeError("An invalid callback was supplied.");return this.each(function(){var i=t(this),l=[],d=t.almWaitForImages.hasImageProperties||[],p=t.almWaitForImages.hasImageAttributes||[],c=/url\(\s*(['"]?)(.*?)\1\s*\)/g;o?i.find("*").addBack().each(function(){var a=t(this);a.is("img:has-src")&&l.push({src:a.attr("src"),element:a[0]}),t.each(d,function(t,e){var o,n=a.css(e);if(!n)return!0;for(;o=c.exec(n);)l.push({src:o[2],element:a[0]})}),t.each(p,function(e,o){var n,r=a.attr(o);if(!r)return!0;n=r.split(","),t.each(n,function(e,o){o=t.trim(o).split(" ")[0],l.push({src:o,element:a[0]})})})}):i.find("img:has-src").each(function(){l.push({src:this.src,element:this})}),n=l.length,r=0,0===n&&(a.call(i[0]),s.resolveWith(i[0])),t.each(l,function(o,l){var d=new Image,p="load.almWaitForImages error.almWaitForImages";t(d).one(p,function o(d){var c=[r,n,"load"==d.type];if(r++,e.apply(l.element,c),s.notifyWith(l.element,c),t(this).off(p,o),r==n)return a.call(i[0]),s.resolveWith(i[0]),!1}),d.src=l.src})}),s.promise()}});
|
1 |
+
"use strict";function _toConsumableArray(t){if(Array.isArray(t)){for(var a=0,e=Array(t.length);a<t.length;a++)e[a]=t[a];return e}return Array.from(t)}function _toConsumableArray(t){if(Array.isArray(t)){for(var a=0,e=Array(t.length);a<t.length;a++)e[a]=t[a];return e}return Array.from(t)}Array.from||(Array.from=function(){var t=Object.prototype.toString,a=function(a){return"function"==typeof a||"[object Function]"===t.call(a)},e=function(t){var a=Number(t);return isNaN(a)?0:0!==a&&isFinite(a)?(a>0?1:-1)*Math.floor(Math.abs(a)):a},o=Math.pow(2,53)-1,n=function(t){var a=e(t);return Math.min(Math.max(a,0),o)};return function(t){var e=this,o=Object(t);if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r,s=arguments.length>1?arguments[1]:void 0;if(void 0!==s){if(!a(s))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(r=arguments[2])}for(var i,l=n(o.length),d=a(e)?Object(new e(l)):new Array(l),p=0;p<l;)i=o[p],d[p]=s?void 0===r?s(i,p):s.call(r,i,p):i,p+=1;return d.length=l,d}}());var almGetParameterByName=function(t,a){a||(a=window.location.href),t=t.replace(/[\[\]]/g,"\\$&");var e=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(a);return e?e[2]?decodeURIComponent(e[2].replace(/\+/g," ")):"":null},alm_is_filtering=!1;!function(t){t.fn.almFilter=function(a,e,o){o.target?t(".ajax-load-more-wrap[data-id='"+o.target+"']").each(function(n){var r=t(this);t.fn.almFilterTransition(a,e,o,r)}):t(".ajax-load-more-wrap").each(function(n){var r=t(this);t.fn.almFilterTransition(a,e,o,r)})},t.fn.almFilterTransition=function(t,e,o,n){"slide"===t?n.slideUp(e,function(){a(e,o,n)}):"fade"===t||"masonry"===t?n.fadeOut(e,function(){a(e,o,n)}):a(e,o,n)};var a=function(t,a,o){var n=o.get(0),r=n.querySelectorAll(".alm-listing");[].concat(_toConsumableArray(r)).forEach(function(t){t.innerHTML=""});var s=n.querySelector(".alm-load-more-btn");s&&s.classList.remove("done"),e(t,a,o)},e=function(a,e,o){t.each(e,function(a,e){a=a.replace(/\W+/g,"-").replace(/([a-z\d])([A-Z])/g,"$1-$2"),t(".alm-listing",o).attr("data-"+a,e)}),t.isFunction(t.fn.almFilterComplete)&&t.fn.almFilterComplete(),"function"==typeof almFiltersAddonComplete&&almFiltersAddonComplete(o),alm_is_filtering=!0,o.fadeIn(a),e.target?t(".ajax-load-more-wrap[data-id="+e.target+"]").ajaxloadmore():t(".ajax-load-more-wrap").ajaxloadmore()}}(jQuery);var almMasonry=function t(a,e,o,n,r,s,i,l,d){var p=(s+100)/1e3+"s",c="scale(0.5)",g="scale(1)";"zoom-out"===n&&(c="translateY(-20px) scale(1.25)",g="translateY(0) scale(1)"),"slide-up"===n&&(c="translateY(50px)",g="translateY(0)"),"slide-down"===n&&(c="translateY(-50px)",g="translateY(0)"),"none"===n&&(c="translateY(0)",g="translateY(0)"),r="true"===r,d?(a.masonry("destroy"),a.append(e),t(a,e,o,n,r,s,!0,!0,!1)):i&&l?a.imagesLoaded(function(){e.fadeIn(s),a.masonry({itemSelector:o,transitionDuration:p,columnWidth:o,horizontalOrder:r,hiddenStyle:{transform:c,opacity:0},visibleStyle:{transform:g,opacity:1}})}):(a.append(e),a.imagesLoaded(function(){e.show(),a.masonry("appended",e)}))};!function(t){t.ajaxloadmore=function(a,e){"true"===alm_localize.scrolltop&&t(window).scrollTop(0);var o=this;if(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.prefix="alm-",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.repeater=o.content.attr("data-repeater"),o.theme_repeater=o.content.attr("data-theme-repeater"),o.post_type=o.content.attr("data-post-type"),o.post_type=o.post_type.split(","),o.sticky_posts=o.content.attr("data-sticky-posts"),o.btnWrap=t(".alm-btn-wrap",o.container),o.button_label=o.content.attr("data-button-label"),o.button_loading_label=o.content.attr("data-button-loading-label"),o.scroll_distance=o.content.attr("data-scroll-distance"),o.scroll_distance=o.scroll_distance?parseInt(o.scroll_distance):150,o.scroll_container=o.content.attr("data-scroll-container"),o.max_pages=o.content.attr("data-max-pages"),o.max_pages=o.max_pages?parseInt(o.max_pages):0,o.pause_override=o.content.attr("data-pause-override"),o.pause=o.content.attr("data-pause"),o.transition=o.content.attr("data-transition"),o.transition_container=o.content.attr("data-transition-container"),o.tcc=o.content.attr("data-transition-container-classes"),o.speed=o.content.attr("data-transition-speed"),o.images_loaded=o.content.attr("data-images-loaded"),o.destroy_after=o.content.attr("data-destroy-after"),o.lang=o.content.attr("data-lang"),o.orginal_posts_per_page=o.content.attr("data-posts-per-page"),o.posts_per_page=o.content.attr("data-posts-per-page"),o.offset=o.content.attr("data-offset"),o.cache=o.content.attr("data-cache"),o.cache_id=o.content.attr("data-cache-id"),o.cache_path=o.content.attr("data-cache-path"),o.cache_logged_in=o.content.attr("data-cache-logged-in"),o.cta=o.content.attr("data-cta"),o.cta_position=o.content.attr("data-cta-position"),o.cta_repeater=o.content.attr("data-cta-repeater"),o.cta_theme_repeater=o.content.attr("data-cta-theme-repeater"),o.acf=o.content.attr("data-acf"),o.acf_field_type=o.content.attr("data-acf-field-type"),o.acf_field_name=o.content.attr("data-acf-field-name"),o.acf_post_id=o.content.attr("data-acf-post-id"),o.nextpage=o.content.attr("data-nextpage"),o.nextpage_urls=o.content.attr("data-nextpage-urls"),o.nextpage_scroll=o.content.attr("data-nextpage-scroll"),o.nextpage_pageviews=o.content.attr("data-nextpage-pageviews"),o.nextpage_post_id=o.content.attr("data-nextpage-post-id"),o.nextpage_startpage=o.content.attr("data-nextpage-startpage"),o.previous_post=o.content.attr("data-previous-post"),o.previous_post_id=o.content.attr("data-previous-post-id"),o.previous_post_taxonomy=o.content.attr("data-previous-post-taxonomy"),o.previous_post_excluded_terms=o.content.attr("data-previous-post-excluded-terms"),o.comments=o.content.attr("data-comments"),"true"===o.comments&&(o.content=t(".alm-comments",o.container)),o.comments_post_id=o.content.attr("data-comments_post_id"),o.comments_per_page=o.content.attr("data-comments_per_page"),o.comments_type=o.content.attr("data-comments_type"),o.comments_style=o.content.attr("data-comments_style"),o.comments_template=o.content.attr("data-comments_template"),o.comments_callback=o.content.attr("data-comments_callback"),o.filters=o.content.attr("data-filters"),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.users="true"===o.content.attr("data-users"),o.users&&(o.orginal_posts_per_page=o.content.attr("data-users-per-page"),o.posts_per_page=o.content.attr("data-users-per-page")),"true"===o.filters){o.filters=!0,o.filters_analtyics=o.content.attr("data-filters-analtyics"),o.filters_debug=o.content.attr("data-filters-debug"),o.filters_startpage=0;var n=almGetParameterByName("pg");null!==n&&(o.filters_startpage=parseInt(n),o.page=o.filters_startpage),o.isPaged=!1,o.filters_startpage>0&&(o.isPaged=!0,o.page=o.filters_startpage-1)}else o.filters=!1;"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,o.paging_controls=!!o.content.attr("data-paging-controls"),o.paging_show_at_most=o.content.attr("data-paging-show-at-most"),o.paging_classes=o.content.attr("data-paging-classes"),o.paging_init=!0,o.paging_show_at_most=void 0===o.paging_show_at_most?7:o.paging_show_at_most,"true"===o.preloaded&&(o.pause=!0)):o.paging=!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.trailing_slash="false"===o.content.attr("data-seo-trailing-slash")?"":"/",o.start_page?(o.seo_scroll=o.content.attr("data-seo-scroll"),o.seo_scroll_speed=o.content.attr("data-seo-scroll-speed"),o.seo_scrolltop=o.content.attr("data-seo-scrolltop"),o.seo_controls=o.content.attr("data-seo-controls"),o.isPaged=!1,o.start_page>1&&(o.isPaged=!0,o.posts_per_page=o.start_page*o.posts_per_page),o.paging&&(o.posts_per_page=o.orginal_posts_per_page)):o.start_page=1,"true"===o.nextpage?(o.nextpage=!0,o.posts_per_page=1):o.nextpage=!1,void 0===o.nextpage_urls&&(o.nextpage_urls="true"),void 0===o.nextpage_scroll&&(o.nextpage_scroll="250:30"),void 0===o.nextpage_pageviews&&(o.nextpage_pageviews="true"),void 0===o.nextpage_post_id&&(o.nextpage=!1,o.nextpage_post_id=null),void 0===o.nextpage_startpage&&(o.nextpage_startpage=1),o.nextpage_startpage>1&&(o.isPaged=!0),o.acf="true"===o.acf,void 0!==o.acf_field_type&&void 0!==o.acf_field_name&&void 0!==o.acf_post_id||(o.acf=!1),"true"===o.previous_post?(o.previous_post=!0,o.previous_post_permalink="",o.previous_post_title="",o.previous_post_slug=""):o.previous_post=!1,void 0===o.previous_post_id&&(o.previous_post_id=""),void 0===o.previous_post_taxonomy&&(o.previous_post_taxonomy=""),void 0===o.previous_post_excluded_terms&&(o.previous_post_excluded_terms=""),o.previous_post_title_template=o.content.attr("data-previous-post-title-template"),o.siteTitle=o.content.attr("data-previous-post-site-title"),o.siteTagline=o.content.attr("data-previous-post-site-tagline"),o.previous_post_pageview=o.content.attr("data-previous-post-pageview"),o.previous_post_scroll=o.content.attr("data-previous-post-scroll"),o.previous_post_scroll_speed=o.content.attr("data-previous-post-scroll-speed"),o.previous_post_scroll_top=o.content.attr("data-previous-post-scrolltop"),o.previous_post_controls=o.content.attr("data-previous-post-controls"),o.offset=void 0===o.offset?0:o.offset,(void 0===o.pause||o.seo&&o.start_page>1)&&(o.pause=!1),"true"===o.preloaded&&o.seo&&o.start_page>0&&(o.pause=!1),"true"===o.preloaded&&o.paging&&(o.pause=!0),void 0===o.repeater&&(o.repeater="default"),void 0===o.theme_repeater&&(o.theme_repeater="null"),o.max_pages=void 0===o.max_pages||0===o.max_pages?1e4:o.max_pages,o.scroll_distance=void 0===o.scroll_distance?150:o.scroll_distance,o.scroll_container=void 0===o.scroll_container?"":o.scroll_container,o.transition=void 0===o.transition?"fade":o.transition,o.tcc=void 0===o.tcc?"":o.tcc,o.is_masonry_preloaded=!1,"masonry"===o.transition&&(o.masonry_init=!0,o.masonry_selector=o.content.attr("data-masonry-selector"),o.masonry_animation=o.content.attr("data-masonry-animation"),o.masonry_horizontalorder=o.content.attr("data-masonry-horizontalorder"),void 0===o.masonry_animation&&(o.masonry_animation="standard"),void 0===o.masonry_horizontalorder&&(o.masonry_horizontalorder="true"),o.masonry_wrap=o.content,o.transition_container=!1,document.body.contains(o.content_preloaded.get(0))&&(o.masonry_wrap=o.content_preloaded,o.is_masonry_preloaded=!0)),o.speed=void 0===o.speed||""===o.speed?250:parseInt(o.speed),void 0===o.content.attr("data-scroll")?o.scroll=!0:"false"===o.content.attr("data-scroll")?o.scroll=!1:o.scroll=!0,o.transition_container=void 0===o.transition_container||"true"===o.transition_container,o.images_loaded=void 0===o.images_loaded?"false":o.images_loaded,o.button_label=void 0===o.button_label?"Older Posts":o.button_label,o.button_loading_label=void 0!==o.button_loading_label&&o.button_loading_label,o.paging?o.content.parent().addClass("loading"):o.button=t(".alm-load-more-btn",o.container),o.AjaxLoadMore.loadPosts=function(){if(!o.disable_ajax)if(o.paging||(o.button.addClass("loading"),!1!==o.button_loading_label&&o.button.html(o.button_loading_label)),o.container.addClass("alm-loading"),o.loading=!0,"true"!==o.cache||o.cache_logged_in)o.AjaxLoadMore.ajax("standard");else{var a;if(o.init&&o.seo&&o.isPaged){a=o.cache_path+o.cache_id+"/page-1-"+o.start_page+".html"}else if(o.nextpage){var e;o.paging?e=parseInt(o.page)+1:(e=parseInt(o.page)+2,o.isPaged&&(e=parseInt(o.page)+parseInt(o.nextpage_startpage)+1)),a=o.cache_path+o.cache_id+"/page-"+e+".html"}else a=o.previous_post?o.cache_path+o.cache_id+"/"+o.previous_post_id+".html":o.cache_path+o.cache_id+"/page-"+(o.page+1)+".html";t.get(a,function(t){o.AjaxLoadMore.success(t,!0)}).fail(function(){o.AjaxLoadMore.ajax("standard")})}},o.AjaxLoadMore.ajax=function(e){var n="alm_query_posts";if(o.acf_array="",o.acf&&("relationship"!==o.acf_field_type&&(n="alm_acf_query"),o.acf_array={acf:"true",post_id:o.acf_post_id,field_type:o.acf_field_type,field_name:o.acf_field_name}),o.nextpage_array="",o.nextpage&&(n="alm_nextpage_query",o.nextpage_array={nextpage:"true",urls:o.nextpage_urls,scroll:o.nextpage_scroll,pageviews:o.nextpage_pageviews,post_id:o.nextpage_post_id,startpage:o.nextpage_startpage}),o.previous_post_array="",o.previous_post&&(o.previous_post_array={previous_post:"true",id:o.previous_post_id,slug:o.previous_post_slug}),o.comments_array="","true"===o.comments&&(n="alm_comments_query",o.posts_per_page=o.comments_per_page,o.comments_array={comments:"true",post_id:o.comments_post_id,per_page:o.comments_per_page,type:o.comments_type,style:o.comments_style,template:o.comments_template,callback:o.comments_callback}),o.users_array="",o.users&&(n="alm_users_query",o.users_array={users:"true",role:o.content.attr("data-users-role"),include:o.content.attr("data-users-include"),exclude:o.content.attr("data-users-exclude"),per_page:o.posts_per_page,order:o.content.attr("data-users-order"),orderby:o.content.attr("data-users-orderby")}),o.cta_array="","true"===o.cta&&(o.cta_array={cta:"true",cta_position:o.cta_position,cta_repeater:o.cta_repeater,cta_theme_repeater:o.cta_theme_repeater}),o.restapi){var r=wp.template(o.restapi_template_id),s=o.restapi_base_url+"/"+o.restapi_namespace+"/"+o.restapi_endpoint,i={id:a.attr("data-id"),post_id:o.post_id,posts_per_page:o.posts_per_page,page:o.page,offset:o.offset,slug:o.slug,canonical_url:o.canonical_url,post_type:o.post_type,post_format:o.content.attr("data-post-format"),category:o.content.attr("data-category"),category__not_in:o.content.attr("data-category-not-in"),tag:o.content.attr("data-tag"),tag__not_in:o.content.attr("data-tag-not-in"),taxonomy:o.content.attr("data-taxonomy"),taxonomy_terms:o.content.attr("data-taxonomy-terms"),taxonomy_operator:o.content.attr("data-taxonomy-operator"),taxonomy_relation:o.content.attr("data-taxonomy-relation"),meta_key:o.content.attr("data-meta-key"),meta_value:o.content.attr("data-meta-value"),meta_compare:o.content.attr("data-meta-compare"),meta_relation:o.content.attr("data-meta-relation"),meta_type:o.content.attr("data-meta-type"),author:o.content.attr("data-author"),year:o.content.attr("data-year"),month:o.content.attr("data-month"),day:o.content.attr("data-day"),post_status:o.content.attr("data-post-status"),order:o.content.attr("data-order"),orderby:o.content.attr("data-orderby"),post__in:o.content.attr("data-post-in"),post__not_in:o.content.attr("data-post-not-in"),search:o.content.attr("data-search"),custom_args:o.content.attr("data-custom-args"),lang:o.lang,preloaded:o.preloaded,preloaded_amount:o.preloaded_amount,seo_start_page:o.start_page};t.ajax({type:"GET",url:s,data:i,dataType:"JSON",beforeSend:function(){1==o.page||o.paging||o.button.addClass("loading")},success:function(a){var e="",n=a.html,s=a.meta,i=s.postcount,l=s.totalposts;t.each(n,function(t){var a=n[t];"true"===o.restapi_debug&&console.log(a),e+=r(a)});var d={html:e,meta:{postcount:i,totalposts:l}};o.AjaxLoadMore.success(d,!1)}})}else t.ajax({type:"GET",url:alm_localize.ajaxurl,dataType:"JSON",data:{action:n,nonce:alm_localize.alm_nonce,query_type:e,post_id:o.post_id,id:a.attr("data-id"),slug:o.slug,canonical_url:o.canonical_url,cache_id:o.cache_id,cache_logged_in:o.cache_logged_in,repeater:o.repeater,theme_repeater:o.theme_repeater,acf:o.acf_array,nextpage:o.nextpage_array,cta:o.cta_array,comments:o.comments_array,users:o.users_array,post_type:o.post_type,sticky_posts:o.sticky_posts,post_format:o.content.attr("data-post-format"),category:o.content.attr("data-category"),category__not_in:o.content.attr("data-category-not-in"),tag:o.content.attr("data-tag"),tag__not_in:o.content.attr("data-tag-not-in"),taxonomy:o.content.attr("data-taxonomy"),taxonomy_terms:o.content.attr("data-taxonomy-terms"),taxonomy_operator:o.content.attr("data-taxonomy-operator"),taxonomy_relation:o.content.attr("data-taxonomy-relation"),meta_key:o.content.attr("data-meta-key"),meta_value:o.content.attr("data-meta-value"),meta_compare:o.content.attr("data-meta-compare"),meta_relation:o.content.attr("data-meta-relation"),meta_type:o.content.attr("data-meta-type"),author:o.content.attr("data-author"),year:o.content.attr("data-year"),month:o.content.attr("data-month"),day:o.content.attr("data-day"),post_status:o.content.attr("data-post-status"),order:o.content.attr("data-order"),orderby:o.content.attr("data-orderby"),post__in:o.content.attr("data-post-in"),post__not_in:o.content.attr("data-post-not-in"),exclude:o.content.attr("data-exclude"),search:o.content.attr("data-search"),custom_args:o.content.attr("data-custom-args"),posts_per_page:o.posts_per_page,page:o.page,offset:o.offset,preloaded:o.preloaded,preloaded_amount:o.preloaded_amount,seo_start_page:o.start_page,paging:o.paging,previous_post:o.previous_post_array,lang:o.lang},beforeSend:function(){1==o.page||o.paging||o.button.addClass("loading")},success:function(a){"standard"===e?o.AjaxLoadMore.success(a,!1):"totalpages"===e&&o.paging&&o.nextpage?t.isFunction(t.fn.almBuildPagination)&&t.fn.almBuildPagination(a,o):"totalposts"===e&&o.paging&&t.isFunction(t.fn.almBuildPagination)&&t.fn.almBuildPagination(a,o)},error:function(t,a,e){o.AjaxLoadMore.error(t,a,e)}})},o.paging&&(o.nextpage?o.AjaxLoadMore.ajax("totalpages"):o.AjaxLoadMore.ajax("totalposts")),o.AjaxLoadMore.success=function(a,e){o.previous_post&&o.AjaxLoadMore.getPreviousPost();var n,r,s;if(e?n=a:(n=a.html,r=a.meta,o.posts=o.posts+r.postcount,s=r.postcount,o.totalposts=r.totalposts,"true"===o.preloaded&&(o.totalposts=o.totalposts-o.preloaded_amount)),o.data=t(n),e&&(s=o.data.length),o.init&&(o.paging?s>0&&(o.el=t('<div class="alm-reveal'+o.tcc+'"/>'),o.el.append('<div class="alm-paging-content"></div><div class="alm-paging-loading"></div>'),t(".alm-paging-content",o.el).append(o.data).hide(),o.content.append(o.el),o.content.parent().removeClass("loading"),o.AjaxLoadMore.resetBtnText(),t(".alm-paging-content",o.el).fadeIn(o.speed,"alm_easeInOutQuad",function(){var a=parseInt(o.content.css("padding-top")),e=parseInt(o.content.css("padding-bottom"));o.content.css("height",o.el.height()+a+e+"px"),t.isFunction(t.fn.almFadePageControls)&&t.fn.almFadePageControls(o.btnWrap)})):o.button.html(o.button_label),0===s&&t.isFunction(t.fn.almEmpty)&&t.fn.almEmpty(o),o.isPaged&&(o.posts_per_page=o.users?o.content.attr("data-users-per-page"):o.content.attr("data-posts-per-page"),o.start_page&&(o.page=o.start_page-1),o.filters&&o.filters_startpage&&(o.page=o.filters_startpage-1,o.posts_per_page=o.content.attr("data-posts-per-page")))),s>0){if(o.paging)o.init?(o.container.removeClass("alm-loading"),o.AjaxLoadMore.triggerAddons(o)):t(".alm-paging-content",o.el).html("").append(o.data).almWaitForImages().done(function(){t(".alm-paging-loading",o.el).fadeOut(o.speed),t.isFunction(t.fn.almOnPagingComplete)&&t.fn.almOnPagingComplete(o),o.container.removeClass("alm-loading"),o.AjaxLoadMore.triggerAddons(o)});else{if(o.previous_post)o.el=t('<div class="alm-reveal alm-previous-post post-'+o.previous_post_id+'" data-id="'+o.previous_post_id+'" data-title="'+o.previous_post_title+'" data-url="'+o.previous_post_permalink+'" data-page="'+o.page+'"/>'),o.el.append(o.data).hide();else if(o.transition_container){var i=void 0,l=window.location.search;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 c=0;c<s;c+=p)d.push(o.data.slice(c,p+c));o.el=o.content;for(var g=0;g<d.length;g++){var _="true"===o.preloaded?1:0,u=void 0;g>0||"true"===o.preloaded?(i=g+1+_,u=t("default"===o.permalink?'<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+o.search_value+"&paged="+i+'" data-page="'+i+'" />':'<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+"page/"+i+o.trailing_slash+o.search_value+'" data-page="'+i+'" />')):u=t('<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+o.search_value+'" data-page="1" />'),u.append(d[g]),u=t(u),o.el.append(u).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'+o.tcc+'" data-url="'+o.canonical_url+o.search_value+"&paged="+i+'" data-page="'+i+'" />'):o.el=t('<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+"page/"+i+o.trailing_slash+o.search_value+'" data-page="'+i+'" />'):o.filters?o.el=t('<div class="alm-reveal alm-filters'+o.tcc+'" data-url="'+o.canonical_url+l+'" data-page="'+i+'" />'):o.el=t('<div class="alm-reveal'+o.tcc+'" />')}else o.filters?o.el=t('<div class="alm-reveal alm-filters'+o.tcc+'" data-url="'+o.canonical_url+l+'" data-page="'+(o.page+1)+'" />'):o.seo?o.el=t('<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+o.search_value+'" data-page="1" />'):o.el=t('<div class="alm-reveal'+o.tcc+'" />');o.el.append(o.data).hide()}}else o.data.hide(),o.el=o.data;("masonry"!==o.transition||o.init&&!o.is_masonry_preloaded)&&o.content.append(o.el),"fade"===o.transition?"true"===o.images_loaded?o.el.almWaitForImages().done(function(){o.el.fadeIn(o.speed,"alm_easeInOutQuad",function(){o.loading=!1,o.paging||(o.button.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText()),o.container.removeClass("alm-loading"),o.AjaxLoadMore.triggerAddons(o)})}):o.el.fadeIn(o.speed,"alm_easeInOutQuad",function(){o.loading=!1,o.paging||(o.button.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText()),o.container.removeClass("alm-loading"),o.AjaxLoadMore.triggerAddons(o)}):"masonry"===o.transition?(almMasonry(o.masonry_wrap,o.el,o.masonry_selector,o.masonry_animation,o.masonry_horizontalorder,o.speed,o.masonry_init,o.init,alm_is_filtering),o.masonry_init=!1,o.paging||(o.button.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText()),o.loading=!1,o.container.removeClass("alm-loading"),o.AjaxLoadMore.triggerAddons(o)):"none"===o.transition?("true"===o.images_loaded?o.el.almWaitForImages().done(function(){o.el.show(),o.AjaxLoadMore.triggerAddons(o)}):(o.el.show(),o.AjaxLoadMore.triggerAddons(o)),o.loading=!1,o.paging||(o.button.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText())):"true"===o.images_loaded?o.el.almWaitForImages().done(function(){o.el.slideDown(o.speed,"alm_easeInOutQuad",function(){o.loading=!1,o.paging||(o.button.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText()),o.container.removeClass("alm-loading"),o.AjaxLoadMore.triggerAddons(o)})}):o.el.slideDown(o.speed,"alm_easeInOutQuad",function(){o.loading=!1,o.paging||(o.button.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText()),o.container.removeClass("alm-loading"),o.AjaxLoadMore.triggerAddons(o)})}t.isFunction(t.fn.almComplete)&&("true"===o.images_loaded?o.el.almWaitForImages().done(function(){t.fn.almComplete(o)}):t.fn.almComplete(o)),o.cache?s<o.posts_per_page&&o.AjaxLoadMore.triggerDone():o.posts>=o.totalposts&&!o.previous_post&&o.AjaxLoadMore.triggerDone()}else o.paging||(o.button.delay(o.speed).removeClass("loading").addClass("done"),o.AjaxLoadMore.resetBtnText()),o.AjaxLoadMore.triggerDone();if(void 0!==o.destroy_after&&""!==o.destroy_after){var f=o.page+1;o.preload&&f++,f==o.destroy_after&&(o.disable_ajax=!0,o.paging||(o.button.delay(o.speed).fadeOut(o.speed),t.isFunction(t.fn.almDestroyed)&&t.fn.almDestroyed(o)))}alm_is_filtering=!1,o.init=!1},o.AjaxLoadMore.pagingPreloadedInit=function(a){o.el=t('<div class="alm-reveal'+o.tcc+'"/>'),o.el.append('<div class="alm-paging-content">'+a+'</div><div class="alm-paging-loading"></div>'),o.content.append(o.el),o.content.parent().removeClass("loading"),o.AjaxLoadMore.resetBtnText();var e=parseInt(o.content.css("padding-top")),n=parseInt(o.content.css("padding-bottom"));o.content.css("height",o.el.height()+e+n+"px"),t.isFunction(t.fn.almFadePageControls)&&t.fn.almFadePageControls(o.btnWrap)},o.AjaxLoadMore.pagingNextpageInit=function(a){o.el=t('<div class="alm-reveal alm-nextpage"/>'),o.el.append('<div class="alm-paging-content">'+a+'</div><div class="alm-paging-loading"></div>'),o.el.appendTo(o.content),o.content.parent().removeClass("loading"),o.AjaxLoadMore.resetBtnText();var e=parseInt(o.content.css("padding-top")),n=parseInt(o.content.css("padding-bottom"));o.content.css("height",o.el.height()+e+n+"px"),t.isFunction(t.fn.almSetNextPageVars)&&t.fn.almSetNextPageVars(o),setTimeout(function(){t.isFunction(t.fn.almFadePageControls)&&t.fn.almFadePageControls(o.btnWrap),t.isFunction(t.fn.almOnWindowResize)&&t.fn.almOnWindowResize(o)},200)},o.fetchingPreviousPost=!1,o.AjaxLoadMore.getPreviousPost=function(){o.fetchingPreviousPost=!0;var a={action:"alm_query_previous_post",id:o.previous_post_id,taxonomy:o.previous_post_taxonomy,excluded_terms:o.previous_post_excluded_terms};t.ajax({type:"GET",dataType:"JSON",url:alm_localize.ajaxurl,data:a,success:function(a){a.has_previous_post?(o.content.attr("data-previous-post-id",a.prev_id),o.previous_post_id=a.prev_id,o.previous_post_permalink=a.prev_permalink,o.previous_post_title=a.prev_title,o.previous_post_slug=a.prev_slug):a.has_previous_post||o.AjaxLoadMore.triggerDone(),t.isFunction(t.fn.almSetPreviousPost)&&t.fn.almSetPreviousPost(o,a.current_id,a.permalink,a.title),o.fetchingPreviousPost=!1},error:function(t,a,e){o.AjaxLoadMore.error(t,a,e),o.fetchingPreviousPost=!1}})},o.AjaxLoadMore.triggerAddons=function(a){t.isFunction(t.fn.almSEO)&&a.seo&&t.fn.almSEO(a,!1),t.isFunction(t.fn.almSetNextPage)&&t.fn.almSetNextPage(a)},o.AjaxLoadMore.triggerDone=function(){o.loading=!1,o.finished=!0,o.paging||o.button.addClass("done"),t.isFunction(t.fn.almDone)&&setTimeout(function(){t.fn.almDone(o)},o.speed+10)},o.AjaxLoadMore.resetBtnText=function(){!1!==o.button_loading_label&&(o.paging||o.button.html(o.button_label))},o.AjaxLoadMore.error=function(t,a,e){o.loading=!1,o.paging||(o.button.removeClass("loading"),o.AjaxLoadMore.resetBtnText()),console.log(e)},o.paging||o.fetchingPreviousPost||(o.button.unbind("click"),o.button.on("click",function(a){a.preventDefault(),"true"===o.pause&&(o.pause=!1,o.pause_override=!1,o.AjaxLoadMore.loadPosts()),o.loading||o.finished||t(this).hasClass("done")||(o.loading=!0,o.page++,o.AjaxLoadMore.loadPosts()),o.filters&&"function"==typeof almFiltersPaged&&almFiltersPaged(o)})),o.paging&&(o.window.unbind("resizeEnd"),o.window.bind("resizeEnd",function(){t.isFunction(t.fn.almOnWindowResize)&&t.fn.almOnWindowResize(o)}),o.window.unbind("resize"),o.window.bind("resize",function(){this.resizeTO&&clearTimeout(this.resizeTO),this.resizeTO=setTimeout(function(){t(this).trigger("resizeEnd")},250)})),o.AjaxLoadMore.isVisible=function(){return o.visible=!1,o.el.is(":visible")&&(o.visible=!0),o.visible},o.scroll&&!o.paging&&(""!==o.scroll_container&&(o.window=t(o.scroll_container)),o.window.bind("scroll touchstart",function(){if(o.AjaxLoadMore.isVisible()&&!o.fetchingPreviousPost){var t=o.button.offset().top,a=Math.round(t-(o.window.height()-o.scroll_distance)),e=o.window.scrollTop()>=a;""!==o.scroll_container&&(e=o.button.offset().top-(o.window.height()-o.scroll_distance)<o.window.offset().top),!o.loading&&!o.finished&&e&&o.page<o.max_pages-1&&o.proceed&&"true"===o.pause&&"true"===o.pause_override?o.button.trigger("click"):!o.loading&&!o.finished&&e&&o.page<o.max_pages-1&&o.proceed&&"true"!==o.pause&&(o.page++,o.AjaxLoadMore.loadPosts())}})),o.AjaxLoadMore.init=function(){o.paging||o.previous_post||(o.disable_ajax?(o.finished=!0,o.button.addClass("done")):"true"===o.pause?(o.button.html(o.button_label),o.loading=!1):o.AjaxLoadMore.loadPosts()),o.previous_post&&(o.AjaxLoadMore.getPreviousPost(),o.loading=!1),"true"===o.preloaded&&o.seo&&!o.paging&&setTimeout(function(){t.isFunction(t.fn.almSEO)&&o.start_page<1&&t.fn.almSEO(o,!0)},300),o.nextpage&&t(".alm-nextpage").length>1&&t(".alm-nextpage").length==t(".alm-nextpage").eq(0).data("total-pages")&&o.AjaxLoadMore.triggerDone(),o.window.bind("load",function(){o.is_masonry_preloaded&&(almMasonry(o.masonry_wrap,o.el,o.masonry_selector,o.masonry_animation,o.masonry_horizontalorder,o.speed,o.masonry_init,!0,!1),o.masonry_init=!1)})},o.AjaxLoadMore.init(),setTimeout(function(){o.proceed=!0},300),t.fn.almUpdateCurrentPage=function(a,e,o){o.page=a,o.nextpage&&!o.paging&&(o.page=o.page-1);var n="";o.paging_init&&"true"===o.preloaded?(n=t(".alm-preloaded .alm-reveal",o.el).html(),t(".alm-preloaded",o.el).remove(),o.preloaded_amount=0,o.AjaxLoadMore.pagingPreloadedInit(n),o.paging_init=!1,o.init=!1):o.paging_init&&o.nextpage?(n=t(".alm-nextpage",o.el).html(),t(".alm-nextpage",o.el).remove(),o.AjaxLoadMore.pagingNextpageInit(n),o.paging_init=!1,o.init=!1):o.AjaxLoadMore.loadPosts()},t.fn.almGetParentContainer=function(){return o.el.closest("#ajax-load-more")},t.fn.almGetObj=function(){return o},t.fn.almTriggerClick=function(){o.button.trigger("click")},t.easing.alm_easeInOutQuad=function(t,a,e,o,n){return(a/=n/2)<1?o/2*a*a+e:-o/2*(--a*(a-2)-1)+e}},t.fn.ajaxloadmore=function(){return this.each(function(a){new t.ajaxloadmore(t(this),a)})};var a=document.querySelectorAll(".ajax-load-more-wrap");a.length&&[].concat(_toConsumableArray(a)).forEach(function(a,e){new t.ajaxloadmore(t(a),e)})}(jQuery);var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"===("undefined"==typeof exports?"undefined":_typeof(exports))?module.exports=t(require("jquery")):t(jQuery)}(function(t){t.almWaitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage","cursor"],hasImageAttributes:["srcset"]},t.expr[":"]["has-src"]=function(a){return t(a).is('img[src][src!=""]')},t.expr[":"].uncached=function(a){return!!t(a).is(":has-src")&&!a.complete},t.fn.almWaitForImages=function(){var a,e,o,n=0,r=0,s=t.Deferred();if(t.isPlainObject(arguments[0])?(o=arguments[0].waitForAll,e=arguments[0].each,a=arguments[0].finished):1===arguments.length&&"boolean"===t.type(arguments[0])?o=arguments[0]:(a=arguments[0],e=arguments[1],o=arguments[2]),a=a||t.noop,e=e||t.noop,o=!!o,!t.isFunction(a)||!t.isFunction(e))throw new TypeError("An invalid callback was supplied.");return this.each(function(){var i=t(this),l=[],d=t.almWaitForImages.hasImageProperties||[],p=t.almWaitForImages.hasImageAttributes||[],c=/url\(\s*(['"]?)(.*?)\1\s*\)/g;o?i.find("*").addBack().each(function(){var a=t(this);a.is("img:has-src")&&l.push({src:a.attr("src"),element:a[0]}),t.each(d,function(t,e){var o,n=a.css(e);if(!n)return!0;for(;o=c.exec(n);)l.push({src:o[2],element:a[0]})}),t.each(p,function(e,o){var n,r=a.attr(o);if(!r)return!0;n=r.split(","),t.each(n,function(e,o){o=t.trim(o).split(" ")[0],l.push({src:o,element:a[0]})})})}):i.find("img:has-src").each(function(){l.push({src:this.src,element:this})}),n=l.length,r=0,0===n&&(a.call(i[0]),s.resolveWith(i[0])),t.each(l,function(o,l){var d=new Image,p="load.almWaitForImages error.almWaitForImages";t(d).one(p,function o(d){var c=[r,n,"load"==d.type];if(r++,e.apply(l.element,c),s.notifyWith(l.element,c),t(this).off(p,o),r==n)return a.call(i[0]),s.resolveWith(i[0]),!1}),d.src=l.src})}),s.promise()}});
|
core/src/js/ajax-load-more.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* http://wordpress.org/plugins/ajax-load-more/
|
4 |
* https://connekthq.com/plugins/ajax-load-more/
|
5 |
*
|
6 |
-
* Copyright
|
7 |
* Free to use under the GPLv2 license.
|
8 |
* http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
*
|
@@ -11,15 +11,13 @@
|
|
11 |
* Twitter: @KaptonKaos, @ajaxloadmore, @connekthq
|
12 |
*/
|
13 |
|
14 |
-
(function ($) {
|
15 |
-
"use strict";
|
16 |
|
17 |
$.ajaxloadmore = function (el, e) {
|
18 |
|
19 |
-
//Prevent loading of unnessasry posts - move user to top of page
|
20 |
-
if(alm_localize.scrolltop === 'true'){
|
21 |
-
$(window).scrollTop(0);
|
22 |
-
}
|
23 |
|
24 |
//Set ALM Variables
|
25 |
let alm = this;
|
@@ -33,6 +31,7 @@
|
|
33 |
alm.init = true;
|
34 |
alm.loading = true;
|
35 |
alm.finished = false;
|
|
|
36 |
alm.el = el;
|
37 |
alm.container = el;
|
38 |
alm.container.addClass('alm-'+e).attr('data-alm-id', e); // Add unique classname and data id
|
@@ -42,7 +41,6 @@
|
|
42 |
alm.is_search = alm.el.attr('data-search');
|
43 |
alm.slug = alm.el.attr('data-slug');
|
44 |
alm.post_id = alm.el.attr('data-post-id');
|
45 |
-
alm.prefix = 'alm-';
|
46 |
|
47 |
alm.repeater = alm.content.attr('data-repeater'); // Repeaters
|
48 |
alm.theme_repeater = alm.content.attr('data-theme-repeater');
|
@@ -53,9 +51,11 @@
|
|
53 |
alm.btnWrap = $('.alm-btn-wrap', alm.container);
|
54 |
alm.button_label = alm.content.attr('data-button-label');
|
55 |
alm.button_loading_label = alm.content.attr('data-button-loading-label');
|
56 |
-
alm.scroll_distance =
|
|
|
57 |
alm.scroll_container = alm.content.attr('data-scroll-container');
|
58 |
-
alm.max_pages =
|
|
|
59 |
alm.pause_override = alm.content.attr('data-pause-override'); // true | false
|
60 |
alm.pause = alm.content.attr('data-pause'); // true | false
|
61 |
alm.transition = alm.content.attr('data-transition'); // Transition
|
@@ -70,9 +70,9 @@
|
|
70 |
alm.offset = alm.content.attr('data-offset');
|
71 |
|
72 |
alm.cache = alm.content.attr('data-cache'); // Cache add-on
|
73 |
-
alm.cache_id = alm.content.attr('data-cache-id');
|
74 |
-
alm.cache_path = alm.content.attr('data-cache-path');
|
75 |
-
alm.cache_logged_in = alm.content.attr('data-cache-logged-in');
|
76 |
|
77 |
alm.cta = alm.content.attr('data-cta'); // CTA add-on
|
78 |
alm.cta_position = alm.content.attr('data-cta-position');
|
@@ -80,33 +80,36 @@
|
|
80 |
alm.cta_theme_repeater = alm.content.attr('data-cta-theme-repeater');
|
81 |
|
82 |
alm.acf = alm.content.attr('data-acf'); // ACF add-on
|
83 |
-
alm.acf_field_type = alm.content.attr('data-acf-field-type');
|
84 |
-
alm.acf_field_name = alm.content.attr('data-acf-field-name');
|
85 |
-
alm.acf_post_id = alm.content.attr('data-acf-post-id');
|
86 |
|
87 |
alm.nextpage = alm.content.attr('data-nextpage'); // Nextpage add-on
|
88 |
-
alm.nextpage_urls = alm.content.attr('data-nextpage-urls');
|
89 |
-
alm.nextpage_scroll = alm.content.attr('data-nextpage-scroll');
|
90 |
-
alm.nextpage_pageviews = alm.content.attr('data-nextpage-pageviews');
|
91 |
-
alm.nextpage_post_id = alm.content.attr('data-nextpage-post-id');
|
92 |
-
alm.nextpage_startpage = alm.content.attr('data-nextpage-startpage');
|
93 |
|
94 |
alm.previous_post = alm.content.attr('data-previous-post'); // Previous Post add-on
|
95 |
-
alm.previous_post_id = alm.content.attr('data-previous-post-id');
|
96 |
-
alm.previous_post_taxonomy = alm.content.attr('data-previous-post-taxonomy');
|
97 |
-
alm.previous_post_excluded_terms = alm.content.attr('data-previous-post-excluded-terms');
|
98 |
|
99 |
-
alm.comments = alm.content.attr('data-comments'); //
|
100 |
-
if(alm.comments === 'true'){
|
|
|
101 |
alm.content = $('.alm-comments', alm.container);
|
102 |
}
|
103 |
-
alm.comments_post_id = alm.content.attr('data-comments_post_id');
|
104 |
alm.comments_per_page = alm.content.attr('data-comments_per_page');
|
105 |
alm.comments_type = alm.content.attr('data-comments_type');
|
106 |
alm.comments_style = alm.content.attr('data-comments_style');
|
107 |
alm.comments_template = alm.content.attr('data-comments_template');
|
108 |
alm.comments_callback = alm.content.attr('data-comments_callback');
|
109 |
|
|
|
|
|
110 |
alm.restapi = alm.content.attr('data-restapi');
|
111 |
alm.restapi_base_url = alm.content.attr('data-restapi-base-url');
|
112 |
alm.restapi_namespace = alm.content.attr('data-restapi-namespace');
|
@@ -114,23 +117,51 @@
|
|
114 |
alm.restapi_template_id = alm.content.attr('data-restapi-template-id');
|
115 |
alm.restapi_debug = alm.content.attr('data-restapi-debug');
|
116 |
|
117 |
-
alm.seo = alm.content.attr('data-seo'); //
|
118 |
|
119 |
-
alm.preloaded = alm.content.attr('data-preloaded'); //
|
120 |
-
alm.preloaded_amount = alm.content.attr('data-preloaded-amount');
|
121 |
|
122 |
-
alm.paging = alm.content.attr('data-paging'); //
|
123 |
-
alm.paging_controls = alm.content.attr('data-paging-controls');
|
124 |
-
alm.paging_show_at_most = alm.content.attr('data-paging-show-at-most');
|
125 |
-
alm.paging_classes = alm.content.attr('data-paging-classes');
|
126 |
-
alm.paging_init = true;
|
127 |
|
128 |
alm.users = (alm.content.attr('data-users') === 'true') ? true : false; // Users add-on
|
129 |
-
if(alm.users){
|
130 |
-
// Override paging params for users
|
131 |
alm.orginal_posts_per_page = alm.content.attr('data-users-per-page');
|
132 |
alm.posts_per_page = alm.content.attr('data-users-per-page');
|
133 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
|
135 |
|
136 |
/* REST API */
|
@@ -151,17 +182,20 @@
|
|
151 |
/* Paging */
|
152 |
if(alm.paging === 'true'){
|
153 |
alm.paging = true;
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
|
|
|
|
|
|
|
|
158 |
alm.pause = true;
|
159 |
-
}
|
|
|
160 |
}else{
|
161 |
alm.paging = false;
|
162 |
-
}
|
163 |
-
|
164 |
-
alm.paging_controls = (alm.paging_controls === 'true') ? true : false;
|
165 |
/* End Paging */
|
166 |
|
167 |
|
@@ -221,9 +255,7 @@
|
|
221 |
alm.seo_scroll_speed = alm.content.attr('data-seo-scroll-speed');
|
222 |
alm.seo_scrolltop = alm.content.attr('data-seo-scrolltop');
|
223 |
alm.seo_controls = alm.content.attr('data-seo-controls');
|
224 |
-
|
225 |
alm.isPaged = false;
|
226 |
-
|
227 |
if (alm.start_page > 1) {
|
228 |
alm.isPaged = true; // Is this a $paged page > 1 ?
|
229 |
alm.posts_per_page = alm.start_page * alm.posts_per_page;
|
@@ -335,7 +367,7 @@
|
|
335 |
alm.scroll_container = (alm.scroll_container === undefined) ? '' : alm.scroll_container;
|
336 |
|
337 |
/* Transition */
|
338 |
-
alm.transition = (alm.transition === undefined) ? '
|
339 |
|
340 |
/* Transition Container Class */
|
341 |
alm.tcc = (alm.tcc === undefined) ? '' : alm.tcc;
|
@@ -343,6 +375,7 @@
|
|
343 |
/* Masonry */
|
344 |
alm.is_masonry_preloaded = false;
|
345 |
if(alm.transition === 'masonry'){
|
|
|
346 |
alm.masonry_selector = alm.content.attr('data-masonry-selector');
|
347 |
alm.masonry_animation = alm.content.attr('data-masonry-animation');
|
348 |
alm.masonry_horizontalorder = alm.content.attr('data-masonry-horizontalorder');
|
@@ -782,7 +815,7 @@
|
|
782 |
alm.data = $(html); // data converted to an object
|
783 |
|
784 |
if(is_cache){ // If cache, get the length of the data object
|
785 |
-
total = alm.data.length;
|
786 |
}
|
787 |
|
788 |
// First Run
|
@@ -823,13 +856,27 @@
|
|
823 |
|
824 |
// isPaged
|
825 |
if(alm.isPaged){
|
826 |
-
|
827 |
-
|
828 |
-
|
829 |
-
|
830 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
831 |
}
|
832 |
-
alm.page = alm.start_page - 1; // Set our new page #
|
833 |
}
|
834 |
|
835 |
}
|
@@ -845,7 +892,9 @@
|
|
845 |
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+'"/>');
|
846 |
alm.el.append(alm.data).hide();
|
847 |
|
848 |
-
}
|
|
|
|
|
849 |
|
850 |
if(!alm.transition_container){ // No transition container
|
851 |
|
@@ -854,39 +903,43 @@
|
|
854 |
|
855 |
} else { // Standard container
|
856 |
|
857 |
-
|
|
|
858 |
|
859 |
// SEO
|
860 |
if (alm.init && alm.start_page > 1){
|
861 |
// loop through items and break into separate alm-reveal divs for paging
|
862 |
|
863 |
-
|
864 |
-
|
865 |
|
866 |
if(alm.cta === 'true'){
|
867 |
// If CTA, +1 to posts_per_page to offset the CTA template and correct the display
|
868 |
posts_per_page = posts_per_page + 1;
|
869 |
}
|
870 |
|
871 |
-
|
872 |
for (var i = 0; i < total; i += posts_per_page) {
|
873 |
seo_data.push(alm.data.slice(i, posts_per_page + i));
|
874 |
}
|
875 |
|
876 |
alm.el = alm.content; // Set alm.el to be alm-listing div
|
|
|
877 |
for (var k = 0; k < seo_data.length; k++){
|
878 |
|
879 |
-
|
880 |
-
|
881 |
|
882 |
-
if(k > 0 || alm.preloaded === 'true'){
|
|
|
883 |
pagenum = (k + 1 + p);
|
884 |
if(alm.permalink === 'default'){
|
885 |
div = $('<div class="alm-reveal alm-seo'+alm.tcc+'" data-url="'+alm.canonical_url+''+ alm.search_value +'&paged='+ pagenum+'" data-page="'+ pagenum +'" />');
|
886 |
}else{
|
887 |
div = $('<div class="alm-reveal alm-seo'+alm.tcc+'" data-url="'+alm.canonical_url+'page/'+ pagenum + alm.trailing_slash + alm.search_value +'" data-page="'+ pagenum +'" />');
|
888 |
}
|
889 |
-
}else{
|
|
|
890 |
div = $('<div class="alm-reveal alm-seo'+alm.tcc+'" data-url="'+alm.canonical_url+''+ alm.search_value +'" data-page="1" />');
|
891 |
}
|
892 |
|
@@ -899,26 +952,43 @@
|
|
899 |
// End SEO -- /
|
900 |
|
901 |
else {
|
902 |
-
// If is SEO and paged
|
903 |
if(alm.seo && alm.page > 0 || alm.preloaded === 'true'){
|
904 |
|
905 |
-
|
906 |
|
907 |
// SEO [Paged]
|
908 |
pagenum = (alm.page + 1 + p2);
|
909 |
-
|
910 |
-
if(alm.seo){
|
|
|
911 |
if(alm.permalink === 'default'){
|
912 |
alm.el = $('<div class="alm-reveal alm-seo'+alm.tcc+'" data-url="'+alm.canonical_url+''+ alm.search_value +'&paged='+ pagenum+'" data-page="'+ pagenum +'" />');
|
913 |
-
}
|
|
|
914 |
alm.el = $('<div class="alm-reveal alm-seo'+alm.tcc+'" data-url="'+alm.canonical_url+'page/'+ pagenum + alm.trailing_slash + alm.search_value +'" data-page="'+ pagenum +'" />');
|
915 |
}
|
916 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
917 |
// Basic ALM
|
918 |
alm.el = $('<div class="alm-reveal'+alm.tcc+'" />');
|
919 |
}
|
920 |
|
921 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
922 |
|
923 |
if(alm.seo){
|
924 |
// SEO [Page 1]
|
@@ -967,10 +1037,10 @@
|
|
967 |
});
|
968 |
}
|
969 |
|
970 |
-
}
|
|
|
971 |
|
972 |
-
almMasonry(alm.masonry_wrap, alm.el, alm.masonry_selector, alm.masonry_animation, alm.masonry_horizontalorder, alm.speed, alm.init, alm_is_filtering);
|
973 |
-
|
974 |
|
975 |
if(!alm.paging){
|
976 |
alm.button.delay(alm.speed).removeClass('loading');
|
@@ -980,7 +1050,8 @@
|
|
980 |
alm.container.removeClass('alm-loading');
|
981 |
alm.AjaxLoadMore.triggerAddons(alm);
|
982 |
|
983 |
-
}
|
|
|
984 |
if(alm.images_loaded === 'true'){
|
985 |
alm.el.almWaitForImages().done(function(){
|
986 |
alm.el.show();
|
@@ -996,7 +1067,8 @@
|
|
996 |
alm.AjaxLoadMore.resetBtnText();
|
997 |
}
|
998 |
|
999 |
-
}
|
|
|
1000 |
if(alm.images_loaded === 'true'){
|
1001 |
alm.el.almWaitForImages().done(function(){
|
1002 |
alm.el.slideDown(alm.speed, 'alm_easeInOutQuad', function () {
|
@@ -1217,9 +1289,9 @@
|
|
1217 |
error: function (jqXHR, textStatus, errorThrown) {
|
1218 |
alm.AjaxLoadMore.error(jqXHR, textStatus, errorThrown);
|
1219 |
alm.fetchingPreviousPost = false;
|
1220 |
-
}
|
1221 |
-
|
1222 |
});
|
|
|
1223 |
};
|
1224 |
|
1225 |
|
@@ -1267,13 +1339,11 @@
|
|
1267 |
* @since 2.8.4
|
1268 |
*/
|
1269 |
alm.AjaxLoadMore.resetBtnText = function(){
|
1270 |
-
|
1271 |
if(alm.button_loading_label !== false){ // Reset button text
|
1272 |
if(!alm.paging){
|
1273 |
alm.button.html(alm.button_label);
|
1274 |
}
|
1275 |
}
|
1276 |
-
|
1277 |
};
|
1278 |
|
1279 |
|
@@ -1300,7 +1370,7 @@
|
|
1300 |
* Load more button click event
|
1301 |
* @since 1.0.0
|
1302 |
*/
|
1303 |
-
|
1304 |
if(!alm.paging && !alm.fetchingPreviousPost){
|
1305 |
alm.button.unbind( "click" ); // Remove past event (when filtering data)
|
1306 |
alm.button.on('click', function (e) {
|
@@ -1315,6 +1385,11 @@
|
|
1315 |
alm.page++;
|
1316 |
alm.AjaxLoadMore.loadPosts();
|
1317 |
}
|
|
|
|
|
|
|
|
|
|
|
1318 |
});
|
1319 |
}
|
1320 |
|
@@ -1464,7 +1539,8 @@
|
|
1464 |
// Masonry + Preloaded
|
1465 |
alm.window.bind('load', function(){
|
1466 |
if(alm.is_masonry_preloaded){
|
1467 |
-
almMasonry(alm.masonry_wrap, alm.el, alm.masonry_selector, alm.masonry_animation, alm.masonry_horizontalorder, alm.speed, true, false);
|
|
|
1468 |
}
|
1469 |
});
|
1470 |
|
@@ -1609,15 +1685,6 @@
|
|
1609 |
new $.ajaxloadmore($(alm), e);
|
1610 |
});
|
1611 |
}
|
1612 |
-
|
1613 |
-
|
1614 |
-
|
1615 |
-
/*
|
1616 |
-
if ($(".ajax-load-more-wrap").length){
|
1617 |
-
$(".ajax-load-more-wrap").ajaxloadmore();
|
1618 |
-
}
|
1619 |
-
*/
|
1620 |
-
|
1621 |
|
1622 |
|
1623 |
})(jQuery);
|
3 |
* http://wordpress.org/plugins/ajax-load-more/
|
4 |
* https://connekthq.com/plugins/ajax-load-more/
|
5 |
*
|
6 |
+
* Copyright 2018 Connekt Media - https://connekthq.com
|
7 |
* Free to use under the GPLv2 license.
|
8 |
* http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
*
|
11 |
* Twitter: @KaptonKaos, @ajaxloadmore, @connekthq
|
12 |
*/
|
13 |
|
14 |
+
(function ($) {
|
15 |
+
"use strict";
|
16 |
|
17 |
$.ajaxloadmore = function (el, e) {
|
18 |
|
19 |
+
// Prevent loading of unnessasry posts - move user to top of page
|
20 |
+
if(alm_localize.scrolltop === 'true'){ $(window).scrollTop(0); }
|
|
|
|
|
21 |
|
22 |
//Set ALM Variables
|
23 |
let alm = this;
|
31 |
alm.init = true;
|
32 |
alm.loading = true;
|
33 |
alm.finished = false;
|
34 |
+
alm.prefix = 'alm-';
|
35 |
alm.el = el;
|
36 |
alm.container = el;
|
37 |
alm.container.addClass('alm-'+e).attr('data-alm-id', e); // Add unique classname and data id
|
41 |
alm.is_search = alm.el.attr('data-search');
|
42 |
alm.slug = alm.el.attr('data-slug');
|
43 |
alm.post_id = alm.el.attr('data-post-id');
|
|
|
44 |
|
45 |
alm.repeater = alm.content.attr('data-repeater'); // Repeaters
|
46 |
alm.theme_repeater = alm.content.attr('data-theme-repeater');
|
51 |
alm.btnWrap = $('.alm-btn-wrap', alm.container);
|
52 |
alm.button_label = alm.content.attr('data-button-label');
|
53 |
alm.button_loading_label = alm.content.attr('data-button-loading-label');
|
54 |
+
alm.scroll_distance = alm.content.attr('data-scroll-distance');
|
55 |
+
alm.scroll_distance = (alm.scroll_distance) ? parseInt(alm.scroll_distance) : 150;
|
56 |
alm.scroll_container = alm.content.attr('data-scroll-container');
|
57 |
+
alm.max_pages = alm.content.attr('data-max-pages');
|
58 |
+
alm.max_pages = (alm.max_pages) ? parseInt(alm.max_pages) : 0;
|
59 |
alm.pause_override = alm.content.attr('data-pause-override'); // true | false
|
60 |
alm.pause = alm.content.attr('data-pause'); // true | false
|
61 |
alm.transition = alm.content.attr('data-transition'); // Transition
|
70 |
alm.offset = alm.content.attr('data-offset');
|
71 |
|
72 |
alm.cache = alm.content.attr('data-cache'); // Cache add-on
|
73 |
+
alm.cache_id = alm.content.attr('data-cache-id');
|
74 |
+
alm.cache_path = alm.content.attr('data-cache-path');
|
75 |
+
alm.cache_logged_in = alm.content.attr('data-cache-logged-in');
|
76 |
|
77 |
alm.cta = alm.content.attr('data-cta'); // CTA add-on
|
78 |
alm.cta_position = alm.content.attr('data-cta-position');
|
80 |
alm.cta_theme_repeater = alm.content.attr('data-cta-theme-repeater');
|
81 |
|
82 |
alm.acf = alm.content.attr('data-acf'); // ACF add-on
|
83 |
+
alm.acf_field_type = alm.content.attr('data-acf-field-type');
|
84 |
+
alm.acf_field_name = alm.content.attr('data-acf-field-name');
|
85 |
+
alm.acf_post_id = alm.content.attr('data-acf-post-id');
|
86 |
|
87 |
alm.nextpage = alm.content.attr('data-nextpage'); // Nextpage add-on
|
88 |
+
alm.nextpage_urls = alm.content.attr('data-nextpage-urls');
|
89 |
+
alm.nextpage_scroll = alm.content.attr('data-nextpage-scroll');
|
90 |
+
alm.nextpage_pageviews = alm.content.attr('data-nextpage-pageviews');
|
91 |
+
alm.nextpage_post_id = alm.content.attr('data-nextpage-post-id');
|
92 |
+
alm.nextpage_startpage = alm.content.attr('data-nextpage-startpage');
|
93 |
|
94 |
alm.previous_post = alm.content.attr('data-previous-post'); // Previous Post add-on
|
95 |
+
alm.previous_post_id = alm.content.attr('data-previous-post-id');
|
96 |
+
alm.previous_post_taxonomy = alm.content.attr('data-previous-post-taxonomy');
|
97 |
+
alm.previous_post_excluded_terms = alm.content.attr('data-previous-post-excluded-terms');
|
98 |
|
99 |
+
alm.comments = alm.content.attr('data-comments'); // Comments add-on
|
100 |
+
if(alm.comments === 'true'){
|
101 |
+
// if comments, set alm.content .alm-comments wrapper
|
102 |
alm.content = $('.alm-comments', alm.container);
|
103 |
}
|
104 |
+
alm.comments_post_id = alm.content.attr('data-comments_post_id');
|
105 |
alm.comments_per_page = alm.content.attr('data-comments_per_page');
|
106 |
alm.comments_type = alm.content.attr('data-comments_type');
|
107 |
alm.comments_style = alm.content.attr('data-comments_style');
|
108 |
alm.comments_template = alm.content.attr('data-comments_template');
|
109 |
alm.comments_callback = alm.content.attr('data-comments_callback');
|
110 |
|
111 |
+
alm.filters = alm.content.attr('data-filters');
|
112 |
+
|
113 |
alm.restapi = alm.content.attr('data-restapi');
|
114 |
alm.restapi_base_url = alm.content.attr('data-restapi-base-url');
|
115 |
alm.restapi_namespace = alm.content.attr('data-restapi-namespace');
|
117 |
alm.restapi_template_id = alm.content.attr('data-restapi-template-id');
|
118 |
alm.restapi_debug = alm.content.attr('data-restapi-debug');
|
119 |
|
120 |
+
alm.seo = alm.content.attr('data-seo'); // SEO add-on
|
121 |
|
122 |
+
alm.preloaded = alm.content.attr('data-preloaded'); // Preloaded add-on
|
123 |
+
alm.preloaded_amount = alm.content.attr('data-preloaded-amount');
|
124 |
|
125 |
+
alm.paging = alm.content.attr('data-paging'); // Paging add-on
|
|
|
|
|
|
|
|
|
126 |
|
127 |
alm.users = (alm.content.attr('data-users') === 'true') ? true : false; // Users add-on
|
128 |
+
if(alm.users){ // Override paging params for users
|
|
|
129 |
alm.orginal_posts_per_page = alm.content.attr('data-users-per-page');
|
130 |
alm.posts_per_page = alm.content.attr('data-users-per-page');
|
131 |
}
|
132 |
+
|
133 |
+
|
134 |
+
/* Filters */
|
135 |
+
if(alm.filters === 'true'){
|
136 |
+
alm.filters = true;
|
137 |
+
|
138 |
+
alm.filters_analtyics = alm.content.attr('data-filters-analtyics');
|
139 |
+
alm.filters_debug = alm.content.attr('data-filters-debug');
|
140 |
+
|
141 |
+
// Check for startpage param
|
142 |
+
/*
|
143 |
+
alm.filters_startpage = alm.content.attr('data-filters-startpage');
|
144 |
+
alm.filters_startpage = parseInt(alm.filters_startpage);
|
145 |
+
alm.page = alm.filters_startpage;
|
146 |
+
*/
|
147 |
+
|
148 |
+
// Get querystring value
|
149 |
+
alm.filters_startpage = 0;
|
150 |
+
let page = almGetParameterByName('pg');
|
151 |
+
if(page !== null){
|
152 |
+
alm.filters_startpage = parseInt(page);
|
153 |
+
alm.page = alm.filters_startpage;
|
154 |
+
}
|
155 |
+
|
156 |
+
alm.isPaged = false;
|
157 |
+
if (alm.filters_startpage > 0) {
|
158 |
+
alm.isPaged = true;
|
159 |
+
alm.page = alm.filters_startpage - 1;
|
160 |
+
}
|
161 |
+
}else{
|
162 |
+
alm.filters = false;
|
163 |
+
}
|
164 |
+
/* End Filters */
|
165 |
|
166 |
|
167 |
/* REST API */
|
182 |
/* Paging */
|
183 |
if(alm.paging === 'true'){
|
184 |
alm.paging = true;
|
185 |
+
alm.paging_controls = alm.content.attr('data-paging-controls') ? true : false;
|
186 |
+
alm.paging_show_at_most = alm.content.attr('data-paging-show-at-most');
|
187 |
+
alm.paging_classes = alm.content.attr('data-paging-classes');
|
188 |
+
alm.paging_init = true;
|
189 |
+
alm.paging_show_at_most = (alm.paging_show_at_most === undefined) ? 7 : alm.paging_show_at_most;
|
190 |
+
|
191 |
+
// If preloaded, pause ALM
|
192 |
+
if(alm.preloaded === 'true'){
|
193 |
alm.pause = true;
|
194 |
+
}
|
195 |
+
|
196 |
}else{
|
197 |
alm.paging = false;
|
198 |
+
}
|
|
|
|
|
199 |
/* End Paging */
|
200 |
|
201 |
|
255 |
alm.seo_scroll_speed = alm.content.attr('data-seo-scroll-speed');
|
256 |
alm.seo_scrolltop = alm.content.attr('data-seo-scrolltop');
|
257 |
alm.seo_controls = alm.content.attr('data-seo-controls');
|
|
|
258 |
alm.isPaged = false;
|
|
|
259 |
if (alm.start_page > 1) {
|
260 |
alm.isPaged = true; // Is this a $paged page > 1 ?
|
261 |
alm.posts_per_page = alm.start_page * alm.posts_per_page;
|
367 |
alm.scroll_container = (alm.scroll_container === undefined) ? '' : alm.scroll_container;
|
368 |
|
369 |
/* Transition */
|
370 |
+
alm.transition = (alm.transition === undefined) ? 'fade' : alm.transition;
|
371 |
|
372 |
/* Transition Container Class */
|
373 |
alm.tcc = (alm.tcc === undefined) ? '' : alm.tcc;
|
375 |
/* Masonry */
|
376 |
alm.is_masonry_preloaded = false;
|
377 |
if(alm.transition === 'masonry'){
|
378 |
+
alm.masonry_init = true;
|
379 |
alm.masonry_selector = alm.content.attr('data-masonry-selector');
|
380 |
alm.masonry_animation = alm.content.attr('data-masonry-animation');
|
381 |
alm.masonry_horizontalorder = alm.content.attr('data-masonry-horizontalorder');
|
815 |
alm.data = $(html); // data converted to an object
|
816 |
|
817 |
if(is_cache){ // If cache, get the length of the data object
|
818 |
+
total = alm.data.length;
|
819 |
}
|
820 |
|
821 |
// First Run
|
856 |
|
857 |
// isPaged
|
858 |
if(alm.isPaged){
|
859 |
+
|
860 |
+
// Reset the posts_per_page parameter
|
861 |
+
alm.posts_per_page = (alm.users) ? alm.content.attr('data-users-per-page') : alm.content.attr('data-posts-per-page');
|
862 |
+
|
863 |
+
// SEO add-on
|
864 |
+
if(alm.start_page){
|
865 |
+
// Set new page #
|
866 |
+
alm.page = alm.start_page - 1;
|
867 |
+
}
|
868 |
+
|
869 |
+
// Filters add-on
|
870 |
+
if(alm.filters){
|
871 |
+
|
872 |
+
if(alm.filters_startpage){
|
873 |
+
// Set new page #
|
874 |
+
alm.page = alm.filters_startpage - 1;
|
875 |
+
|
876 |
+
// Reset filters-startpage data attr after the first run
|
877 |
+
alm.posts_per_page = alm.content.attr('data-posts-per-page');
|
878 |
+
}
|
879 |
}
|
|
|
880 |
}
|
881 |
|
882 |
}
|
892 |
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+'"/>');
|
893 |
alm.el.append(alm.data).hide();
|
894 |
|
895 |
+
}
|
896 |
+
|
897 |
+
else {
|
898 |
|
899 |
if(!alm.transition_container){ // No transition container
|
900 |
|
903 |
|
904 |
} else { // Standard container
|
905 |
|
906 |
+
let pagenum;
|
907 |
+
let querystring = window.location.search;
|
908 |
|
909 |
// SEO
|
910 |
if (alm.init && alm.start_page > 1){
|
911 |
// loop through items and break into separate alm-reveal divs for paging
|
912 |
|
913 |
+
let seo_data = [];
|
914 |
+
let posts_per_page = parseInt(alm.posts_per_page);
|
915 |
|
916 |
if(alm.cta === 'true'){
|
917 |
// If CTA, +1 to posts_per_page to offset the CTA template and correct the display
|
918 |
posts_per_page = posts_per_page + 1;
|
919 |
}
|
920 |
|
921 |
+
let pages = Math.ceil(total/posts_per_page); // slice seo_data array into pages
|
922 |
for (var i = 0; i < total; i += posts_per_page) {
|
923 |
seo_data.push(alm.data.slice(i, posts_per_page + i));
|
924 |
}
|
925 |
|
926 |
alm.el = alm.content; // Set alm.el to be alm-listing div
|
927 |
+
|
928 |
for (var k = 0; k < seo_data.length; k++){
|
929 |
|
930 |
+
let p = (alm.preloaded === 'true') ? 1 : 0; // Add 1 page if items are preloaded.
|
931 |
+
let div;
|
932 |
|
933 |
+
if(k > 0 || alm.preloaded === 'true'){
|
934 |
+
// > Paged
|
935 |
pagenum = (k + 1 + p);
|
936 |
if(alm.permalink === 'default'){
|
937 |
div = $('<div class="alm-reveal alm-seo'+alm.tcc+'" data-url="'+alm.canonical_url+''+ alm.search_value +'&paged='+ pagenum+'" data-page="'+ pagenum +'" />');
|
938 |
}else{
|
939 |
div = $('<div class="alm-reveal alm-seo'+alm.tcc+'" data-url="'+alm.canonical_url+'page/'+ pagenum + alm.trailing_slash + alm.search_value +'" data-page="'+ pagenum +'" />');
|
940 |
}
|
941 |
+
}else{
|
942 |
+
// First Page
|
943 |
div = $('<div class="alm-reveal alm-seo'+alm.tcc+'" data-url="'+alm.canonical_url+''+ alm.search_value +'" data-page="1" />');
|
944 |
}
|
945 |
|
952 |
// End SEO -- /
|
953 |
|
954 |
else {
|
955 |
+
// If is SEO and paged OR Preloaded.
|
956 |
if(alm.seo && alm.page > 0 || alm.preloaded === 'true'){
|
957 |
|
958 |
+
let p2 = (alm.preloaded === 'true') ? 1 : 0; // Add 1 page if items are preloaded.
|
959 |
|
960 |
// SEO [Paged]
|
961 |
pagenum = (alm.page + 1 + p2);
|
962 |
+
|
963 |
+
if(alm.seo){
|
964 |
+
|
965 |
if(alm.permalink === 'default'){
|
966 |
alm.el = $('<div class="alm-reveal alm-seo'+alm.tcc+'" data-url="'+alm.canonical_url+''+ alm.search_value +'&paged='+ pagenum+'" data-page="'+ pagenum +'" />');
|
967 |
+
}
|
968 |
+
else{
|
969 |
alm.el = $('<div class="alm-reveal alm-seo'+alm.tcc+'" data-url="'+alm.canonical_url+'page/'+ pagenum + alm.trailing_slash + alm.search_value +'" data-page="'+ pagenum +'" />');
|
970 |
}
|
971 |
+
|
972 |
+
}
|
973 |
+
|
974 |
+
else if(alm.filters){
|
975 |
+
// Filters
|
976 |
+
alm.el = $('<div class="alm-reveal alm-filters'+alm.tcc+'" data-url="'+alm.canonical_url+''+ querystring +'" data-page="'+ (pagenum) +'" />');
|
977 |
+
}
|
978 |
+
|
979 |
+
else{
|
980 |
// Basic ALM
|
981 |
alm.el = $('<div class="alm-reveal'+alm.tcc+'" />');
|
982 |
}
|
983 |
|
984 |
+
}
|
985 |
+
|
986 |
+
else if(alm.filters){
|
987 |
+
// Filters
|
988 |
+
alm.el = $('<div class="alm-reveal alm-filters'+alm.tcc+'" data-url="'+alm.canonical_url+''+ querystring +'" data-page="'+ (alm.page + 1) +'" />');
|
989 |
+
}
|
990 |
+
|
991 |
+
else{
|
992 |
|
993 |
if(alm.seo){
|
994 |
// SEO [Page 1]
|
1037 |
});
|
1038 |
}
|
1039 |
|
1040 |
+
}
|
1041 |
+
else if(alm.transition === 'masonry') { // Masonry
|
1042 |
|
1043 |
+
almMasonry(alm.masonry_wrap, alm.el, alm.masonry_selector, alm.masonry_animation, alm.masonry_horizontalorder, alm.speed, alm.masonry_init, alm.init, alm_is_filtering); alm.masonry_init = false;
|
|
|
1044 |
|
1045 |
if(!alm.paging){
|
1046 |
alm.button.delay(alm.speed).removeClass('loading');
|
1050 |
alm.container.removeClass('alm-loading');
|
1051 |
alm.AjaxLoadMore.triggerAddons(alm);
|
1052 |
|
1053 |
+
}
|
1054 |
+
else if(alm.transition === 'none') { // None
|
1055 |
if(alm.images_loaded === 'true'){
|
1056 |
alm.el.almWaitForImages().done(function(){
|
1057 |
alm.el.show();
|
1067 |
alm.AjaxLoadMore.resetBtnText();
|
1068 |
}
|
1069 |
|
1070 |
+
}
|
1071 |
+
else { // Slide
|
1072 |
if(alm.images_loaded === 'true'){
|
1073 |
alm.el.almWaitForImages().done(function(){
|
1074 |
alm.el.slideDown(alm.speed, 'alm_easeInOutQuad', function () {
|
1289 |
error: function (jqXHR, textStatus, errorThrown) {
|
1290 |
alm.AjaxLoadMore.error(jqXHR, textStatus, errorThrown);
|
1291 |
alm.fetchingPreviousPost = false;
|
1292 |
+
}
|
|
|
1293 |
});
|
1294 |
+
|
1295 |
};
|
1296 |
|
1297 |
|
1339 |
* @since 2.8.4
|
1340 |
*/
|
1341 |
alm.AjaxLoadMore.resetBtnText = function(){
|
|
|
1342 |
if(alm.button_loading_label !== false){ // Reset button text
|
1343 |
if(!alm.paging){
|
1344 |
alm.button.html(alm.button_label);
|
1345 |
}
|
1346 |
}
|
|
|
1347 |
};
|
1348 |
|
1349 |
|
1370 |
* Load more button click event
|
1371 |
* @since 1.0.0
|
1372 |
*/
|
1373 |
+
|
1374 |
if(!alm.paging && !alm.fetchingPreviousPost){
|
1375 |
alm.button.unbind( "click" ); // Remove past event (when filtering data)
|
1376 |
alm.button.on('click', function (e) {
|
1385 |
alm.page++;
|
1386 |
alm.AjaxLoadMore.loadPosts();
|
1387 |
}
|
1388 |
+
|
1389 |
+
// call this function with each load more
|
1390 |
+
if(alm.filters && typeof almFiltersPaged === 'function'){
|
1391 |
+
almFiltersPaged(alm);
|
1392 |
+
}
|
1393 |
});
|
1394 |
}
|
1395 |
|
1539 |
// Masonry + Preloaded
|
1540 |
alm.window.bind('load', function(){
|
1541 |
if(alm.is_masonry_preloaded){
|
1542 |
+
almMasonry(alm.masonry_wrap, alm.el, alm.masonry_selector, alm.masonry_animation, alm.masonry_horizontalorder, alm.speed, alm.masonry_init, true, false);
|
1543 |
+
alm.masonry_init = false;
|
1544 |
}
|
1545 |
});
|
1546 |
|
1685 |
new $.ajaxloadmore($(alm), e);
|
1686 |
});
|
1687 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1688 |
|
1689 |
|
1690 |
})(jQuery);
|
core/src/js/helpers/helpers.js
CHANGED
@@ -74,4 +74,14 @@ if (!Array.from) {
|
|
74 |
return A;
|
75 |
};
|
76 |
}());
|
77 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
return A;
|
75 |
};
|
76 |
}());
|
77 |
+
}
|
78 |
+
|
79 |
+
let almGetParameterByName = function( name, url ) {
|
80 |
+
if (!url) url = window.location.href;
|
81 |
+
name = name.replace(/[\[\]]/g, "\\$&");
|
82 |
+
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
|
83 |
+
results = regex.exec(url);
|
84 |
+
if (!results) return null;
|
85 |
+
if (!results[2]) return '';
|
86 |
+
return decodeURIComponent(results[2].replace(/\+/g, " "));
|
87 |
+
};
|
core/src/js/modules/filtering.js
CHANGED
@@ -4,7 +4,7 @@ let alm_is_filtering = false; // Global Masonry/Filtering var
|
|
4 |
|
5 |
|
6 |
/* $.fn.almFilter(type, speed, data)
|
7 |
-
*
|
8 |
* Filter Ajax Load More
|
9 |
*
|
10 |
* @param transition string;
|
@@ -92,9 +92,15 @@ let alm_is_filtering = false; // Global Masonry/Filtering var
|
|
92 |
key = key.replace(/\W+/g, '-').replace(/([a-z\d])([A-Z])/g, '$1-$2'); // Convert camelCase data() object back to dash (-)
|
93 |
$('.alm-listing', el).attr('data-'+key, value);
|
94 |
});
|
|
|
95 |
if ($.isFunction($.fn.almFilterComplete)){
|
96 |
$.fn.almFilterComplete();
|
97 |
}
|
|
|
|
|
|
|
|
|
|
|
98 |
alm_is_filtering = true;
|
99 |
el.fadeIn(speed); // Fade ALM back in
|
100 |
|
4 |
|
5 |
|
6 |
/* $.fn.almFilter(type, speed, data)
|
7 |
+
*
|
8 |
* Filter Ajax Load More
|
9 |
*
|
10 |
* @param transition string;
|
92 |
key = key.replace(/\W+/g, '-').replace(/([a-z\d])([A-Z])/g, '$1-$2'); // Convert camelCase data() object back to dash (-)
|
93 |
$('.alm-listing', el).attr('data-'+key, value);
|
94 |
});
|
95 |
+
// Regular Filtering
|
96 |
if ($.isFunction($.fn.almFilterComplete)){
|
97 |
$.fn.almFilterComplete();
|
98 |
}
|
99 |
+
// Filters Add-on
|
100 |
+
if(typeof almFiltersAddonComplete == "function"){
|
101 |
+
almFiltersAddonComplete(el);
|
102 |
+
}
|
103 |
+
|
104 |
alm_is_filtering = true;
|
105 |
el.fadeIn(speed); // Fade ALM back in
|
106 |
|
core/src/js/modules/masonry.js
CHANGED
@@ -3,20 +3,20 @@
|
|
3 |
|
4 |
Function to trigger built-in Ajax Load More Masonry
|
5 |
|
6 |
-
@param container
|
7 |
-
@param items
|
8 |
-
@param selector
|
9 |
-
@param animation
|
10 |
-
@param speed
|
11 |
-
@param
|
12 |
-
@param
|
|
|
13 |
@since 3.1
|
14 |
-
@updated 3.2
|
15 |
*/
|
16 |
|
17 |
-
let almMasonryInit = true; // flag
|
18 |
|
19 |
-
let almMasonry = (container, items, selector, animation, horizontalOrder, speed, init, filtering) => {
|
20 |
|
21 |
let duration = (speed+100)/1000 +'s'; // Add 100 for some delay
|
22 |
let hidden = 'scale(0.5)';
|
@@ -45,9 +45,9 @@ let almMasonry = (container, items, selector, animation, horizontalOrder, speed,
|
|
45 |
horizontalOrder = (horizontalOrder === 'true') ? true : false;
|
46 |
|
47 |
if(!filtering){
|
|
|
48 |
// First Run
|
49 |
-
if(
|
50 |
-
almMasonryInit = false;
|
51 |
container.imagesLoaded( () => {
|
52 |
items.fadeIn(speed);
|
53 |
container.masonry({
|
@@ -64,9 +64,10 @@ let almMasonry = (container, items, selector, animation, horizontalOrder, speed,
|
|
64 |
opacity: 1
|
65 |
}
|
66 |
});
|
67 |
-
container.masonry('reloadItems');
|
68 |
});
|
69 |
}
|
|
|
70 |
// Standard
|
71 |
else{
|
72 |
container.append( items ); // Append new items
|
@@ -79,9 +80,8 @@ let almMasonry = (container, items, selector, animation, horizontalOrder, speed,
|
|
79 |
} else{
|
80 |
// Filtering Reset
|
81 |
container.masonry('destroy'); // destroy masonry
|
82 |
-
almMasonryInit = true; // reset almMasonryInit
|
83 |
container.append( items );
|
84 |
-
almMasonry(container, items, selector, animation, horizontalOrder, speed, true, false);
|
85 |
}
|
86 |
|
87 |
};
|
3 |
|
4 |
Function to trigger built-in Ajax Load More Masonry
|
5 |
|
6 |
+
@param container object
|
7 |
+
@param items object
|
8 |
+
@param selector string
|
9 |
+
@param animation string
|
10 |
+
@param speed int
|
11 |
+
@param masonry_init boolean
|
12 |
+
@param init boolean
|
13 |
+
@param filtering boolean
|
14 |
@since 3.1
|
15 |
+
@updated 3.3.2
|
16 |
*/
|
17 |
|
|
|
18 |
|
19 |
+
let almMasonry = (container, items, selector, animation, horizontalOrder, speed, masonry_init, init, filtering) => {
|
20 |
|
21 |
let duration = (speed+100)/1000 +'s'; // Add 100 for some delay
|
22 |
let hidden = 'scale(0.5)';
|
45 |
horizontalOrder = (horizontalOrder === 'true') ? true : false;
|
46 |
|
47 |
if(!filtering){
|
48 |
+
|
49 |
// First Run
|
50 |
+
if(masonry_init && init){
|
|
|
51 |
container.imagesLoaded( () => {
|
52 |
items.fadeIn(speed);
|
53 |
container.masonry({
|
64 |
opacity: 1
|
65 |
}
|
66 |
});
|
67 |
+
//container.masonry('reloadItems');
|
68 |
});
|
69 |
}
|
70 |
+
|
71 |
// Standard
|
72 |
else{
|
73 |
container.append( items ); // Append new items
|
80 |
} else{
|
81 |
// Filtering Reset
|
82 |
container.masonry('destroy'); // destroy masonry
|
|
|
83 |
container.append( items );
|
84 |
+
almMasonry(container, items, selector, animation, horizontalOrder, speed, true, true, false);
|
85 |
}
|
86 |
|
87 |
};
|
lang/ajax-load-more.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: Ajax Load More\n"
|
5 |
-
"POT-Creation-Date:
|
6 |
"PO-Revision-Date: 2017-10-05 16:14-0500\n"
|
7 |
-
"Last-Translator: Darren Cooney <
|
8 |
"Language-Team: \n"
|
9 |
"Language: en_CA\n"
|
10 |
"MIME-Version: 1.0\n"
|
@@ -16,8 +16,8 @@ msgstr ""
|
|
16 |
"X-Poedit-KeywordsList: __;_e\n"
|
17 |
"X-Poedit-SearchPath-0: ..\n"
|
18 |
|
19 |
-
#: ../admin/admin-functions.php:32
|
20 |
-
#: ../admin/shortcode-builder/components/cache.php:3
|
21 |
#: ../admin/views/settings.php:60
|
22 |
msgid "Cache"
|
23 |
msgstr ""
|
@@ -77,121 +77,137 @@ msgid ""
|
|
77 |
"absolutely zero restrictions."
|
78 |
msgstr ""
|
79 |
|
80 |
-
#: ../admin/admin-functions.php:80 ../admin/
|
81 |
-
|
|
|
|
|
82 |
msgstr ""
|
83 |
|
84 |
#: ../admin/admin-functions.php:81
|
85 |
-
msgid "
|
86 |
msgstr ""
|
87 |
|
88 |
#: ../admin/admin-functions.php:82
|
89 |
msgid ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
"The Layouts add-on provides a collection of unique, well designed and fully "
|
91 |
"responsive templates."
|
92 |
msgstr ""
|
93 |
|
94 |
-
#: ../admin/admin-functions.php:
|
95 |
#: ../admin/shortcode-builder/components/nextpage.php:3
|
96 |
msgid "Next Page"
|
97 |
msgstr ""
|
98 |
|
99 |
-
#: ../admin/admin-functions.php:
|
100 |
msgid "Load and display multipage WordPress content."
|
101 |
msgstr ""
|
102 |
|
103 |
-
#: ../admin/admin-functions.php:
|
104 |
msgid ""
|
105 |
"The Next Page add-on will provide functionality for infinite scrolling "
|
106 |
"paginated posts and pages."
|
107 |
msgstr ""
|
108 |
|
109 |
-
#: ../admin/admin-functions.php:
|
110 |
#: ../admin/shortcode-builder/components/paging.php:3
|
111 |
-
#: ../admin/views/settings.php:
|
112 |
msgid "Paging"
|
113 |
msgstr ""
|
114 |
|
115 |
-
#: ../admin/admin-functions.php:
|
116 |
msgid "Extend Ajax Load More with a numbered navigation."
|
117 |
msgstr ""
|
118 |
|
119 |
-
#: ../admin/admin-functions.php:
|
120 |
msgid ""
|
121 |
"The Paging add-on will transform the default infinite scroll functionality "
|
122 |
"into a robust ajax powered navigation system."
|
123 |
msgstr ""
|
124 |
|
125 |
-
#: ../admin/admin-functions.php:
|
126 |
#: ../admin/shortcode-builder/components/preloaded.php:3
|
127 |
msgid "Preloaded"
|
128 |
msgstr ""
|
129 |
|
130 |
-
#: ../admin/admin-functions.php:
|
131 |
msgid "Load an initial set of posts before making Ajax requests to the server."
|
132 |
msgstr ""
|
133 |
|
134 |
-
#: ../admin/admin-functions.php:
|
135 |
msgid ""
|
136 |
"The Preloaded add-on will display content quicker and allow caching of the "
|
137 |
"initial query which can reduce stress on your server."
|
138 |
msgstr ""
|
139 |
|
140 |
-
#: ../admin/admin-functions.php:
|
141 |
#: ../admin/shortcode-builder/components/previous-post.php:3
|
142 |
-
#: ../admin/views/settings.php:
|
143 |
msgid "Previous Post"
|
144 |
msgstr ""
|
145 |
|
146 |
-
#: ../admin/admin-functions.php:
|
147 |
msgid "An add-on to enable infinite scrolling of single posts."
|
148 |
msgstr ""
|
149 |
|
150 |
-
#: ../admin/admin-functions.php:
|
151 |
msgid ""
|
152 |
"The Previous Post add-on will load single posts as you scroll and update the "
|
153 |
"browser URL to the current post."
|
154 |
msgstr ""
|
155 |
|
156 |
-
#: ../admin/admin-functions.php:
|
157 |
msgid "Search Engine Optimization"
|
158 |
msgstr ""
|
159 |
|
160 |
-
#: ../admin/admin-functions.php:
|
161 |
msgid "Generate unique paging URLs with every Ajax Load More query."
|
162 |
msgstr ""
|
163 |
|
164 |
-
#: ../admin/admin-functions.php:
|
165 |
msgid ""
|
166 |
"The SEO add-on will optimize your ajax loaded content for search engines by "
|
167 |
"generating unique URLs with every query."
|
168 |
msgstr ""
|
169 |
|
170 |
-
#: ../admin/admin-functions.php:
|
171 |
-
#: ../admin/views/settings.php:
|
172 |
msgid "Theme Repeaters"
|
173 |
msgstr ""
|
174 |
|
175 |
-
#: ../admin/admin-functions.php:
|
176 |
msgid "Manage repeater templates within your current theme directory."
|
177 |
msgstr ""
|
178 |
|
179 |
-
#: ../admin/admin-functions.php:
|
180 |
msgid ""
|
181 |
"The Theme Repeater add-on will allow you load, edit and maintain templates "
|
182 |
"from your current theme directory."
|
183 |
msgstr ""
|
184 |
|
185 |
-
#: ../admin/admin-functions.php:
|
186 |
#: ../admin/shortcode-builder/components/users.php:3
|
187 |
msgid "Users"
|
188 |
msgstr ""
|
189 |
|
190 |
-
#: ../admin/admin-functions.php:
|
191 |
msgid "Enable infinite scrolling of WordPress users."
|
192 |
msgstr ""
|
193 |
|
194 |
-
#: ../admin/admin-functions.php:
|
195 |
msgid ""
|
196 |
"The Users add-on will allow lazy loading of users by role using a "
|
197 |
"WP_User_Query."
|
@@ -204,192 +220,192 @@ msgid ""
|
|
204 |
"load-more-licenses\">Licenses</a> section and input your license keys."
|
205 |
msgstr ""
|
206 |
|
207 |
-
#: ../admin/admin.php:125 ../admin/admin.php:
|
208 |
-
#: ../admin/admin.php:
|
209 |
msgid "You don't belong here."
|
210 |
msgstr ""
|
211 |
|
212 |
-
#: ../admin/admin.php:
|
213 |
msgid "Ajax Load More"
|
214 |
msgstr ""
|
215 |
|
216 |
-
#: ../admin/admin.php:
|
217 |
#: ../admin/views/licenses.php:64
|
218 |
msgid "Active"
|
219 |
msgstr ""
|
220 |
|
221 |
-
#: ../admin/admin.php:
|
222 |
#: ../admin/views/licenses.php:68
|
223 |
msgid "Inactive"
|
224 |
msgstr ""
|
225 |
|
226 |
-
#: ../admin/admin.php:
|
227 |
msgid "Applying layout"
|
228 |
msgstr ""
|
229 |
|
230 |
-
#: ../admin/admin.php:
|
231 |
#: ../admin/views/repeater-templates.php:379
|
232 |
msgid "Template Updated"
|
233 |
msgstr ""
|
234 |
|
235 |
-
#: ../admin/admin.php:
|
236 |
msgid "Select Author(s)"
|
237 |
msgstr ""
|
238 |
|
239 |
-
#: ../admin/admin.php:
|
240 |
msgid "Select Categories"
|
241 |
msgstr ""
|
242 |
|
243 |
-
#: ../admin/admin.php:
|
244 |
msgid "Select Tags"
|
245 |
msgstr ""
|
246 |
|
247 |
-
#: ../admin/admin.php:
|
248 |
#: ../admin/editor/editor-build.php:77
|
249 |
msgid "Jump to Option"
|
250 |
msgstr ""
|
251 |
|
252 |
-
#: ../admin/admin.php:
|
253 |
msgid "Jump to Template"
|
254 |
msgstr ""
|
255 |
|
256 |
-
#: ../admin/admin.php:
|
257 |
msgid "Are you sure you want to install this Ajax Load More extension?"
|
258 |
msgstr ""
|
259 |
|
260 |
-
#: ../admin/admin.php:
|
261 |
#: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:51
|
262 |
#: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:379
|
263 |
msgid "Install Now"
|
264 |
msgstr ""
|
265 |
|
266 |
-
#: ../admin/admin.php:
|
267 |
#: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:90
|
268 |
#: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:380
|
269 |
msgid "Activate"
|
270 |
msgstr ""
|
271 |
|
272 |
-
#: ../admin/admin.php:
|
273 |
msgid "Saving Settings"
|
274 |
msgstr ""
|
275 |
|
276 |
-
#: ../admin/admin.php:
|
277 |
msgid "Settings Saved Successfully"
|
278 |
msgstr ""
|
279 |
|
280 |
-
#: ../admin/admin.php:
|
281 |
msgid "Error Saving Settings"
|
282 |
msgstr ""
|
283 |
|
284 |
-
#: ../admin/admin.php:
|
285 |
msgid ""
|
286 |
"[Ajax Load More] Error opening default repeater template - Please check your "
|
287 |
"file path and ensure your server is configured to allow Ajax Load More to "
|
288 |
"read and write files within the /ajax-load-more/core/repeater directory"
|
289 |
msgstr ""
|
290 |
|
291 |
-
#: ../admin/admin.php:
|
292 |
msgid ""
|
293 |
"[Ajax Load More] Error updating default repeater template - Please check "
|
294 |
"your file path and ensure your server is configured to allow Ajax Load More "
|
295 |
"to read and write files within the /ajax-load-more/core/repeater directory."
|
296 |
msgstr ""
|
297 |
|
298 |
-
#: ../admin/admin.php:
|
299 |
msgid "[Ajax Load More] Unable to open repeater template - "
|
300 |
msgstr ""
|
301 |
|
302 |
-
#: ../admin/admin.php:
|
303 |
msgid "[Ajax Load More] Error saving repeater template - "
|
304 |
msgstr ""
|
305 |
|
306 |
-
#: ../admin/admin.php:
|
307 |
msgid "Error Writing File"
|
308 |
msgstr ""
|
309 |
|
310 |
-
#: ../admin/admin.php:
|
311 |
msgid "Container Type"
|
312 |
msgstr ""
|
313 |
|
314 |
-
#: ../admin/admin.php:
|
315 |
msgid "Container Classes"
|
316 |
msgstr ""
|
317 |
|
318 |
-
#: ../admin/admin.php:
|
319 |
msgid "Disable CSS"
|
320 |
msgstr ""
|
321 |
|
322 |
-
#: ../admin/admin.php:
|
323 |
msgid "Button/Loading Style"
|
324 |
msgstr ""
|
325 |
|
326 |
-
#: ../admin/admin.php:
|
327 |
-
msgid "
|
328 |
msgstr ""
|
329 |
|
330 |
-
#: ../admin/admin.php:
|
331 |
-
msgid "
|
332 |
msgstr ""
|
333 |
|
334 |
-
#: ../admin/admin.php:
|
335 |
msgid "Top of Page"
|
336 |
msgstr ""
|
337 |
|
338 |
-
#: ../admin/admin.php:
|
339 |
msgid "Dynamic Content"
|
340 |
msgstr ""
|
341 |
|
342 |
-
#: ../admin/admin.php:
|
343 |
msgid "Editor Button"
|
344 |
msgstr ""
|
345 |
|
346 |
-
#: ../admin/admin.php:
|
347 |
msgid "Error Notices"
|
348 |
msgstr ""
|
349 |
|
350 |
-
#: ../admin/admin.php:
|
351 |
msgid ""
|
352 |
"Customize the user experience of Ajax Load More by updating the fields below."
|
353 |
msgstr ""
|
354 |
|
355 |
-
#: ../admin/admin.php:
|
356 |
msgid "The following settings affect the WordPress admin area only."
|
357 |
msgstr ""
|
358 |
|
359 |
-
#: ../admin/admin.php:
|
360 |
msgid "I want to use my own CSS styles."
|
361 |
msgstr ""
|
362 |
|
363 |
-
#: ../admin/admin.php:
|
364 |
msgid "View Ajax Load More CSS"
|
365 |
msgstr ""
|
366 |
|
367 |
-
#: ../admin/admin.php:
|
368 |
msgid "Hide shortcode button in WYSIWYG editor."
|
369 |
msgstr ""
|
370 |
|
371 |
-
#: ../admin/admin.php:
|
372 |
msgid ""
|
373 |
"Display error messaging regarding repeater template updates in the browser "
|
374 |
"console."
|
375 |
msgstr ""
|
376 |
|
377 |
-
#: ../admin/admin.php:
|
378 |
msgid ""
|
379 |
"Disable dynamic population of categories, tags and authors in the Shortcode "
|
380 |
"Builder.<span style=\"display:block\">Recommended if you have a large number "
|
381 |
"of categories, tags and/or authors."
|
382 |
msgstr ""
|
383 |
|
384 |
-
#: ../admin/admin.php:
|
385 |
msgid "Ajax Posts Here"
|
386 |
msgstr ""
|
387 |
|
388 |
-
#: ../admin/admin.php:
|
389 |
msgid "You can modify the container type when building a shortcode."
|
390 |
msgstr ""
|
391 |
|
392 |
-
#: ../admin/admin.php:
|
393 |
msgid ""
|
394 |
"Add custom classes to the <i>.alm-listing</i> container - classes are "
|
395 |
"applied globally and will appear with every instance of Ajax Load More. "
|
@@ -397,45 +413,45 @@ msgid ""
|
|
397 |
"shortcode.</span>"
|
398 |
msgstr ""
|
399 |
|
400 |
-
#: ../admin/admin.php:
|
401 |
msgid ""
|
402 |
"Select an Ajax loading style - you can choose between a <strong>Button</"
|
403 |
"strong> or <strong>Infinite Scroll</strong>"
|
404 |
msgstr ""
|
405 |
|
406 |
-
#: ../admin/admin.php:
|
407 |
msgid "Button"
|
408 |
msgstr ""
|
409 |
|
410 |
-
#: ../admin/admin.php:
|
411 |
msgid "Infinite Scroll (No Button)"
|
412 |
msgstr ""
|
413 |
|
414 |
-
#: ../admin/admin.php:
|
415 |
msgid "Preview"
|
416 |
msgstr ""
|
417 |
|
418 |
-
#: ../admin/admin.php:
|
419 |
-
#: ../core/classes/class.alm-shortcode.php:
|
420 |
msgid "Older Posts"
|
421 |
msgstr ""
|
422 |
|
423 |
-
#: ../admin/admin.php:
|
424 |
msgid "Improve site performance by loading Ajax Load More CSS inline"
|
425 |
msgstr ""
|
426 |
|
427 |
-
#: ../admin/admin.php:
|
428 |
msgid "Add classes to your <strong>Load More</strong> button"
|
429 |
msgstr ""
|
430 |
|
431 |
-
#: ../admin/admin.php:
|
432 |
msgid ""
|
433 |
"On initial page load, move the user's browser window to the top of the "
|
434 |
"screen.<span style=\"display:block\">This <u>may</u> help prevent the "
|
435 |
"loading of unnecessary posts.</span>"
|
436 |
msgstr ""
|
437 |
|
438 |
-
#: ../admin/admin.php:
|
439 |
msgid ""
|
440 |
"Enable <a href=\"https://codex.wordpress.org/WordPress_Nonces\" target="
|
441 |
"\"_blank\">WP nonce</a> verification to help protect URLs against certain "
|
@@ -535,7 +551,7 @@ msgid ""
|
|
535 |
msgstr ""
|
536 |
|
537 |
#: ../admin/includes/components/repeater-options.php:2
|
538 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
539 |
msgid "Options"
|
540 |
msgstr ""
|
541 |
|
@@ -728,6 +744,9 @@ msgstr ""
|
|
728 |
#: ../admin/shortcode-builder/components/cache.php:13
|
729 |
#: ../admin/shortcode-builder/components/comments.php:13
|
730 |
#: ../admin/shortcode-builder/components/cta.php:14
|
|
|
|
|
|
|
731 |
#: ../admin/shortcode-builder/components/nextpage.php:13
|
732 |
#: ../admin/shortcode-builder/components/paging.php:12
|
733 |
#: ../admin/shortcode-builder/components/paging.php:35
|
@@ -737,12 +756,12 @@ msgstr ""
|
|
737 |
#: ../admin/shortcode-builder/components/rest-api.php:108
|
738 |
#: ../admin/shortcode-builder/components/seo.php:14
|
739 |
#: ../admin/shortcode-builder/components/users.php:13
|
740 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
741 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
742 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
743 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
744 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
745 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
746 |
msgid "True"
|
747 |
msgstr ""
|
748 |
|
@@ -750,6 +769,9 @@ msgstr ""
|
|
750 |
#: ../admin/shortcode-builder/components/cache.php:17
|
751 |
#: ../admin/shortcode-builder/components/comments.php:17
|
752 |
#: ../admin/shortcode-builder/components/cta.php:18
|
|
|
|
|
|
|
753 |
#: ../admin/shortcode-builder/components/nextpage.php:17
|
754 |
#: ../admin/shortcode-builder/components/paging.php:16
|
755 |
#: ../admin/shortcode-builder/components/paging.php:39
|
@@ -759,12 +781,12 @@ msgstr ""
|
|
759 |
#: ../admin/shortcode-builder/components/rest-api.php:112
|
760 |
#: ../admin/shortcode-builder/components/seo.php:18
|
761 |
#: ../admin/shortcode-builder/components/users.php:17
|
762 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
763 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
764 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
765 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
766 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
767 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
768 |
msgid "False"
|
769 |
msgstr ""
|
770 |
|
@@ -909,8 +931,8 @@ msgid "Select a repeater template that will display comment data."
|
|
909 |
msgstr ""
|
910 |
|
911 |
#: ../admin/shortcode-builder/components/comments.php:106
|
912 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
913 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
914 |
msgid "None"
|
915 |
msgstr ""
|
916 |
|
@@ -987,7 +1009,7 @@ msgid "Post #"
|
|
987 |
msgstr ""
|
988 |
|
989 |
#: ../admin/shortcode-builder/components/cta.php:55
|
990 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
991 |
msgid "Template"
|
992 |
msgstr ""
|
993 |
|
@@ -1008,6 +1030,33 @@ msgid ""
|
|
1008 |
"in your shortcode, 6 items will be displayed."
|
1009 |
msgstr ""
|
1010 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1011 |
#: ../admin/shortcode-builder/components/nextpage.php:6
|
1012 |
msgid "Enable the infinite scrolling of multipage WordPress content using the"
|
1013 |
msgstr ""
|
@@ -1131,7 +1180,7 @@ msgid "Enable the infinite scrolling of single posts."
|
|
1131 |
msgstr ""
|
1132 |
|
1133 |
#: ../admin/shortcode-builder/components/previous-post.php:38
|
1134 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1135 |
msgid "Taxonomy"
|
1136 |
msgstr ""
|
1137 |
|
@@ -1154,12 +1203,12 @@ msgid "Select Taxonomy"
|
|
1154 |
msgstr ""
|
1155 |
|
1156 |
#: ../admin/shortcode-builder/components/previous-post.php:53
|
1157 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1158 |
msgid "Category"
|
1159 |
msgstr ""
|
1160 |
|
1161 |
#: ../admin/shortcode-builder/components/previous-post.php:54
|
1162 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1163 |
msgid "Tag"
|
1164 |
msgstr ""
|
1165 |
|
@@ -1185,7 +1234,7 @@ msgid ""
|
|
1185 |
msgstr ""
|
1186 |
|
1187 |
#: ../admin/shortcode-builder/components/rest-api.php:18
|
1188 |
-
#: ../admin/views/settings.php:
|
1189 |
msgid "REST API"
|
1190 |
msgstr ""
|
1191 |
|
@@ -1246,17 +1295,13 @@ msgid ""
|
|
1246 |
msgstr ""
|
1247 |
|
1248 |
#: ../admin/shortcode-builder/components/rest-api.php:88
|
1249 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1250 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1251 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1252 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1253 |
msgid "View Example"
|
1254 |
msgstr ""
|
1255 |
|
1256 |
-
#: ../admin/shortcode-builder/components/rest-api.php:100
|
1257 |
-
msgid "Debug Mode"
|
1258 |
-
msgstr ""
|
1259 |
-
|
1260 |
#: ../admin/shortcode-builder/components/rest-api.php:101
|
1261 |
msgid ""
|
1262 |
"Enable debugging (console.log) of REST API responses in the browser console. "
|
@@ -1300,8 +1345,8 @@ msgid "All Roles"
|
|
1300 |
msgstr ""
|
1301 |
|
1302 |
#: ../admin/shortcode-builder/components/users.php:55
|
1303 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1304 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1305 |
msgid "Include"
|
1306 |
msgstr ""
|
1307 |
|
@@ -1310,9 +1355,9 @@ msgid "A comma separated list of users to be included by ID"
|
|
1310 |
msgstr ""
|
1311 |
|
1312 |
#: ../admin/shortcode-builder/components/users.php:69
|
1313 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1314 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1315 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1316 |
msgid "Exclude"
|
1317 |
msgstr ""
|
1318 |
|
@@ -1337,12 +1382,12 @@ msgid "Sort users by Order and Orderby parameters"
|
|
1337 |
msgstr ""
|
1338 |
|
1339 |
#: ../admin/shortcode-builder/components/users.php:100
|
1340 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1341 |
msgid "Order"
|
1342 |
msgstr ""
|
1343 |
|
1344 |
#: ../admin/shortcode-builder/components/users.php:107
|
1345 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1346 |
msgid "Order By"
|
1347 |
msgstr ""
|
1348 |
|
@@ -1389,7 +1434,7 @@ msgid "Taxonomy Operator:"
|
|
1389 |
msgstr ""
|
1390 |
|
1391 |
#: ../admin/shortcode-builder/includes/tax-query-options.php:36
|
1392 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1393 |
msgid "Relation:"
|
1394 |
msgstr ""
|
1395 |
|
@@ -1402,338 +1447,338 @@ msgstr ""
|
|
1402 |
msgid "Add-ons & Extensions"
|
1403 |
msgstr ""
|
1404 |
|
1405 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1406 |
msgid "Display Settings"
|
1407 |
msgstr ""
|
1408 |
|
1409 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1410 |
msgid "Repeater Template"
|
1411 |
msgstr ""
|
1412 |
|
1413 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1414 |
msgid ""
|
1415 |
"Select which <a href=\"admin.php?page=ajax-load-more-repeaters\" target="
|
1416 |
"\"_parent\">repeater template</a> you would like to use."
|
1417 |
msgstr ""
|
1418 |
|
1419 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1420 |
msgid "ID"
|
1421 |
msgstr ""
|
1422 |
|
1423 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1424 |
msgid ""
|
1425 |
"Adding a unique ID will allow you target this specific Ajax Load More "
|
1426 |
"instance with the alm_query_args_id() filter"
|
1427 |
msgstr ""
|
1428 |
|
1429 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1430 |
msgid "Set a unique ID for this Ajax Load More instance."
|
1431 |
msgstr ""
|
1432 |
|
1433 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1434 |
msgid "Generate Unique ID"
|
1435 |
msgstr ""
|
1436 |
|
1437 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1438 |
msgid ""
|
1439 |
"You can define a global container type on the Ajax Load More settings screen"
|
1440 |
msgstr ""
|
1441 |
|
1442 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1443 |
msgid ""
|
1444 |
"Override the global Container Type set on the <a href=\"admin.php?page=ajax-"
|
1445 |
"load-more\">ALM Settings page</a>."
|
1446 |
msgstr ""
|
1447 |
|
1448 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1449 |
msgid ""
|
1450 |
"You can define global container classes on the Ajax Load More settings screen"
|
1451 |
msgstr ""
|
1452 |
|
1453 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1454 |
msgid ""
|
1455 |
"Add custom CSS classes to the <span>.alm-listing</span> container. <br/><br/"
|
1456 |
"> e.g. portfolio-listing large-12 etc"
|
1457 |
msgstr ""
|
1458 |
|
1459 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1460 |
msgid "Button Labels"
|
1461 |
msgstr ""
|
1462 |
|
1463 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1464 |
msgid "Label"
|
1465 |
msgstr ""
|
1466 |
|
1467 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1468 |
msgid "Customize the text of the <em>Load More</em> button."
|
1469 |
msgstr ""
|
1470 |
|
1471 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1472 |
msgid "Loading Label"
|
1473 |
msgstr ""
|
1474 |
|
1475 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1476 |
msgid "Leave field empty to not update text while loading content"
|
1477 |
msgstr ""
|
1478 |
|
1479 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1480 |
msgid ""
|
1481 |
"Update the text of the <em>Load More</em> button while content is loading."
|
1482 |
msgstr ""
|
1483 |
|
1484 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1485 |
msgid "Loading Posts..."
|
1486 |
msgstr ""
|
1487 |
|
1488 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1489 |
msgid "Scrolling"
|
1490 |
msgstr ""
|
1491 |
|
1492 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1493 |
msgid "Enable Scrolling"
|
1494 |
msgstr ""
|
1495 |
|
1496 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1497 |
msgid "Load more posts as the user scrolls the page."
|
1498 |
msgstr ""
|
1499 |
|
1500 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1501 |
msgid "Scroll Distance"
|
1502 |
msgstr ""
|
1503 |
|
1504 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1505 |
msgid ""
|
1506 |
"Distance is based on the position of the loading button from the bottom of "
|
1507 |
"the screen"
|
1508 |
msgstr ""
|
1509 |
|
1510 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1511 |
msgid ""
|
1512 |
"The distance from the bottom of the screen to trigger loading of posts. "
|
1513 |
"(Default = 150)"
|
1514 |
msgstr ""
|
1515 |
|
1516 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1517 |
msgid "Scroll Container"
|
1518 |
msgstr ""
|
1519 |
|
1520 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1521 |
msgid "Confine Ajax Load More scrolling to a parent container"
|
1522 |
msgstr ""
|
1523 |
|
1524 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1525 |
msgid "Enter the ID or classname of the parent container"
|
1526 |
msgstr ""
|
1527 |
|
1528 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1529 |
msgid "Maximum Pages"
|
1530 |
msgstr ""
|
1531 |
|
1532 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1533 |
msgid "If using an Infinite Scroll button style you should set this to 0"
|
1534 |
msgstr ""
|
1535 |
|
1536 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1537 |
msgid "Maximum number of pages to load while scrolling. (0 = unlimited)"
|
1538 |
msgstr ""
|
1539 |
|
1540 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1541 |
msgid "Pause Override"
|
1542 |
msgstr ""
|
1543 |
|
1544 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1545 |
msgid ""
|
1546 |
"Allow scrolling to override the Pause parameter and trigger the loading of "
|
1547 |
"posts on scroll."
|
1548 |
msgstr ""
|
1549 |
|
1550 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1551 |
msgid "Transition"
|
1552 |
msgstr ""
|
1553 |
|
1554 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1555 |
msgid "Type"
|
1556 |
msgstr ""
|
1557 |
|
1558 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1559 |
msgid "Select a loading transition style."
|
1560 |
msgstr ""
|
1561 |
|
1562 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:285
|
1563 |
-
msgid "Slide"
|
1564 |
-
msgstr ""
|
1565 |
-
|
1566 |
#: ../admin/shortcode-builder/shortcode-builder.php:286
|
1567 |
msgid "Fade"
|
1568 |
msgstr ""
|
1569 |
|
1570 |
#: ../admin/shortcode-builder/shortcode-builder.php:287
|
|
|
|
|
|
|
|
|
1571 |
msgid "Masonry"
|
1572 |
msgstr ""
|
1573 |
|
1574 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1575 |
msgid "Masonry Options"
|
1576 |
msgstr ""
|
1577 |
|
1578 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1579 |
msgid "Ajax Load More does not support all available Masonry options"
|
1580 |
msgstr ""
|
1581 |
|
1582 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1583 |
msgid ""
|
1584 |
"The following Masonry <a href=\"https://masonry.desandro.com/options.html\" "
|
1585 |
"target=\"_blank\">options</a> are supported by Ajax Load More"
|
1586 |
msgstr ""
|
1587 |
|
1588 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1589 |
msgid "Item Selector"
|
1590 |
msgstr ""
|
1591 |
|
1592 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1593 |
msgid ""
|
1594 |
"Item Selector is required for Masonry to target each element loaded with Ajax"
|
1595 |
msgstr ""
|
1596 |
|
1597 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1598 |
msgid "Enter the target classname of each masonry item"
|
1599 |
msgstr ""
|
1600 |
|
1601 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1602 |
msgid "Animation Type"
|
1603 |
msgstr ""
|
1604 |
|
1605 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1606 |
msgid "All Masonry animations include a fade-in effect as items are loaded"
|
1607 |
msgstr ""
|
1608 |
|
1609 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1610 |
msgid "Select a loading transition for Masonry items"
|
1611 |
msgstr ""
|
1612 |
|
1613 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1614 |
msgid "Default (Zoom)"
|
1615 |
msgstr ""
|
1616 |
|
1617 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1618 |
msgid "Items scale up from 50% to 100% size on load"
|
1619 |
msgstr ""
|
1620 |
|
1621 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1622 |
msgid "Zoom Out"
|
1623 |
msgstr ""
|
1624 |
|
1625 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1626 |
msgid "Items scale down from 125% to 100% size on load"
|
1627 |
msgstr ""
|
1628 |
|
1629 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1630 |
msgid "Slide Up"
|
1631 |
msgstr ""
|
1632 |
|
1633 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1634 |
msgid "Items animate up as they are loaded into view."
|
1635 |
msgstr ""
|
1636 |
|
1637 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1638 |
msgid "Slide Down"
|
1639 |
msgstr ""
|
1640 |
|
1641 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1642 |
msgid "Items animate down when loaded into view."
|
1643 |
msgstr ""
|
1644 |
|
1645 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1646 |
msgid "Horizontal Order"
|
1647 |
msgstr ""
|
1648 |
|
1649 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1650 |
msgid "Lays out items to maintain left-to-right order"
|
1651 |
msgstr ""
|
1652 |
|
1653 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1654 |
msgid "Transition Container"
|
1655 |
msgstr ""
|
1656 |
|
1657 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1658 |
msgid ""
|
1659 |
"Removing the transition container may have undesired results and is not "
|
1660 |
"recommended"
|
1661 |
msgstr ""
|
1662 |
|
1663 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1664 |
msgid ""
|
1665 |
"Remove the <span>.alm-reveal</span> loading container from Ajax Load More"
|
1666 |
msgstr ""
|
1667 |
|
1668 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1669 |
msgid "Remove Container"
|
1670 |
msgstr ""
|
1671 |
|
1672 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1673 |
msgid "Transition Container Classes"
|
1674 |
msgstr ""
|
1675 |
|
1676 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1677 |
msgid ""
|
1678 |
"This setting is not available with the Previous Post or Next Page add-ons"
|
1679 |
msgstr ""
|
1680 |
|
1681 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1682 |
msgid "Add custom classes to the <span>.alm-reveal</span> loading container"
|
1683 |
msgstr ""
|
1684 |
|
1685 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1686 |
msgid "Speed"
|
1687 |
msgstr ""
|
1688 |
|
1689 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1690 |
msgid "0.5 seconds = 500, 1 second = 1000 etc"
|
1691 |
msgstr ""
|
1692 |
|
1693 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1694 |
msgid "The speed of the loading transition in milliseconds"
|
1695 |
msgstr ""
|
1696 |
|
1697 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1698 |
msgid "Pause"
|
1699 |
msgstr ""
|
1700 |
|
1701 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1702 |
msgid ""
|
1703 |
"Do <u>NOT</u> load any posts until user clicks the <em>Load More</em> button."
|
1704 |
msgstr ""
|
1705 |
|
1706 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1707 |
msgid "Progress Bar"
|
1708 |
msgstr ""
|
1709 |
|
1710 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1711 |
msgid ""
|
1712 |
"Display progress bar indicator at the top of the window while loading Ajax "
|
1713 |
"content"
|
1714 |
msgstr ""
|
1715 |
|
1716 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1717 |
msgid "Color"
|
1718 |
msgstr ""
|
1719 |
|
1720 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1721 |
msgid "Enter the hex color of the progress bar"
|
1722 |
msgstr ""
|
1723 |
|
1724 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1725 |
msgid "Images Loaded"
|
1726 |
msgstr ""
|
1727 |
|
1728 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1729 |
msgid "Wait for all images to load before displaying ajax loaded content"
|
1730 |
msgstr ""
|
1731 |
|
1732 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1733 |
msgid "Background images are not supported"
|
1734 |
msgstr ""
|
1735 |
|
1736 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1737 |
msgid "Destroy After"
|
1738 |
msgstr ""
|
1739 |
|
@@ -1743,221 +1788,221 @@ msgid ""
|
|
1743 |
"been loaded."
|
1744 |
msgstr ""
|
1745 |
|
1746 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1747 |
msgid "Query Parameters"
|
1748 |
msgstr ""
|
1749 |
|
1750 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1751 |
msgid "Posts Per Page"
|
1752 |
msgstr ""
|
1753 |
|
1754 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1755 |
msgid "Select the number of posts to load with each request."
|
1756 |
msgstr ""
|
1757 |
|
1758 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1759 |
msgid "Post Type"
|
1760 |
msgstr ""
|
1761 |
|
1762 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1763 |
msgid "Select the Post Types to include in this Ajax Load More query."
|
1764 |
msgstr ""
|
1765 |
|
1766 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1767 |
msgid "Any"
|
1768 |
msgstr ""
|
1769 |
|
1770 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1771 |
msgid "Sticky Posts"
|
1772 |
msgstr ""
|
1773 |
|
1774 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1775 |
msgid "Sticky posts are only available for Posts"
|
1776 |
msgstr ""
|
1777 |
|
1778 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1779 |
msgid ""
|
1780 |
"Preserve the ordering of sticky posts by having them appear first in the "
|
1781 |
"Ajax listing."
|
1782 |
msgstr ""
|
1783 |
|
1784 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1785 |
msgid "Enable Sticky Posts"
|
1786 |
msgstr ""
|
1787 |
|
1788 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1789 |
msgid "Post Format"
|
1790 |
msgstr ""
|
1791 |
|
1792 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1793 |
msgid ""
|
1794 |
"Select a <a href=\"http://codex.wordpress.org/Post_Formats\" target=\"_blank"
|
1795 |
"\">Post Format</a> to query."
|
1796 |
msgstr ""
|
1797 |
|
1798 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1799 |
msgid "Select Post Format"
|
1800 |
msgstr ""
|
1801 |
|
1802 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1803 |
msgid "Standard"
|
1804 |
msgstr ""
|
1805 |
|
1806 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1807 |
msgid ""
|
1808 |
"A comma separated list of categories to include by slug. (design, research "
|
1809 |
"etc...)"
|
1810 |
msgstr ""
|
1811 |
|
1812 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1813 |
msgid ""
|
1814 |
"A comma separated list of categories to exclude by ID. (3, 12, 35 etc..)"
|
1815 |
msgstr ""
|
1816 |
|
1817 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1818 |
msgid ""
|
1819 |
"A comma separated list of tags to include by slug. (toronto, canada etc...)"
|
1820 |
msgstr ""
|
1821 |
|
1822 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1823 |
msgid "A comma separated list of tags to exclude by ID. (30, 12, 99 etc..)"
|
1824 |
msgstr ""
|
1825 |
|
1826 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1827 |
msgid "Select a taxonomy then select the terms and an operator."
|
1828 |
msgstr ""
|
1829 |
|
1830 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1831 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1832 |
msgid "Add Another"
|
1833 |
msgstr ""
|
1834 |
|
1835 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1836 |
msgid "Date"
|
1837 |
msgstr ""
|
1838 |
|
1839 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1840 |
msgid ""
|
1841 |
"Enter a year, month(number) and day to query by date archive.<br/>» <a "
|
1842 |
"href=\"admin.php?page=ajax-load-more-help§ion=examples#example-date\" "
|
1843 |
"target=\"_blank\">View Example</a>"
|
1844 |
msgstr ""
|
1845 |
|
1846 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1847 |
msgid "Year:"
|
1848 |
msgstr ""
|
1849 |
|
1850 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1851 |
msgid "Month:"
|
1852 |
msgstr ""
|
1853 |
|
1854 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1855 |
msgid "Day:"
|
1856 |
msgstr ""
|
1857 |
|
1858 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1859 |
msgid "Custom Fields (Meta_Query)"
|
1860 |
msgstr ""
|
1861 |
|
1862 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1863 |
msgid ""
|
1864 |
"Query for <a href=\"http://codex.wordpress.org/Class_Reference/WP_Meta_Query"
|
1865 |
"\" target=\"_blank\">custom field</a> by entering a custom field key, value "
|
1866 |
"and operator."
|
1867 |
msgstr ""
|
1868 |
|
1869 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1870 |
msgid ""
|
1871 |
"The logical relationship between each custom field when there is more than "
|
1872 |
"one"
|
1873 |
msgstr ""
|
1874 |
|
1875 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1876 |
msgid "Author"
|
1877 |
msgstr ""
|
1878 |
|
1879 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1880 |
msgid "Select an Author to query(by ID)."
|
1881 |
msgstr ""
|
1882 |
|
1883 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1884 |
msgid "Search Term"
|
1885 |
msgstr ""
|
1886 |
|
1887 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1888 |
msgid "Enter a search term to query."
|
1889 |
msgstr ""
|
1890 |
|
1891 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1892 |
msgid "Enter search term"
|
1893 |
msgstr ""
|
1894 |
|
1895 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1896 |
msgid "Post Parameters"
|
1897 |
msgstr ""
|
1898 |
|
1899 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1900 |
msgid "A comma separated list of post ID's to query."
|
1901 |
msgstr ""
|
1902 |
|
1903 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1904 |
msgid "225, 340, 818, etc..."
|
1905 |
msgstr ""
|
1906 |
|
1907 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1908 |
msgid "A comma separated list of post ID's to exclude from query."
|
1909 |
msgstr ""
|
1910 |
|
1911 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1912 |
msgid "Post Status"
|
1913 |
msgstr ""
|
1914 |
|
1915 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1916 |
msgid ""
|
1917 |
"Post Status parameters are only available for logged in (admin) users. Non "
|
1918 |
"logged in users will only have access to view content in a 'publish' or "
|
1919 |
"'inherit' state."
|
1920 |
msgstr ""
|
1921 |
|
1922 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1923 |
msgid "Select status of the post."
|
1924 |
msgstr ""
|
1925 |
|
1926 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1927 |
msgid "Published"
|
1928 |
msgstr ""
|
1929 |
|
1930 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1931 |
msgid "Ordering"
|
1932 |
msgstr ""
|
1933 |
|
1934 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1935 |
msgid "Sort posts by Order and Orderby parameters."
|
1936 |
msgstr ""
|
1937 |
|
1938 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1939 |
msgid "Offset"
|
1940 |
msgstr ""
|
1941 |
|
1942 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1943 |
msgid "Offset the initial query by <em>'n'</em> number of posts"
|
1944 |
msgstr ""
|
1945 |
|
1946 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1947 |
msgid "Custom Arguments"
|
1948 |
msgstr ""
|
1949 |
|
1950 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1951 |
msgid "A semicolon separated list of custom value:pair arguments."
|
1952 |
msgstr ""
|
1953 |
|
1954 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1955 |
msgid ""
|
1956 |
"Custom Arguments can be used to query by parameters not available in the "
|
1957 |
"Shortcode Builder"
|
1958 |
msgstr ""
|
1959 |
|
1960 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1961 |
msgid "event_display:upcoming"
|
1962 |
msgstr ""
|
1963 |
|
@@ -1971,7 +2016,15 @@ msgid ""
|
|
1971 |
"Load More"
|
1972 |
msgstr ""
|
1973 |
|
1974 |
-
#: ../admin/views/add-ons.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1975 |
msgid ""
|
1976 |
"All add-ons are installed as stand alone plugins and with a valid license "
|
1977 |
"key will receive plugin update notifications directly within the <a href="
|
@@ -2035,8 +2088,8 @@ msgstr ""
|
|
2035 |
|
2036 |
#: ../admin/views/licenses.php:6
|
2037 |
msgid ""
|
2038 |
-
"Enter your license keys to enable
|
2039 |
-
"
|
2040 |
msgstr ""
|
2041 |
|
2042 |
#: ../admin/views/licenses.php:14
|
@@ -2208,7 +2261,7 @@ msgstr ""
|
|
2208 |
msgid "Admin"
|
2209 |
msgstr ""
|
2210 |
|
2211 |
-
#: ../admin/views/settings.php:
|
2212 |
msgid "SEO"
|
2213 |
msgstr ""
|
2214 |
|
@@ -2244,7 +2297,7 @@ msgstr ""
|
|
2244 |
msgid "Copy Shortcode"
|
2245 |
msgstr ""
|
2246 |
|
2247 |
-
#: ../ajax-load-more.php:
|
2248 |
msgid "Settings"
|
2249 |
msgstr ""
|
2250 |
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: Ajax Load More\n"
|
5 |
+
"POT-Creation-Date: 2018-02-13 10:13-0500\n"
|
6 |
"PO-Revision-Date: 2017-10-05 16:14-0500\n"
|
7 |
+
"Last-Translator: Darren Cooney <darren@connekthq.com>\n"
|
8 |
"Language-Team: \n"
|
9 |
"Language: en_CA\n"
|
10 |
"MIME-Version: 1.0\n"
|
16 |
"X-Poedit-KeywordsList: __;_e\n"
|
17 |
"X-Poedit-SearchPath-0: ..\n"
|
18 |
|
19 |
+
#: ../admin/admin-functions.php:32 ../admin/admin.php:455
|
20 |
+
#: ../admin/admin.php:456 ../admin/shortcode-builder/components/cache.php:3
|
21 |
#: ../admin/views/settings.php:60
|
22 |
msgid "Cache"
|
23 |
msgstr ""
|
77 |
"absolutely zero restrictions."
|
78 |
msgstr ""
|
79 |
|
80 |
+
#: ../admin/admin-functions.php:80 ../admin/admin.php:474
|
81 |
+
#: ../admin/admin.php:475 ../admin/shortcode-builder/components/filters.php:3
|
82 |
+
#: ../admin/views/settings.php:62
|
83 |
+
msgid "Filters"
|
84 |
msgstr ""
|
85 |
|
86 |
#: ../admin/admin-functions.php:81
|
87 |
+
msgid "Create custom Ajax Load More filters in seconds."
|
88 |
msgstr ""
|
89 |
|
90 |
#: ../admin/admin-functions.php:82
|
91 |
msgid ""
|
92 |
+
"The Filters add-on provides front-end and admin functionality for building "
|
93 |
+
"and managing Ajax filters."
|
94 |
+
msgstr ""
|
95 |
+
|
96 |
+
#: ../admin/admin-functions.php:92 ../admin/views/settings.php:64
|
97 |
+
msgid "Layouts"
|
98 |
+
msgstr ""
|
99 |
+
|
100 |
+
#: ../admin/admin-functions.php:93
|
101 |
+
msgid "Predefined layouts for repeater templates."
|
102 |
+
msgstr ""
|
103 |
+
|
104 |
+
#: ../admin/admin-functions.php:94
|
105 |
+
msgid ""
|
106 |
"The Layouts add-on provides a collection of unique, well designed and fully "
|
107 |
"responsive templates."
|
108 |
msgstr ""
|
109 |
|
110 |
+
#: ../admin/admin-functions.php:104
|
111 |
#: ../admin/shortcode-builder/components/nextpage.php:3
|
112 |
msgid "Next Page"
|
113 |
msgstr ""
|
114 |
|
115 |
+
#: ../admin/admin-functions.php:105
|
116 |
msgid "Load and display multipage WordPress content."
|
117 |
msgstr ""
|
118 |
|
119 |
+
#: ../admin/admin-functions.php:106
|
120 |
msgid ""
|
121 |
"The Next Page add-on will provide functionality for infinite scrolling "
|
122 |
"paginated posts and pages."
|
123 |
msgstr ""
|
124 |
|
125 |
+
#: ../admin/admin-functions.php:116
|
126 |
#: ../admin/shortcode-builder/components/paging.php:3
|
127 |
+
#: ../admin/views/settings.php:66
|
128 |
msgid "Paging"
|
129 |
msgstr ""
|
130 |
|
131 |
+
#: ../admin/admin-functions.php:117
|
132 |
msgid "Extend Ajax Load More with a numbered navigation."
|
133 |
msgstr ""
|
134 |
|
135 |
+
#: ../admin/admin-functions.php:118
|
136 |
msgid ""
|
137 |
"The Paging add-on will transform the default infinite scroll functionality "
|
138 |
"into a robust ajax powered navigation system."
|
139 |
msgstr ""
|
140 |
|
141 |
+
#: ../admin/admin-functions.php:128
|
142 |
#: ../admin/shortcode-builder/components/preloaded.php:3
|
143 |
msgid "Preloaded"
|
144 |
msgstr ""
|
145 |
|
146 |
+
#: ../admin/admin-functions.php:129
|
147 |
msgid "Load an initial set of posts before making Ajax requests to the server."
|
148 |
msgstr ""
|
149 |
|
150 |
+
#: ../admin/admin-functions.php:130
|
151 |
msgid ""
|
152 |
"The Preloaded add-on will display content quicker and allow caching of the "
|
153 |
"initial query which can reduce stress on your server."
|
154 |
msgstr ""
|
155 |
|
156 |
+
#: ../admin/admin-functions.php:140
|
157 |
#: ../admin/shortcode-builder/components/previous-post.php:3
|
158 |
+
#: ../admin/views/settings.php:68
|
159 |
msgid "Previous Post"
|
160 |
msgstr ""
|
161 |
|
162 |
+
#: ../admin/admin-functions.php:141
|
163 |
msgid "An add-on to enable infinite scrolling of single posts."
|
164 |
msgstr ""
|
165 |
|
166 |
+
#: ../admin/admin-functions.php:142
|
167 |
msgid ""
|
168 |
"The Previous Post add-on will load single posts as you scroll and update the "
|
169 |
"browser URL to the current post."
|
170 |
msgstr ""
|
171 |
|
172 |
+
#: ../admin/admin-functions.php:152
|
173 |
msgid "Search Engine Optimization"
|
174 |
msgstr ""
|
175 |
|
176 |
+
#: ../admin/admin-functions.php:153
|
177 |
msgid "Generate unique paging URLs with every Ajax Load More query."
|
178 |
msgstr ""
|
179 |
|
180 |
+
#: ../admin/admin-functions.php:154
|
181 |
msgid ""
|
182 |
"The SEO add-on will optimize your ajax loaded content for search engines by "
|
183 |
"generating unique URLs with every query."
|
184 |
msgstr ""
|
185 |
|
186 |
+
#: ../admin/admin-functions.php:164 ../admin/views/repeater-templates.php:31
|
187 |
+
#: ../admin/views/settings.php:74
|
188 |
msgid "Theme Repeaters"
|
189 |
msgstr ""
|
190 |
|
191 |
+
#: ../admin/admin-functions.php:165
|
192 |
msgid "Manage repeater templates within your current theme directory."
|
193 |
msgstr ""
|
194 |
|
195 |
+
#: ../admin/admin-functions.php:166
|
196 |
msgid ""
|
197 |
"The Theme Repeater add-on will allow you load, edit and maintain templates "
|
198 |
"from your current theme directory."
|
199 |
msgstr ""
|
200 |
|
201 |
+
#: ../admin/admin-functions.php:176
|
202 |
#: ../admin/shortcode-builder/components/users.php:3
|
203 |
msgid "Users"
|
204 |
msgstr ""
|
205 |
|
206 |
+
#: ../admin/admin-functions.php:177
|
207 |
msgid "Enable infinite scrolling of WordPress users."
|
208 |
msgstr ""
|
209 |
|
210 |
+
#: ../admin/admin-functions.php:178
|
211 |
msgid ""
|
212 |
"The Users add-on will allow lazy loading of users by role using a "
|
213 |
"WP_User_Query."
|
220 |
"load-more-licenses\">Licenses</a> section and input your license keys."
|
221 |
msgstr ""
|
222 |
|
223 |
+
#: ../admin/admin.php:125 ../admin/admin.php:185 ../admin/admin.php:813
|
224 |
+
#: ../admin/admin.php:857 ../admin/admin.php:907
|
225 |
msgid "You don't belong here."
|
226 |
msgstr ""
|
227 |
|
228 |
+
#: ../admin/admin.php:214
|
229 |
msgid "Ajax Load More"
|
230 |
msgstr ""
|
231 |
|
232 |
+
#: ../admin/admin.php:215 ../admin/editor/editor-build.php:69
|
233 |
#: ../admin/views/licenses.php:64
|
234 |
msgid "Active"
|
235 |
msgstr ""
|
236 |
|
237 |
+
#: ../admin/admin.php:216 ../admin/editor/editor-build.php:70
|
238 |
#: ../admin/views/licenses.php:68
|
239 |
msgid "Inactive"
|
240 |
msgstr ""
|
241 |
|
242 |
+
#: ../admin/admin.php:217 ../admin/editor/editor-build.php:71
|
243 |
msgid "Applying layout"
|
244 |
msgstr ""
|
245 |
|
246 |
+
#: ../admin/admin.php:218 ../admin/editor/editor-build.php:72
|
247 |
#: ../admin/views/repeater-templates.php:379
|
248 |
msgid "Template Updated"
|
249 |
msgstr ""
|
250 |
|
251 |
+
#: ../admin/admin.php:220 ../admin/editor/editor-build.php:74
|
252 |
msgid "Select Author(s)"
|
253 |
msgstr ""
|
254 |
|
255 |
+
#: ../admin/admin.php:221 ../admin/editor/editor-build.php:75
|
256 |
msgid "Select Categories"
|
257 |
msgstr ""
|
258 |
|
259 |
+
#: ../admin/admin.php:222 ../admin/editor/editor-build.php:76
|
260 |
msgid "Select Tags"
|
261 |
msgstr ""
|
262 |
|
263 |
+
#: ../admin/admin.php:223 ../admin/editor/editor-build.php:41
|
264 |
#: ../admin/editor/editor-build.php:77
|
265 |
msgid "Jump to Option"
|
266 |
msgstr ""
|
267 |
|
268 |
+
#: ../admin/admin.php:224 ../admin/editor/editor-build.php:78
|
269 |
msgid "Jump to Template"
|
270 |
msgstr ""
|
271 |
|
272 |
+
#: ../admin/admin.php:225
|
273 |
msgid "Are you sure you want to install this Ajax Load More extension?"
|
274 |
msgstr ""
|
275 |
|
276 |
+
#: ../admin/admin.php:226
|
277 |
#: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:51
|
278 |
#: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:379
|
279 |
msgid "Install Now"
|
280 |
msgstr ""
|
281 |
|
282 |
+
#: ../admin/admin.php:227
|
283 |
#: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:90
|
284 |
#: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:380
|
285 |
msgid "Activate"
|
286 |
msgstr ""
|
287 |
|
288 |
+
#: ../admin/admin.php:228
|
289 |
msgid "Saving Settings"
|
290 |
msgstr ""
|
291 |
|
292 |
+
#: ../admin/admin.php:229
|
293 |
msgid "Settings Saved Successfully"
|
294 |
msgstr ""
|
295 |
|
296 |
+
#: ../admin/admin.php:230
|
297 |
msgid "Error Saving Settings"
|
298 |
msgstr ""
|
299 |
|
300 |
+
#: ../admin/admin.php:340
|
301 |
msgid ""
|
302 |
"[Ajax Load More] Error opening default repeater template - Please check your "
|
303 |
"file path and ensure your server is configured to allow Ajax Load More to "
|
304 |
"read and write files within the /ajax-load-more/core/repeater directory"
|
305 |
msgstr ""
|
306 |
|
307 |
+
#: ../admin/admin.php:344
|
308 |
msgid ""
|
309 |
"[Ajax Load More] Error updating default repeater template - Please check "
|
310 |
"your file path and ensure your server is configured to allow Ajax Load More "
|
311 |
"to read and write files within the /ajax-load-more/core/repeater directory."
|
312 |
msgstr ""
|
313 |
|
314 |
+
#: ../admin/admin.php:771
|
315 |
msgid "[Ajax Load More] Unable to open repeater template - "
|
316 |
msgstr ""
|
317 |
|
318 |
+
#: ../admin/admin.php:775
|
319 |
msgid "[Ajax Load More] Error saving repeater template - "
|
320 |
msgstr ""
|
321 |
|
322 |
+
#: ../admin/admin.php:808
|
323 |
msgid "Error Writing File"
|
324 |
msgstr ""
|
325 |
|
326 |
+
#: ../admin/admin.php:1011 ../admin/shortcode-builder/shortcode-builder.php:113
|
327 |
msgid "Container Type"
|
328 |
msgstr ""
|
329 |
|
330 |
+
#: ../admin/admin.php:1019 ../admin/shortcode-builder/shortcode-builder.php:144
|
331 |
msgid "Container Classes"
|
332 |
msgstr ""
|
333 |
|
334 |
+
#: ../admin/admin.php:1027
|
335 |
msgid "Disable CSS"
|
336 |
msgstr ""
|
337 |
|
338 |
+
#: ../admin/admin.php:1035
|
339 |
msgid "Button/Loading Style"
|
340 |
msgstr ""
|
341 |
|
342 |
+
#: ../admin/admin.php:1043
|
343 |
+
msgid "Button Classes"
|
344 |
msgstr ""
|
345 |
|
346 |
+
#: ../admin/admin.php:1051
|
347 |
+
msgid "Load CSS Inline"
|
348 |
msgstr ""
|
349 |
|
350 |
+
#: ../admin/admin.php:1059
|
351 |
msgid "Top of Page"
|
352 |
msgstr ""
|
353 |
|
354 |
+
#: ../admin/admin.php:1067
|
355 |
msgid "Dynamic Content"
|
356 |
msgstr ""
|
357 |
|
358 |
+
#: ../admin/admin.php:1075
|
359 |
msgid "Editor Button"
|
360 |
msgstr ""
|
361 |
|
362 |
+
#: ../admin/admin.php:1083
|
363 |
msgid "Error Notices"
|
364 |
msgstr ""
|
365 |
|
366 |
+
#: ../admin/admin.php:1160
|
367 |
msgid ""
|
368 |
"Customize the user experience of Ajax Load More by updating the fields below."
|
369 |
msgstr ""
|
370 |
|
371 |
+
#: ../admin/admin.php:1173
|
372 |
msgid "The following settings affect the WordPress admin area only."
|
373 |
msgstr ""
|
374 |
|
375 |
+
#: ../admin/admin.php:1204
|
376 |
msgid "I want to use my own CSS styles."
|
377 |
msgstr ""
|
378 |
|
379 |
+
#: ../admin/admin.php:1204
|
380 |
msgid "View Ajax Load More CSS"
|
381 |
msgstr ""
|
382 |
|
383 |
+
#: ../admin/admin.php:1224
|
384 |
msgid "Hide shortcode button in WYSIWYG editor."
|
385 |
msgstr ""
|
386 |
|
387 |
+
#: ../admin/admin.php:1245
|
388 |
msgid ""
|
389 |
"Display error messaging regarding repeater template updates in the browser "
|
390 |
"console."
|
391 |
msgstr ""
|
392 |
|
393 |
+
#: ../admin/admin.php:1266
|
394 |
msgid ""
|
395 |
"Disable dynamic population of categories, tags and authors in the Shortcode "
|
396 |
"Builder.<span style=\"display:block\">Recommended if you have a large number "
|
397 |
"of categories, tags and/or authors."
|
398 |
msgstr ""
|
399 |
|
400 |
+
#: ../admin/admin.php:1287 ../admin/admin.php:1290
|
401 |
msgid "Ajax Posts Here"
|
402 |
msgstr ""
|
403 |
|
404 |
+
#: ../admin/admin.php:1292
|
405 |
msgid "You can modify the container type when building a shortcode."
|
406 |
msgstr ""
|
407 |
|
408 |
+
#: ../admin/admin.php:1309
|
409 |
msgid ""
|
410 |
"Add custom classes to the <i>.alm-listing</i> container - classes are "
|
411 |
"applied globally and will appear with every instance of Ajax Load More. "
|
413 |
"shortcode.</span>"
|
414 |
msgstr ""
|
415 |
|
416 |
+
#: ../admin/admin.php:1371
|
417 |
msgid ""
|
418 |
"Select an Ajax loading style - you can choose between a <strong>Button</"
|
419 |
"strong> or <strong>Infinite Scroll</strong>"
|
420 |
msgstr ""
|
421 |
|
422 |
+
#: ../admin/admin.php:1376
|
423 |
msgid "Button"
|
424 |
msgstr ""
|
425 |
|
426 |
+
#: ../admin/admin.php:1384
|
427 |
msgid "Infinite Scroll (No Button)"
|
428 |
msgstr ""
|
429 |
|
430 |
+
#: ../admin/admin.php:1397
|
431 |
msgid "Preview"
|
432 |
msgstr ""
|
433 |
|
434 |
+
#: ../admin/admin.php:1397 ../admin/shortcode-builder/shortcode-builder.php:168
|
435 |
+
#: ../core/classes/class.alm-shortcode.php:150
|
436 |
msgid "Older Posts"
|
437 |
msgstr ""
|
438 |
|
439 |
+
#: ../admin/admin.php:1418
|
440 |
msgid "Improve site performance by loading Ajax Load More CSS inline"
|
441 |
msgstr ""
|
442 |
|
443 |
+
#: ../admin/admin.php:1438
|
444 |
msgid "Add classes to your <strong>Load More</strong> button"
|
445 |
msgstr ""
|
446 |
|
447 |
+
#: ../admin/admin.php:1483
|
448 |
msgid ""
|
449 |
"On initial page load, move the user's browser window to the top of the "
|
450 |
"screen.<span style=\"display:block\">This <u>may</u> help prevent the "
|
451 |
"loading of unnecessary posts.</span>"
|
452 |
msgstr ""
|
453 |
|
454 |
+
#: ../admin/admin.php:1504
|
455 |
msgid ""
|
456 |
"Enable <a href=\"https://codex.wordpress.org/WordPress_Nonces\" target="
|
457 |
"\"_blank\">WP nonce</a> verification to help protect URLs against certain "
|
551 |
msgstr ""
|
552 |
|
553 |
#: ../admin/includes/components/repeater-options.php:2
|
554 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:91
|
555 |
msgid "Options"
|
556 |
msgstr ""
|
557 |
|
744 |
#: ../admin/shortcode-builder/components/cache.php:13
|
745 |
#: ../admin/shortcode-builder/components/comments.php:13
|
746 |
#: ../admin/shortcode-builder/components/cta.php:14
|
747 |
+
#: ../admin/shortcode-builder/components/filters.php:13
|
748 |
+
#: ../admin/shortcode-builder/components/filters.php:39
|
749 |
+
#: ../admin/shortcode-builder/components/filters.php:61
|
750 |
#: ../admin/shortcode-builder/components/nextpage.php:13
|
751 |
#: ../admin/shortcode-builder/components/paging.php:12
|
752 |
#: ../admin/shortcode-builder/components/paging.php:35
|
756 |
#: ../admin/shortcode-builder/components/rest-api.php:108
|
757 |
#: ../admin/shortcode-builder/components/seo.php:14
|
758 |
#: ../admin/shortcode-builder/components/users.php:13
|
759 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:202
|
760 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:262
|
761 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:379
|
762 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:459
|
763 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:487
|
764 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:535
|
765 |
msgid "True"
|
766 |
msgstr ""
|
767 |
|
769 |
#: ../admin/shortcode-builder/components/cache.php:17
|
770 |
#: ../admin/shortcode-builder/components/comments.php:17
|
771 |
#: ../admin/shortcode-builder/components/cta.php:18
|
772 |
+
#: ../admin/shortcode-builder/components/filters.php:17
|
773 |
+
#: ../admin/shortcode-builder/components/filters.php:43
|
774 |
+
#: ../admin/shortcode-builder/components/filters.php:65
|
775 |
#: ../admin/shortcode-builder/components/nextpage.php:17
|
776 |
#: ../admin/shortcode-builder/components/paging.php:16
|
777 |
#: ../admin/shortcode-builder/components/paging.php:39
|
781 |
#: ../admin/shortcode-builder/components/rest-api.php:112
|
782 |
#: ../admin/shortcode-builder/components/seo.php:18
|
783 |
#: ../admin/shortcode-builder/components/users.php:17
|
784 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:206
|
785 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:266
|
786 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:383
|
787 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:463
|
788 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:491
|
789 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:539
|
790 |
msgid "False"
|
791 |
msgstr ""
|
792 |
|
931 |
msgstr ""
|
932 |
|
933 |
#: ../admin/shortcode-builder/components/comments.php:106
|
934 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:289
|
935 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:359
|
936 |
msgid "None"
|
937 |
msgstr ""
|
938 |
|
1009 |
msgstr ""
|
1010 |
|
1011 |
#: ../admin/shortcode-builder/components/cta.php:55
|
1012 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:51
|
1013 |
msgid "Template"
|
1014 |
msgstr ""
|
1015 |
|
1030 |
"in your shortcode, 6 items will be displayed."
|
1031 |
msgstr ""
|
1032 |
|
1033 |
+
#: ../admin/shortcode-builder/components/filters.php:6
|
1034 |
+
msgid "Enable filters with this Ajax Load More instance."
|
1035 |
+
msgstr ""
|
1036 |
+
|
1037 |
+
#: ../admin/shortcode-builder/components/filters.php:31
|
1038 |
+
msgid "Analytics"
|
1039 |
+
msgstr ""
|
1040 |
+
|
1041 |
+
#: ../admin/shortcode-builder/components/filters.php:31
|
1042 |
+
msgid ""
|
1043 |
+
"Each time the filter is updated a pageview will be sent to Google Analytics"
|
1044 |
+
msgstr ""
|
1045 |
+
|
1046 |
+
#: ../admin/shortcode-builder/components/filters.php:32
|
1047 |
+
msgid "Send pageviews to Google Analytics"
|
1048 |
+
msgstr ""
|
1049 |
+
|
1050 |
+
#: ../admin/shortcode-builder/components/filters.php:53
|
1051 |
+
#: ../admin/shortcode-builder/components/rest-api.php:100
|
1052 |
+
msgid "Debug Mode"
|
1053 |
+
msgstr ""
|
1054 |
+
|
1055 |
+
#: ../admin/shortcode-builder/components/filters.php:54
|
1056 |
+
msgid ""
|
1057 |
+
"Enable debugging of the Ajax Load More filter object in the browser console"
|
1058 |
+
msgstr ""
|
1059 |
+
|
1060 |
#: ../admin/shortcode-builder/components/nextpage.php:6
|
1061 |
msgid "Enable the infinite scrolling of multipage WordPress content using the"
|
1062 |
msgstr ""
|
1180 |
msgstr ""
|
1181 |
|
1182 |
#: ../admin/shortcode-builder/components/previous-post.php:38
|
1183 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:808
|
1184 |
msgid "Taxonomy"
|
1185 |
msgstr ""
|
1186 |
|
1203 |
msgstr ""
|
1204 |
|
1205 |
#: ../admin/shortcode-builder/components/previous-post.php:53
|
1206 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:689
|
1207 |
msgid "Category"
|
1208 |
msgstr ""
|
1209 |
|
1210 |
#: ../admin/shortcode-builder/components/previous-post.php:54
|
1211 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:749
|
1212 |
msgid "Tag"
|
1213 |
msgstr ""
|
1214 |
|
1234 |
msgstr ""
|
1235 |
|
1236 |
#: ../admin/shortcode-builder/components/rest-api.php:18
|
1237 |
+
#: ../admin/views/settings.php:70
|
1238 |
msgid "REST API"
|
1239 |
msgstr ""
|
1240 |
|
1295 |
msgstr ""
|
1296 |
|
1297 |
#: ../admin/shortcode-builder/components/rest-api.php:88
|
1298 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:478
|
1299 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:694
|
1300 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:753
|
1301 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:953
|
1302 |
msgid "View Example"
|
1303 |
msgstr ""
|
1304 |
|
|
|
|
|
|
|
|
|
1305 |
#: ../admin/shortcode-builder/components/rest-api.php:101
|
1306 |
msgid ""
|
1307 |
"Enable debugging (console.log) of REST API responses in the browser console. "
|
1345 |
msgstr ""
|
1346 |
|
1347 |
#: ../admin/shortcode-builder/components/users.php:55
|
1348 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:752
|
1349 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:941
|
1350 |
msgid "Include"
|
1351 |
msgstr ""
|
1352 |
|
1355 |
msgstr ""
|
1356 |
|
1357 |
#: ../admin/shortcode-builder/components/users.php:69
|
1358 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:716
|
1359 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:774
|
1360 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:952
|
1361 |
msgid "Exclude"
|
1362 |
msgstr ""
|
1363 |
|
1382 |
msgstr ""
|
1383 |
|
1384 |
#: ../admin/shortcode-builder/components/users.php:100
|
1385 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:993
|
1386 |
msgid "Order"
|
1387 |
msgstr ""
|
1388 |
|
1389 |
#: ../admin/shortcode-builder/components/users.php:107
|
1390 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:1000
|
1391 |
msgid "Order By"
|
1392 |
msgstr ""
|
1393 |
|
1434 |
msgstr ""
|
1435 |
|
1436 |
#: ../admin/shortcode-builder/includes/tax-query-options.php:36
|
1437 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:868
|
1438 |
msgid "Relation:"
|
1439 |
msgstr ""
|
1440 |
|
1447 |
msgid "Add-ons & Extensions"
|
1448 |
msgstr ""
|
1449 |
|
1450 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:46
|
1451 |
msgid "Display Settings"
|
1452 |
msgstr ""
|
1453 |
|
1454 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:55
|
1455 |
msgid "Repeater Template"
|
1456 |
msgstr ""
|
1457 |
|
1458 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:57
|
1459 |
msgid ""
|
1460 |
"Select which <a href=\"admin.php?page=ajax-load-more-repeaters\" target="
|
1461 |
"\"_parent\">repeater template</a> you would like to use."
|
1462 |
msgstr ""
|
1463 |
|
1464 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:96
|
1465 |
msgid "ID"
|
1466 |
msgstr ""
|
1467 |
|
1468 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:96
|
1469 |
msgid ""
|
1470 |
"Adding a unique ID will allow you target this specific Ajax Load More "
|
1471 |
"instance with the alm_query_args_id() filter"
|
1472 |
msgstr ""
|
1473 |
|
1474 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:97
|
1475 |
msgid "Set a unique ID for this Ajax Load More instance."
|
1476 |
msgstr ""
|
1477 |
|
1478 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:104
|
1479 |
msgid "Generate Unique ID"
|
1480 |
msgstr ""
|
1481 |
|
1482 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:113
|
1483 |
msgid ""
|
1484 |
"You can define a global container type on the Ajax Load More settings screen"
|
1485 |
msgstr ""
|
1486 |
|
1487 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:114
|
1488 |
msgid ""
|
1489 |
"Override the global Container Type set on the <a href=\"admin.php?page=ajax-"
|
1490 |
"load-more\">ALM Settings page</a>."
|
1491 |
msgstr ""
|
1492 |
|
1493 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:144
|
1494 |
msgid ""
|
1495 |
"You can define global container classes on the Ajax Load More settings screen"
|
1496 |
msgstr ""
|
1497 |
|
1498 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:145
|
1499 |
msgid ""
|
1500 |
"Add custom CSS classes to the <span>.alm-listing</span> container. <br/><br/"
|
1501 |
"> e.g. portfolio-listing large-12 etc"
|
1502 |
msgstr ""
|
1503 |
|
1504 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:158
|
1505 |
msgid "Button Labels"
|
1506 |
msgstr ""
|
1507 |
|
1508 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:163
|
1509 |
msgid "Label"
|
1510 |
msgstr ""
|
1511 |
|
1512 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:164
|
1513 |
msgid "Customize the text of the <em>Load More</em> button."
|
1514 |
msgstr ""
|
1515 |
|
1516 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:176
|
1517 |
msgid "Loading Label"
|
1518 |
msgstr ""
|
1519 |
|
1520 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:176
|
1521 |
msgid "Leave field empty to not update text while loading content"
|
1522 |
msgstr ""
|
1523 |
|
1524 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:177
|
1525 |
msgid ""
|
1526 |
"Update the text of the <em>Load More</em> button while content is loading."
|
1527 |
msgstr ""
|
1528 |
|
1529 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:181
|
1530 |
msgid "Loading Posts..."
|
1531 |
msgstr ""
|
1532 |
|
1533 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:191
|
1534 |
msgid "Scrolling"
|
1535 |
msgstr ""
|
1536 |
|
1537 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:194
|
1538 |
msgid "Enable Scrolling"
|
1539 |
msgstr ""
|
1540 |
|
1541 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:195
|
1542 |
msgid "Load more posts as the user scrolls the page."
|
1543 |
msgstr ""
|
1544 |
|
1545 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:216
|
1546 |
msgid "Scroll Distance"
|
1547 |
msgstr ""
|
1548 |
|
1549 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:216
|
1550 |
msgid ""
|
1551 |
"Distance is based on the position of the loading button from the bottom of "
|
1552 |
"the screen"
|
1553 |
msgstr ""
|
1554 |
|
1555 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:217
|
1556 |
msgid ""
|
1557 |
"The distance from the bottom of the screen to trigger loading of posts. "
|
1558 |
"(Default = 150)"
|
1559 |
msgstr ""
|
1560 |
|
1561 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:229
|
1562 |
msgid "Scroll Container"
|
1563 |
msgstr ""
|
1564 |
|
1565 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:229
|
1566 |
msgid "Confine Ajax Load More scrolling to a parent container"
|
1567 |
msgstr ""
|
1568 |
|
1569 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:230
|
1570 |
msgid "Enter the ID or classname of the parent container"
|
1571 |
msgstr ""
|
1572 |
|
1573 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:242
|
1574 |
msgid "Maximum Pages"
|
1575 |
msgstr ""
|
1576 |
|
1577 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:242
|
1578 |
msgid "If using an Infinite Scroll button style you should set this to 0"
|
1579 |
msgstr ""
|
1580 |
|
1581 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:243
|
1582 |
msgid "Maximum number of pages to load while scrolling. (0 = unlimited)"
|
1583 |
msgstr ""
|
1584 |
|
1585 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:255
|
1586 |
msgid "Pause Override"
|
1587 |
msgstr ""
|
1588 |
|
1589 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:256
|
1590 |
msgid ""
|
1591 |
"Allow scrolling to override the Pause parameter and trigger the loading of "
|
1592 |
"posts on scroll."
|
1593 |
msgstr ""
|
1594 |
|
1595 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:277
|
1596 |
msgid "Transition"
|
1597 |
msgstr ""
|
1598 |
|
1599 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:280
|
1600 |
msgid "Type"
|
1601 |
msgstr ""
|
1602 |
|
1603 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:281
|
1604 |
msgid "Select a loading transition style."
|
1605 |
msgstr ""
|
1606 |
|
|
|
|
|
|
|
|
|
1607 |
#: ../admin/shortcode-builder/shortcode-builder.php:286
|
1608 |
msgid "Fade"
|
1609 |
msgstr ""
|
1610 |
|
1611 |
#: ../admin/shortcode-builder/shortcode-builder.php:287
|
1612 |
+
msgid "Slide"
|
1613 |
+
msgstr ""
|
1614 |
+
|
1615 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:288
|
1616 |
msgid "Masonry"
|
1617 |
msgstr ""
|
1618 |
|
1619 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:301
|
1620 |
msgid "Masonry Options"
|
1621 |
msgstr ""
|
1622 |
|
1623 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:301
|
1624 |
msgid "Ajax Load More does not support all available Masonry options"
|
1625 |
msgstr ""
|
1626 |
|
1627 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:302
|
1628 |
msgid ""
|
1629 |
"The following Masonry <a href=\"https://masonry.desandro.com/options.html\" "
|
1630 |
"target=\"_blank\">options</a> are supported by Ajax Load More"
|
1631 |
msgstr ""
|
1632 |
|
1633 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:307
|
1634 |
msgid "Item Selector"
|
1635 |
msgstr ""
|
1636 |
|
1637 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:307
|
1638 |
msgid ""
|
1639 |
"Item Selector is required for Masonry to target each element loaded with Ajax"
|
1640 |
msgstr ""
|
1641 |
|
1642 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:308
|
1643 |
msgid "Enter the target classname of each masonry item"
|
1644 |
msgstr ""
|
1645 |
|
1646 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:322
|
1647 |
msgid "Animation Type"
|
1648 |
msgstr ""
|
1649 |
|
1650 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:322
|
1651 |
msgid "All Masonry animations include a fade-in effect as items are loaded"
|
1652 |
msgstr ""
|
1653 |
|
1654 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:323
|
1655 |
msgid "Select a loading transition for Masonry items"
|
1656 |
msgstr ""
|
1657 |
|
1658 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:331
|
1659 |
msgid "Default (Zoom)"
|
1660 |
msgstr ""
|
1661 |
|
1662 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:332
|
1663 |
msgid "Items scale up from 50% to 100% size on load"
|
1664 |
msgstr ""
|
1665 |
|
1666 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:338
|
1667 |
msgid "Zoom Out"
|
1668 |
msgstr ""
|
1669 |
|
1670 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:339
|
1671 |
msgid "Items scale down from 125% to 100% size on load"
|
1672 |
msgstr ""
|
1673 |
|
1674 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:345
|
1675 |
msgid "Slide Up"
|
1676 |
msgstr ""
|
1677 |
|
1678 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:346
|
1679 |
msgid "Items animate up as they are loaded into view."
|
1680 |
msgstr ""
|
1681 |
|
1682 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:352
|
1683 |
msgid "Slide Down"
|
1684 |
msgstr ""
|
1685 |
|
1686 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:353
|
1687 |
msgid "Items animate down when loaded into view."
|
1688 |
msgstr ""
|
1689 |
|
1690 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:370
|
1691 |
msgid "Horizontal Order"
|
1692 |
msgstr ""
|
1693 |
|
1694 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:371
|
1695 |
msgid "Lays out items to maintain left-to-right order"
|
1696 |
msgstr ""
|
1697 |
|
1698 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:398
|
1699 |
msgid "Transition Container"
|
1700 |
msgstr ""
|
1701 |
|
1702 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:398
|
1703 |
msgid ""
|
1704 |
"Removing the transition container may have undesired results and is not "
|
1705 |
"recommended"
|
1706 |
msgstr ""
|
1707 |
|
1708 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:399
|
1709 |
msgid ""
|
1710 |
"Remove the <span>.alm-reveal</span> loading container from Ajax Load More"
|
1711 |
msgstr ""
|
1712 |
|
1713 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:406
|
1714 |
msgid "Remove Container"
|
1715 |
msgstr ""
|
1716 |
|
1717 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:417
|
1718 |
msgid "Transition Container Classes"
|
1719 |
msgstr ""
|
1720 |
|
1721 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:417
|
1722 |
msgid ""
|
1723 |
"This setting is not available with the Previous Post or Next Page add-ons"
|
1724 |
msgstr ""
|
1725 |
|
1726 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:418
|
1727 |
msgid "Add custom classes to the <span>.alm-reveal</span> loading container"
|
1728 |
msgstr ""
|
1729 |
|
1730 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:434
|
1731 |
msgid "Speed"
|
1732 |
msgstr ""
|
1733 |
|
1734 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:434
|
1735 |
msgid "0.5 seconds = 500, 1 second = 1000 etc"
|
1736 |
msgstr ""
|
1737 |
|
1738 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:435
|
1739 |
msgid "The speed of the loading transition in milliseconds"
|
1740 |
msgstr ""
|
1741 |
|
1742 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:449
|
1743 |
msgid "Pause"
|
1744 |
msgstr ""
|
1745 |
|
1746 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:452
|
1747 |
msgid ""
|
1748 |
"Do <u>NOT</u> load any posts until user clicks the <em>Load More</em> button."
|
1749 |
msgstr ""
|
1750 |
|
1751 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:474
|
1752 |
msgid "Progress Bar"
|
1753 |
msgstr ""
|
1754 |
|
1755 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:477
|
1756 |
msgid ""
|
1757 |
"Display progress bar indicator at the top of the window while loading Ajax "
|
1758 |
"content"
|
1759 |
msgstr ""
|
1760 |
|
1761 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:506
|
1762 |
msgid "Color"
|
1763 |
msgstr ""
|
1764 |
|
1765 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:507
|
1766 |
msgid "Enter the hex color of the progress bar"
|
1767 |
msgstr ""
|
1768 |
|
1769 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:525
|
1770 |
msgid "Images Loaded"
|
1771 |
msgstr ""
|
1772 |
|
1773 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:528
|
1774 |
msgid "Wait for all images to load before displaying ajax loaded content"
|
1775 |
msgstr ""
|
1776 |
|
1777 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:528
|
1778 |
msgid "Background images are not supported"
|
1779 |
msgstr ""
|
1780 |
|
1781 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:550
|
1782 |
msgid "Destroy After"
|
1783 |
msgstr ""
|
1784 |
|
1788 |
"been loaded."
|
1789 |
msgstr ""
|
1790 |
|
1791 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:573
|
1792 |
msgid "Query Parameters"
|
1793 |
msgstr ""
|
1794 |
|
1795 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:577
|
1796 |
msgid "Posts Per Page"
|
1797 |
msgstr ""
|
1798 |
|
1799 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:580
|
1800 |
msgid "Select the number of posts to load with each request."
|
1801 |
msgstr ""
|
1802 |
|
1803 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:599
|
1804 |
msgid "Post Type"
|
1805 |
msgstr ""
|
1806 |
|
1807 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:604
|
1808 |
msgid "Select the Post Types to include in this Ajax Load More query."
|
1809 |
msgstr ""
|
1810 |
|
1811 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:618
|
1812 |
msgid "Any"
|
1813 |
msgstr ""
|
1814 |
|
1815 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:630
|
1816 |
msgid "Sticky Posts"
|
1817 |
msgstr ""
|
1818 |
|
1819 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:630
|
1820 |
msgid "Sticky posts are only available for Posts"
|
1821 |
msgstr ""
|
1822 |
|
1823 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:631
|
1824 |
msgid ""
|
1825 |
"Preserve the ordering of sticky posts by having them appear first in the "
|
1826 |
"Ajax listing."
|
1827 |
msgstr ""
|
1828 |
|
1829 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:638
|
1830 |
msgid "Enable Sticky Posts"
|
1831 |
msgstr ""
|
1832 |
|
1833 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:660
|
1834 |
msgid "Post Format"
|
1835 |
msgstr ""
|
1836 |
|
1837 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:663
|
1838 |
msgid ""
|
1839 |
"Select a <a href=\"http://codex.wordpress.org/Post_Formats\" target=\"_blank"
|
1840 |
"\">Post Format</a> to query."
|
1841 |
msgstr ""
|
1842 |
|
1843 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:666
|
1844 |
msgid "Select Post Format"
|
1845 |
msgstr ""
|
1846 |
|
1847 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:667
|
1848 |
msgid "Standard"
|
1849 |
msgstr ""
|
1850 |
|
1851 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:693
|
1852 |
msgid ""
|
1853 |
"A comma separated list of categories to include by slug. (design, research "
|
1854 |
"etc...)"
|
1855 |
msgstr ""
|
1856 |
|
1857 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:717
|
1858 |
msgid ""
|
1859 |
"A comma separated list of categories to exclude by ID. (3, 12, 35 etc..)"
|
1860 |
msgstr ""
|
1861 |
|
1862 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:753
|
1863 |
msgid ""
|
1864 |
"A comma separated list of tags to include by slug. (toronto, canada etc...)"
|
1865 |
msgstr ""
|
1866 |
|
1867 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:775
|
1868 |
msgid "A comma separated list of tags to exclude by ID. (30, 12, 99 etc..)"
|
1869 |
msgstr ""
|
1870 |
|
1871 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:811
|
1872 |
msgid "Select a taxonomy then select the terms and an operator."
|
1873 |
msgstr ""
|
1874 |
|
1875 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:816
|
1876 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:882
|
1877 |
msgid "Add Another"
|
1878 |
msgstr ""
|
1879 |
|
1880 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:826
|
1881 |
msgid "Date"
|
1882 |
msgstr ""
|
1883 |
|
1884 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:829
|
1885 |
msgid ""
|
1886 |
"Enter a year, month(number) and day to query by date archive.<br/>» <a "
|
1887 |
"href=\"admin.php?page=ajax-load-more-help§ion=examples#example-date\" "
|
1888 |
"target=\"_blank\">View Example</a>"
|
1889 |
msgstr ""
|
1890 |
|
1891 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:835
|
1892 |
msgid "Year:"
|
1893 |
msgstr ""
|
1894 |
|
1895 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:839
|
1896 |
msgid "Month:"
|
1897 |
msgstr ""
|
1898 |
|
1899 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:843
|
1900 |
msgid "Day:"
|
1901 |
msgstr ""
|
1902 |
|
1903 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:854
|
1904 |
msgid "Custom Fields (Meta_Query)"
|
1905 |
msgstr ""
|
1906 |
|
1907 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:857
|
1908 |
msgid ""
|
1909 |
"Query for <a href=\"http://codex.wordpress.org/Class_Reference/WP_Meta_Query"
|
1910 |
"\" target=\"_blank\">custom field</a> by entering a custom field key, value "
|
1911 |
"and operator."
|
1912 |
msgstr ""
|
1913 |
|
1914 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:868
|
1915 |
msgid ""
|
1916 |
"The logical relationship between each custom field when there is more than "
|
1917 |
"one"
|
1918 |
msgstr ""
|
1919 |
|
1920 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:898
|
1921 |
msgid "Author"
|
1922 |
msgstr ""
|
1923 |
|
1924 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:901
|
1925 |
msgid "Select an Author to query(by ID)."
|
1926 |
msgstr ""
|
1927 |
|
1928 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:922
|
1929 |
msgid "Search Term"
|
1930 |
msgstr ""
|
1931 |
|
1932 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:925
|
1933 |
msgid "Enter a search term to query."
|
1934 |
msgstr ""
|
1935 |
|
1936 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:929
|
1937 |
msgid "Enter search term"
|
1938 |
msgstr ""
|
1939 |
|
1940 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:938
|
1941 |
msgid "Post Parameters"
|
1942 |
msgstr ""
|
1943 |
|
1944 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:942
|
1945 |
msgid "A comma separated list of post ID's to query."
|
1946 |
msgstr ""
|
1947 |
|
1948 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:946
|
1949 |
msgid "225, 340, 818, etc..."
|
1950 |
msgstr ""
|
1951 |
|
1952 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:953
|
1953 |
msgid "A comma separated list of post ID's to exclude from query."
|
1954 |
msgstr ""
|
1955 |
|
1956 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:963
|
1957 |
msgid "Post Status"
|
1958 |
msgstr ""
|
1959 |
|
1960 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:963
|
1961 |
msgid ""
|
1962 |
"Post Status parameters are only available for logged in (admin) users. Non "
|
1963 |
"logged in users will only have access to view content in a 'publish' or "
|
1964 |
"'inherit' state."
|
1965 |
msgstr ""
|
1966 |
|
1967 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:964
|
1968 |
msgid "Select status of the post."
|
1969 |
msgstr ""
|
1970 |
|
1971 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:969
|
1972 |
msgid "Published"
|
1973 |
msgstr ""
|
1974 |
|
1975 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:986
|
1976 |
msgid "Ordering"
|
1977 |
msgstr ""
|
1978 |
|
1979 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:989
|
1980 |
msgid "Sort posts by Order and Orderby parameters."
|
1981 |
msgstr ""
|
1982 |
|
1983 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:1021
|
1984 |
msgid "Offset"
|
1985 |
msgstr ""
|
1986 |
|
1987 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:1024
|
1988 |
msgid "Offset the initial query by <em>'n'</em> number of posts"
|
1989 |
msgstr ""
|
1990 |
|
1991 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:1037
|
1992 |
msgid "Custom Arguments"
|
1993 |
msgstr ""
|
1994 |
|
1995 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:1040
|
1996 |
msgid "A semicolon separated list of custom value:pair arguments."
|
1997 |
msgstr ""
|
1998 |
|
1999 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:1040
|
2000 |
msgid ""
|
2001 |
"Custom Arguments can be used to query by parameters not available in the "
|
2002 |
"Shortcode Builder"
|
2003 |
msgstr ""
|
2004 |
|
2005 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:1044
|
2006 |
msgid "event_display:upcoming"
|
2007 |
msgstr ""
|
2008 |
|
2016 |
"Load More"
|
2017 |
msgstr ""
|
2018 |
|
2019 |
+
#: ../admin/views/add-ons.php:38
|
2020 |
+
msgid "Installed"
|
2021 |
+
msgstr ""
|
2022 |
+
|
2023 |
+
#: ../admin/views/add-ons.php:40
|
2024 |
+
msgid "Purchase"
|
2025 |
+
msgstr ""
|
2026 |
+
|
2027 |
+
#: ../admin/views/add-ons.php:49
|
2028 |
msgid ""
|
2029 |
"All add-ons are installed as stand alone plugins and with a valid license "
|
2030 |
"key will receive plugin update notifications directly within the <a href="
|
2088 |
|
2089 |
#: ../admin/views/licenses.php:6
|
2090 |
msgid ""
|
2091 |
+
"Enter your license keys to enable <a href=\"admin.php?page=ajax-load-more-"
|
2092 |
+
"add-ons\">add-on</a> updates from the plugins dashboard"
|
2093 |
msgstr ""
|
2094 |
|
2095 |
#: ../admin/views/licenses.php:14
|
2261 |
msgid "Admin"
|
2262 |
msgstr ""
|
2263 |
|
2264 |
+
#: ../admin/views/settings.php:72
|
2265 |
msgid "SEO"
|
2266 |
msgstr ""
|
2267 |
|
2297 |
msgid "Copy Shortcode"
|
2298 |
msgstr ""
|
2299 |
|
2300 |
+
#: ../ajax-load-more.php:216
|
2301 |
msgid "Settings"
|
2302 |
msgstr ""
|
2303 |
|