Version Description
- January 16, 2019 =
- FIX - Removed duplicate
transition_container_classes
when using Paging add-on. - FIX - Fixed issue with
alm-listing
container causing an error with the Comments addon.
Download this release
Release Info
Developer | dcooney |
Plugin | WordPress Infinite Scroll – Ajax Load More |
Version | 4.2.0.1 |
Comparing to | |
See all releases |
Code changes from version 4.1.0 to 4.2.0.1
- README.txt +17 -6
- admin/admin-functions.php +4 -3
- admin/admin.php +6 -6
- admin/dist/css/admin.css +74 -34
- admin/includes/cta/dyk.php +1 -1
- admin/shortcode-builder/components/acf.php +0 -2
- admin/shortcode-builder/components/comments.php +4 -2
- admin/shortcode-builder/components/cta.php +5 -3
- admin/shortcode-builder/components/nextpage.php +4 -1
- admin/shortcode-builder/components/previous-post.php +0 -86
- admin/shortcode-builder/components/rest-api.php +3 -1
- admin/shortcode-builder/components/single-post.php +124 -0
- admin/shortcode-builder/js/shortcode-builder.js +84 -61
- admin/shortcode-builder/shortcode-builder.php +20 -18
- admin/src/scss/admin.scss +72 -24
- admin/views/settings.php +18 -18
- admin/views/shortcode-builder.php +2 -2
- ajax-load-more.php +32 -23
- core/classes/class.alm-localize.php +5 -7
- core/classes/class.alm-shortcode.php +47 -34
- core/dist/js/ajax-load-more.js +299 -270
- core/dist/js/ajax-load-more.min.js +1 -1
- core/functions.php +51 -51
- core/src/js/ajax-load-more.js +342 -311
- core/src/js/helpers/queryParams.js +2 -2
- lang/ajax-load-more.pot +242 -200
- package.json +4 -3
README.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: dcooney, connekthq
|
|
3 |
Donate link: https://connekthq.com/donate/
|
4 |
Tags: infinite scroll, infinite scrolling, scroll, infinite, lazy load, lazy loading, endless scroll, pagination, ajax pagination, ajax, ajax posts, woocommerce, ajax load more, masonry
|
5 |
Requires at least: 3.6
|
6 |
-
Tested up to: 5.0
|
7 |
-
Stable tag: 4.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -22,7 +22,6 @@ Ajax Load More is compatible for endless scrolling with popular eCommerce plugin
|
|
22 |
|
23 |
|
24 |
|
25 |
-
|
26 |
### Features
|
27 |
* **Shortcode Builder** - Create your own custom Ajax Load More shortcode by adjusting the various WordPress query parameters in our easy-to-use shortcode builder (see Shortcode Parameters).
|
28 |
* **Query Parameters** - Ajax Load More allows you to query WordPress by many different content types. Query by Post Type, Post Format, Date, Category, Tags, Custom Taxonomies, Search Term, Authors and more!
|
@@ -62,7 +61,7 @@ Check out the examples below:
|
|
62 |
* [Comments](http://examples.connekthq.com/alm-comments/example-post/) *
|
63 |
* [Advanced Custom Fields](https://connekthq.com/plugins/ajax-load-more/examples/advanced-custom-fields/)
|
64 |
|
65 |
-
*
|
66 |
|
67 |
|
68 |
|
@@ -179,8 +178,8 @@ The [Custom Repeater Add-On](https://connekthq.com/plugins/ajax-load-more/custom
|
|
179 |
* **[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.
|
180 |
* **[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.
|
181 |
* **[Preloaded](https://connekthq.com/plugins/ajax-load-more/add-ons/preloaded/)**: Load an initial set of posts before sending any Ajax requests to your server.
|
182 |
-
* **[Previous Post](https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/)**: Enable infinite scrolling of older(previous) posts on your WordPress single post templates.
|
183 |
* **[SEO](https://connekthq.com/plugins/ajax-load-more/add-ons/search-engine-optimization/)**: Generate unique paging URLs with each Ajax Load More query.
|
|
|
184 |
* **[Theme Repeaters](https://connekthq.com/plugins/ajax-load-more/add-ons/theme-repeaters/)**: Manage Ajax Load More repeater templates from within your current theme directory.
|
185 |
* **[Users](https://connekthq.com/plugins/ajax-load-more/add-ons/users/)**: Lazy loading WordPress Users with Ajax Load More.
|
186 |
|
@@ -235,7 +234,7 @@ The following [functions](https://connekthq.com/plugins/ajax-load-more/docs/call
|
|
235 |
};
|
236 |
|
237 |
|
238 |
-
**URL Update** - The almUrlUpdate() function is triggered after a successful URL update (pushState) from the
|
239 |
|
240 |
$.fn.almUrlUpdate = function(permalink, type){
|
241 |
console.log("URL updated to " + permalink + '- dispatched from the '+ type + ' add-on.');
|
@@ -372,6 +371,18 @@ How to install Ajax Load More.
|
|
372 |
|
373 |
== Changelog ==
|
374 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
375 |
= 4.1.0 - December 6, 2018 =
|
376 |
* NEW - Added initial support for nesting Ajax Load More instances. Users can now run Ajax Load More inside of another instance of Ajax Load More. For example, using Next Page add-on functionality inside of Previous Post content(Single posts). `[ajax_load_more nested="true"]`. Note: This is new functionality as should be used with caution as it has not fully been tested through every possible situation. Nested ALM Filters are not currently supported.
|
377 |
* NEW - Added new plugin uninstall script and settings for removing all Ajax Load More data on plugin removal/deletion.
|
3 |
Donate link: https://connekthq.com/donate/
|
4 |
Tags: infinite scroll, infinite scrolling, scroll, infinite, lazy load, lazy loading, endless scroll, pagination, ajax pagination, ajax, ajax posts, woocommerce, ajax load more, masonry
|
5 |
Requires at least: 3.6
|
6 |
+
Tested up to: 5.1.0
|
7 |
+
Stable tag: 4.2.0.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
22 |
|
23 |
|
24 |
|
|
|
25 |
### Features
|
26 |
* **Shortcode Builder** - Create your own custom Ajax Load More shortcode by adjusting the various WordPress query parameters in our easy-to-use shortcode builder (see Shortcode Parameters).
|
27 |
* **Query Parameters** - Ajax Load More allows you to query WordPress by many different content types. Query by Post Type, Post Format, Date, Category, Tags, Custom Taxonomies, Search Term, Authors and more!
|
61 |
* [Comments](http://examples.connekthq.com/alm-comments/example-post/) *
|
62 |
* [Advanced Custom Fields](https://connekthq.com/plugins/ajax-load-more/examples/advanced-custom-fields/)
|
63 |
|
64 |
+
_*Add-on required_
|
65 |
|
66 |
|
67 |
|
178 |
* **[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.
|
179 |
* **[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.
|
180 |
* **[Preloaded](https://connekthq.com/plugins/ajax-load-more/add-ons/preloaded/)**: Load an initial set of posts before sending any Ajax requests to your server.
|
|
|
181 |
* **[SEO](https://connekthq.com/plugins/ajax-load-more/add-ons/search-engine-optimization/)**: Generate unique paging URLs with each Ajax Load More query.
|
182 |
+
* **[Single Post](https://connekthq.com/plugins/ajax-load-more/add-ons/single-post/)**: Enable infinite scrolling of single posts on your WordPress post templates.
|
183 |
* **[Theme Repeaters](https://connekthq.com/plugins/ajax-load-more/add-ons/theme-repeaters/)**: Manage Ajax Load More repeater templates from within your current theme directory.
|
184 |
* **[Users](https://connekthq.com/plugins/ajax-load-more/add-ons/users/)**: Lazy loading WordPress Users with Ajax Load More.
|
185 |
|
234 |
};
|
235 |
|
236 |
|
237 |
+
**URL Update** - The almUrlUpdate() function is triggered after a successful URL update (pushState) from the Single Post or the Search Engine Optimization add-on
|
238 |
|
239 |
$.fn.almUrlUpdate = function(permalink, type){
|
240 |
console.log("URL updated to " + permalink + '- dispatched from the '+ type + ' add-on.');
|
371 |
|
372 |
== Changelog ==
|
373 |
|
374 |
+
= 4.2.0.1 - January 16, 2019 =
|
375 |
+
* FIX - Removed duplicate `transition_container_classes` when using Paging add-on.
|
376 |
+
* FIX - Fixed issue with `alm-listing` container causing an error with the Comments addon.
|
377 |
+
|
378 |
+
= 4.2.0 - January 15, 2019 =
|
379 |
+
* UPGRADE NOTICE - If you also are using the Previous Post add-on you must also update that plugin.
|
380 |
+
* NEW - Added new render function `alm_render` for displaying ALM without a shortcode.
|
381 |
+
* UPDATE - Started updating core JS to remove jQuery functions. Hopefully sooner than later jQuery will no longer be a dependancy.
|
382 |
+
* UPDATE - Updated default `scroll_distance` to 100 from 150.
|
383 |
+
* UPDATE - Various admin UI/UX updates.
|
384 |
+
* UPDATE - Various bug fixes.
|
385 |
+
|
386 |
= 4.1.0 - December 6, 2018 =
|
387 |
* NEW - Added initial support for nesting Ajax Load More instances. Users can now run Ajax Load More inside of another instance of Ajax Load More. For example, using Next Page add-on functionality inside of Previous Post content(Single posts). `[ajax_load_more nested="true"]`. Note: This is new functionality as should be used with caution as it has not fully been tested through every possible situation. Nested ALM Filters are not currently supported.
|
388 |
* NEW - Added new plugin uninstall script and settings for removing all Ajax Load More data on plugin removal/deletion.
|
admin/admin-functions.php
CHANGED
@@ -37,10 +37,11 @@ function alm_has_addon_shortcodes(){
|
|
37 |
'alm_comments_installed',
|
38 |
'alm_nextpage_installed',
|
39 |
'alm_preload_installed',
|
40 |
-
'alm_paging_installed',
|
41 |
'alm_prev_post_installed',
|
42 |
'alm_rest_api_installed',
|
43 |
-
'alm_seo_installed',
|
|
|
44 |
'alm_users_installed'
|
45 |
);
|
46 |
|
@@ -70,7 +71,7 @@ function alm_has_addon_shortcodes(){
|
|
70 |
*/
|
71 |
|
72 |
function alm_has_addon(){
|
73 |
-
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')) {
|
74 |
return true;
|
75 |
} else {
|
76 |
return false;
|
37 |
'alm_comments_installed',
|
38 |
'alm_nextpage_installed',
|
39 |
'alm_preload_installed',
|
40 |
+
'alm_paging_installed',
|
41 |
'alm_prev_post_installed',
|
42 |
'alm_rest_api_installed',
|
43 |
+
'alm_seo_installed',
|
44 |
+
'alm_single_post_installed',
|
45 |
'alm_users_installed'
|
46 |
);
|
47 |
|
71 |
*/
|
72 |
|
73 |
function alm_has_addon(){
|
74 |
+
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_single_post_installed') || has_action('alm_rest_api_installed') || has_action('alm_seo_installed') || has_action('alm_theme_repeaters_installed') || has_action('alm_users_installed')) {
|
75 |
return true;
|
76 |
} else {
|
77 |
return false;
|
admin/admin.php
CHANGED
@@ -1305,12 +1305,6 @@ function alm_admin_init(){
|
|
1305 |
}
|
1306 |
|
1307 |
|
1308 |
-
// PREVIOUS POST
|
1309 |
-
if(has_action('alm_prev_post_settings')){
|
1310 |
-
do_action('alm_prev_post_settings');
|
1311 |
-
}
|
1312 |
-
|
1313 |
-
|
1314 |
// PRELOADED
|
1315 |
if(has_action('alm_preloaded_settings')){
|
1316 |
do_action('alm_preloaded_settings');
|
@@ -1329,6 +1323,12 @@ function alm_admin_init(){
|
|
1329 |
}
|
1330 |
|
1331 |
|
|
|
|
|
|
|
|
|
|
|
|
|
1332 |
// THEME REPEATERS
|
1333 |
if(has_action('alm_theme_repeaters_settings')){
|
1334 |
do_action('alm_theme_repeaters_settings');
|
1305 |
}
|
1306 |
|
1307 |
|
|
|
|
|
|
|
|
|
|
|
|
|
1308 |
// PRELOADED
|
1309 |
if(has_action('alm_preloaded_settings')){
|
1310 |
do_action('alm_preloaded_settings');
|
1323 |
}
|
1324 |
|
1325 |
|
1326 |
+
// SINGLE POST
|
1327 |
+
if(has_action('alm_prev_post_settings')){
|
1328 |
+
do_action('alm_prev_post_settings');
|
1329 |
+
}
|
1330 |
+
|
1331 |
+
|
1332 |
// THEME REPEATERS
|
1333 |
if(has_action('alm_theme_repeaters_settings')){
|
1334 |
do_action('alm_theme_repeaters_settings');
|
admin/dist/css/admin.css
CHANGED
@@ -243,6 +243,8 @@
|
|
243 |
background: #fff;
|
244 |
background: #f7f7f7;
|
245 |
border-radius: 2px;
|
|
|
|
|
246 |
background-clip: padding-box;
|
247 |
-webkit-touch-callout: none;
|
248 |
-webkit-user-select: none;
|
@@ -1189,10 +1191,23 @@ a.layout-hover:hover img {
|
|
1189 |
margin-top: -10px;
|
1190 |
opacity: 0.7; }
|
1191 |
|
|
|
|
|
|
|
1192 |
.ajax-load-more p.small.reset-shortcode-builder {
|
|
|
|
|
|
|
|
|
|
|
|
|
1193 |
text-align: right;
|
1194 |
-
margin:
|
1195 |
-
|
|
|
|
|
|
|
|
|
1196 |
|
1197 |
.ajax-load-more p.small.reset-shortcode-builder a {
|
1198 |
text-decoration: none; }
|
@@ -1305,6 +1320,19 @@ a.layout-hover:hover img {
|
|
1305 |
#alm-builder {
|
1306 |
font-family: -apple-system,BlinkMacSystemFont, "Segoe UI", Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif; }
|
1307 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1308 |
.ajax-load-more ul {
|
1309 |
padding: 0;
|
1310 |
margin: 0;
|
@@ -1318,7 +1346,8 @@ a.layout-hover:hover img {
|
|
1318 |
clear: both;
|
1319 |
display: inline-block;
|
1320 |
vertical-align: top;
|
1321 |
-
overflow: visible;
|
|
|
1322 |
|
1323 |
.ajax-load-more label.full {
|
1324 |
display: block;
|
@@ -1483,24 +1512,36 @@ a.layout-hover:hover img {
|
|
1483 |
padding-bottom: 0; }
|
1484 |
|
1485 |
.ajax-load-more p.warning-callout {
|
1486 |
-
background-color: #
|
1487 |
-
border-left:
|
1488 |
color: #333;
|
1489 |
-
font-size:
|
1490 |
margin: 0;
|
1491 |
display: block;
|
1492 |
-
padding:
|
1493 |
border-radius: 3px;
|
1494 |
margin: 10px;
|
1495 |
width: auto;
|
1496 |
-
line-height: 1.55;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1497 |
|
1498 |
.ajax-load-more p.warning-callout strong {
|
1499 |
display: inline-block;
|
1500 |
font-weight: normal;
|
1501 |
-
font-family: Consolas,monaco,monospace;
|
1502 |
-
background-color: #
|
1503 |
-
color: #525c5f;
|
1504 |
padding: 0 6px;
|
1505 |
border-radius: 2px; }
|
1506 |
|
@@ -1783,29 +1824,27 @@ hr.indented {
|
|
1783 |
|
1784 |
.ajax-load-more .section-title {
|
1785 |
float: left;
|
1786 |
-
padding: 20px 0
|
1787 |
width: 35%; }
|
|
|
|
|
|
|
|
|
1788 |
.ajax-load-more .section-title p:last-of-type {
|
1789 |
margin-bottom: 0; }
|
1790 |
.ajax-load-more .section-title small {
|
1791 |
font-size: 11px;
|
1792 |
padding-top: 8px;
|
1793 |
display: block; }
|
1794 |
-
|
1795 |
-
|
1796 |
-
|
1797 |
-
|
1798 |
-
|
1799 |
-
.ajax-load-more .section-title
|
1800 |
-
|
1801 |
-
|
1802 |
-
|
1803 |
-
|
1804 |
-
.ajax-load-more .section-title p,
|
1805 |
-
.ajax-load-more .wrap p.descriptor {
|
1806 |
-
font-size: 13px;
|
1807 |
-
line-height: 20px;
|
1808 |
-
color: #999; }
|
1809 |
|
1810 |
.ajax-load-more .wrap p.descriptor {
|
1811 |
margin: 0;
|
@@ -1982,11 +2021,6 @@ hr.indented {
|
|
1982 |
border: none;
|
1983 |
padding: 12px 12px 24px; }
|
1984 |
|
1985 |
-
#shortcode_output::-moz-selection {
|
1986 |
-
background: #fff;
|
1987 |
-
color: #ca5252;
|
1988 |
-
text-shadow: none; }
|
1989 |
-
|
1990 |
#shortcode_output::selection {
|
1991 |
background: #fff;
|
1992 |
color: #ca5252;
|
@@ -2411,7 +2445,10 @@ table.highlight {
|
|
2411 |
flex-wrap: wrap;
|
2412 |
margin-bottom: 20px;
|
2413 |
border-top: 1px solid #e1e1e1;
|
2414 |
-
border-left: 1px solid #e1e1e1;
|
|
|
|
|
|
|
2415 |
|
2416 |
#alm-add-ons .group {
|
2417 |
overflow: hidden;
|
@@ -3485,7 +3522,10 @@ p.theme-title {
|
|
3485 |
.shortcode-builder input[type=radio],
|
3486 |
.ajax-load-more .form-table input[type=checkbox],
|
3487 |
.ajax-load-more .form-table input[type=radio] {
|
3488 |
-
|
|
|
|
|
|
|
3489 |
|
3490 |
.shortcode-builder input[type=checkbox] + label,
|
3491 |
.ajax-load-more .form-table input[type=checkbox] + label,
|
243 |
background: #fff;
|
244 |
background: #f7f7f7;
|
245 |
border-radius: 2px;
|
246 |
+
-webkit-background-clip: padding-box;
|
247 |
+
-moz-background-clip: padding;
|
248 |
background-clip: padding-box;
|
249 |
-webkit-touch-callout: none;
|
250 |
-webkit-user-select: none;
|
1191 |
margin-top: -10px;
|
1192 |
opacity: 0.7; }
|
1193 |
|
1194 |
+
.ajax-load-more.shortcode-builder .major-publishing-actions {
|
1195 |
+
position: relative; }
|
1196 |
+
|
1197 |
.ajax-load-more p.small.reset-shortcode-builder {
|
1198 |
+
position: absolute;
|
1199 |
+
right: 15px;
|
1200 |
+
top: 50%;
|
1201 |
+
-webkit-transform: translateY(-45%);
|
1202 |
+
-ms-transform: translateY(-45%);
|
1203 |
+
transform: translateY(-45%);
|
1204 |
text-align: right;
|
1205 |
+
margin: 0;
|
1206 |
+
padding: 0;
|
1207 |
+
display: none;
|
1208 |
+
width: auto;
|
1209 |
+
opacity: 1;
|
1210 |
+
font-size: 12px; }
|
1211 |
|
1212 |
.ajax-load-more p.small.reset-shortcode-builder a {
|
1213 |
text-decoration: none; }
|
1320 |
#alm-builder {
|
1321 |
font-family: -apple-system,BlinkMacSystemFont, "Segoe UI", Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif; }
|
1322 |
|
1323 |
+
a.button-small {
|
1324 |
+
text-decoration: none;
|
1325 |
+
font-size: 11px;
|
1326 |
+
padding: 7px;
|
1327 |
+
display: inline-block;
|
1328 |
+
background-color: #eaf6fb;
|
1329 |
+
color: #333;
|
1330 |
+
line-height: 1.1;
|
1331 |
+
border-radius: 2px; }
|
1332 |
+
a.button-small:hover, a.button-small:focus {
|
1333 |
+
color: #222;
|
1334 |
+
background-color: #d9edf5; }
|
1335 |
+
|
1336 |
.ajax-load-more ul {
|
1337 |
padding: 0;
|
1338 |
margin: 0;
|
1346 |
clear: both;
|
1347 |
display: inline-block;
|
1348 |
vertical-align: top;
|
1349 |
+
overflow: visible;
|
1350 |
+
position: relative; }
|
1351 |
|
1352 |
.ajax-load-more label.full {
|
1353 |
display: block;
|
1512 |
padding-bottom: 0; }
|
1513 |
|
1514 |
.ajax-load-more p.warning-callout {
|
1515 |
+
background-color: #eaf6fb;
|
1516 |
+
border-left: 6px solid #4e99bf;
|
1517 |
color: #333;
|
1518 |
+
font-size: 12px;
|
1519 |
margin: 0;
|
1520 |
display: block;
|
1521 |
+
padding: 18px 100px 18px 18px;
|
1522 |
border-radius: 3px;
|
1523 |
margin: 10px;
|
1524 |
width: auto;
|
1525 |
+
line-height: 1.55;
|
1526 |
+
position: relative; }
|
1527 |
+
.ajax-load-more p.warning-callout a {
|
1528 |
+
color: #0071ac; }
|
1529 |
+
.ajax-load-more p.warning-callout a.button-small {
|
1530 |
+
position: absolute;
|
1531 |
+
right: 14px;
|
1532 |
+
top: 14px;
|
1533 |
+
font-size: 12px;
|
1534 |
+
display: inline-block;
|
1535 |
+
background-color: rgba(255, 255, 255, 0.65);
|
1536 |
+
margin: 0 0 0 10px; }
|
1537 |
+
.ajax-load-more p.warning-callout a.button-small:hover, .ajax-load-more p.warning-callout a.button-small:focus {
|
1538 |
+
background-color: #fff; }
|
1539 |
|
1540 |
.ajax-load-more p.warning-callout strong {
|
1541 |
display: inline-block;
|
1542 |
font-weight: normal;
|
1543 |
+
font-family: Consolas, monaco, monospace;
|
1544 |
+
background-color: #fff;
|
|
|
1545 |
padding: 0 6px;
|
1546 |
border-radius: 2px; }
|
1547 |
|
1824 |
|
1825 |
.ajax-load-more .section-title {
|
1826 |
float: left;
|
1827 |
+
padding: 20px 0 25px 20px;
|
1828 |
width: 35%; }
|
1829 |
+
.ajax-load-more .section-title.full {
|
1830 |
+
width: 100%;
|
1831 |
+
float: none;
|
1832 |
+
padding-right: 25px; }
|
1833 |
.ajax-load-more .section-title p:last-of-type {
|
1834 |
margin-bottom: 0; }
|
1835 |
.ajax-load-more .section-title small {
|
1836 |
font-size: 11px;
|
1837 |
padding-top: 8px;
|
1838 |
display: block; }
|
1839 |
+
.ajax-load-more .section-title h4 {
|
1840 |
+
font-size: 14px;
|
1841 |
+
font-weight: 600;
|
1842 |
+
margin-bottom: 15px; }
|
1843 |
+
.ajax-load-more .section-title p,
|
1844 |
+
.ajax-load-more .section-title .wrap p.descriptor {
|
1845 |
+
font-size: 13px;
|
1846 |
+
line-height: 20px;
|
1847 |
+
color: #999; }
|
|
|
|
|
|
|
|
|
|
|
|
|
1848 |
|
1849 |
.ajax-load-more .wrap p.descriptor {
|
1850 |
margin: 0;
|
2021 |
border: none;
|
2022 |
padding: 12px 12px 24px; }
|
2023 |
|
|
|
|
|
|
|
|
|
|
|
2024 |
#shortcode_output::selection {
|
2025 |
background: #fff;
|
2026 |
color: #ca5252;
|
2445 |
flex-wrap: wrap;
|
2446 |
margin-bottom: 20px;
|
2447 |
border-top: 1px solid #e1e1e1;
|
2448 |
+
border-left: 1px solid #e1e1e1;
|
2449 |
+
background-color: #f7f7f7;
|
2450 |
+
-webkit-box-shadow: inset 0 0 0 1px #e1e1e1;
|
2451 |
+
box-shadow: inset 0 0 0 1px #e1e1e1; }
|
2452 |
|
2453 |
#alm-add-ons .group {
|
2454 |
overflow: hidden;
|
3522 |
.shortcode-builder input[type=radio],
|
3523 |
.ajax-load-more .form-table input[type=checkbox],
|
3524 |
.ajax-load-more .form-table input[type=radio] {
|
3525 |
+
width: 0;
|
3526 |
+
height: 0;
|
3527 |
+
opacity: 0;
|
3528 |
+
position: absolute; }
|
3529 |
|
3530 |
.shortcode-builder input[type=checkbox] + label,
|
3531 |
.ajax-load-more .form-table input[type=checkbox] + label,
|
admin/includes/cta/dyk.php
CHANGED
@@ -36,7 +36,7 @@
|
|
36 |
</div>
|
37 |
<div class="text">
|
38 |
<p class="addon-intro">You can lazy load single posts with Ajax Load More!</p>
|
39 |
-
<p>The <a target="blank" style="font-weight: 600;" href="https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=PreviousPost">
|
40 |
</div>
|
41 |
</div>
|
42 |
<div class="major-publishing-actions">
|
36 |
</div>
|
37 |
<div class="text">
|
38 |
<p class="addon-intro">You can lazy load single posts with Ajax Load More!</p>
|
39 |
+
<p>The <a target="blank" style="font-weight: 600;" href="https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=PreviousPost">Single Post</a> add-on will load single posts as you scroll and update the browser URL to the current post.</p>
|
40 |
</div>
|
41 |
</div>
|
42 |
<div class="major-publishing-actions">
|
admin/shortcode-builder/components/acf.php
CHANGED
@@ -37,7 +37,6 @@
|
|
37 |
|
38 |
<div class="clear"></div>
|
39 |
<hr/>
|
40 |
-
<div class="spacer"></div>
|
41 |
|
42 |
<div class="section-title">
|
43 |
<h4><?php _e('Field Type', 'ajax-load-more'); ?></h4>
|
@@ -58,7 +57,6 @@
|
|
58 |
|
59 |
<div class="clear"></div>
|
60 |
<hr/>
|
61 |
-
<div class="spacer"></div>
|
62 |
|
63 |
<div class="section-title">
|
64 |
<h4><?php _e('Field Name', 'ajax-load-more'); ?></h4>
|
37 |
|
38 |
<div class="clear"></div>
|
39 |
<hr/>
|
|
|
40 |
|
41 |
<div class="section-title">
|
42 |
<h4><?php _e('Field Type', 'ajax-load-more'); ?></h4>
|
57 |
|
58 |
<div class="clear"></div>
|
59 |
<hr/>
|
|
|
60 |
|
61 |
<div class="section-title">
|
62 |
<h4><?php _e('Field Name', 'ajax-load-more'); ?></h4>
|
admin/shortcode-builder/components/comments.php
CHANGED
@@ -137,9 +137,11 @@
|
|
137 |
<p><?php _e('<strong>Note</strong>: The majority of premium themes have a custom callback function for displaying comments. Please see comments.php or functions.php within your theme directory to locate the callback function for your theme.', 'ajax-load-more'); ?></p>
|
138 |
</div>
|
139 |
</div>
|
140 |
-
|
|
|
|
|
141 |
<p class="warning-callout">
|
142 |
-
<?php _e('You must add the comments shortcode directly to your single template file using the <a href="https://developer.wordpress.org/reference/functions/do_shortcode/" target="_blank">do_shortcode</a> method.
|
143 |
</p>
|
144 |
|
145 |
</div>
|
137 |
<p><?php _e('<strong>Note</strong>: The majority of premium themes have a custom callback function for displaying comments. Please see comments.php or functions.php within your theme directory to locate the callback function for your theme.', 'ajax-load-more'); ?></p>
|
138 |
</div>
|
139 |
</div>
|
140 |
+
|
141 |
+
<div class="clear"></div>
|
142 |
+
<hr>
|
143 |
<p class="warning-callout">
|
144 |
+
<?php _e('You must add the comments shortcode directly to your single template file using the <a href="https://developer.wordpress.org/reference/functions/do_shortcode/" target="_blank">do_shortcode</a> method.', 'ajax-load-more'); ?> <a class="button-small" href="https://connekthq.com/plugins/ajax-load-more/add-ons/comments/" target="_blank"><?php _e('View Docs', 'ajax-load-more'); ?></a>
|
145 |
</p>
|
146 |
|
147 |
</div>
|
admin/shortcode-builder/components/cta.php
CHANGED
@@ -79,10 +79,12 @@
|
|
79 |
do_action('alm_theme_repeaters_selection');
|
80 |
}
|
81 |
?>
|
82 |
-
|
|
|
|
|
83 |
<p class="warning-callout">
|
84 |
-
<?php _e('Call to actions do NOT count as a post within an Ajax Load More loop
|
85 |
-
|
86 |
</p>
|
87 |
|
88 |
</div>
|
79 |
do_action('alm_theme_repeaters_selection');
|
80 |
}
|
81 |
?>
|
82 |
+
|
83 |
+
<div class="clear"></div>
|
84 |
+
<hr>
|
85 |
<p class="warning-callout">
|
86 |
+
<?php _e('Call to actions do NOT count as a post within an Ajax Load More loop.', 'ajax-load-more'); ?><br/>
|
87 |
+
<?php _e('For example, if you set <strong>posts_per_page="5"</strong> in your shortcode, 6 items will be displayed.', 'ajax-load-more'); ?>
|
88 |
</p>
|
89 |
|
90 |
</div>
|
admin/shortcode-builder/components/nextpage.php
CHANGED
@@ -103,7 +103,10 @@
|
|
103 |
</label>
|
104 |
<input id="next-page-scroll-top" name="next-page-scroll-top" class="alm_element sm" type="number" min="0" max="1000" step="1" value="30" placeholder="30">
|
105 |
</div>
|
106 |
-
</div>
|
|
|
|
|
|
|
107 |
|
108 |
<p class="warning-callout">
|
109 |
<?php _e('You must add the Next Page shortcode directly to your single template file using the <a href="https://developer.wordpress.org/reference/functions/do_shortcode/" target="_blank">do_shortcode</a> method. » <a href="https://connekthq.com/plugins/ajax-load-more/add-ons/next-page/" target="_blank">View documentation</a>', 'ajax-load-more'); ?>
|
103 |
</label>
|
104 |
<input id="next-page-scroll-top" name="next-page-scroll-top" class="alm_element sm" type="number" min="0" max="1000" step="1" value="30" placeholder="30">
|
105 |
</div>
|
106 |
+
</div>
|
107 |
+
|
108 |
+
<div class="clear"></div>
|
109 |
+
<hr>
|
110 |
|
111 |
<p class="warning-callout">
|
112 |
<?php _e('You must add the Next Page shortcode directly to your single template file using the <a href="https://developer.wordpress.org/reference/functions/do_shortcode/" target="_blank">do_shortcode</a> method. » <a href="https://connekthq.com/plugins/ajax-load-more/add-ons/next-page/" target="_blank">View documentation</a>', 'ajax-load-more'); ?>
|
admin/shortcode-builder/components/previous-post.php
DELETED
@@ -1,86 +0,0 @@
|
|
1 |
-
<?php if(has_action('alm_prev_post_installed')){ ?>
|
2 |
-
<div class="row input previous-post add-on" id="alm-previous-post">
|
3 |
-
<h3 class="heading" tabindex="0"><?php _e('Previous Post', 'ajax-load-more'); ?></h3>
|
4 |
-
<div class="expand-wrap">
|
5 |
-
<div class="section-title">
|
6 |
-
<p><?php _e('Enable the infinite scrolling of single posts.', 'ajax-load-more'); ?></p>
|
7 |
-
</div>
|
8 |
-
<div class="wrap">
|
9 |
-
<div class="inner">
|
10 |
-
<ul>
|
11 |
-
<li>
|
12 |
-
<input class="alm_element" type="radio" name="prev-post" value="true" id="prev-post-true" >
|
13 |
-
<label for="prev-post-true"><?php _e('True', 'ajax-load-more'); ?></label>
|
14 |
-
</li>
|
15 |
-
<li>
|
16 |
-
<input class="alm_element" type="radio" name="prev-post" value="false" id="prev-post-false" checked="checked">
|
17 |
-
<label for="prev-post-false"><?php _e('False', 'ajax-load-more'); ?></label>
|
18 |
-
</li>
|
19 |
-
</ul>
|
20 |
-
</div>
|
21 |
-
</div>
|
22 |
-
<div class="clear"></div>
|
23 |
-
<div class="prev_post_id" style="display: none;">
|
24 |
-
<div class="clear"></div>
|
25 |
-
<hr>
|
26 |
-
<div class="section-title">
|
27 |
-
<h4><?php _e('Post ID', 'ajax-load-more'); ?></h4>
|
28 |
-
<p><?php _e('The ID of the current single post.', 'ajax-load-more'); ?></p>
|
29 |
-
</div>
|
30 |
-
<div class="wrap">
|
31 |
-
<div class="inner">
|
32 |
-
<input type="text" value="get_the_ID()" id="prev_post_id" class="alm_element disabled-input" disabled="disabled">
|
33 |
-
</div>
|
34 |
-
</div>
|
35 |
-
<div class="clear"></div>
|
36 |
-
<hr>
|
37 |
-
<div class="section-title">
|
38 |
-
<h4><?php _e('Taxonomy', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Selecting a taxonomy means only previous posts from the same taxonomy term will be returned. If a post has multiple terms attached, each term will be considered using an OR relationship query','ajax-load-more'); ?>."></a></h4>
|
39 |
-
<p><?php _e('Query previous posts from the same taxonomy term(s).', 'ajax-load-more'); ?></p>
|
40 |
-
</div>
|
41 |
-
<div class="wrap">
|
42 |
-
<div class="inner">
|
43 |
-
<?php
|
44 |
-
// Taxonomies
|
45 |
-
$pp_tax_args = array(
|
46 |
-
'public' => true,
|
47 |
-
'_builtin' => false
|
48 |
-
);
|
49 |
-
$pp_tax_output = 'objects';
|
50 |
-
$pp_taxonomies = get_taxonomies( $pp_tax_args, $pp_tax_output );
|
51 |
-
echo '<select class="alm_element" name="pp-taxonomy-select" id="pp-taxonomy-select">';
|
52 |
-
echo '<option value="" selected="selected">-- ' . __('Select Taxonomy', 'ajax-load-more') . ' --</option>';
|
53 |
-
echo '<option value="category">' . __('Category', 'ajax-load-more') . '</option>';
|
54 |
-
echo '<option value="post_tag">' . __('Tag', 'ajax-load-more') . '</option>';
|
55 |
-
if ( $pp_taxonomies ) {
|
56 |
-
|
57 |
-
foreach( $pp_taxonomies as $pp_taxonomy ){
|
58 |
-
echo '<option name="pp-'.$pp_taxonomy->query_var.'" id="pp-'.$pp_taxonomy->query_var.'" value="'.$pp_taxonomy->query_var.'">'.$pp_taxonomy->label.'</option>';
|
59 |
-
}
|
60 |
-
|
61 |
-
}
|
62 |
-
echo '</select>';
|
63 |
-
?>
|
64 |
-
</div>
|
65 |
-
</div>
|
66 |
-
|
67 |
-
|
68 |
-
<div class="clear"></div>
|
69 |
-
<hr>
|
70 |
-
<div class="section-title">
|
71 |
-
<h4><?php _e('Excluded Terms ', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('A comma-separated list of excluded terms by ID','ajax-load-more'); ?>."></a></h4>
|
72 |
-
<p><?php _e('Exclude posts by term ID from the previous post query.', 'ajax-load-more'); ?></p>
|
73 |
-
</div>
|
74 |
-
<div class="wrap">
|
75 |
-
<div class="inner">
|
76 |
-
<input type="text" id="pp-term-exclude" class="alm_element numbers-only" value="" placeholder="5, 8, 35">
|
77 |
-
</div>
|
78 |
-
</div>
|
79 |
-
|
80 |
-
<p class="warning-callout">
|
81 |
-
<?php _e('You must add the Previous Post shortcode directly to your single template file using the <a href="https://developer.wordpress.org/reference/functions/do_shortcode/" target="_blank">do_shortcode</a> method. » <a href="https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/" target="_blank">View documentation</a>', 'ajax-load-more'); ?>
|
82 |
-
</p>
|
83 |
-
</div>
|
84 |
-
</div>
|
85 |
-
</div>
|
86 |
-
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/shortcode-builder/components/rest-api.php
CHANGED
@@ -114,7 +114,9 @@
|
|
114 |
</ul>
|
115 |
</div>
|
116 |
</div>
|
117 |
-
|
|
|
|
|
118 |
<p class="warning-callout">
|
119 |
<?php _e('Visit <a href="http://v2.wp-api.org/" target="_blank">http://v2.wp-api.org</a> for documentation on creating custom <a href="http://v2.wp-api.org/extending/adding/" target="_blank">Endpoints</a> for use with Ajax Load More.', 'ajax-load-more'); ?>
|
120 |
</p>
|
114 |
</ul>
|
115 |
</div>
|
116 |
</div>
|
117 |
+
|
118 |
+
<div class="clear"></div>
|
119 |
+
<hr>
|
120 |
<p class="warning-callout">
|
121 |
<?php _e('Visit <a href="http://v2.wp-api.org/" target="_blank">http://v2.wp-api.org</a> for documentation on creating custom <a href="http://v2.wp-api.org/extending/adding/" target="_blank">Endpoints</a> for use with Ajax Load More.', 'ajax-load-more'); ?>
|
122 |
</p>
|
admin/shortcode-builder/components/single-post.php
ADDED
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php if(has_action('alm_single_post_installed')){ ?>
|
2 |
+
<div class="row input previous-post add-on" id="alm-previous-post">
|
3 |
+
<h3 class="heading" tabindex="0"><?php _e('Single Posts', 'ajax-load-more'); ?></h3>
|
4 |
+
<div class="expand-wrap">
|
5 |
+
<div class="section-title">
|
6 |
+
<p><?php _e('Enable the infinite scrolling of single posts.', 'ajax-load-more'); ?></p>
|
7 |
+
</div>
|
8 |
+
<div class="wrap">
|
9 |
+
<div class="inner">
|
10 |
+
<ul>
|
11 |
+
<li>
|
12 |
+
<input class="alm_element" type="radio" name="prev-post" value="true" id="prev-post-true" >
|
13 |
+
<label for="prev-post-true"><?php _e('True', 'ajax-load-more'); ?></label>
|
14 |
+
</li>
|
15 |
+
<li>
|
16 |
+
<input class="alm_element" type="radio" name="prev-post" value="false" id="prev-post-false" checked="checked">
|
17 |
+
<label for="prev-post-false"><?php _e('False', 'ajax-load-more'); ?></label>
|
18 |
+
</li>
|
19 |
+
</ul>
|
20 |
+
</div>
|
21 |
+
</div>
|
22 |
+
<div class="clear"></div>
|
23 |
+
|
24 |
+
<div class="prev_post_options" style="display: none;">
|
25 |
+
<div class="clear"></div>
|
26 |
+
<hr>
|
27 |
+
<div class="section-title">
|
28 |
+
<h4><?php _e('Post ID', 'ajax-load-more'); ?></h4>
|
29 |
+
<p><?php _e('The ID of the current single post.', 'ajax-load-more'); ?></p>
|
30 |
+
</div>
|
31 |
+
<div class="wrap">
|
32 |
+
<div class="inner">
|
33 |
+
<input type="text" value="get_the_ID()" id="pp_id" class="alm_element disabled-input" disabled="disabled">
|
34 |
+
</div>
|
35 |
+
</div>
|
36 |
+
|
37 |
+
<div class="clear"></div>
|
38 |
+
<hr>
|
39 |
+
<div class="section-title">
|
40 |
+
<h4><?php _e('Post Ordering', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('By default, the Single Posts add-on will use the core WordPress `get_previous_post` function, but you can over ride that here.', 'ajax-load-more'); ?>."></a></h4>
|
41 |
+
<p><?php _e('Select the load order of posts while infinite scrolling.', 'ajax-load-more'); ?></p>
|
42 |
+
<p><a class="button-small" href="https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/#ordering" target="_blank"><?php _e('View Docs', 'ajax-load-more'); ?></a></p>
|
43 |
+
</div>
|
44 |
+
<div class="wrap">
|
45 |
+
<div class="inner">
|
46 |
+
<select class="alm_element" name="pp-order" id="pp-order">
|
47 |
+
<option value="previous" selected="selected"><?php _e('Previous Post (by date DESC)', 'ajax-load-more'); ?></option>
|
48 |
+
<option value="latest"><?php _e('Latest (Start at most recent post)', 'ajax-load-more'); ?></option>
|
49 |
+
<option value="next"><?php _e('Next Post (by date ASC)', 'ajax-load-more'); ?></option>
|
50 |
+
<option value="post__in"><?php _e('Post ID Array', 'ajax-load-more'); ?></option>
|
51 |
+
</select>
|
52 |
+
</div>
|
53 |
+
</div>
|
54 |
+
|
55 |
+
<div class="clear"></div>
|
56 |
+
<div id="pp_post__in" style="display: none;">
|
57 |
+
<div class="clear"></div>
|
58 |
+
<hr>
|
59 |
+
<div class="section-title">
|
60 |
+
<h4><?php _e('Post ID Array', 'ajax-load-more'); ?></h4>
|
61 |
+
<p><?php _e('A comma separated list of post ID\'s to query by order.', 'ajax-load-more'); ?></p>
|
62 |
+
</div>
|
63 |
+
<div class="wrap">
|
64 |
+
<div class="inner">
|
65 |
+
<input id="pp_post__in_input" class="alm_element numbers-only" type="text" placeholder="23, 66, 99">
|
66 |
+
</div>
|
67 |
+
</div>
|
68 |
+
</div>
|
69 |
+
|
70 |
+
<div id="pp_extras">
|
71 |
+
<div class="clear"></div>
|
72 |
+
<hr>
|
73 |
+
<div class="section-title">
|
74 |
+
<h4><?php _e('Taxonomy', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Selecting a taxonomy means only previous posts from the same taxonomy term will be returned. If a post has multiple terms attached, each term will be considered using an OR relationship query','ajax-load-more'); ?>."></a></h4>
|
75 |
+
<p><?php _e('Query previous posts from the same taxonomy term(s).', 'ajax-load-more'); ?></p>
|
76 |
+
</div>
|
77 |
+
<div class="wrap">
|
78 |
+
<div class="inner">
|
79 |
+
<?php
|
80 |
+
// Taxonomies
|
81 |
+
$pp_tax_args = array(
|
82 |
+
'public' => true,
|
83 |
+
'_builtin' => false
|
84 |
+
);
|
85 |
+
$pp_tax_output = 'objects';
|
86 |
+
$pp_taxonomies = get_taxonomies( $pp_tax_args, $pp_tax_output );
|
87 |
+
echo '<select class="alm_element" name="pp-taxonomy-select" id="pp-taxonomy-select">';
|
88 |
+
echo '<option value="" selected="selected">-- ' . __('Select Taxonomy', 'ajax-load-more') . ' --</option>';
|
89 |
+
echo '<option value="category">' . __('Category', 'ajax-load-more') . '</option>';
|
90 |
+
echo '<option value="post_tag">' . __('Tag', 'ajax-load-more') . '</option>';
|
91 |
+
if ( $pp_taxonomies ) {
|
92 |
+
|
93 |
+
foreach( $pp_taxonomies as $pp_taxonomy ){
|
94 |
+
echo '<option name="pp-'.$pp_taxonomy->query_var.'" id="pp-'.$pp_taxonomy->query_var.'" value="'.$pp_taxonomy->query_var.'">'.$pp_taxonomy->label.'</option>';
|
95 |
+
}
|
96 |
+
|
97 |
+
}
|
98 |
+
echo '</select>';
|
99 |
+
?>
|
100 |
+
</div>
|
101 |
+
</div>
|
102 |
+
|
103 |
+
<div class="clear"></div>
|
104 |
+
<hr>
|
105 |
+
<div class="section-title">
|
106 |
+
<h4><?php _e('Excluded Terms ', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('A comma-separated list of excluded terms by ID','ajax-load-more'); ?>."></a></h4>
|
107 |
+
<p><?php _e('Exclude posts by term ID from the previous post query.', 'ajax-load-more'); ?></p>
|
108 |
+
</div>
|
109 |
+
<div class="wrap">
|
110 |
+
<div class="inner">
|
111 |
+
<input type="text" id="pp-term-exclude" class="alm_element numbers-only" value="" placeholder="5, 8, 35">
|
112 |
+
</div>
|
113 |
+
</div>
|
114 |
+
</div>
|
115 |
+
|
116 |
+
<div class="clear"></div>
|
117 |
+
<hr>
|
118 |
+
<p class="warning-callout">
|
119 |
+
<?php _e('You must add the Previous Post shortcode directly to your single template file using the <a href="https://developer.wordpress.org/reference/functions/do_shortcode/" target="_blank">do_shortcode</a> method.', 'ajax-load-more'); ?> <a class="button-small" href="https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/" target="_blank"><?php _e('View Docs', 'ajax-load-more'); ?></a>
|
120 |
+
</p>
|
121 |
+
</div>
|
122 |
+
</div>
|
123 |
+
</div>
|
124 |
+
<?php } ?>
|
admin/shortcode-builder/js/shortcode-builder.js
CHANGED
@@ -195,7 +195,7 @@ jQuery(document).ready(function($) {
|
|
195 |
acf_field_type = $('#acf_field_type').val(),
|
196 |
acf_field_name = $('#acf_field_name').val();
|
197 |
|
198 |
-
$('.acf-options').slideDown(
|
199 |
|
200 |
if(acf_field_type !== '' && acf_field_name !== ''){
|
201 |
output += ' acf="'+acf+'"';
|
@@ -207,7 +207,7 @@ jQuery(document).ready(function($) {
|
|
207 |
}
|
208 |
|
209 |
}else{
|
210 |
-
$('.acf-options').slideUp(
|
211 |
}
|
212 |
|
213 |
|
@@ -220,13 +220,13 @@ jQuery(document).ready(function($) {
|
|
220 |
if($('input#cache-id').val() === '')
|
221 |
_alm.generateUniqueID(10); // Generate unique ID on first load
|
222 |
|
223 |
-
$('.cache_id').slideDown(
|
224 |
output += ' cache="'+cache+'"';
|
225 |
var cache_id = $('input#cache-id').val();
|
226 |
if(cache_id)
|
227 |
output += ' cache_id="'+cache_id+'"';
|
228 |
}else{
|
229 |
-
$('.cache_id').slideUp(
|
230 |
}
|
231 |
|
232 |
|
@@ -242,7 +242,7 @@ jQuery(document).ready(function($) {
|
|
242 |
var cta_theme_repeater = $('select[name=theme-repeater-select]', cta_container).val();
|
243 |
|
244 |
if(cta !== 'false' && cta != undefined){
|
245 |
-
$('.cta_template_wrap').slideDown(
|
246 |
// Standard repeater
|
247 |
if(cta_repeater != '' && cta_repeater != undefined && cta_position != '' && cta_position != null){
|
248 |
output += ' cta="'+cta+'"';
|
@@ -258,7 +258,7 @@ jQuery(document).ready(function($) {
|
|
258 |
$('#sequence-update').text(cta_position);
|
259 |
$('#sequence-update-before-after').text(cta_before_after);
|
260 |
}else{
|
261 |
-
$('.cta_template_wrap').slideUp(
|
262 |
}
|
263 |
|
264 |
|
@@ -301,9 +301,9 @@ jQuery(document).ready(function($) {
|
|
301 |
if(comments_callback !== '')
|
302 |
output += ' comments_callback="'+comments_callback+'"';
|
303 |
|
304 |
-
$('.comments_extras').slideDown(
|
305 |
}else{
|
306 |
-
$('.comments_extras').slideUp(
|
307 |
}
|
308 |
|
309 |
|
@@ -315,7 +315,7 @@ jQuery(document).ready(function($) {
|
|
315 |
var filters = $('.filters input[name=filters]:checked').val();
|
316 |
if(filters !== 'false' && filters != undefined){
|
317 |
|
318 |
-
$('.filters_options').slideDown(
|
319 |
|
320 |
|
321 |
var filters_id = $('#alm-filters select');
|
@@ -337,7 +337,7 @@ jQuery(document).ready(function($) {
|
|
337 |
|
338 |
}else{
|
339 |
|
340 |
-
$('.filters_options').slideUp(
|
341 |
|
342 |
}
|
343 |
|
@@ -356,7 +356,7 @@ jQuery(document).ready(function($) {
|
|
356 |
nextpage_scrollspeed = $('input#next-page-scroll-speed').val(),
|
357 |
nextpage_scrolltop = $('input#next-page-scroll-top').val();
|
358 |
|
359 |
-
$('.next-page-content').slideDown(
|
360 |
|
361 |
output += ' nextpage="'+nextpage+'"';
|
362 |
output += ' nextpage_post_id="\'.'+nextpage_post_id+'.\'"';
|
@@ -375,7 +375,7 @@ jQuery(document).ready(function($) {
|
|
375 |
|
376 |
|
377 |
}else{
|
378 |
-
$('.next-page-content').slideUp(
|
379 |
}
|
380 |
|
381 |
|
@@ -397,9 +397,9 @@ jQuery(document).ready(function($) {
|
|
397 |
if(paging_classes !== ''){
|
398 |
output += ' paging_classes="'+paging_classes+'"';
|
399 |
}
|
400 |
-
$('#nav-controls').slideDown(
|
401 |
}else{
|
402 |
-
$('#nav-controls').slideUp(
|
403 |
}
|
404 |
|
405 |
|
@@ -413,41 +413,14 @@ jQuery(document).ready(function($) {
|
|
413 |
if(preload !== 'false' && preload != undefined){
|
414 |
|
415 |
if(seo !== 'true')
|
416 |
-
$('.preload_amount').slideDown(
|
417 |
|
418 |
output += ' preloaded="'+preload+'"';
|
419 |
var preload_amount = $('.preload input#preload-amount').val();
|
420 |
if(preload_amount > 0 && preload_amount != 5)
|
421 |
output += ' preloaded_amount="'+preload_amount+'"';
|
422 |
}else{
|
423 |
-
$('.preload_amount').slideUp(
|
424 |
-
}
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
// ---------------------------
|
429 |
-
// - Previous Post
|
430 |
-
// ---------------------------
|
431 |
-
|
432 |
-
var previous = $('.previous-post input[name=prev-post]:checked').val();
|
433 |
-
if(previous !== 'false' && previous != undefined){
|
434 |
-
|
435 |
-
var prev_post_id = $('#prev_post_id').val(),
|
436 |
-
previous_post_taxonomy = $('#pp-taxonomy-select').val(),
|
437 |
-
previous_post_excluded_terms = $('#pp-term-exclude').val();
|
438 |
-
$('.prev_post_id').slideDown(150, 'alm_easeInOutQuad');
|
439 |
-
|
440 |
-
output += ' previous_post="'+previous+'"';
|
441 |
-
output += ' previous_post_id="\'.'+prev_post_id+'.\'"';
|
442 |
-
|
443 |
-
if(previous_post_taxonomy !== '' )
|
444 |
-
output += ' previous_post_taxonomy="'+previous_post_taxonomy+'"';
|
445 |
-
|
446 |
-
if(previous_post_excluded_terms !== '' )
|
447 |
-
output += ' previous_post_excluded_terms="'+previous_post_excluded_terms+'"';
|
448 |
-
|
449 |
-
}else{
|
450 |
-
$('.prev_post_id').slideUp(150, 'alm_easeInOutQuad');
|
451 |
}
|
452 |
|
453 |
|
@@ -458,7 +431,7 @@ jQuery(document).ready(function($) {
|
|
458 |
|
459 |
var rest = $('#alm-rest input[name=rest]:checked').val();
|
460 |
if(rest !== 'false' && rest != undefined){
|
461 |
-
$('.restapi_options').slideDown(
|
462 |
output += ' restapi="'+rest+'"';
|
463 |
|
464 |
var restapi_base = $('#alm-rest input#rest-base').val().trim(),
|
@@ -485,7 +458,7 @@ jQuery(document).ready(function($) {
|
|
485 |
output += ' restapi_debug="'+restapi_debug+'"';
|
486 |
|
487 |
}else{
|
488 |
-
$('.restapi_options').slideUp(
|
489 |
}
|
490 |
|
491 |
|
@@ -495,12 +468,62 @@ jQuery(document).ready(function($) {
|
|
495 |
|
496 |
if(seo !== 'false' && seo != undefined){
|
497 |
if(preload === 'true')
|
498 |
-
$('.preload_amount').slideUp(
|
499 |
|
500 |
output += ' seo="'+seo+'"';
|
501 |
}
|
502 |
|
503 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
504 |
// ---------------------------
|
505 |
// - Users
|
506 |
// ---------------------------
|
@@ -535,7 +558,7 @@ jQuery(document).ready(function($) {
|
|
535 |
users_role = $('#alm-users select#users-role').val(); // Get new users_role value
|
536 |
|
537 |
|
538 |
-
$('#users-extended').slideDown(
|
539 |
|
540 |
output += ' users="'+users+'"';
|
541 |
|
@@ -560,7 +583,7 @@ jQuery(document).ready(function($) {
|
|
560 |
|
561 |
|
562 |
}else{
|
563 |
-
$('#users-extended').slideUp(
|
564 |
}
|
565 |
|
566 |
|
@@ -612,10 +635,10 @@ jQuery(document).ready(function($) {
|
|
612 |
// ---------------------------
|
613 |
|
614 |
if(selected_post_type !== 'post'){
|
615 |
-
$('.sticky-wrap').slideUp(
|
616 |
$('input[name=alm_sticky_posts]').prop('checked', false);
|
617 |
}else{
|
618 |
-
$('.sticky-wrap').slideDown(
|
619 |
}
|
620 |
|
621 |
var sticky_posts = $('input[name=alm_sticky_posts]:checked').val();
|
@@ -1051,16 +1074,16 @@ jQuery(document).ready(function($) {
|
|
1051 |
var scroll_load = $('.scroll_load input[name=scroll]:checked').val();
|
1052 |
if(scroll_load === 'f'){
|
1053 |
|
1054 |
-
$('.max_pages, .scroll_distance, .pause_override, .scroll_container').slideUp(
|
1055 |
if($('.scroll_load input').hasClass('changed'))
|
1056 |
output += ' scroll="false"';
|
1057 |
|
1058 |
}else{
|
1059 |
|
1060 |
-
$('.max_pages, .scroll_distance, .pause_override, .scroll_container').slideDown(
|
1061 |
|
1062 |
var scroll_distance = $('.scroll_distance input').val();
|
1063 |
-
if(scroll_distance
|
1064 |
output += ' scroll_distance="'+$('.scroll_distance input').val()+'"';
|
1065 |
|
1066 |
var scroll_container = $('.scroll_container input').val();
|
@@ -1088,8 +1111,8 @@ jQuery(document).ready(function($) {
|
|
1088 |
|
1089 |
if(transition === 'masonry'){
|
1090 |
|
1091 |
-
$('.masonry-options').slideDown(
|
1092 |
-
$('.masonry-options-hide').slideUp(
|
1093 |
var masonry_selector = $('.transition input#masonry-item').val();
|
1094 |
var masonry_columnwidth = $('.transition input#masonry-columnwidth').val();
|
1095 |
var masonry_animation = $('input[name=masonry-animation]:checked').val();
|
@@ -1109,17 +1132,17 @@ jQuery(document).ready(function($) {
|
|
1109 |
|
1110 |
}else{
|
1111 |
|
1112 |
-
$('.masonry-options').slideUp(
|
1113 |
-
$('.masonry-options-hide').slideDown(
|
1114 |
|
1115 |
// Hide transition_container if masonry is selected
|
1116 |
var transition_container = $('.transition input[name=remove_container]:checked').val();
|
1117 |
var transition_container_classes = $('.transition input#transition-container-classes').val();
|
1118 |
if(transition_container === 'f' && seo !== 'true' && previous !== 'true'){
|
1119 |
output += ' transition_container="false"';
|
1120 |
-
$('.transition-container-classes-wrap').slideUp(
|
1121 |
}else{
|
1122 |
-
$('.transition-container-classes-wrap').slideDown(
|
1123 |
}
|
1124 |
|
1125 |
// Hide transition_container_classes if Previous Post or Next Page is true.
|
@@ -1137,7 +1160,7 @@ jQuery(document).ready(function($) {
|
|
1137 |
var progress_bar = $('.alm-progress-bar input[name=progress_bar]:checked').val();
|
1138 |
if(progress_bar === 't'){
|
1139 |
var progress_bar_color = $('.alm-progress-bar input[name=progress_bar_color]').val();
|
1140 |
-
$('.progress-bar-options').slideDown(
|
1141 |
output += ' progress_bar="true"';
|
1142 |
$('.progress_bar_color_indicator').removeAttr('style');
|
1143 |
if(progress_bar_color){
|
@@ -1147,7 +1170,7 @@ jQuery(document).ready(function($) {
|
|
1147 |
output += ' progress_bar_color="'+ progress_bar_color +'"';
|
1148 |
}
|
1149 |
}else{
|
1150 |
-
$('.progress-bar-options').slideUp(
|
1151 |
}
|
1152 |
|
1153 |
|
195 |
acf_field_type = $('#acf_field_type').val(),
|
196 |
acf_field_name = $('#acf_field_name').val();
|
197 |
|
198 |
+
$('.acf-options').slideDown(250, 'alm_easeInOutQuad');
|
199 |
|
200 |
if(acf_field_type !== '' && acf_field_name !== ''){
|
201 |
output += ' acf="'+acf+'"';
|
207 |
}
|
208 |
|
209 |
}else{
|
210 |
+
$('.acf-options').slideUp(250, 'alm_easeInOutQuad')
|
211 |
}
|
212 |
|
213 |
|
220 |
if($('input#cache-id').val() === '')
|
221 |
_alm.generateUniqueID(10); // Generate unique ID on first load
|
222 |
|
223 |
+
$('.cache_id').slideDown(250, 'alm_easeInOutQuad');
|
224 |
output += ' cache="'+cache+'"';
|
225 |
var cache_id = $('input#cache-id').val();
|
226 |
if(cache_id)
|
227 |
output += ' cache_id="'+cache_id+'"';
|
228 |
}else{
|
229 |
+
$('.cache_id').slideUp(250, 'alm_easeInOutQuad')
|
230 |
}
|
231 |
|
232 |
|
242 |
var cta_theme_repeater = $('select[name=theme-repeater-select]', cta_container).val();
|
243 |
|
244 |
if(cta !== 'false' && cta != undefined){
|
245 |
+
$('.cta_template_wrap').slideDown(250, 'alm_easeInOutQuad');
|
246 |
// Standard repeater
|
247 |
if(cta_repeater != '' && cta_repeater != undefined && cta_position != '' && cta_position != null){
|
248 |
output += ' cta="'+cta+'"';
|
258 |
$('#sequence-update').text(cta_position);
|
259 |
$('#sequence-update-before-after').text(cta_before_after);
|
260 |
}else{
|
261 |
+
$('.cta_template_wrap').slideUp(250, 'alm_easeInOutQuad');
|
262 |
}
|
263 |
|
264 |
|
301 |
if(comments_callback !== '')
|
302 |
output += ' comments_callback="'+comments_callback+'"';
|
303 |
|
304 |
+
$('.comments_extras').slideDown(250, 'alm_easeInOutQuad');
|
305 |
}else{
|
306 |
+
$('.comments_extras').slideUp(250, 'alm_easeInOutQuad');
|
307 |
}
|
308 |
|
309 |
|
315 |
var filters = $('.filters input[name=filters]:checked').val();
|
316 |
if(filters !== 'false' && filters != undefined){
|
317 |
|
318 |
+
$('.filters_options').slideDown(250, 'alm_easeInOutQuad');
|
319 |
|
320 |
|
321 |
var filters_id = $('#alm-filters select');
|
337 |
|
338 |
}else{
|
339 |
|
340 |
+
$('.filters_options').slideUp(250, 'alm_easeInOutQuad');
|
341 |
|
342 |
}
|
343 |
|
356 |
nextpage_scrollspeed = $('input#next-page-scroll-speed').val(),
|
357 |
nextpage_scrolltop = $('input#next-page-scroll-top').val();
|
358 |
|
359 |
+
$('.next-page-content').slideDown(250, 'alm_easeInOutQuad');
|
360 |
|
361 |
output += ' nextpage="'+nextpage+'"';
|
362 |
output += ' nextpage_post_id="\'.'+nextpage_post_id+'.\'"';
|
375 |
|
376 |
|
377 |
}else{
|
378 |
+
$('.next-page-content').slideUp(250, 'alm_easeInOutQuad');
|
379 |
}
|
380 |
|
381 |
|
397 |
if(paging_classes !== ''){
|
398 |
output += ' paging_classes="'+paging_classes+'"';
|
399 |
}
|
400 |
+
$('#nav-controls').slideDown(250, 'alm_easeInOutQuad');
|
401 |
}else{
|
402 |
+
$('#nav-controls').slideUp(250, 'alm_easeInOutQuad');
|
403 |
}
|
404 |
|
405 |
|
413 |
if(preload !== 'false' && preload != undefined){
|
414 |
|
415 |
if(seo !== 'true')
|
416 |
+
$('.preload_amount').slideDown(250, 'alm_easeInOutQuad');
|
417 |
|
418 |
output += ' preloaded="'+preload+'"';
|
419 |
var preload_amount = $('.preload input#preload-amount').val();
|
420 |
if(preload_amount > 0 && preload_amount != 5)
|
421 |
output += ' preloaded_amount="'+preload_amount+'"';
|
422 |
}else{
|
423 |
+
$('.preload_amount').slideUp(250, 'alm_easeInOutQuad');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
424 |
}
|
425 |
|
426 |
|
431 |
|
432 |
var rest = $('#alm-rest input[name=rest]:checked').val();
|
433 |
if(rest !== 'false' && rest != undefined){
|
434 |
+
$('.restapi_options').slideDown(250, 'alm_easeInOutQuad');
|
435 |
output += ' restapi="'+rest+'"';
|
436 |
|
437 |
var restapi_base = $('#alm-rest input#rest-base').val().trim(),
|
458 |
output += ' restapi_debug="'+restapi_debug+'"';
|
459 |
|
460 |
}else{
|
461 |
+
$('.restapi_options').slideUp(250, 'alm_easeInOutQuad')
|
462 |
}
|
463 |
|
464 |
|
468 |
|
469 |
if(seo !== 'false' && seo != undefined){
|
470 |
if(preload === 'true')
|
471 |
+
$('.preload_amount').slideUp(250, 'alm_easeInOutQuad');
|
472 |
|
473 |
output += ' seo="'+seo+'"';
|
474 |
}
|
475 |
|
476 |
|
477 |
+
|
478 |
+
// ---------------------------
|
479 |
+
// - Single Post
|
480 |
+
// ---------------------------
|
481 |
+
|
482 |
+
var previous = $('.previous-post input[name=prev-post]:checked').val();
|
483 |
+
if(previous !== 'false' && previous != undefined){
|
484 |
+
|
485 |
+
var pp_id = $('#pp_id').val(),
|
486 |
+
pp_order = $('#pp-order').val(),
|
487 |
+
pp_post__in_order = $('#pp_post__in_input').val(),
|
488 |
+
pp_taxonomy = $('#pp-taxonomy-select').val(),
|
489 |
+
pp_excluded_terms = $('#pp-term-exclude').val();
|
490 |
+
|
491 |
+
$('.prev_post_options').slideDown(250, 'alm_easeInOutQuad');
|
492 |
+
|
493 |
+
$('#pp-taxonomy-select').attr('disabled', false);
|
494 |
+
$('#pp-term-exclude').attr('disabled', false);
|
495 |
+
|
496 |
+
output += ' single_post="'+previous+'"';
|
497 |
+
output += ' single_post_id="\'.'+pp_id+'.\'"';
|
498 |
+
|
499 |
+
if(pp_order === ''){
|
500 |
+
output += ' single_post_order="previous"';
|
501 |
+
$('#pp_post__in').slideUp(250, 'alm_easeInOutQuad');
|
502 |
+
$('#pp_extras').slideDown(250, 'alm_easeInOutQuad');
|
503 |
+
} else {
|
504 |
+
if(pp_order === 'post__in'){
|
505 |
+
pp_taxonomy = '';
|
506 |
+
pp_excluded_terms = '';
|
507 |
+
output += ' single_post_order="'+pp_post__in_order+'"';
|
508 |
+
$('#pp-taxonomy-select').attr('disabled', true);
|
509 |
+
$('#pp-term-exclude').attr('disabled', true);
|
510 |
+
$('#pp_post__in').slideDown(250, 'alm_easeInOutQuad');
|
511 |
+
$('#pp_extras').slideUp(250, 'alm_easeInOutQuad');
|
512 |
+
} else {
|
513 |
+
output += ' single_post_order="'+pp_order+'"';
|
514 |
+
$('#pp_post__in').slideUp(250, 'alm_easeInOutQuad');
|
515 |
+
$('#pp_extras').slideDown(250, 'alm_easeInOutQuad');
|
516 |
+
}
|
517 |
+
}
|
518 |
+
|
519 |
+
output += (pp_taxonomy !== '' ) ? ' single_post_taxonomy="'+pp_taxonomy+'"' : '';
|
520 |
+
output += (pp_excluded_terms !== '' ) ? ' single_post_excluded_terms="'+pp_excluded_terms+'"' : '';
|
521 |
+
|
522 |
+
}else{
|
523 |
+
$('.prev_post_options').slideUp(250, 'alm_easeInOutQuad');
|
524 |
+
}
|
525 |
+
|
526 |
+
|
527 |
// ---------------------------
|
528 |
// - Users
|
529 |
// ---------------------------
|
558 |
users_role = $('#alm-users select#users-role').val(); // Get new users_role value
|
559 |
|
560 |
|
561 |
+
$('#users-extended').slideDown(250, 'alm_easeInOutQuad');
|
562 |
|
563 |
output += ' users="'+users+'"';
|
564 |
|
583 |
|
584 |
|
585 |
}else{
|
586 |
+
$('#users-extended').slideUp(250, 'alm_easeInOutQuad');
|
587 |
}
|
588 |
|
589 |
|
635 |
// ---------------------------
|
636 |
|
637 |
if(selected_post_type !== 'post'){
|
638 |
+
$('.sticky-wrap').slideUp(250, 'alm_easeInOutQuad');
|
639 |
$('input[name=alm_sticky_posts]').prop('checked', false);
|
640 |
}else{
|
641 |
+
$('.sticky-wrap').slideDown(250, 'alm_easeInOutQuad');
|
642 |
}
|
643 |
|
644 |
var sticky_posts = $('input[name=alm_sticky_posts]:checked').val();
|
1074 |
var scroll_load = $('.scroll_load input[name=scroll]:checked').val();
|
1075 |
if(scroll_load === 'f'){
|
1076 |
|
1077 |
+
$('.max_pages, .scroll_distance, .pause_override, .scroll_container').slideUp(250, 'alm_easeInOutQuad');
|
1078 |
if($('.scroll_load input').hasClass('changed'))
|
1079 |
output += ' scroll="false"';
|
1080 |
|
1081 |
}else{
|
1082 |
|
1083 |
+
$('.max_pages, .scroll_distance, .pause_override, .scroll_container').slideDown(250, 'alm_easeInOutQuad');
|
1084 |
|
1085 |
var scroll_distance = $('.scroll_distance input').val();
|
1086 |
+
if(scroll_distance !== '100')
|
1087 |
output += ' scroll_distance="'+$('.scroll_distance input').val()+'"';
|
1088 |
|
1089 |
var scroll_container = $('.scroll_container input').val();
|
1111 |
|
1112 |
if(transition === 'masonry'){
|
1113 |
|
1114 |
+
$('.masonry-options').slideDown(250, 'alm_easeInOutQuad');
|
1115 |
+
$('.masonry-options-hide').slideUp(250, 'alm_easeInOutQuad');
|
1116 |
var masonry_selector = $('.transition input#masonry-item').val();
|
1117 |
var masonry_columnwidth = $('.transition input#masonry-columnwidth').val();
|
1118 |
var masonry_animation = $('input[name=masonry-animation]:checked').val();
|
1132 |
|
1133 |
}else{
|
1134 |
|
1135 |
+
$('.masonry-options').slideUp(250, 'alm_easeInOutQuad');
|
1136 |
+
$('.masonry-options-hide').slideDown(250, 'alm_easeInOutQuad');
|
1137 |
|
1138 |
// Hide transition_container if masonry is selected
|
1139 |
var transition_container = $('.transition input[name=remove_container]:checked').val();
|
1140 |
var transition_container_classes = $('.transition input#transition-container-classes').val();
|
1141 |
if(transition_container === 'f' && seo !== 'true' && previous !== 'true'){
|
1142 |
output += ' transition_container="false"';
|
1143 |
+
$('.transition-container-classes-wrap').slideUp(250, 'alm_easeInOutQuad');
|
1144 |
}else{
|
1145 |
+
$('.transition-container-classes-wrap').slideDown(250, 'alm_easeInOutQuad');
|
1146 |
}
|
1147 |
|
1148 |
// Hide transition_container_classes if Previous Post or Next Page is true.
|
1160 |
var progress_bar = $('.alm-progress-bar input[name=progress_bar]:checked').val();
|
1161 |
if(progress_bar === 't'){
|
1162 |
var progress_bar_color = $('.alm-progress-bar input[name=progress_bar_color]').val();
|
1163 |
+
$('.progress-bar-options').slideDown(250, 'alm_easeInOutQuad');
|
1164 |
output += ' progress_bar="true"';
|
1165 |
$('.progress_bar_color_indicator').removeAttr('style');
|
1166 |
if(progress_bar_color){
|
1170 |
output += ' progress_bar_color="'+ progress_bar_color +'"';
|
1171 |
}
|
1172 |
}else{
|
1173 |
+
$('.progress-bar-options').slideUp(250, 'alm_easeInOutQuad');
|
1174 |
}
|
1175 |
|
1176 |
|
admin/shortcode-builder/shortcode-builder.php
CHANGED
@@ -31,9 +31,9 @@
|
|
31 |
require_once('components/nextpage.php');
|
32 |
require_once('components/paging.php');
|
33 |
require_once('components/preloaded.php');
|
34 |
-
require_once('components/previous-post.php');
|
35 |
require_once('components/rest-api.php');
|
36 |
require_once('components/seo.php');
|
|
|
37 |
require_once('components/users.php');
|
38 |
?>
|
39 |
</div>
|
@@ -54,8 +54,8 @@
|
|
54 |
<!-- ID -->
|
55 |
<div class="section-title">
|
56 |
<h4><?php _e('ID', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Adding a unique ID will allow you target this specific Ajax Load More instance with the alm_query_args_id() filter','ajax-load-more'); ?>."></a></h4>
|
57 |
-
<p><?php _e('Set a unique ID for this Ajax Load More instance.', 'ajax-load-more');
|
58 |
-
|
59 |
</div>
|
60 |
<div class="wrap">
|
61 |
<div class="inner">
|
@@ -245,11 +245,11 @@
|
|
245 |
<hr>
|
246 |
<div class="section-title">
|
247 |
<h4><?php _e('Scroll Distance', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Distance is based on the position of the loading button from the bottom of the screen','ajax-load-more'); ?>."></a></h4>
|
248 |
-
<p><?php _e('The distance from the bottom of the screen to trigger loading of posts. (Default =
|
249 |
</div>
|
250 |
<div class="wrap">
|
251 |
<div class="inner">
|
252 |
-
<input type="number" class="alm_element numbers-only" name="scroll-distance" id="scroll-distance" step="10" min="0" value="
|
253 |
</div>
|
254 |
</div>
|
255 |
</div>
|
@@ -441,7 +441,7 @@
|
|
441 |
<hr>
|
442 |
|
443 |
<div class="section-title">
|
444 |
-
<h4><?php _e('Transition Container Classes', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('This setting is not available with the
|
445 |
<p><?php _e('Add custom classes to the <span>.alm-reveal</span> loading container', 'ajax-load-more'); ?>.</p>
|
446 |
</div>
|
447 |
<div class="wrap">
|
@@ -506,10 +506,8 @@
|
|
506 |
<h3 class="heading" tabindex="0"><?php _e('Progress Bar', 'ajax-load-more'); ?></h3>
|
507 |
<div class="expand-wrap">
|
508 |
<div class="section-title">
|
509 |
-
<p><?php _e('Display progress bar indicator at the top of the window while loading Ajax content', 'ajax-load-more');
|
510 |
-
|
511 |
-
|
512 |
-
</p>
|
513 |
</div>
|
514 |
<div class="wrap">
|
515 |
<div class="inner">
|
@@ -726,9 +724,8 @@
|
|
726 |
<div class="section-title">
|
727 |
<h4><?php _e('Include', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Get posts by category using a category_name or category__and query','ajax-load-more'); ?>."></a></h4>
|
728 |
<p><?php _e('Comma separated list of categories to include by', 'ajax-load-more'); ?> <strong class="alm-populate"><?php _e('slug', 'ajax-load-more'); ?></strong>.
|
729 |
-
<small class="alm-populate-eg">e.g. design, research etc...</small>
|
730 |
-
<
|
731 |
-
» <a href="admin.php?page=ajax-load-more-help§ion=examples#example-category" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
|
732 |
</div>
|
733 |
<div class="wrap">
|
734 |
<div class="inner">
|
@@ -816,8 +813,8 @@
|
|
816 |
<div class="section-title">
|
817 |
<h4><?php _e('Include', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Get posts by tags using a tag or tag__and query','ajax-load-more'); ?>."></a></h4>
|
818 |
<p><?php _e('Comma separated list of tags to include by', 'ajax-load-more'); ?> <strong class="alm-populate"><?php _e('slug', 'ajax-load-more'); ?></strong>.
|
819 |
-
<small class="alm-populate-eg">e.g. toronto, canada etc...</small>
|
820 |
-
<
|
821 |
<?php _e('View Example', 'ajax-load-more'); ?>
|
822 |
</a></p>
|
823 |
</div>
|
@@ -960,7 +957,8 @@
|
|
960 |
<h3 class="heading" tabindex="0"><?php _e('Date', 'ajax-load-more'); ?></h3>
|
961 |
<div class="expand-wrap">
|
962 |
<div class="section-title">
|
963 |
-
<p><?php _e('Enter a year, month(number) and day to query by date archive
|
|
|
964 |
</div>
|
965 |
<div class="wrap">
|
966 |
<div class="inner">
|
@@ -994,7 +992,10 @@
|
|
994 |
echo '<h3 class="heading" tabindex="0">' . __('Author', 'ajax-load-more') . '</h3>';
|
995 |
echo '<div class="expand-wrap">';
|
996 |
echo '<div class="section-title">';
|
997 |
-
echo '<p>' . __('Select an Author to query(by ID).', 'ajax-load-more') . '
|
|
|
|
|
|
|
998 |
echo '</div>';
|
999 |
echo '<div class="wrap"><div class="inner">';
|
1000 |
if(!$disable_dynamic_content){
|
@@ -1046,7 +1047,8 @@
|
|
1046 |
<hr/>
|
1047 |
<div class="section-title">
|
1048 |
<h4><?php _e('Exclude', 'ajax-load-more'); ?></h4>
|
1049 |
-
<p><?php _e('A comma separated list of post ID\'s to exclude from query.', 'ajax-load-more');
|
|
|
1050 |
</div>
|
1051 |
<div class="wrap">
|
1052 |
<div class="inner">
|
31 |
require_once('components/nextpage.php');
|
32 |
require_once('components/paging.php');
|
33 |
require_once('components/preloaded.php');
|
|
|
34 |
require_once('components/rest-api.php');
|
35 |
require_once('components/seo.php');
|
36 |
+
require_once('components/single-post.php');
|
37 |
require_once('components/users.php');
|
38 |
?>
|
39 |
</div>
|
54 |
<!-- ID -->
|
55 |
<div class="section-title">
|
56 |
<h4><?php _e('ID', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Adding a unique ID will allow you target this specific Ajax Load More instance with the alm_query_args_id() filter','ajax-load-more'); ?>."></a></h4>
|
57 |
+
<p><?php _e('Set a unique ID for this Ajax Load More instance.', 'ajax-load-more'); ?></p>
|
58 |
+
<p><a class="button-small" href="https://connekthq.com/plugins/ajax-load-more/docs/filter-hooks/#alm_query_args" target="_blank"><?php _e('Learn More', 'ajax-load-more'); ?></a></p>
|
59 |
</div>
|
60 |
<div class="wrap">
|
61 |
<div class="inner">
|
245 |
<hr>
|
246 |
<div class="section-title">
|
247 |
<h4><?php _e('Scroll Distance', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Distance is based on the position of the loading button from the bottom of the screen','ajax-load-more'); ?>."></a></h4>
|
248 |
+
<p><?php _e('The distance from the bottom of the screen to trigger loading of posts. (Default = 100)', 'ajax-load-more'); ?></p>
|
249 |
</div>
|
250 |
<div class="wrap">
|
251 |
<div class="inner">
|
252 |
+
<input type="number" class="alm_element numbers-only" name="scroll-distance" id="scroll-distance" step="10" min="0" value="100">
|
253 |
</div>
|
254 |
</div>
|
255 |
</div>
|
441 |
<hr>
|
442 |
|
443 |
<div class="section-title">
|
444 |
+
<h4><?php _e('Transition Container Classes', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('This setting is not available with the Single Post or Next Page add-ons','ajax-load-more'); ?>."></a></h4>
|
445 |
<p><?php _e('Add custom classes to the <span>.alm-reveal</span> loading container', 'ajax-load-more'); ?>.</p>
|
446 |
</div>
|
447 |
<div class="wrap">
|
506 |
<h3 class="heading" tabindex="0"><?php _e('Progress Bar', 'ajax-load-more'); ?></h3>
|
507 |
<div class="expand-wrap">
|
508 |
<div class="section-title">
|
509 |
+
<p><?php _e('Display progress bar indicator at the top of the window while loading Ajax content.', 'ajax-load-more'); ?></p>
|
510 |
+
<p><a class="button-small" href="https://connekthq.com/plugins/ajax-load-more/examples/progress-bar/" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
|
|
|
|
|
511 |
</div>
|
512 |
<div class="wrap">
|
513 |
<div class="inner">
|
724 |
<div class="section-title">
|
725 |
<h4><?php _e('Include', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Get posts by category using a category_name or category__and query','ajax-load-more'); ?>."></a></h4>
|
726 |
<p><?php _e('Comma separated list of categories to include by', 'ajax-load-more'); ?> <strong class="alm-populate"><?php _e('slug', 'ajax-load-more'); ?></strong>.
|
727 |
+
<small class="alm-populate-eg">e.g. design, research etc...</small></p>
|
728 |
+
<p><a class="button-small" href="admin.php?page=ajax-load-more-help§ion=examples#example-category" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
|
|
|
729 |
</div>
|
730 |
<div class="wrap">
|
731 |
<div class="inner">
|
813 |
<div class="section-title">
|
814 |
<h4><?php _e('Include', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Get posts by tags using a tag or tag__and query','ajax-load-more'); ?>."></a></h4>
|
815 |
<p><?php _e('Comma separated list of tags to include by', 'ajax-load-more'); ?> <strong class="alm-populate"><?php _e('slug', 'ajax-load-more'); ?></strong>.
|
816 |
+
<small class="alm-populate-eg">e.g. toronto, canada etc...</small></p>
|
817 |
+
<p><a class="button-small" href="admin.php?page=ajax-load-more-help§ion=examples#example-tag" target="_blank">
|
818 |
<?php _e('View Example', 'ajax-load-more'); ?>
|
819 |
</a></p>
|
820 |
</div>
|
957 |
<h3 class="heading" tabindex="0"><?php _e('Date', 'ajax-load-more'); ?></h3>
|
958 |
<div class="expand-wrap">
|
959 |
<div class="section-title">
|
960 |
+
<p><?php _e('Enter a year, month(number) and day to query by date archive.', 'ajax-load-more'); ?></p>
|
961 |
+
<p><a class="button-small" href="admin.php?page=ajax-load-more-help§ion=examples#example-date" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
|
962 |
</div>
|
963 |
<div class="wrap">
|
964 |
<div class="inner">
|
992 |
echo '<h3 class="heading" tabindex="0">' . __('Author', 'ajax-load-more') . '</h3>';
|
993 |
echo '<div class="expand-wrap">';
|
994 |
echo '<div class="section-title">';
|
995 |
+
echo '<p>' . __('Select an Author to query(by ID).', 'ajax-load-more') . '</p>';
|
996 |
+
?>
|
997 |
+
<p><a class="button-small" href="admin.php?page=ajax-load-more-help§ion=examples#example-author" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
|
998 |
+
<?php
|
999 |
echo '</div>';
|
1000 |
echo '<div class="wrap"><div class="inner">';
|
1001 |
if(!$disable_dynamic_content){
|
1047 |
<hr/>
|
1048 |
<div class="section-title">
|
1049 |
<h4><?php _e('Exclude', 'ajax-load-more'); ?></h4>
|
1050 |
+
<p><?php _e('A comma separated list of post ID\'s to exclude from query.', 'ajax-load-more'); ?></p>
|
1051 |
+
<P><a class="button-small" href="admin.php?page=ajax-load-more-help§ion=examples#example-exclude" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
|
1052 |
</div>
|
1053 |
<div class="wrap">
|
1054 |
<div class="inner">
|
admin/src/scss/admin.scss
CHANGED
@@ -295,10 +295,21 @@ a.layout-hover{
|
|
295 |
margin-top: -10px;
|
296 |
opacity: 0.7;
|
297 |
}
|
|
|
|
|
|
|
298 |
.ajax-load-more p.small.reset-shortcode-builder{
|
|
|
|
|
|
|
|
|
299 |
text-align: right;
|
300 |
-
margin:
|
|
|
301 |
display: none;
|
|
|
|
|
|
|
302 |
}
|
303 |
.ajax-load-more p.small.reset-shortcode-builder a{
|
304 |
text-decoration: none;
|
@@ -420,6 +431,21 @@ a.layout-hover{
|
|
420 |
font-family: -apple-system,BlinkMacSystemFont, "Segoe UI", Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
|
421 |
}
|
422 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
423 |
|
424 |
.ajax-load-more ul{
|
425 |
padding: 0;
|
@@ -435,6 +461,7 @@ a.layout-hover{
|
|
435 |
display: inline-block;
|
436 |
vertical-align: top;
|
437 |
overflow: visible;
|
|
|
438 |
}
|
439 |
|
440 |
.ajax-load-more label.full{
|
@@ -608,24 +635,40 @@ a.layout-hover{
|
|
608 |
}
|
609 |
|
610 |
.ajax-load-more p.warning-callout{
|
611 |
-
background-color: #
|
612 |
-
border-left:
|
613 |
color: #333;
|
614 |
-
font-size:
|
615 |
margin: 0;
|
616 |
display: block;
|
617 |
-
padding:
|
618 |
border-radius: 3px;
|
619 |
margin: 10px;
|
620 |
width: auto;
|
621 |
line-height: 1.55;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
622 |
}
|
623 |
.ajax-load-more p.warning-callout strong{
|
624 |
display: inline-block;
|
625 |
font-weight: normal;
|
626 |
-
font-family: Consolas,monaco,monospace;
|
627 |
-
background-color: #
|
628 |
-
color:#525c5f;
|
629 |
padding: 0 6px;
|
630 |
border-radius: 2px;
|
631 |
}
|
@@ -959,8 +1002,13 @@ hr.indented{ // Indented as fake padding in shortcode builder
|
|
959 |
}
|
960 |
.ajax-load-more .section-title {
|
961 |
float: left;
|
962 |
-
padding: 20px 0
|
963 |
width: 35%;
|
|
|
|
|
|
|
|
|
|
|
964 |
p:last-of-type{
|
965 |
margin-bottom: 0;
|
966 |
}
|
@@ -969,22 +1017,17 @@ hr.indented{ // Indented as fake padding in shortcode builder
|
|
969 |
padding-top: 8px;
|
970 |
display: block;
|
971 |
}
|
972 |
-
|
973 |
-
|
974 |
-
.ajax-load-more .section-title.full {
|
975 |
-
width: 100%;
|
976 |
-
float: none;
|
977 |
-
}
|
978 |
-
.ajax-load-more .section-title h4{
|
979 |
font-size: 14px;
|
980 |
font-weight: 600;
|
981 |
margin-bottom: 15px;
|
982 |
-
}
|
983 |
-
|
984 |
-
|
985 |
-
|
986 |
-
|
987 |
-
|
|
|
988 |
}
|
989 |
.ajax-load-more .wrap p.descriptor{
|
990 |
margin: 0;
|
@@ -1636,7 +1679,9 @@ table.highlight{
|
|
1636 |
flex-wrap: wrap;
|
1637 |
margin-bottom: 20px;
|
1638 |
border-top: 1px solid #e1e1e1;
|
1639 |
-
border-left: 1px solid #e1e1e1;
|
|
|
|
|
1640 |
}
|
1641 |
|
1642 |
#alm-add-ons {}
|
@@ -2802,7 +2847,10 @@ p.theme-title{
|
|
2802 |
.shortcode-builder input[type=radio],
|
2803 |
.ajax-load-more .form-table input[type=checkbox],
|
2804 |
.ajax-load-more .form-table input[type=radio]{
|
2805 |
-
|
|
|
|
|
|
|
2806 |
}
|
2807 |
|
2808 |
.shortcode-builder input[type=checkbox] + label,
|
295 |
margin-top: -10px;
|
296 |
opacity: 0.7;
|
297 |
}
|
298 |
+
.ajax-load-more.shortcode-builder .major-publishing-actions{
|
299 |
+
position: relative;
|
300 |
+
}
|
301 |
.ajax-load-more p.small.reset-shortcode-builder{
|
302 |
+
position: absolute;
|
303 |
+
right: 15px;
|
304 |
+
top: 50%;
|
305 |
+
transform: translateY(-45%);
|
306 |
text-align: right;
|
307 |
+
margin: 0;
|
308 |
+
padding: 0;
|
309 |
display: none;
|
310 |
+
width: auto;
|
311 |
+
opacity: 1;
|
312 |
+
font-size: 12px;
|
313 |
}
|
314 |
.ajax-load-more p.small.reset-shortcode-builder a{
|
315 |
text-decoration: none;
|
431 |
font-family: -apple-system,BlinkMacSystemFont, "Segoe UI", Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
|
432 |
}
|
433 |
|
434 |
+
a.button-small{
|
435 |
+
text-decoration: none;
|
436 |
+
font-size: 11px;
|
437 |
+
padding: 7px;
|
438 |
+
display: inline-block;
|
439 |
+
background-color: #eaf6fb;
|
440 |
+
color: #333;
|
441 |
+
line-height: 1.1;
|
442 |
+
border-radius: 2px;
|
443 |
+
&:hover,
|
444 |
+
&:focus{
|
445 |
+
color: #222;
|
446 |
+
background-color: #d9edf5;
|
447 |
+
}
|
448 |
+
}
|
449 |
|
450 |
.ajax-load-more ul{
|
451 |
padding: 0;
|
461 |
display: inline-block;
|
462 |
vertical-align: top;
|
463 |
overflow: visible;
|
464 |
+
position: relative;
|
465 |
}
|
466 |
|
467 |
.ajax-load-more label.full{
|
635 |
}
|
636 |
|
637 |
.ajax-load-more p.warning-callout{
|
638 |
+
background-color: #eaf6fb;
|
639 |
+
border-left: 6px solid #4e99bf;
|
640 |
color: #333;
|
641 |
+
font-size: 12px;
|
642 |
margin: 0;
|
643 |
display: block;
|
644 |
+
padding: 18px 100px 18px 18px;
|
645 |
border-radius: 3px;
|
646 |
margin: 10px;
|
647 |
width: auto;
|
648 |
line-height: 1.55;
|
649 |
+
position: relative;
|
650 |
+
a{
|
651 |
+
color: #0071ac;
|
652 |
+
}
|
653 |
+
a.button-small{
|
654 |
+
position: absolute;
|
655 |
+
right: 14px;
|
656 |
+
top: 14px;
|
657 |
+
font-size: 12px;
|
658 |
+
display: inline-block;
|
659 |
+
background-color: rgba(255, 255, 255, 0.65);
|
660 |
+
margin: 0 0 0 10px;
|
661 |
+
&:hover,
|
662 |
+
&:focus{
|
663 |
+
background-color: #fff;
|
664 |
+
}
|
665 |
+
}
|
666 |
}
|
667 |
.ajax-load-more p.warning-callout strong{
|
668 |
display: inline-block;
|
669 |
font-weight: normal;
|
670 |
+
font-family: Consolas, monaco, monospace;
|
671 |
+
background-color: #fff;
|
|
|
672 |
padding: 0 6px;
|
673 |
border-radius: 2px;
|
674 |
}
|
1002 |
}
|
1003 |
.ajax-load-more .section-title {
|
1004 |
float: left;
|
1005 |
+
padding: 20px 0 25px 20px;
|
1006 |
width: 35%;
|
1007 |
+
&.full{
|
1008 |
+
width: 100%;
|
1009 |
+
float: none;
|
1010 |
+
padding-right: 25px;
|
1011 |
+
}
|
1012 |
p:last-of-type{
|
1013 |
margin-bottom: 0;
|
1014 |
}
|
1017 |
padding-top: 8px;
|
1018 |
display: block;
|
1019 |
}
|
1020 |
+
h4{
|
|
|
|
|
|
|
|
|
|
|
|
|
1021 |
font-size: 14px;
|
1022 |
font-weight: 600;
|
1023 |
margin-bottom: 15px;
|
1024 |
+
}
|
1025 |
+
p,
|
1026 |
+
.wrap p.descriptor{
|
1027 |
+
font-size: 13px;
|
1028 |
+
line-height: 20px;
|
1029 |
+
color: #999;
|
1030 |
+
}
|
1031 |
}
|
1032 |
.ajax-load-more .wrap p.descriptor{
|
1033 |
margin: 0;
|
1679 |
flex-wrap: wrap;
|
1680 |
margin-bottom: 20px;
|
1681 |
border-top: 1px solid #e1e1e1;
|
1682 |
+
border-left: 1px solid #e1e1e1;
|
1683 |
+
background-color: #f7f7f7;
|
1684 |
+
box-shadow: inset 0 0 0 1px #e1e1e1;
|
1685 |
}
|
1686 |
|
1687 |
#alm-add-ons {}
|
2847 |
.shortcode-builder input[type=radio],
|
2848 |
.ajax-load-more .form-table input[type=checkbox],
|
2849 |
.ajax-load-more .form-table input[type=radio]{
|
2850 |
+
width: 0;
|
2851 |
+
height: 0;
|
2852 |
+
opacity: 0;
|
2853 |
+
position: absolute;
|
2854 |
}
|
2855 |
|
2856 |
.shortcode-builder input[type=checkbox] + label,
|
admin/views/settings.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<div class="alm-settings-feedback"></div>
|
2 |
|
3 |
<div class="admin ajax-load-more settings" id="alm-settings">
|
4 |
-
|
5 |
<div class="wrap main-cnkt-wrap">
|
6 |
|
7 |
<header class="header-wrap">
|
@@ -9,16 +9,16 @@
|
|
9 |
<?php echo ALM_TITLE; ?> <span><?php echo ALM_VERSION; ?></span>
|
10 |
<em><?php _e('A powerful plugin to add infinite scroll functionality to your website.', 'ajax-load-more'); ?></em>
|
11 |
</h1>
|
12 |
-
<?php alm_render_transient_notification(); ?>
|
13 |
-
|
14 |
-
</header>
|
15 |
-
|
16 |
-
<div class="ajax-load-more-inner-wrapper">
|
|
|
|
|
17 |
|
18 |
-
<div class="cnkt-main">
|
19 |
-
|
20 |
<?php //include_once( ALM_PATH . 'admin/includes/cta/sharing.php'); ?>
|
21 |
-
|
22 |
<?php
|
23 |
if(has_action('alm_cache_settings') || has_action('alm_layouts_installed') || has_action('alm_prev_post_settings') || has_action('alm_paging_settings') || has_action('alm_seo_settings') || has_action('alm_theme_repeaters_settings')) {
|
24 |
?>
|
@@ -39,12 +39,12 @@
|
|
39 |
echo '<option value="4">'.__('Layouts', 'ajax-load-more').'</options>';
|
40 |
if(has_action('alm_paging_settings'))
|
41 |
echo '<option value="5">'.__('Paging', 'ajax-load-more').'</option>';
|
42 |
-
if(has_action('alm_prev_post_settings'))
|
43 |
-
echo '<option value="6">'.__('Previous Post', 'ajax-load-more').'</option>';
|
44 |
if(has_action('alm_rest_api_settings'))
|
45 |
-
echo '<option value="
|
46 |
if(has_action('alm_seo_settings'))
|
47 |
-
echo '<option value="
|
|
|
|
|
48 |
if(has_action('alm_theme_repeaters_settings'))
|
49 |
echo '<option value="9">'.__('Theme Repeaters', 'ajax-load-more').'</option>';
|
50 |
?>
|
@@ -62,18 +62,18 @@
|
|
62 |
$options = get_option( '_alm_settings' ); ?>
|
63 |
<div class="save-in-progress"></div>
|
64 |
</form>
|
65 |
-
|
66 |
</div>
|
67 |
-
<aside class="cnkt-sidebar">
|
68 |
<?php //include_once( ALM_PATH . 'admin/includes/cta/pro.php'); ?>
|
69 |
<?php //include_once( ALM_PATH . 'admin/includes/cta/sharing.php'); ?>
|
70 |
<?php include_once( ALM_PATH . 'admin/includes/cta/resources.php'); ?>
|
71 |
<?php include_once( ALM_PATH . 'admin/includes/cta/dyk.php'); ?>
|
72 |
<?php include_once( ALM_PATH . 'admin/includes/cta/about.php'); ?>
|
73 |
</aside>
|
74 |
-
|
75 |
-
<div class="clear"></div>
|
76 |
</div>
|
77 |
-
|
78 |
</div>
|
79 |
</div>
|
1 |
<div class="alm-settings-feedback"></div>
|
2 |
|
3 |
<div class="admin ajax-load-more settings" id="alm-settings">
|
4 |
+
|
5 |
<div class="wrap main-cnkt-wrap">
|
6 |
|
7 |
<header class="header-wrap">
|
9 |
<?php echo ALM_TITLE; ?> <span><?php echo ALM_VERSION; ?></span>
|
10 |
<em><?php _e('A powerful plugin to add infinite scroll functionality to your website.', 'ajax-load-more'); ?></em>
|
11 |
</h1>
|
12 |
+
<?php alm_render_transient_notification(); ?>
|
13 |
+
|
14 |
+
</header>
|
15 |
+
|
16 |
+
<div class="ajax-load-more-inner-wrapper">
|
17 |
+
|
18 |
+
<div class="cnkt-main">
|
19 |
|
|
|
|
|
20 |
<?php //include_once( ALM_PATH . 'admin/includes/cta/sharing.php'); ?>
|
21 |
+
|
22 |
<?php
|
23 |
if(has_action('alm_cache_settings') || has_action('alm_layouts_installed') || has_action('alm_prev_post_settings') || has_action('alm_paging_settings') || has_action('alm_seo_settings') || has_action('alm_theme_repeaters_settings')) {
|
24 |
?>
|
39 |
echo '<option value="4">'.__('Layouts', 'ajax-load-more').'</options>';
|
40 |
if(has_action('alm_paging_settings'))
|
41 |
echo '<option value="5">'.__('Paging', 'ajax-load-more').'</option>';
|
|
|
|
|
42 |
if(has_action('alm_rest_api_settings'))
|
43 |
+
echo '<option value="6">'.__('REST API', 'ajax-load-more').'</option>';
|
44 |
if(has_action('alm_seo_settings'))
|
45 |
+
echo '<option value="7">'.__('SEO', 'ajax-load-more').'</option>';
|
46 |
+
if(has_action('alm_prev_post_settings'))
|
47 |
+
echo '<option value="8">'.__('Single Posts', 'ajax-load-more').'</option>';
|
48 |
if(has_action('alm_theme_repeaters_settings'))
|
49 |
echo '<option value="9">'.__('Theme Repeaters', 'ajax-load-more').'</option>';
|
50 |
?>
|
62 |
$options = get_option( '_alm_settings' ); ?>
|
63 |
<div class="save-in-progress"></div>
|
64 |
</form>
|
65 |
+
|
66 |
</div>
|
67 |
+
<aside class="cnkt-sidebar">
|
68 |
<?php //include_once( ALM_PATH . 'admin/includes/cta/pro.php'); ?>
|
69 |
<?php //include_once( ALM_PATH . 'admin/includes/cta/sharing.php'); ?>
|
70 |
<?php include_once( ALM_PATH . 'admin/includes/cta/resources.php'); ?>
|
71 |
<?php include_once( ALM_PATH . 'admin/includes/cta/dyk.php'); ?>
|
72 |
<?php include_once( ALM_PATH . 'admin/includes/cta/about.php'); ?>
|
73 |
</aside>
|
74 |
+
|
75 |
+
<div class="clear"></div>
|
76 |
</div>
|
77 |
+
|
78 |
</div>
|
79 |
</div>
|
admin/views/shortcode-builder.php
CHANGED
@@ -32,11 +32,11 @@
|
|
32 |
<p><?php _e('Place the following shortcode into the content editor or widget area of your theme.', 'ajax-load-more'); ?></p>
|
33 |
<div class="output-wrap">
|
34 |
<div id="shortcode_output"></div>
|
35 |
-
</div>
|
36 |
-
<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>
|
37 |
</div>
|
38 |
<div class="major-publishing-actions">
|
39 |
<a class="button button-primary copy copy-to-clipboard"><?php _e('Copy Shortcode', 'ajax-load-more'); ?></a>
|
|
|
40 |
</div>
|
41 |
</div>
|
42 |
</div>
|
32 |
<p><?php _e('Place the following shortcode into the content editor or widget area of your theme.', 'ajax-load-more'); ?></p>
|
33 |
<div class="output-wrap">
|
34 |
<div id="shortcode_output"></div>
|
35 |
+
</div>
|
|
|
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 |
+
<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>
|
40 |
</div>
|
41 |
</div>
|
42 |
</div>
|
ajax-load-more.php
CHANGED
@@ -6,15 +6,15 @@ Description: The ultimate solution to add infinite scroll functionality to your
|
|
6 |
Text Domain: ajax-load-more
|
7 |
Author: Darren Cooney
|
8 |
Twitter: @KaptonKaos
|
9 |
-
Author URI: https://connekthq.com
|
10 |
-
Version: 4.
|
11 |
License: GPL
|
12 |
Copyright: Darren Cooney & Connekt Media
|
13 |
*/
|
14 |
|
15 |
|
16 |
-
define('ALM_VERSION', '4.
|
17 |
-
define('ALM_RELEASE', '
|
18 |
define('ALM_STORE_URL', 'https://connekthq.com');
|
19 |
|
20 |
|
@@ -90,6 +90,19 @@ function alm_create_table(){
|
|
90 |
}
|
91 |
|
92 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
if( !class_exists('AjaxLoadMore') ):
|
94 |
|
95 |
class AjaxLoadMore {
|
@@ -345,7 +358,7 @@ if( !class_exists('AjaxLoadMore') ):
|
|
345 |
|
346 |
// Core ALM JS
|
347 |
$suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min'; // Use minified libraries if SCRIPT_DEBUG is turned off
|
348 |
-
wp_register_script( 'ajax-load-more', plugins_url( '/core/dist/js/ajax-load-more'
|
349 |
|
350 |
// Progress Bar JS
|
351 |
wp_register_script( 'ajax-load-more-progress', plugins_url( '/vendor/js/pace/pace.min.js', __FILE__ ), 'ajax-load-more', ALM_VERSION, true );
|
@@ -380,7 +393,6 @@ if( !class_exists('AjaxLoadMore') ):
|
|
380 |
'ajax_object' => array('is_single' => true, 'is_singular' => true )
|
381 |
)
|
382 |
);
|
383 |
-
|
384 |
}
|
385 |
|
386 |
|
@@ -392,7 +404,6 @@ if( !class_exists('AjaxLoadMore') ):
|
|
392 |
* @since 2.0.0
|
393 |
* @updated 3.2.0
|
394 |
*/
|
395 |
-
|
396 |
public function alm_shortcode($atts) {
|
397 |
self::$shortcode_atts = $atts;
|
398 |
return ALM_SHORTCODE::alm_render_shortcode($atts);
|
@@ -503,13 +514,13 @@ if( !class_exists('AjaxLoadMore') ):
|
|
503 |
}
|
504 |
|
505 |
|
506 |
-
//
|
507 |
-
$
|
508 |
-
$
|
509 |
-
if($
|
510 |
-
$
|
511 |
-
$
|
512 |
-
$
|
513 |
}
|
514 |
|
515 |
|
@@ -528,16 +539,14 @@ if( !class_exists('AjaxLoadMore') ):
|
|
528 |
|
529 |
|
530 |
/*
|
531 |
-
*
|
532 |
*
|
533 |
-
*
|
534 |
-
* Hijack $args and and return
|
535 |
*
|
536 |
* @return $args;
|
537 |
*/
|
538 |
-
|
539 |
-
$args = apply_filters('alm_prev_post_args', $previous_post_id, $postType);
|
540 |
-
}
|
541 |
|
542 |
|
543 |
|
@@ -671,9 +680,9 @@ if( !class_exists('AjaxLoadMore') ):
|
|
671 |
* @return null
|
672 |
*/
|
673 |
if(!empty($cache_id) && has_action('alm_cache_installed') && $do_create_cache){
|
674 |
-
if($
|
675 |
-
//
|
676 |
-
apply_filters('alm_previous_post_cache_file', $cache_id, $
|
677 |
}else{
|
678 |
// Standard Cache
|
679 |
apply_filters('alm_cache_file', $cache_id, $page, $seo_start_page, $data, $preloaded);
|
6 |
Text Domain: ajax-load-more
|
7 |
Author: Darren Cooney
|
8 |
Twitter: @KaptonKaos
|
9 |
+
Author URI: https://connekthq.com
|
10 |
+
Version: 4.2.0.1
|
11 |
License: GPL
|
12 |
Copyright: Darren Cooney & Connekt Media
|
13 |
*/
|
14 |
|
15 |
|
16 |
+
define('ALM_VERSION', '4.2.0.1');
|
17 |
+
define('ALM_RELEASE', 'January 16, 2019');
|
18 |
define('ALM_STORE_URL', 'https://connekthq.com');
|
19 |
|
20 |
|
90 |
}
|
91 |
|
92 |
|
93 |
+
|
94 |
+
/*
|
95 |
+
* alm_render
|
96 |
+
* Render Ajax Load More public function
|
97 |
+
*
|
98 |
+
* @param {array} $args
|
99 |
+
* @since 4.2.0
|
100 |
+
*/
|
101 |
+
function alm_render($args){
|
102 |
+
echo AjaxLoadMore::alm_shortcode($args);
|
103 |
+
}
|
104 |
+
|
105 |
+
|
106 |
if( !class_exists('AjaxLoadMore') ):
|
107 |
|
108 |
class AjaxLoadMore {
|
358 |
|
359 |
// Core ALM JS
|
360 |
$suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min'; // Use minified libraries if SCRIPT_DEBUG is turned off
|
361 |
+
wp_register_script( 'ajax-load-more', plugins_url( '/core/dist/js/ajax-load-more'.$suffix.'.js', __FILE__ ), $dependencies, ALM_VERSION, true );
|
362 |
|
363 |
// Progress Bar JS
|
364 |
wp_register_script( 'ajax-load-more-progress', plugins_url( '/vendor/js/pace/pace.min.js', __FILE__ ), 'ajax-load-more', ALM_VERSION, true );
|
393 |
'ajax_object' => array('is_single' => true, 'is_singular' => true )
|
394 |
)
|
395 |
);
|
|
|
396 |
}
|
397 |
|
398 |
|
404 |
* @since 2.0.0
|
405 |
* @updated 3.2.0
|
406 |
*/
|
|
|
407 |
public function alm_shortcode($atts) {
|
408 |
self::$shortcode_atts = $atts;
|
409 |
return ALM_SHORTCODE::alm_render_shortcode($atts);
|
514 |
}
|
515 |
|
516 |
|
517 |
+
// Single Post Add-on
|
518 |
+
$single_post = false;
|
519 |
+
$single_post_data = (isset($_GET['single_post'])) ? $_GET['single_post'] : false;
|
520 |
+
if($single_post_data){
|
521 |
+
$single_post = true;
|
522 |
+
$single_post_id = (isset($single_post_data['id'])) ? $single_post_data['id'] : '';
|
523 |
+
$single_post_slug = (isset($single_post_data['slug'])) ? $single_post_data['slug'] : '';
|
524 |
}
|
525 |
|
526 |
|
539 |
|
540 |
|
541 |
/*
|
542 |
+
* alm_single_post_args
|
543 |
*
|
544 |
+
* Single Post Add-on hook
|
545 |
+
* Hijack $args and and return single post only $args
|
546 |
*
|
547 |
* @return $args;
|
548 |
*/
|
549 |
+
$args = ($single_post && has_action('alm_single_post_installed')) ? apply_filters('alm_single_post_args', $single_post_id, $postType) : $args;
|
|
|
|
|
550 |
|
551 |
|
552 |
|
680 |
* @return null
|
681 |
*/
|
682 |
if(!empty($cache_id) && has_action('alm_cache_installed') && $do_create_cache){
|
683 |
+
if($single_post){
|
684 |
+
// Single Post Cache
|
685 |
+
apply_filters('alm_previous_post_cache_file', $cache_id, $single_post_id, $data);
|
686 |
}else{
|
687 |
// Standard Cache
|
688 |
apply_filters('alm_cache_file', $cache_id, $page, $seo_start_page, $data, $preloaded);
|
core/classes/class.alm-localize.php
CHANGED
@@ -18,7 +18,7 @@ if(!class_exists('ALM_LOCALIZE')):
|
|
18 |
|
19 |
static $vars = array();
|
20 |
|
21 |
-
|
22 |
* add_localized_var
|
23 |
* Create <script> variables for use with Preloaded addon
|
24 |
*
|
@@ -38,7 +38,7 @@ if(!class_exists('ALM_LOCALIZE')):
|
|
38 |
|
39 |
|
40 |
|
41 |
-
|
42 |
* create_script_vars
|
43 |
* Create <script> variables for use with Preloaded addon
|
44 |
*
|
@@ -47,13 +47,11 @@ if(!class_exists('ALM_LOCALIZE')):
|
|
47 |
* @since 3.7
|
48 |
*/
|
49 |
public static function create_script_vars($id){
|
50 |
-
if(!empty(self::$vars) && isset(self::$vars[$id]) && is_array(self::$vars[$id])){
|
51 |
-
|
52 |
-
// Add div ID to the start of array
|
53 |
-
self::$vars[$id] = array_merge(array('id' => $id), self::$vars[$id]);
|
54 |
-
|
55 |
// Render wp_localize_script vars with 'ajax-load-more' script handle.
|
56 |
wp_localize_script( 'ajax-load-more', alm_convert_dashes_to_underscore($id) .'_vars', self::$vars[$id] );
|
|
|
57 |
}
|
58 |
}
|
59 |
|
18 |
|
19 |
static $vars = array();
|
20 |
|
21 |
+
/**
|
22 |
* add_localized_var
|
23 |
* Create <script> variables for use with Preloaded addon
|
24 |
*
|
38 |
|
39 |
|
40 |
|
41 |
+
/**
|
42 |
* create_script_vars
|
43 |
* Create <script> variables for use with Preloaded addon
|
44 |
*
|
47 |
* @since 3.7
|
48 |
*/
|
49 |
public static function create_script_vars($id){
|
50 |
+
if(!empty(self::$vars) && isset(self::$vars[$id]) && is_array(self::$vars[$id])){
|
51 |
+
|
|
|
|
|
|
|
52 |
// Render wp_localize_script vars with 'ajax-load-more' script handle.
|
53 |
wp_localize_script( 'ajax-load-more', alm_convert_dashes_to_underscore($id) .'_vars', self::$vars[$id] );
|
54 |
+
|
55 |
}
|
56 |
}
|
57 |
|
core/classes/class.alm-shortcode.php
CHANGED
@@ -89,8 +89,14 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
89 |
'nextpage_start' => 1,
|
90 |
'previous_post' => false,
|
91 |
'previous_post_id' => 'null',
|
|
|
92 |
'previous_post_taxonomy' => '',
|
93 |
'previous_post_excluded_terms' => '',
|
|
|
|
|
|
|
|
|
|
|
94 |
'cache' => 'false',
|
95 |
'cache_id' => '',
|
96 |
'paging' => 'false',
|
@@ -140,7 +146,7 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
140 |
'offset' => '0',
|
141 |
'posts_per_page' => '5',
|
142 |
'scroll' => 'true',
|
143 |
-
'scroll_distance' => '
|
144 |
'scroll_container' => '',
|
145 |
'max_pages' => '0',
|
146 |
'pause_override' => 'false',
|
@@ -164,6 +170,17 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
164 |
'id' => '',
|
165 |
'primary' => false
|
166 |
), $atts));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
167 |
|
168 |
|
169 |
// Start Enqueue Scripts
|
@@ -225,8 +242,8 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
225 |
}
|
226 |
|
227 |
// Previous Post
|
228 |
-
if(has_action('
|
229 |
-
wp_enqueue_script( 'ajax-load-more-
|
230 |
}
|
231 |
|
232 |
// SEO
|
@@ -253,7 +270,7 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
253 |
// Filters - Set initial shortcode state
|
254 |
$filters = ($filters === 'true' && class_exists('ALMFilters')) ? true : false;
|
255 |
if($filters){
|
256 |
-
$
|
257 |
$transition_container = "true"; // required
|
258 |
if(defined('ALM_FILTERS_PATH')){
|
259 |
include(ALM_FILTERS_PATH .'includes/initial-state-params.php');
|
@@ -261,10 +278,10 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
261 |
}
|
262 |
|
263 |
|
264 |
-
$
|
265 |
|
266 |
|
267 |
-
if($seo === "true" || $
|
268 |
$transition_container = "true";
|
269 |
}
|
270 |
|
@@ -280,7 +297,7 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
280 |
// Get container elements (ul | div)
|
281 |
|
282 |
$container_element = 'ul';
|
283 |
-
if($options['_alm_container_type'] == '2' || $
|
284 |
$container_element = 'div';
|
285 |
}
|
286 |
|
@@ -292,7 +309,7 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
292 |
}
|
293 |
|
294 |
// Previous Post
|
295 |
-
if($
|
296 |
$posts_per_page = 1;
|
297 |
$container_element = 'div';
|
298 |
}
|
@@ -404,9 +421,9 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
404 |
$ajaxloadmore .= apply_filters('alm_masonry_before', $transition);
|
405 |
|
406 |
|
407 |
-
//
|
408 |
// - Set other add-on params to false
|
409 |
-
if($
|
410 |
$preloaded = false;
|
411 |
$seo = false;
|
412 |
$paging = false;
|
@@ -418,7 +435,7 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
418 |
// Comments Add-on
|
419 |
// - Set other add-on params to false
|
420 |
if($comments){
|
421 |
-
$
|
422 |
$seo = false;
|
423 |
$cache = false;
|
424 |
$acf = false;
|
@@ -438,7 +455,7 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
438 |
// Nextpage Add-on
|
439 |
// - Set other add-on params to false
|
440 |
if($nextpage){
|
441 |
-
$
|
442 |
$seo = false;
|
443 |
$preloaded = false;
|
444 |
$comments = false;
|
@@ -654,16 +671,17 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
654 |
}
|
655 |
|
656 |
|
657 |
-
//
|
658 |
-
if(has_action('
|
659 |
-
$
|
660 |
-
'
|
661 |
-
$
|
662 |
-
$
|
663 |
-
$
|
|
|
664 |
$options
|
665 |
);
|
666 |
-
$ajaxloadmore .= $
|
667 |
}
|
668 |
|
669 |
|
@@ -818,7 +836,7 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
818 |
|
819 |
// Previous Post
|
820 |
// Get first post and append to alm object
|
821 |
-
if(has_action('
|
822 |
|
823 |
$repeater_type = preg_split('/(?=\d)/', $repeater, 2); // split $repeater at number to retrieve type
|
824 |
$repeater_type = $repeater_type[0]; // (default | repeater | template_)
|
@@ -827,23 +845,23 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
827 |
$repeater_type = null;
|
828 |
}
|
829 |
// Get current permalink - (including querystring)
|
830 |
-
$
|
831 |
|
832 |
// Get previous post include, build output from the next post filter
|
833 |
-
$
|
834 |
|
835 |
|
836 |
/*
|
837 |
-
*
|
838 |
*
|
839 |
* Previous Post Add-on hook
|
840 |
*
|
841 |
* @return $args;
|
842 |
*/
|
843 |
-
$
|
844 |
|
845 |
-
$
|
846 |
-
$ajaxloadmore .= $
|
847 |
|
848 |
}
|
849 |
// End Previous Post
|
@@ -933,7 +951,7 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
933 |
|
934 |
|
935 |
// Add some localized vars
|
936 |
-
ALM_LOCALIZE::add_localized_var('
|
937 |
|
938 |
|
939 |
|
@@ -967,12 +985,7 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
967 |
if($paging !== 'true'){
|
968 |
$btn_element = 'button';
|
969 |
$btn_href = '';
|
970 |
-
$btn_rel = ' rel="next"';
|
971 |
-
/* if($seo === 'true'){
|
972 |
-
$btn_element = 'a'; // Convert to link for SEO
|
973 |
-
$btn_href = ' href="'. $canonicalURL .'"';
|
974 |
-
$btn_rel = ' rel="next"';
|
975 |
-
} */
|
976 |
$html .= '<'. $btn_element .' class="alm-load-more-btn more'. $button_classname .'"'. $btn_href . $btn_rel .'>'. $button_label .'</'. $btn_element .'>';
|
977 |
}
|
978 |
$html .= '</div>';
|
89 |
'nextpage_start' => 1,
|
90 |
'previous_post' => false,
|
91 |
'previous_post_id' => 'null',
|
92 |
+
'previous_post_order' => 'previous',
|
93 |
'previous_post_taxonomy' => '',
|
94 |
'previous_post_excluded_terms' => '',
|
95 |
+
'single_post' => false,
|
96 |
+
'single_post_id' => 'null',
|
97 |
+
'single_post_order' => 'previous',
|
98 |
+
'single_post_taxonomy' => '',
|
99 |
+
'single_post_excluded_terms' => '',
|
100 |
'cache' => 'false',
|
101 |
'cache_id' => '',
|
102 |
'paging' => 'false',
|
146 |
'offset' => '0',
|
147 |
'posts_per_page' => '5',
|
148 |
'scroll' => 'true',
|
149 |
+
'scroll_distance' => '100',
|
150 |
'scroll_container' => '',
|
151 |
'max_pages' => '0',
|
152 |
'pause_override' => 'false',
|
170 |
'id' => '',
|
171 |
'primary' => false
|
172 |
), $atts));
|
173 |
+
|
174 |
+
|
175 |
+
// Backwards compat
|
176 |
+
// If $previous_post_ is true, set the $single_post_{value} params
|
177 |
+
if($previous_post === 'true'){
|
178 |
+
$single_post = 'true';
|
179 |
+
$single_post_id = $previous_post_id;
|
180 |
+
$single_post_order = $previous_post_order;
|
181 |
+
$single_post_taxonomy = $previous_post_taxonomy;
|
182 |
+
$single_post_excluded_terms = $previous_post_excluded_terms;
|
183 |
+
}
|
184 |
|
185 |
|
186 |
// Start Enqueue Scripts
|
242 |
}
|
243 |
|
244 |
// Previous Post
|
245 |
+
if(has_action('alm_single_post_installed') && $single_post === 'true'){
|
246 |
+
wp_enqueue_script( 'ajax-load-more-single-posts' );
|
247 |
}
|
248 |
|
249 |
// SEO
|
270 |
// Filters - Set initial shortcode state
|
271 |
$filters = ($filters === 'true' && class_exists('ALMFilters')) ? true : false;
|
272 |
if($filters){
|
273 |
+
$single_post = $seo = false;
|
274 |
$transition_container = "true"; // required
|
275 |
if(defined('ALM_FILTERS_PATH')){
|
276 |
include(ALM_FILTERS_PATH .'includes/initial-state-params.php');
|
278 |
}
|
279 |
|
280 |
|
281 |
+
$single_post = ($single_post === 'true') ? true : false;
|
282 |
|
283 |
|
284 |
+
if($seo === "true" || $single_post || $filters){
|
285 |
$transition_container = "true";
|
286 |
}
|
287 |
|
297 |
// Get container elements (ul | div)
|
298 |
|
299 |
$container_element = 'ul';
|
300 |
+
if($options['_alm_container_type'] == '2' || $single_post){
|
301 |
$container_element = 'div';
|
302 |
}
|
303 |
|
309 |
}
|
310 |
|
311 |
// Previous Post
|
312 |
+
if($single_post){
|
313 |
$posts_per_page = 1;
|
314 |
$container_element = 'div';
|
315 |
}
|
421 |
$ajaxloadmore .= apply_filters('alm_masonry_before', $transition);
|
422 |
|
423 |
|
424 |
+
// Single Post Add-on
|
425 |
// - Set other add-on params to false
|
426 |
+
if($single_post){
|
427 |
$preloaded = false;
|
428 |
$seo = false;
|
429 |
$paging = false;
|
435 |
// Comments Add-on
|
436 |
// - Set other add-on params to false
|
437 |
if($comments){
|
438 |
+
$single_post = false;
|
439 |
$seo = false;
|
440 |
$cache = false;
|
441 |
$acf = false;
|
455 |
// Nextpage Add-on
|
456 |
// - Set other add-on params to false
|
457 |
if($nextpage){
|
458 |
+
$single_post = false;
|
459 |
$seo = false;
|
460 |
$preloaded = false;
|
461 |
$comments = false;
|
671 |
}
|
672 |
|
673 |
|
674 |
+
// Single Posts Add-on
|
675 |
+
if(has_action('alm_single_post_installed') && $single_post){
|
676 |
+
$single_post_return = apply_filters(
|
677 |
+
'alm_single_post_shortcode',
|
678 |
+
$single_post_id,
|
679 |
+
$single_post_order,
|
680 |
+
$single_post_taxonomy,
|
681 |
+
$single_post_excluded_terms,
|
682 |
$options
|
683 |
);
|
684 |
+
$ajaxloadmore .= $single_post_return;
|
685 |
}
|
686 |
|
687 |
|
836 |
|
837 |
// Previous Post
|
838 |
// Get first post and append to alm object
|
839 |
+
if(has_action('alm_single_post_installed') && $single_post){
|
840 |
|
841 |
$repeater_type = preg_split('/(?=\d)/', $repeater, 2); // split $repeater at number to retrieve type
|
842 |
$repeater_type = $repeater_type[0]; // (default | repeater | template_)
|
845 |
$repeater_type = null;
|
846 |
}
|
847 |
// Get current permalink - (including querystring)
|
848 |
+
$single_post_permanlink = ($_SERVER["QUERY_STRING"]) ? get_permalink($single_post_id) .'?'. $_SERVER["QUERY_STRING"] : get_permalink($single_post_id);
|
849 |
|
850 |
// Get previous post include, build output from the next post filter
|
851 |
+
$single_post_output = '<div class="alm-reveal alm-single-post post-'. $single_post_id .'" data-url="'. $single_post_permanlink .'" data-title="'. strip_tags(get_the_title($single_post_id)) .'" data-id="'. $single_post_id .'" data-page="0">'; // Set the post id .alm-reveal div
|
852 |
|
853 |
|
854 |
/*
|
855 |
+
* alm_single_post_inc
|
856 |
*
|
857 |
* Previous Post Add-on hook
|
858 |
*
|
859 |
* @return $args;
|
860 |
*/
|
861 |
+
$single_post_output .= apply_filters('alm_single_post_inc', $repeater, $repeater_type, $theme_repeater, $single_post_id, $post_type);
|
862 |
|
863 |
+
$single_post_output .= '</div>';
|
864 |
+
$ajaxloadmore .= $single_post_output; // Add $single_post_output data to $ajaxloadmore
|
865 |
|
866 |
}
|
867 |
// End Previous Post
|
951 |
|
952 |
|
953 |
// Add some localized vars
|
954 |
+
ALM_LOCALIZE::add_localized_var('id', $div_id, $div_id);
|
955 |
|
956 |
|
957 |
|
985 |
if($paging !== 'true'){
|
986 |
$btn_element = 'button';
|
987 |
$btn_href = '';
|
988 |
+
$btn_rel = ' rel="next"';
|
|
|
|
|
|
|
|
|
|
|
989 |
$html .= '<'. $btn_element .' class="alm-load-more-btn more'. $button_classname .'"'. $btn_href . $btn_rel .'>'. $button_label .'</'. $btn_element .'>';
|
990 |
}
|
991 |
$html .= '</div>';
|
core/dist/js/ajax-load-more.js
CHANGED
@@ -150,8 +150,8 @@ var almGetAjaxParams = function almGetAjaxParams(alm, action, queryType) {
|
|
150 |
if (alm.nextpage_array) {
|
151 |
data.nextpage = alm.nextpage_array;
|
152 |
}
|
153 |
-
if (alm.
|
154 |
-
data.
|
155 |
}
|
156 |
if (alm.users_array) {
|
157 |
data.users = alm.users_array;
|
@@ -708,9 +708,9 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
708 |
* http://wordpress.org/plugins/ajax-load-more/
|
709 |
* https://connekthq.com/plugins/ajax-load-more/
|
710 |
*
|
711 |
-
* Copyright
|
712 |
* Free to use under the GPLv2 license.
|
713 |
-
* http://www.gnu.org/licenses/gpl-2.0.html
|
714 |
*
|
715 |
* Author: Darren Cooney
|
716 |
* Twitter: @KaptonKaos, @ajaxloadmore, @connekthq
|
@@ -720,17 +720,18 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
720 |
|
721 |
"use strict";
|
722 |
|
723 |
-
|
724 |
|
725 |
// Prevent loading of unnessasry posts - move user to top of page
|
726 |
if (alm_localize.scrolltop === 'true') {
|
727 |
-
|
728 |
}
|
729 |
|
730 |
//Set ALM Variables
|
731 |
var alm = this;
|
732 |
alm.AjaxLoadMore = {};
|
733 |
-
alm.window =
|
|
|
734 |
alm.page = 0;
|
735 |
alm.posts = 0;
|
736 |
alm.totalposts = 0;
|
@@ -739,129 +740,134 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
739 |
alm.init = true;
|
740 |
alm.loading = true;
|
741 |
alm.finished = false;
|
742 |
-
alm.
|
743 |
-
alm.
|
744 |
-
alm.master_id =
|
|
|
|
|
745 |
|
746 |
-
// Get localized <script
|
747 |
alm.master_id = alm.master_id.replace(/-/g, '_'); // Convert dashes to underscores for the var name
|
748 |
alm.localize = window[alm.master_id + '_vars']; // Get localize vars
|
749 |
|
750 |
-
// Main ALM
|
751 |
-
|
752 |
-
alm.container.
|
753 |
-
|
754 |
-
var container = alm.container.get(0); // Get DOM element
|
755 |
alm.content = $(container.querySelector('.alm-ajax')); // Get first `.alm-ajax` element as $ obj
|
756 |
alm.content_preloaded = $(container.querySelector('.alm-preloaded')); // Get first `.alm-preloaded` element as $ obj
|
757 |
|
758 |
-
|
759 |
-
alm.
|
760 |
-
alm.
|
761 |
-
alm.
|
762 |
-
alm.
|
763 |
-
alm.
|
|
|
|
|
|
|
|
|
|
|
764 |
|
765 |
-
alm.
|
766 |
-
alm.
|
767 |
|
768 |
-
alm.post_type = alm.content.attr('data-post-type');
|
769 |
-
alm.post_type = alm.post_type.split(",");
|
770 |
-
alm.sticky_posts = alm.content.attr('data-sticky-posts');
|
771 |
alm.btnWrap = $('> .alm-btn-wrap', alm.container);
|
772 |
alm.btnWrap.get(0).style.visibility = 'visible';
|
773 |
-
alm.button_label = alm.
|
774 |
-
alm.button_loading_label = alm.
|
775 |
-
|
776 |
-
alm.scroll_distance = alm.
|
777 |
-
alm.
|
778 |
-
alm.
|
|
|
779 |
alm.max_pages = alm.max_pages ? parseInt(alm.max_pages) : 0;
|
780 |
-
alm.pause_override = alm.
|
781 |
-
alm.pause = alm.
|
782 |
-
alm.transition = alm.
|
783 |
-
alm.transition_container = alm.
|
784 |
-
alm.tcc = alm.
|
785 |
alm.speed = 250;
|
786 |
-
alm.images_loaded = alm.
|
787 |
-
alm.destroy_after = alm.
|
788 |
-
alm.orginal_posts_per_page = alm.
|
789 |
-
alm.posts_per_page = alm.
|
790 |
-
alm.offset = alm.
|
791 |
-
|
792 |
-
alm.cache = alm.
|
793 |
-
alm.cache_id = alm.
|
794 |
-
alm.cache_path = alm.
|
795 |
-
alm.cache_logged_in = alm.
|
796 |
-
|
797 |
-
alm.cta = alm.
|
798 |
-
alm.cta_position = alm.
|
799 |
-
alm.cta_repeater = alm.
|
800 |
-
alm.cta_theme_repeater = alm.
|
801 |
-
|
802 |
-
alm.acf = alm.
|
803 |
-
alm.acf_field_type = alm.
|
804 |
-
alm.acf_field_name = alm.
|
805 |
-
alm.acf_post_id = alm.
|
806 |
-
|
807 |
-
alm.nextpage = alm.
|
808 |
-
alm.nextpage_urls = alm.
|
809 |
-
alm.nextpage_scroll = alm.
|
810 |
-
alm.nextpage_pageviews = alm.
|
811 |
-
alm.nextpage_post_id = alm.
|
812 |
-
alm.nextpage_startpage = alm.
|
813 |
-
|
814 |
-
alm.
|
815 |
-
alm.
|
816 |
-
alm.
|
817 |
-
alm.
|
818 |
-
|
819 |
-
alm.
|
|
|
|
|
820 |
if (alm.comments === 'true') {
|
821 |
// if comments, adjust alm.content wrapper
|
822 |
alm.content = $('.alm-comments', alm.container);
|
823 |
}
|
824 |
-
alm.comments_post_id = alm.
|
825 |
-
alm.comments_per_page = alm.
|
826 |
-
alm.comments_type = alm.
|
827 |
-
alm.comments_style = alm.
|
828 |
-
alm.comments_template = alm.
|
829 |
-
alm.comments_callback = alm.
|
830 |
|
831 |
-
alm.filters = alm.
|
832 |
|
833 |
-
alm.restapi = alm.
|
834 |
-
alm.restapi_base_url = alm.
|
835 |
-
alm.restapi_namespace = alm.
|
836 |
-
alm.restapi_endpoint = alm.
|
837 |
-
alm.restapi_template_id = alm.
|
838 |
-
alm.restapi_debug = alm.
|
839 |
|
840 |
-
alm.seo = alm.
|
841 |
|
842 |
-
alm.preloaded = alm.
|
843 |
-
alm.preloaded_amount = alm.
|
844 |
-
alm.is_preloaded = alm.
|
845 |
|
846 |
-
alm.paging = alm.
|
847 |
|
848 |
-
alm.users = alm.
|
849 |
if (alm.users) {
|
850 |
// Override paging params for users
|
851 |
-
alm.orginal_posts_per_page = alm.
|
852 |
-
alm.posts_per_page = alm.
|
853 |
}
|
854 |
|
855 |
/* Filters */
|
856 |
if (alm.filters === 'true') {
|
857 |
alm.filters = true;
|
858 |
|
859 |
-
alm.filters_analtyics = alm.
|
860 |
-
alm.filters_debug = alm.
|
861 |
|
862 |
// Check for startpage param
|
863 |
/*
|
864 |
-
alm.filters_startpage = alm.
|
865 |
alm.filters_startpage = parseInt(alm.filters_startpage);
|
866 |
alm.page = alm.filters_startpage;
|
867 |
*/
|
@@ -902,9 +908,9 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
902 |
/* Paging */
|
903 |
if (alm.paging === 'true') {
|
904 |
alm.paging = true;
|
905 |
-
alm.paging_controls = alm.
|
906 |
-
alm.paging_show_at_most = alm.
|
907 |
-
alm.paging_classes = alm.
|
908 |
alm.paging_init = true;
|
909 |
alm.paging_show_at_most = alm.paging_show_at_most === undefined ? 7 : alm.paging_show_at_most;
|
910 |
|
@@ -961,17 +967,17 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
961 |
}
|
962 |
alm.search_value = alm.is_search === 'true' ? alm.slug : ''; // Convert to value of slug for appending to seo url
|
963 |
|
964 |
-
alm.permalink = alm.
|
965 |
-
alm.pageview = alm.
|
966 |
-
alm.start_page = alm.
|
967 |
-
alm.seo_trailing_slash = alm.
|
968 |
-
alm.seo_leading_slash = alm.
|
969 |
|
970 |
if (alm.start_page) {
|
971 |
-
alm.seo_scroll = alm.
|
972 |
-
alm.seo_scroll_speed = alm.
|
973 |
-
alm.seo_scrolltop = alm.
|
974 |
-
alm.seo_controls = alm.
|
975 |
alm.isPaged = false;
|
976 |
if (alm.start_page > 1) {
|
977 |
alm.isPaged = true; // Is this a $paged page > 1 ?
|
@@ -1023,31 +1029,30 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1023 |
/* End Advanced Custom Fields */
|
1024 |
|
1025 |
/* Previous Post */
|
1026 |
-
if (alm.
|
1027 |
-
alm.
|
1028 |
-
alm.
|
1029 |
-
alm.
|
1030 |
-
alm.
|
1031 |
} else {
|
1032 |
-
alm.
|
1033 |
-
}
|
1034 |
-
if (alm.previous_post_id === undefined) {
|
1035 |
-
alm.previous_post_id = '';
|
1036 |
}
|
1037 |
-
if (alm.
|
1038 |
-
alm.
|
|
|
1039 |
}
|
1040 |
-
|
1041 |
-
|
1042 |
-
|
1043 |
-
|
1044 |
-
alm.
|
1045 |
-
alm.
|
1046 |
-
alm.
|
1047 |
-
alm.
|
1048 |
-
alm.
|
1049 |
-
alm.
|
1050 |
-
alm.
|
|
|
1051 |
/* End Previous Post */
|
1052 |
|
1053 |
/* Offset */
|
@@ -1091,27 +1096,21 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1091 |
alm.is_masonry_preloaded = false;
|
1092 |
if (alm.transition === 'masonry') {
|
1093 |
alm.masonry_init = true;
|
1094 |
-
alm.masonry_selector = alm.
|
1095 |
-
alm.masonry_columnwidth = alm.
|
1096 |
-
alm.masonry_animation = alm.
|
1097 |
-
alm.
|
1098 |
-
|
1099 |
-
|
1100 |
-
}
|
1101 |
-
if (alm.masonry_horizontalorder === undefined) {
|
1102 |
-
alm.masonry_horizontalorder = 'true';
|
1103 |
-
}
|
1104 |
alm.masonry_wrap = alm.content;
|
1105 |
alm.transition_container = false;
|
1106 |
-
|
1107 |
-
alm.is_masonry_preloaded = true;
|
1108 |
-
}
|
1109 |
}
|
1110 |
|
1111 |
/* Scroll */
|
1112 |
-
if (alm.
|
1113 |
alm.scroll = true;
|
1114 |
-
} else if (alm.
|
1115 |
alm.scroll = false;
|
1116 |
} else {
|
1117 |
alm.scroll = true;
|
@@ -1127,11 +1126,21 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1127 |
alm.button_label = alm.button_label === undefined ? 'Older Posts' : alm.button_label;
|
1128 |
alm.button_loading_label = alm.button_loading_label === undefined ? false : alm.button_loading_label;
|
1129 |
|
1130 |
-
|
1131 |
if (alm.paging) {
|
1132 |
alm.content.parent().addClass('loading'); // add loading class to main container
|
1133 |
} else {
|
1134 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1135 |
}
|
1136 |
|
1137 |
// Render "Showing x of y results" text.
|
@@ -1152,9 +1161,9 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1152 |
if (!alm.disable_ajax) {
|
1153 |
// Check for ajax blocker
|
1154 |
if (!alm.paging) {
|
1155 |
-
alm.button.
|
1156 |
if (alm.button_loading_label !== false) {
|
1157 |
-
alm.button.
|
1158 |
}
|
1159 |
}
|
1160 |
alm.container.addClass('alm-loading');
|
@@ -1183,9 +1192,9 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1183 |
}
|
1184 |
}
|
1185 |
cache_page = alm.cache_path + alm.cache_id + '/page' + '-' + nextpage_cache_page + '.html';
|
1186 |
-
} else if (alm.
|
1187 |
// Previous Post
|
1188 |
-
cache_page = alm.cache_path + alm.cache_id + '/' + alm.
|
1189 |
} else {
|
1190 |
// Standard ALM URL request
|
1191 |
cache_page = alm.cache_path + alm.cache_id + '/page-' + (alm.page + 1) + '.html';
|
@@ -1246,12 +1255,12 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1246 |
}
|
1247 |
|
1248 |
// Previous Post Params
|
1249 |
-
alm.
|
1250 |
-
if (alm.
|
1251 |
-
alm.
|
1252 |
-
'
|
1253 |
-
'id': alm.
|
1254 |
-
'slug': alm.
|
1255 |
};
|
1256 |
}
|
1257 |
|
@@ -1277,12 +1286,12 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1277 |
action = 'alm_users_query';
|
1278 |
alm.users_array = {
|
1279 |
'users': 'true',
|
1280 |
-
'role': alm.
|
1281 |
-
'include': alm.
|
1282 |
-
'exclude': alm.
|
1283 |
'per_page': alm.posts_per_page,
|
1284 |
-
'order': alm.
|
1285 |
-
'orderby': alm.
|
1286 |
};
|
1287 |
}
|
1288 |
|
@@ -1310,7 +1319,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1310 |
dataType: 'JSON',
|
1311 |
beforeSend: function beforeSend() {
|
1312 |
if (alm.page != 1 && !alm.paging) {
|
1313 |
-
alm.button.
|
1314 |
}
|
1315 |
},
|
1316 |
success: function success(results) {
|
@@ -1355,7 +1364,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1355 |
data: alm_data_params,
|
1356 |
beforeSend: function beforeSend() {
|
1357 |
if (alm.page != 1 && !alm.paging) {
|
1358 |
-
alm.button.
|
1359 |
}
|
1360 |
},
|
1361 |
success: function success(data) {
|
@@ -1402,7 +1411,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1402 |
|
1403 |
alm.AjaxLoadMore.success = function (data, is_cache) {
|
1404 |
|
1405 |
-
if (alm.
|
1406 |
// Get previous page data
|
1407 |
alm.AjaxLoadMore.getPreviousPost();
|
1408 |
}
|
@@ -1451,12 +1460,12 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1451 |
|
1452 |
if (!alm.paging) {
|
1453 |
|
1454 |
-
alm.button.
|
1455 |
} else {
|
1456 |
|
1457 |
// Paging
|
1458 |
if (total > 0) {
|
1459 |
-
alm.el = $('<div class="alm-reveal
|
1460 |
alm.el.append('<div class="alm-paging-content' + alm.tcc + '"></div><div class="alm-paging-loading"></div>');
|
1461 |
$('.alm-paging-content', alm.el).append(alm.data);
|
1462 |
alm.content.append(alm.el);
|
@@ -1494,7 +1503,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1494 |
if (alm.isPaged) {
|
1495 |
|
1496 |
// Reset the posts_per_page parameter
|
1497 |
-
alm.posts_per_page = alm.users ? alm.
|
1498 |
|
1499 |
// SEO add-on
|
1500 |
alm.page = alm.start_page ? alm.start_page - 1 : alm.page; // Set new page #
|
@@ -1507,7 +1516,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1507 |
alm.page = alm.filters_startpage - 1;
|
1508 |
|
1509 |
// Reset filters-startpage data after the first run
|
1510 |
-
alm.posts_per_page = alm.
|
1511 |
}
|
1512 |
}
|
1513 |
}
|
@@ -1519,9 +1528,9 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1519 |
|
1520 |
if (!alm.paging) {
|
1521 |
|
1522 |
-
if (alm.
|
1523 |
// Previous Post, create container and append data
|
1524 |
-
alm.el = $('<div class="alm-reveal alm-
|
1525 |
alm.el.append(alm.data);
|
1526 |
} else {
|
1527 |
|
@@ -1715,7 +1724,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1715 |
// ALM Done
|
1716 |
if (!alm.cache) {
|
1717 |
// Not Cache & Previous Post
|
1718 |
-
if (alm.posts >= alm.totalposts && !alm.
|
1719 |
alm.AjaxLoadMore.triggerDone();
|
1720 |
}
|
1721 |
} else {
|
@@ -1731,7 +1740,10 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1731 |
|
1732 |
if (!alm.paging) {
|
1733 |
// Add .done class, reset btn text
|
1734 |
-
|
|
|
|
|
|
|
1735 |
alm.AjaxLoadMore.resetBtnText();
|
1736 |
}
|
1737 |
|
@@ -1845,16 +1857,24 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1845 |
* Get the previous post ID via ajax
|
1846 |
* @since 2.7.4
|
1847 |
*/
|
1848 |
-
|
|
|
|
|
|
|
|
|
1849 |
|
1850 |
alm.AjaxLoadMore.getPreviousPost = function () {
|
1851 |
alm.fetchingPreviousPost = true;
|
1852 |
|
1853 |
var data = {
|
1854 |
-
action: '
|
1855 |
-
|
1856 |
-
|
1857 |
-
|
|
|
|
|
|
|
|
|
1858 |
};
|
1859 |
|
1860 |
$.ajax({
|
@@ -1864,20 +1884,21 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1864 |
data: data,
|
1865 |
success: function success(data) {
|
1866 |
if (data.has_previous_post) {
|
1867 |
-
alm.
|
1868 |
-
alm.
|
1869 |
-
alm.
|
1870 |
-
alm.
|
1871 |
-
alm.
|
1872 |
} else {
|
1873 |
if (!data.has_previous_post) {
|
1874 |
alm.AjaxLoadMore.triggerDone();
|
1875 |
}
|
1876 |
}
|
1877 |
-
if (
|
1878 |
-
|
1879 |
}
|
1880 |
alm.fetchingPreviousPost = false;
|
|
|
1881 |
},
|
1882 |
error: function error(jqXHR, textStatus, errorThrown) {
|
1883 |
alm.AjaxLoadMore.error(jqXHR, textStatus, errorThrown);
|
@@ -1909,7 +1930,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1909 |
alm.loading = false;
|
1910 |
alm.finished = true;
|
1911 |
if (!alm.paging) {
|
1912 |
-
alm.button.
|
1913 |
}
|
1914 |
if ($.isFunction($.fn.almDone)) {
|
1915 |
// Delay done until after animation
|
@@ -1927,11 +1948,12 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1927 |
alm.AjaxLoadMore.resetBtnText = function () {
|
1928 |
if (alm.button_loading_label !== false && !alm.paging) {
|
1929 |
// Reset button text
|
1930 |
-
alm.button.
|
1931 |
}
|
1932 |
};
|
1933 |
|
1934 |
-
|
|
|
1935 |
*
|
1936 |
* Error function after failed data
|
1937 |
* @since 2.6.0
|
@@ -1940,64 +1962,62 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1940 |
alm.AjaxLoadMore.error = function (jqXHR, textStatus, errorThrown) {
|
1941 |
alm.loading = false;
|
1942 |
if (!alm.paging) {
|
1943 |
-
alm.button.
|
1944 |
alm.AjaxLoadMore.resetBtnText();
|
1945 |
}
|
1946 |
console.log(errorThrown);
|
1947 |
};
|
1948 |
|
1949 |
-
|
|
|
1950 |
*
|
1951 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1952 |
* @since 1.0.0
|
1953 |
*/
|
1954 |
|
1955 |
if (!alm.paging && !alm.fetchingPreviousPost) {
|
1956 |
-
alm.button.
|
1957 |
-
alm.button.on('click', function (e) {
|
1958 |
-
e.preventDefault();
|
1959 |
-
|
1960 |
-
if (alm.pause === 'true') {
|
1961 |
-
alm.pause = false;
|
1962 |
-
alm.pause_override = false;
|
1963 |
-
alm.AjaxLoadMore.loadPosts();
|
1964 |
-
}
|
1965 |
-
if (!alm.loading && !alm.finished && !$(this).hasClass('done')) {
|
1966 |
-
alm.loading = true;
|
1967 |
-
alm.page++;
|
1968 |
-
alm.AjaxLoadMore.loadPosts();
|
1969 |
-
}
|
1970 |
-
|
1971 |
-
// Filters Paged URLs
|
1972 |
-
if (alm.filters && typeof almFiltersPaged === 'function') {
|
1973 |
-
almFiltersPaged(alm);
|
1974 |
-
}
|
1975 |
-
});
|
1976 |
}
|
1977 |
|
1978 |
/* Window Resize
|
1979 |
*
|
1980 |
* Add resize function for Paging add-on only.
|
1981 |
* @since 2.1.2
|
|
|
1982 |
*/
|
1983 |
if (alm.paging) {
|
1984 |
-
|
1985 |
-
alm.window.
|
1986 |
-
|
1987 |
-
|
1988 |
-
$.fn.almOnWindowResize
|
1989 |
-
|
1990 |
-
|
1991 |
-
|
1992 |
-
alm.window.unbind('resize');
|
1993 |
-
alm.window.bind('resize', function () {
|
1994 |
-
if (this.resizeTO) {
|
1995 |
-
clearTimeout(this.resizeTO);
|
1996 |
-
}
|
1997 |
-
this.resizeTO = setTimeout(function () {
|
1998 |
-
$(this).trigger('resizeEnd');
|
1999 |
}, alm.speed);
|
2000 |
-
}
|
2001 |
}
|
2002 |
|
2003 |
/* alm.AjaxLoadMore.isVisible()
|
@@ -2014,48 +2034,57 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
2014 |
return alm.visible;
|
2015 |
};
|
2016 |
|
2017 |
-
|
2018 |
-
*
|
2019 |
* Load posts as user scrolls the page
|
2020 |
* @since 1.0
|
2021 |
-
* @updated
|
2022 |
*/
|
2023 |
-
if (alm.scroll && !alm.paging) {
|
2024 |
|
2025 |
-
|
2026 |
-
|
2027 |
-
|
2028 |
-
|
2029 |
-
alm.window = $(alm.scroll_container);
|
2030 |
-
}
|
2031 |
}
|
2032 |
|
2033 |
-
alm.
|
2034 |
|
2035 |
if (alm.AjaxLoadMore.isVisible() && !alm.fetchingPreviousPost) {
|
2036 |
|
2037 |
-
var
|
2038 |
-
|
2039 |
-
|
2040 |
|
2041 |
-
//
|
2042 |
-
if (alm.
|
2043 |
-
|
|
|
|
|
|
|
2044 |
}
|
2045 |
|
2046 |
// If Pause && Pause Override
|
2047 |
if (!alm.loading && !alm.finished && scrollTrigger && alm.page < alm.max_pages - 1 && alm.proceed && alm.pause === 'true' && alm.pause_override === 'true') {
|
2048 |
-
alm.button.
|
2049 |
}
|
2050 |
|
2051 |
-
// Standard Scroll
|
2052 |
else {
|
|
|
2053 |
if (!alm.loading && !alm.finished && scrollTrigger && alm.page < alm.max_pages - 1 && alm.proceed && alm.pause !== 'true') {
|
2054 |
-
alm.button.
|
2055 |
}
|
2056 |
}
|
2057 |
}
|
2058 |
-
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2059 |
}
|
2060 |
|
2061 |
/* Destroy Ajax load More
|
@@ -2066,7 +2095,9 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
2066 |
alm.AjaxLoadMore.destroyed = function () {
|
2067 |
alm.disable_ajax = true;
|
2068 |
if (!alm.paging) {
|
2069 |
-
|
|
|
|
|
2070 |
if ($.isFunction($.fn.almDestroyed)) {
|
2071 |
$.fn.almDestroyed(alm);
|
2072 |
}
|
@@ -2107,7 +2138,9 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
2107 |
alm.container.removeClass('alm-loading');
|
2108 |
alm.AjaxLoadMore.triggerAddons(alm);
|
2109 |
if (!alm.paging) {
|
2110 |
-
|
|
|
|
|
2111 |
alm.AjaxLoadMore.resetBtnText();
|
2112 |
}
|
2113 |
}, alm.speed);
|
@@ -2136,13 +2169,13 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
2136 |
alm.AjaxLoadMore.destroyed();
|
2137 |
}
|
2138 |
|
2139 |
-
if (!alm.paging && !alm.
|
2140 |
if (alm.disable_ajax) {
|
2141 |
alm.finished = true;
|
2142 |
-
alm.button.
|
2143 |
} else {
|
2144 |
if (alm.pause === 'true') {
|
2145 |
-
alm.button.
|
2146 |
alm.loading = false;
|
2147 |
} else {
|
2148 |
alm.AjaxLoadMore.loadPosts();
|
@@ -2151,7 +2184,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
2151 |
}
|
2152 |
|
2153 |
// Previous Post Add-on
|
2154 |
-
if (alm.
|
2155 |
alm.AjaxLoadMore.getPreviousPost(); // Set next post on load
|
2156 |
alm.loading = false;
|
2157 |
}
|
@@ -2199,25 +2232,21 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
2199 |
|
2200 |
// Next Page Add-on
|
2201 |
if (alm.nextpage) {
|
2202 |
-
|
2203 |
if ($('.alm-nextpage', alm.container).length) {
|
2204 |
-
|
2205 |
// `.alm-nextpage` check that posts remain
|
2206 |
var alm_nextpage_pages = $('.alm-nextpage', alm.container).length,
|
2207 |
alm_nextpage_total = $('.alm-nextpage', alm.container).eq(0).data('total-posts');
|
2208 |
-
|
2209 |
if (alm_nextpage_pages == alm_nextpage_total) {
|
2210 |
alm.AjaxLoadMore.triggerDone();
|
2211 |
}
|
2212 |
}
|
2213 |
-
|
2214 |
if (alm.resultsText) {
|
2215 |
almInitResultsText(alm, 'nextpage');
|
2216 |
}
|
2217 |
}
|
2218 |
|
2219 |
-
// Masonry + Preloaded
|
2220 |
-
alm.window.
|
2221 |
if (alm.is_masonry_preloaded) {
|
2222 |
almMasonry(alm.masonry_wrap, alm.el, alm.masonry_selector, alm.masonry_columnwidth, alm.masonry_animation, alm.masonry_horizontalorder, alm.speed, alm.masonry_init, true, false);
|
2223 |
alm.masonry_init = false;
|
@@ -2225,9 +2254,10 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
2225 |
});
|
2226 |
};
|
2227 |
|
|
|
2228 |
alm.AjaxLoadMore.init();
|
2229 |
|
2230 |
-
//flag to prevent unnecessary loading of
|
2231 |
setTimeout(function () {
|
2232 |
alm.proceed = true;
|
2233 |
}, 150);
|
@@ -2238,12 +2268,11 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
2238 |
* @since 2.7.0
|
2239 |
*/
|
2240 |
$.fn.almUpdateCurrentPage = function (current, obj, alm) {
|
|
|
2241 |
alm.page = current;
|
2242 |
|
2243 |
// Next Page add-on
|
2244 |
-
|
2245 |
-
alm.page = alm.page - 1; // Remove 1 from next page since it starts at 0
|
2246 |
-
}
|
2247 |
|
2248 |
var data = '';
|
2249 |
|
@@ -2306,7 +2335,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
2306 |
* @return null
|
2307 |
*/
|
2308 |
$.fn.almTriggerClick = function () {
|
2309 |
-
alm.button.
|
2310 |
};
|
2311 |
|
2312 |
//Custom easing function
|
@@ -2328,7 +2357,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
2328 |
*/
|
2329 |
$.fn.ajaxloadmore = function () {
|
2330 |
return this.each(function (e) {
|
2331 |
-
new
|
2332 |
});
|
2333 |
};
|
2334 |
|
@@ -2337,10 +2366,10 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
2337 |
* @since 2.1.2
|
2338 |
*/
|
2339 |
|
2340 |
-
var
|
2341 |
-
if (
|
2342 |
-
[].concat(_toConsumableArray(
|
2343 |
-
new
|
2344 |
});
|
2345 |
}
|
2346 |
})(jQuery);
|
150 |
if (alm.nextpage_array) {
|
151 |
data.nextpage = alm.nextpage_array;
|
152 |
}
|
153 |
+
if (alm.single_post_array) {
|
154 |
+
data.single_post = alm.single_post_array;
|
155 |
}
|
156 |
if (alm.users_array) {
|
157 |
data.users = alm.users_array;
|
708 |
* http://wordpress.org/plugins/ajax-load-more/
|
709 |
* https://connekthq.com/plugins/ajax-load-more/
|
710 |
*
|
711 |
+
* Copyright 2019 Connekt Media - https://connekthq.com
|
712 |
* Free to use under the GPLv2 license.
|
713 |
+
* http://www.gnu.org/licenses/gpl-2.0.html
|
714 |
*
|
715 |
* Author: Darren Cooney
|
716 |
* Twitter: @KaptonKaos, @ajaxloadmore, @connekthq
|
720 |
|
721 |
"use strict";
|
722 |
|
723 |
+
var ajaxloadmore = function ajaxloadmore(el, e) {
|
724 |
|
725 |
// Prevent loading of unnessasry posts - move user to top of page
|
726 |
if (alm_localize.scrolltop === 'true') {
|
727 |
+
window.scrollTo(0, 0);
|
728 |
}
|
729 |
|
730 |
//Set ALM Variables
|
731 |
var alm = this;
|
732 |
alm.AjaxLoadMore = {};
|
733 |
+
alm.window = window;
|
734 |
+
alm.timer = '';
|
735 |
alm.page = 0;
|
736 |
alm.posts = 0;
|
737 |
alm.totalposts = 0;
|
740 |
alm.init = true;
|
741 |
alm.loading = true;
|
742 |
alm.finished = false;
|
743 |
+
alm.el = $(el);
|
744 |
+
alm.container = $(el);
|
745 |
+
alm.master_id = el.id; // the div#id of the instance
|
746 |
+
el.classList.add('alm-' + e); // Add unique classname
|
747 |
+
el.setAttribute('data-alm-id', e); // Add unique data id
|
748 |
|
749 |
+
// Get localized <script/> variables
|
750 |
alm.master_id = alm.master_id.replace(/-/g, '_'); // Convert dashes to underscores for the var name
|
751 |
alm.localize = window[alm.master_id + '_vars']; // Get localize vars
|
752 |
|
753 |
+
// Main ALM Containers
|
754 |
+
var container = el; // Get DOM element
|
755 |
+
alm.listing = container.querySelector('.alm-listing') || container.querySelector('.alm-comments');
|
|
|
|
|
756 |
alm.content = $(container.querySelector('.alm-ajax')); // Get first `.alm-ajax` element as $ obj
|
757 |
alm.content_preloaded = $(container.querySelector('.alm-preloaded')); // Get first `.alm-preloaded` element as $ obj
|
758 |
|
759 |
+
// Instance Params
|
760 |
+
alm.canonical_url = el.dataset.canonicalUrl;
|
761 |
+
alm.nested = el.dataset.nested;
|
762 |
+
alm.is_search = el.dataset.search;
|
763 |
+
alm.slug = el.dataset.slug;
|
764 |
+
alm.post_id = el.dataset.postId;
|
765 |
+
alm.id = el.dataset.id ? el.dataset.id : '';
|
766 |
+
|
767 |
+
// Shortcode Params
|
768 |
+
alm.repeater = alm.listing.dataset.repeater; // Repeaters
|
769 |
+
alm.theme_repeater = alm.listing.dataset.themeRepeater;
|
770 |
|
771 |
+
alm.post_type = alm.listing.dataset.postType ? alm.listing.dataset.postType.split(",") : 'post';
|
772 |
+
alm.sticky_posts = alm.listing.dataset.stickyPosts;
|
773 |
|
|
|
|
|
|
|
774 |
alm.btnWrap = $('> .alm-btn-wrap', alm.container);
|
775 |
alm.btnWrap.get(0).style.visibility = 'visible';
|
776 |
+
alm.button_label = alm.listing.dataset.buttonLabel;
|
777 |
+
alm.button_loading_label = alm.listing.dataset.buttonLoadingLabel;
|
778 |
+
|
779 |
+
alm.scroll_distance = alm.listing.dataset.scrollDistance;
|
780 |
+
alm.scroll_distance = alm.scroll_distance ? parseInt(alm.scroll_distance) : 100;
|
781 |
+
alm.scroll_container = alm.listing.dataset.scrollContainer;
|
782 |
+
alm.max_pages = alm.listing.dataset.maxPages;
|
783 |
alm.max_pages = alm.max_pages ? parseInt(alm.max_pages) : 0;
|
784 |
+
alm.pause_override = alm.listing.dataset.pauseOverride; // true | false
|
785 |
+
alm.pause = alm.listing.dataset.pause; // true | false
|
786 |
+
alm.transition = alm.listing.dataset.transition; // Transition
|
787 |
+
alm.transition_container = alm.listing.dataset.transitionContainer; // Transition Container
|
788 |
+
alm.tcc = alm.listing.dataset.transitionContainerClasses; // Transition Container Classes
|
789 |
alm.speed = 250;
|
790 |
+
alm.images_loaded = alm.listing.dataset.imagesLoaded;
|
791 |
+
alm.destroy_after = alm.listing.dataset.destroyAfter;
|
792 |
+
alm.orginal_posts_per_page = alm.listing.dataset.postsPerPage; // Used for paging add-on
|
793 |
+
alm.posts_per_page = alm.listing.dataset.postsPerPage;
|
794 |
+
alm.offset = alm.listing.dataset.offset;
|
795 |
+
|
796 |
+
alm.cache = alm.listing.dataset.cache; // Cache add-on
|
797 |
+
alm.cache_id = alm.listing.dataset.cacheId;
|
798 |
+
alm.cache_path = alm.listing.dataset.cachePath;
|
799 |
+
alm.cache_logged_in = alm.listing.dataset.cacheLoggedIn;
|
800 |
+
|
801 |
+
alm.cta = alm.listing.dataset.cta; // CTA add-on
|
802 |
+
alm.cta_position = alm.listing.dataset.ctaPosition;
|
803 |
+
alm.cta_repeater = alm.listing.dataset.ctaRepeater;
|
804 |
+
alm.cta_theme_repeater = alm.listing.dataset.ctaThemeRepeater;
|
805 |
+
|
806 |
+
alm.acf = alm.listing.dataset.acf; // ACF add-on
|
807 |
+
alm.acf_field_type = alm.listing.dataset.acfFieldType;
|
808 |
+
alm.acf_field_name = alm.listing.dataset.acfFieldName;
|
809 |
+
alm.acf_post_id = alm.listing.dataset.acfPostId;
|
810 |
+
|
811 |
+
alm.nextpage = alm.listing.dataset.nextpage; // Nextpage add-on
|
812 |
+
alm.nextpage_urls = alm.listing.dataset.nextpageUrls;
|
813 |
+
alm.nextpage_scroll = alm.listing.dataset.nextpageScroll;
|
814 |
+
alm.nextpage_pageviews = alm.listing.dataset.nextpagePageviews;
|
815 |
+
alm.nextpage_post_id = alm.listing.dataset.nextpagePostId;
|
816 |
+
alm.nextpage_startpage = alm.listing.dataset.nextpageStartpage;
|
817 |
+
|
818 |
+
alm.single_post = alm.listing.dataset.singlePost; // Previous Post add-on
|
819 |
+
alm.single_post_id = alm.listing.dataset.singlePostId;
|
820 |
+
alm.single_post_order = alm.listing.dataset.singlePostOrder;
|
821 |
+
alm.single_post_init_id = alm.listing.dataset.singlePostId;
|
822 |
+
alm.single_post_taxonomy = alm.listing.dataset.singlePostTaxonomy;
|
823 |
+
alm.single_post_excluded_terms = alm.listing.dataset.singlePostExcludedTerms;
|
824 |
+
|
825 |
+
alm.comments = alm.listing.dataset.comments; // Comments add-on
|
826 |
if (alm.comments === 'true') {
|
827 |
// if comments, adjust alm.content wrapper
|
828 |
alm.content = $('.alm-comments', alm.container);
|
829 |
}
|
830 |
+
alm.comments_post_id = alm.listing.dataset.comments_post_id; // current post id
|
831 |
+
alm.comments_per_page = alm.listing.dataset.comments_per_page;
|
832 |
+
alm.comments_type = alm.listing.dataset.comments_type;
|
833 |
+
alm.comments_style = alm.listing.dataset.comments_style;
|
834 |
+
alm.comments_template = alm.listing.dataset.comments_template;
|
835 |
+
alm.comments_callback = alm.listing.dataset.comments_callback;
|
836 |
|
837 |
+
alm.filters = alm.listing.dataset.filters;
|
838 |
|
839 |
+
alm.restapi = alm.listing.dataset.restapi;
|
840 |
+
alm.restapi_base_url = alm.listing.dataset.restapiBaseUrl;
|
841 |
+
alm.restapi_namespace = alm.listing.dataset.restapiNamespace;
|
842 |
+
alm.restapi_endpoint = alm.listing.dataset.restapiEndpoint;
|
843 |
+
alm.restapi_template_id = alm.listing.dataset.restapiTemplateId;
|
844 |
+
alm.restapi_debug = alm.listing.dataset.restapiDebug;
|
845 |
|
846 |
+
alm.seo = alm.listing.dataset.seo; // SEO add-on
|
847 |
|
848 |
+
alm.preloaded = alm.listing.dataset.preloaded; // Preloaded add-on
|
849 |
+
alm.preloaded_amount = alm.listing.dataset.preloadedAmount;
|
850 |
+
alm.is_preloaded = alm.listing.dataset.isPreloaded === 'true' ? true : false;
|
851 |
|
852 |
+
alm.paging = alm.listing.dataset.paging; // Paging add-on
|
853 |
|
854 |
+
alm.users = alm.listing.dataset.users === 'true' ? true : false; // Users add-on
|
855 |
if (alm.users) {
|
856 |
// Override paging params for users
|
857 |
+
alm.orginal_posts_per_page = alm.listing.dataset.usersPerPage;
|
858 |
+
alm.posts_per_page = alm.listing.dataset.usersPerPage;
|
859 |
}
|
860 |
|
861 |
/* Filters */
|
862 |
if (alm.filters === 'true') {
|
863 |
alm.filters = true;
|
864 |
|
865 |
+
alm.filters_analtyics = alm.listing.dataset.filtersAnaltyics;
|
866 |
+
alm.filters_debug = alm.listing.dataset.filtersDebug;
|
867 |
|
868 |
// Check for startpage param
|
869 |
/*
|
870 |
+
alm.filters_startpage = alm.listing.dataset.filtersStartpage;
|
871 |
alm.filters_startpage = parseInt(alm.filters_startpage);
|
872 |
alm.page = alm.filters_startpage;
|
873 |
*/
|
908 |
/* Paging */
|
909 |
if (alm.paging === 'true') {
|
910 |
alm.paging = true;
|
911 |
+
alm.paging_controls = alm.listing.dataset.pagingControls ? true : false;
|
912 |
+
alm.paging_show_at_most = alm.listing.dataset.pagingShowAtMost;
|
913 |
+
alm.paging_classes = alm.listing.dataset.pagingClasses;
|
914 |
alm.paging_init = true;
|
915 |
alm.paging_show_at_most = alm.paging_show_at_most === undefined ? 7 : alm.paging_show_at_most;
|
916 |
|
967 |
}
|
968 |
alm.search_value = alm.is_search === 'true' ? alm.slug : ''; // Convert to value of slug for appending to seo url
|
969 |
|
970 |
+
alm.permalink = alm.listing.dataset.seoPermalink;
|
971 |
+
alm.pageview = alm.listing.dataset.seoPageview;
|
972 |
+
alm.start_page = alm.listing.dataset.seoStartPage;
|
973 |
+
alm.seo_trailing_slash = alm.listing.dataset.seoTrailingSlash === 'false' ? '' : '/';
|
974 |
+
alm.seo_leading_slash = alm.listing.dataset.seoLeadingSlash === 'true' ? '/' : '';
|
975 |
|
976 |
if (alm.start_page) {
|
977 |
+
alm.seo_scroll = alm.listing.dataset.seoScroll;
|
978 |
+
alm.seo_scroll_speed = alm.listing.dataset.seoScrollSpeed;
|
979 |
+
alm.seo_scrolltop = alm.listing.dataset.seoScrolltop;
|
980 |
+
alm.seo_controls = alm.listing.dataset.seoControls;
|
981 |
alm.isPaged = false;
|
982 |
if (alm.start_page > 1) {
|
983 |
alm.isPaged = true; // Is this a $paged page > 1 ?
|
1029 |
/* End Advanced Custom Fields */
|
1030 |
|
1031 |
/* Previous Post */
|
1032 |
+
if (alm.single_post === 'true') {
|
1033 |
+
alm.single_post = true;
|
1034 |
+
alm.single_post_permalink = '';
|
1035 |
+
alm.single_post_title = '';
|
1036 |
+
alm.single_post_slug = '';
|
1037 |
} else {
|
1038 |
+
alm.single_post = false;
|
|
|
|
|
|
|
1039 |
}
|
1040 |
+
if (alm.single_post_id === undefined) {
|
1041 |
+
alm.single_post_id = '';
|
1042 |
+
alm.single_post_init_id = '';
|
1043 |
}
|
1044 |
+
alm.single_post_order = alm.single_post_order === undefined ? 'previous' : alm.single_post_order;
|
1045 |
+
alm.single_post_taxonomy = alm.single_post_taxonomy === undefined ? '' : alm.single_post_taxonomy;
|
1046 |
+
alm.single_post_excluded_terms = alm.single_post_excluded_terms === undefined ? '' : alm.single_post_excluded_terms;
|
1047 |
+
|
1048 |
+
alm.single_post_title_template = alm.listing.dataset.singlePostTitleTemplate;
|
1049 |
+
alm.siteTitle = alm.listing.dataset.singlePostSiteTitle;
|
1050 |
+
alm.siteTagline = alm.listing.dataset.singlePostSiteTagline;
|
1051 |
+
alm.single_post_pageview = alm.listing.dataset.singlePostPageview;
|
1052 |
+
alm.single_post_scroll = alm.listing.dataset.singlePostScroll;
|
1053 |
+
alm.single_post_scroll_speed = alm.listing.dataset.singlePostScrollSpeed;
|
1054 |
+
alm.single_post_scroll_top = alm.listing.dataset.singlePostScrolltop;
|
1055 |
+
alm.single_post_controls = alm.listing.dataset.singlePostControls;
|
1056 |
/* End Previous Post */
|
1057 |
|
1058 |
/* Offset */
|
1096 |
alm.is_masonry_preloaded = false;
|
1097 |
if (alm.transition === 'masonry') {
|
1098 |
alm.masonry_init = true;
|
1099 |
+
alm.masonry_selector = alm.listing.dataset.masonrySelector;
|
1100 |
+
alm.masonry_columnwidth = alm.listing.dataset.masonryColumnwidth;
|
1101 |
+
alm.masonry_animation = alm.listing.dataset.masonryAnimation;
|
1102 |
+
alm.masonry_animation = alm.masonry_animation === undefined ? 'standard' : alm.masonry_animation;
|
1103 |
+
alm.masonry_horizontalorder = alm.listing.dataset.masonryHorizontalorder;
|
1104 |
+
alm.masonry_horizontalorder = alm.masonry_horizontalorder === undefined ? 'true' : alm.masonry_horizontalorder;
|
|
|
|
|
|
|
|
|
1105 |
alm.masonry_wrap = alm.content;
|
1106 |
alm.transition_container = false;
|
1107 |
+
alm.is_masonry_preloaded = alm.preloaded === 'true' ? true : alm.is_masonry_preloaded;
|
|
|
|
|
1108 |
}
|
1109 |
|
1110 |
/* Scroll */
|
1111 |
+
if (alm.listing.dataset.scroll === undefined) {
|
1112 |
alm.scroll = true;
|
1113 |
+
} else if (alm.listing.dataset.scroll === 'false') {
|
1114 |
alm.scroll = false;
|
1115 |
} else {
|
1116 |
alm.scroll = true;
|
1126 |
alm.button_label = alm.button_label === undefined ? 'Older Posts' : alm.button_label;
|
1127 |
alm.button_loading_label = alm.button_loading_label === undefined ? false : alm.button_loading_label;
|
1128 |
|
1129 |
+
/* Paging */
|
1130 |
if (alm.paging) {
|
1131 |
alm.content.parent().addClass('loading'); // add loading class to main container
|
1132 |
} else {
|
1133 |
+
var almChildren = container.childNodes; // Get child nodes of instance [nodeList]
|
1134 |
+
if (almChildren) {
|
1135 |
+
var almChildArray = Array.prototype.slice.call(almChildren); // Convert nodeList to array
|
1136 |
+
var btnWrap = almChildArray.filter(function (element) {
|
1137 |
+
// Loop array to find the `.alm-btn-wrap` div
|
1138 |
+
return element.classList.contains('alm-btn-wrap');
|
1139 |
+
});
|
1140 |
+
alm.button = btnWrap ? btnWrap[0].querySelector('.alm-load-more-btn') : container.querySelector('.alm-btn-wrap .alm-load-more-btn');
|
1141 |
+
} else {
|
1142 |
+
alm.button = container.querySelector('.alm-btn-wrap .alm-load-more-btn');
|
1143 |
+
}
|
1144 |
}
|
1145 |
|
1146 |
// Render "Showing x of y results" text.
|
1161 |
if (!alm.disable_ajax) {
|
1162 |
// Check for ajax blocker
|
1163 |
if (!alm.paging) {
|
1164 |
+
alm.button.classList.add('loading');
|
1165 |
if (alm.button_loading_label !== false) {
|
1166 |
+
alm.button.innerHTML = alm.button_loading_label;
|
1167 |
}
|
1168 |
}
|
1169 |
alm.container.addClass('alm-loading');
|
1192 |
}
|
1193 |
}
|
1194 |
cache_page = alm.cache_path + alm.cache_id + '/page' + '-' + nextpage_cache_page + '.html';
|
1195 |
+
} else if (alm.single_post) {
|
1196 |
// Previous Post
|
1197 |
+
cache_page = alm.cache_path + alm.cache_id + '/' + alm.single_post_id + '.html';
|
1198 |
} else {
|
1199 |
// Standard ALM URL request
|
1200 |
cache_page = alm.cache_path + alm.cache_id + '/page-' + (alm.page + 1) + '.html';
|
1255 |
}
|
1256 |
|
1257 |
// Previous Post Params
|
1258 |
+
alm.single_post_array = '';
|
1259 |
+
if (alm.single_post) {
|
1260 |
+
alm.single_post_array = {
|
1261 |
+
'single_post': 'true',
|
1262 |
+
'id': alm.single_post_id,
|
1263 |
+
'slug': alm.single_post_slug
|
1264 |
};
|
1265 |
}
|
1266 |
|
1286 |
action = 'alm_users_query';
|
1287 |
alm.users_array = {
|
1288 |
'users': 'true',
|
1289 |
+
'role': alm.listing.dataset.usersRole,
|
1290 |
+
'include': alm.listing.dataset.usersInclude,
|
1291 |
+
'exclude': alm.listing.dataset.usersExclude,
|
1292 |
'per_page': alm.posts_per_page,
|
1293 |
+
'order': alm.listing.dataset.usersOrder,
|
1294 |
+
'orderby': alm.listing.dataset.usersOrderby
|
1295 |
};
|
1296 |
}
|
1297 |
|
1319 |
dataType: 'JSON',
|
1320 |
beforeSend: function beforeSend() {
|
1321 |
if (alm.page != 1 && !alm.paging) {
|
1322 |
+
alm.button.classList.add('loading');
|
1323 |
}
|
1324 |
},
|
1325 |
success: function success(results) {
|
1364 |
data: alm_data_params,
|
1365 |
beforeSend: function beforeSend() {
|
1366 |
if (alm.page != 1 && !alm.paging) {
|
1367 |
+
alm.button.classList.add('loading');
|
1368 |
}
|
1369 |
},
|
1370 |
success: function success(data) {
|
1411 |
|
1412 |
alm.AjaxLoadMore.success = function (data, is_cache) {
|
1413 |
|
1414 |
+
if (alm.single_post) {
|
1415 |
// Get previous page data
|
1416 |
alm.AjaxLoadMore.getPreviousPost();
|
1417 |
}
|
1460 |
|
1461 |
if (!alm.paging) {
|
1462 |
|
1463 |
+
alm.button.innerHTML = alm.button_label;
|
1464 |
} else {
|
1465 |
|
1466 |
// Paging
|
1467 |
if (total > 0) {
|
1468 |
+
alm.el = $('<div class="alm-reveal" ' + loadingStyle + '/>');
|
1469 |
alm.el.append('<div class="alm-paging-content' + alm.tcc + '"></div><div class="alm-paging-loading"></div>');
|
1470 |
$('.alm-paging-content', alm.el).append(alm.data);
|
1471 |
alm.content.append(alm.el);
|
1503 |
if (alm.isPaged) {
|
1504 |
|
1505 |
// Reset the posts_per_page parameter
|
1506 |
+
alm.posts_per_page = alm.users ? alm.listing.dataset.usersPerPage : alm.listing.dataset.postsPerPage;
|
1507 |
|
1508 |
// SEO add-on
|
1509 |
alm.page = alm.start_page ? alm.start_page - 1 : alm.page; // Set new page #
|
1516 |
alm.page = alm.filters_startpage - 1;
|
1517 |
|
1518 |
// Reset filters-startpage data after the first run
|
1519 |
+
alm.posts_per_page = alm.listing.dataset.postsPerPage;
|
1520 |
}
|
1521 |
}
|
1522 |
}
|
1528 |
|
1529 |
if (!alm.paging) {
|
1530 |
|
1531 |
+
if (alm.single_post) {
|
1532 |
// Previous Post, create container and append data
|
1533 |
+
alm.el = $('<div class="alm-reveal alm-single-post post-' + alm.single_post_id + '" ' + loadingStyle + ' data-id="' + alm.single_post_id + '" data-title="' + alm.single_post_title + '" data-url="' + alm.single_post_permalink + '" data-page="' + alm.page + '"/>');
|
1534 |
alm.el.append(alm.data);
|
1535 |
} else {
|
1536 |
|
1724 |
// ALM Done
|
1725 |
if (!alm.cache) {
|
1726 |
// Not Cache & Previous Post
|
1727 |
+
if (alm.posts >= alm.totalposts && !alm.single_post) {
|
1728 |
alm.AjaxLoadMore.triggerDone();
|
1729 |
}
|
1730 |
} else {
|
1740 |
|
1741 |
if (!alm.paging) {
|
1742 |
// Add .done class, reset btn text
|
1743 |
+
setTimeout(function () {
|
1744 |
+
alm.button.classList.remove('loading');
|
1745 |
+
alm.button.classList.add('done');
|
1746 |
+
}, alm.speed);
|
1747 |
alm.AjaxLoadMore.resetBtnText();
|
1748 |
}
|
1749 |
|
1857 |
* Get the previous post ID via ajax
|
1858 |
* @since 2.7.4
|
1859 |
*/
|
1860 |
+
|
1861 |
+
if (alm.single_post_id) {
|
1862 |
+
alm.fetchingPreviousPost = false;
|
1863 |
+
alm.single_post_init = true;
|
1864 |
+
}
|
1865 |
|
1866 |
alm.AjaxLoadMore.getPreviousPost = function () {
|
1867 |
alm.fetchingPreviousPost = true;
|
1868 |
|
1869 |
var data = {
|
1870 |
+
action: 'alm_query_single_post',
|
1871 |
+
init: alm.single_post_init,
|
1872 |
+
id: alm.single_post_id,
|
1873 |
+
initial_id: alm.single_post_init_id,
|
1874 |
+
order: alm.single_post_order,
|
1875 |
+
taxonomy: alm.single_post_taxonomy,
|
1876 |
+
excluded_terms: alm.single_post_excluded_terms,
|
1877 |
+
post_type: alm.post_type
|
1878 |
};
|
1879 |
|
1880 |
$.ajax({
|
1884 |
data: data,
|
1885 |
success: function success(data) {
|
1886 |
if (data.has_previous_post) {
|
1887 |
+
alm.listing.setAttribute('data-single-post-id', data.prev_id); // Update single-post-id on instance
|
1888 |
+
alm.single_post_id = data.prev_id;
|
1889 |
+
alm.single_post_permalink = data.prev_permalink;
|
1890 |
+
alm.single_post_title = data.prev_title;
|
1891 |
+
alm.single_post_slug = data.prev_slug;
|
1892 |
} else {
|
1893 |
if (!data.has_previous_post) {
|
1894 |
alm.AjaxLoadMore.triggerDone();
|
1895 |
}
|
1896 |
}
|
1897 |
+
if (typeof window.almSetSinglePost === 'function') {
|
1898 |
+
window.almSetSinglePost(alm, data.current_id, data.permalink, data.title);
|
1899 |
}
|
1900 |
alm.fetchingPreviousPost = false;
|
1901 |
+
alm.single_post_init = false;
|
1902 |
},
|
1903 |
error: function error(jqXHR, textStatus, errorThrown) {
|
1904 |
alm.AjaxLoadMore.error(jqXHR, textStatus, errorThrown);
|
1930 |
alm.loading = false;
|
1931 |
alm.finished = true;
|
1932 |
if (!alm.paging) {
|
1933 |
+
alm.button.classList.add('done');
|
1934 |
}
|
1935 |
if ($.isFunction($.fn.almDone)) {
|
1936 |
// Delay done until after animation
|
1948 |
alm.AjaxLoadMore.resetBtnText = function () {
|
1949 |
if (alm.button_loading_label !== false && !alm.paging) {
|
1950 |
// Reset button text
|
1951 |
+
alm.button.innerHTML = alm.button_label;
|
1952 |
}
|
1953 |
};
|
1954 |
|
1955 |
+
/**
|
1956 |
+
* Ajax Error
|
1957 |
*
|
1958 |
* Error function after failed data
|
1959 |
* @since 2.6.0
|
1962 |
alm.AjaxLoadMore.error = function (jqXHR, textStatus, errorThrown) {
|
1963 |
alm.loading = false;
|
1964 |
if (!alm.paging) {
|
1965 |
+
alm.button.classList.remove('loading');
|
1966 |
alm.AjaxLoadMore.resetBtnText();
|
1967 |
}
|
1968 |
console.log(errorThrown);
|
1969 |
};
|
1970 |
|
1971 |
+
/**
|
1972 |
+
* Click Handler
|
1973 |
*
|
1974 |
+
* Button click handler to load posts
|
1975 |
+
* @since 4.2.0
|
1976 |
+
*/
|
1977 |
+
alm.AjaxLoadMore.click = function (e) {
|
1978 |
+
var button = e.target || e.currentTarget;
|
1979 |
+
if (alm.pause === 'true') {
|
1980 |
+
alm.pause = false;
|
1981 |
+
alm.pause_override = false;
|
1982 |
+
alm.AjaxLoadMore.loadPosts();
|
1983 |
+
}
|
1984 |
+
if (!alm.loading && !alm.finished && !button.classList.contains('done')) {
|
1985 |
+
alm.loading = true;
|
1986 |
+
alm.page++;
|
1987 |
+
alm.AjaxLoadMore.loadPosts();
|
1988 |
+
}
|
1989 |
+
// Filters Paged URLs
|
1990 |
+
if (alm.filters && typeof almFiltersPaged === 'function') {
|
1991 |
+
almFiltersPaged(alm);
|
1992 |
+
}
|
1993 |
+
};
|
1994 |
+
|
1995 |
+
/* Button Click Event
|
1996 |
+
*
|
1997 |
+
* Load more button click event
|
1998 |
* @since 1.0.0
|
1999 |
*/
|
2000 |
|
2001 |
if (!alm.paging && !alm.fetchingPreviousPost) {
|
2002 |
+
alm.button.onclick = alm.AjaxLoadMore.click;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2003 |
}
|
2004 |
|
2005 |
/* Window Resize
|
2006 |
*
|
2007 |
* Add resize function for Paging add-on only.
|
2008 |
* @since 2.1.2
|
2009 |
+
* @updated 4.2
|
2010 |
*/
|
2011 |
if (alm.paging) {
|
2012 |
+
var pagingResize = void 0;
|
2013 |
+
alm.window.onresize = function () {
|
2014 |
+
clearTimeout(pagingResize);
|
2015 |
+
pagingResize = setTimeout(function (e) {
|
2016 |
+
if ($.isFunction($.fn.almOnWindowResize)) {
|
2017 |
+
$.fn.almOnWindowResize(alm);
|
2018 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019 |
}, alm.speed);
|
2020 |
+
};
|
2021 |
}
|
2022 |
|
2023 |
/* alm.AjaxLoadMore.isVisible()
|
2034 |
return alm.visible;
|
2035 |
};
|
2036 |
|
2037 |
+
/**
|
|
|
2038 |
* Load posts as user scrolls the page
|
2039 |
* @since 1.0
|
2040 |
+
* @updated 4.2.0
|
2041 |
*/
|
|
|
2042 |
|
2043 |
+
alm.AjaxLoadMore.scroll = function () {
|
2044 |
+
|
2045 |
+
if (alm.timer) {
|
2046 |
+
clearTimeout(alm.timer);
|
|
|
|
|
2047 |
}
|
2048 |
|
2049 |
+
alm.timer = setTimeout(function () {
|
2050 |
|
2051 |
if (alm.AjaxLoadMore.isVisible() && !alm.fetchingPreviousPost) {
|
2052 |
|
2053 |
+
var trigger = alm.button.getBoundingClientRect();
|
2054 |
+
var btnPos = Math.round(trigger.top - alm.window.innerHeight) + alm.scroll_distance;
|
2055 |
+
var scrollTrigger = btnPos <= 0 ? true : false;
|
2056 |
|
2057 |
+
// Scroll Container
|
2058 |
+
if (alm.window !== window) {
|
2059 |
+
var scrollInstance = alm.window.querySelector('.ajax-load-more-wrap'); // ALM inside the container
|
2060 |
+
var scrollHeight = scrollInstance.offsetHeight; // ALM height
|
2061 |
+
var scrollPosition = Math.round(alm.window.scrollTop + alm.window.offsetHeight - alm.scroll_distance); // How far user has scrolled
|
2062 |
+
scrollTrigger = scrollHeight <= scrollPosition ? true : false;
|
2063 |
}
|
2064 |
|
2065 |
// If Pause && Pause Override
|
2066 |
if (!alm.loading && !alm.finished && scrollTrigger && alm.page < alm.max_pages - 1 && alm.proceed && alm.pause === 'true' && alm.pause_override === 'true') {
|
2067 |
+
alm.button.click();
|
2068 |
}
|
2069 |
|
2070 |
+
// Standard Scroll
|
2071 |
else {
|
2072 |
+
//console.log(alm.window.innerHeight, alm.scroll_distance, alm.window.innerHeight - alm.scroll_distance);
|
2073 |
if (!alm.loading && !alm.finished && scrollTrigger && alm.page < alm.max_pages - 1 && alm.proceed && alm.pause !== 'true') {
|
2074 |
+
alm.button.click();
|
2075 |
}
|
2076 |
}
|
2077 |
}
|
2078 |
+
}, 25);
|
2079 |
+
};
|
2080 |
+
|
2081 |
+
if (alm.scroll && !alm.paging) {
|
2082 |
+
// Scroll Container
|
2083 |
+
if (alm.scroll_container !== '') {
|
2084 |
+
alm.window = document.querySelector(alm.scroll_container) ? document.querySelector(alm.scroll_container) : alm.window;
|
2085 |
+
}
|
2086 |
+
alm.window.addEventListener('scroll', alm.AjaxLoadMore.scroll);
|
2087 |
+
alm.window.addEventListener('touchstart', alm.AjaxLoadMore.scroll);
|
2088 |
}
|
2089 |
|
2090 |
/* Destroy Ajax load More
|
2095 |
alm.AjaxLoadMore.destroyed = function () {
|
2096 |
alm.disable_ajax = true;
|
2097 |
if (!alm.paging) {
|
2098 |
+
setTimeout(function () {
|
2099 |
+
alm.button.fadeOut(alm.speed);
|
2100 |
+
}, alm.speed);
|
2101 |
if ($.isFunction($.fn.almDestroyed)) {
|
2102 |
$.fn.almDestroyed(alm);
|
2103 |
}
|
2138 |
alm.container.removeClass('alm-loading');
|
2139 |
alm.AjaxLoadMore.triggerAddons(alm);
|
2140 |
if (!alm.paging) {
|
2141 |
+
setTimeout(function () {
|
2142 |
+
alm.button.classList.remove('loading');
|
2143 |
+
}, alm.speed);
|
2144 |
alm.AjaxLoadMore.resetBtnText();
|
2145 |
}
|
2146 |
}, alm.speed);
|
2169 |
alm.AjaxLoadMore.destroyed();
|
2170 |
}
|
2171 |
|
2172 |
+
if (!alm.paging && !alm.single_post) {
|
2173 |
if (alm.disable_ajax) {
|
2174 |
alm.finished = true;
|
2175 |
+
alm.button.classList.add('done');
|
2176 |
} else {
|
2177 |
if (alm.pause === 'true') {
|
2178 |
+
alm.button.innerHTML = alm.button_label;
|
2179 |
alm.loading = false;
|
2180 |
} else {
|
2181 |
alm.AjaxLoadMore.loadPosts();
|
2184 |
}
|
2185 |
|
2186 |
// Previous Post Add-on
|
2187 |
+
if (alm.single_post) {
|
2188 |
alm.AjaxLoadMore.getPreviousPost(); // Set next post on load
|
2189 |
alm.loading = false;
|
2190 |
}
|
2232 |
|
2233 |
// Next Page Add-on
|
2234 |
if (alm.nextpage) {
|
|
|
2235 |
if ($('.alm-nextpage', alm.container).length) {
|
|
|
2236 |
// `.alm-nextpage` check that posts remain
|
2237 |
var alm_nextpage_pages = $('.alm-nextpage', alm.container).length,
|
2238 |
alm_nextpage_total = $('.alm-nextpage', alm.container).eq(0).data('total-posts');
|
|
|
2239 |
if (alm_nextpage_pages == alm_nextpage_total) {
|
2240 |
alm.AjaxLoadMore.triggerDone();
|
2241 |
}
|
2242 |
}
|
|
|
2243 |
if (alm.resultsText) {
|
2244 |
almInitResultsText(alm, 'nextpage');
|
2245 |
}
|
2246 |
}
|
2247 |
|
2248 |
+
// Window Load (Masonry + Preloaded)
|
2249 |
+
alm.window.addEventListener('load', function () {
|
2250 |
if (alm.is_masonry_preloaded) {
|
2251 |
almMasonry(alm.masonry_wrap, alm.el, alm.masonry_selector, alm.masonry_columnwidth, alm.masonry_animation, alm.masonry_horizontalorder, alm.speed, alm.masonry_init, true, false);
|
2252 |
alm.masonry_init = false;
|
2254 |
});
|
2255 |
};
|
2256 |
|
2257 |
+
// Init Ajax Load More
|
2258 |
alm.AjaxLoadMore.init();
|
2259 |
|
2260 |
+
// Init flag to prevent unnecessary loading of posts.
|
2261 |
setTimeout(function () {
|
2262 |
alm.proceed = true;
|
2263 |
}, 150);
|
2268 |
* @since 2.7.0
|
2269 |
*/
|
2270 |
$.fn.almUpdateCurrentPage = function (current, obj, alm) {
|
2271 |
+
|
2272 |
alm.page = current;
|
2273 |
|
2274 |
// Next Page add-on
|
2275 |
+
alm.page = alm.nextpage && !alm.paging ? alm.page - 1 : alm.page;
|
|
|
|
|
2276 |
|
2277 |
var data = '';
|
2278 |
|
2335 |
* @return null
|
2336 |
*/
|
2337 |
$.fn.almTriggerClick = function () {
|
2338 |
+
alm.button.click();
|
2339 |
};
|
2340 |
|
2341 |
//Custom easing function
|
2357 |
*/
|
2358 |
$.fn.ajaxloadmore = function () {
|
2359 |
return this.each(function (e) {
|
2360 |
+
new ajaxloadmore(this, e);
|
2361 |
});
|
2362 |
};
|
2363 |
|
2366 |
* @since 2.1.2
|
2367 |
*/
|
2368 |
|
2369 |
+
var alm_instances = document.querySelectorAll('.ajax-load-more-wrap');
|
2370 |
+
if (alm_instances.length) {
|
2371 |
+
[].concat(_toConsumableArray(alm_instances)).forEach(function (alm, e) {
|
2372 |
+
new ajaxloadmore(alm, e);
|
2373 |
});
|
2374 |
}
|
2375 |
})(jQuery);
|
core/dist/js/ajax-load-more.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
"use strict";Array.from||(Array.from=function(){var a=Object.prototype.toString,l=function(t){return"function"==typeof t||"[object Function]"===a.call(t)},o=Math.pow(2,53)-1,p=function(t){var a,e=(a=Number(t),isNaN(a)?0:0!==a&&isFinite(a)?(0<a?1:-1)*Math.floor(Math.abs(a)):a);return Math.min(Math.max(e,0),o)};return function(t){var a=Object(t);if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");var e,o=1<arguments.length?arguments[1]:void 0;if(void 0!==o){if(!l(o))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(e=arguments[2])}for(var n,r=p(a.length),s=l(this)?Object(new this(r)):new Array(r),i=0;i<r;)n=a[i],s[i]=o?void 0===e?o(n,i):o.call(e,n,i):n,i+=1;return s.length=r,s}}());var almGetParameterByName=function(t,a){a||(a=window.location.href),t=t.replace(/[\[\]]/g,"\\$&");var e=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(a);return e?e[2]?decodeURIComponent(e[2].replace(/\+/g," ")):"":null},almGetAjaxParams=function(t,a,e){var o={action:a,nonce:alm_localize.alm_nonce,query_type:e,id:t.id,post_id:t.post_id,slug:t.slug,canonical_url:t.canonical_url,posts_per_page:t.posts_per_page,page:t.page,offset:t.offset,post_type:t.post_type,repeater:t.repeater,seo_start_page:t.start_page};return t.theme_repeater&&(o.theme_repeater=t.theme_repeater),t.paging&&(o.paging=t.paging),t.preloaded&&(o.preloaded=t.preloaded,o.preloaded_amount=t.preloaded_amount),"true"===t.cache&&(o.cache_id=t.cache_id,o.cache_logged_in=t.cache_logged_in),t.acf_array&&(o.acf=t.acf_array),t.cta_array&&(o.cta=t.cta_array),t.comments_array&&(o.comments=t.comments_array),t.nextpage_array&&(o.nextpage=t.nextpage_array),t.previous_post_array&&(o.previous_post=t.previous_post_array),t.users_array&&(o.users=t.users_array),t.content.attr("data-lang")&&(o.lang=t.content.attr("data-lang")),t.content.attr("data-sticky-posts")&&(o.sticky_posts=t.content.attr("data-sticky-posts")),t.content.attr("data-post-format")&&(o.post_format=t.content.attr("data-post-format")),t.content.attr("data-category")&&(o.category=t.content.attr("data-category")),t.content.attr("data-category-and")&&(o.category__and=t.content.attr("data-category-and")),t.content.attr("data-category-not-in")&&(o.category__not_in=t.content.attr("data-category-not-in")),t.content.attr("data-tag")&&(o.tag=t.content.attr("data-tag")),t.content.attr("data-tag-and")&&(o.tag__and=t.content.attr("data-tag-and")),t.content.attr("data-tag-not-in")&&(o.tag__not_in=t.content.attr("data-tag-not-in")),t.content.attr("data-taxonomy")&&(o.taxonomy=t.content.attr("data-taxonomy")),t.content.attr("data-taxonomy-terms")&&(o.taxonomy_terms=t.content.attr("data-taxonomy-terms")),t.content.attr("data-taxonomy-operator")&&(o.taxonomy_operator=t.content.attr("data-taxonomy-operator")),t.content.attr("data-taxonomy-relation")&&(o.taxonomy_relation=t.content.attr("data-taxonomy-relation")),t.content.attr("data-meta-key")&&(o.meta_key=t.content.attr("data-meta-key")),t.content.attr("data-meta-value")&&(o.meta_value=t.content.attr("data-meta-value")),t.content.attr("data-meta-compare")&&(o.meta_compare=t.content.attr("data-meta-compare")),t.content.attr("data-meta-relation")&&(o.meta_relation=t.content.attr("data-meta-relation")),t.content.attr("data-meta-type")&&(o.meta_type=t.content.attr("data-meta-type")),t.content.attr("data-author")&&(o.author=t.content.attr("data-author")),t.content.attr("data-year")&&(o.year=t.content.attr("data-year")),t.content.attr("data-month")&&(o.month=t.content.attr("data-month")),t.content.attr("data-day")&&(o.day=t.content.attr("data-day")),t.content.attr("data-order")&&(o.order=t.content.attr("data-order")),t.content.attr("data-orderby")&&(o.orderby=t.content.attr("data-orderby")),t.content.attr("data-post-status")&&(o.post_status=t.content.attr("data-post-status")),t.content.attr("data-post-in")&&(o.post__in=t.content.attr("data-post-in")),t.content.attr("data-post-not-in")&&(o.post__not_in=t.content.attr("data-post-not-in")),t.content.attr("data-exclude")&&(o.exclude=t.content.attr("data-exclude")),t.content.attr("data-search")&&(o.search=t.content.attr("data-search")),t.content.attr("data-s")&&(o.search=t.content.attr("data-s")),t.content.attr("data-custom-args")&&(o.custom_args=t.content.attr("data-custom-args")),o},almGetRestParams=function(t){return{id:t.id,post_id:t.post_id,posts_per_page:t.posts_per_page,page:t.page,offset:t.offset,slug:t.slug,canonical_url:t.canonical_url,post_type:t.post_type,post_format:t.content.attr("data-post-format"),category:t.content.attr("data-category"),category__not_in:t.content.attr("data-category-not-in"),tag:t.content.attr("data-tag"),tag__not_in:t.content.attr("data-tag-not-in"),taxonomy:t.content.attr("data-taxonomy"),taxonomy_terms:t.content.attr("data-taxonomy-terms"),taxonomy_operator:t.content.attr("data-taxonomy-operator"),taxonomy_relation:t.content.attr("data-taxonomy-relation"),meta_key:t.content.attr("data-meta-key"),meta_value:t.content.attr("data-meta-value"),meta_compare:t.content.attr("data-meta-compare"),meta_relation:t.content.attr("data-meta-relation"),meta_type:t.content.attr("data-meta-type"),author:t.content.attr("data-author"),year:t.content.attr("data-year"),month:t.content.attr("data-month"),day:t.content.attr("data-day"),post_status:t.content.attr("data-post-status"),order:t.content.attr("data-order"),orderby:t.content.attr("data-orderby"),post__in:t.content.attr("data-post-in"),post__not_in:t.content.attr("data-post-not-in"),search:t.content.attr("data-search"),custom_args:t.content.attr("data-custom-args"),lang:t.lang,preloaded:t.preloaded,preloaded_amount:t.preloaded_amount,seo_start_page:t.start_page}};function _toConsumableArray(t){if(Array.isArray(t)){for(var a=0,e=Array(t.length);a<t.length;a++)e[a]=t[a];return e}return Array.from(t)}var alm_is_filtering=!1;!function(r){r.fn.almFilter=function(e,o,n){n.target?r(".ajax-load-more-wrap[data-id='"+n.target+"']").each(function(t){var a=r(this);r.fn.almFilterTransition(e,o,n,a)}):r(".ajax-load-more-wrap").each(function(t){var a=r(this);r.fn.almFilterTransition(e,o,n,a)})},r.fn.almFilterTransition=function(t,a,e,o){"slide"===t?o.slideUp(a,function(){n(a,e,o)}):"fade"===t||"masonry"===t?o.fadeOut(a,function(){n(a,e,o)}):n(a,e,o)};var n=function(t,a,e){var o=e.get(0),n=o.querySelectorAll(".alm-listing");[].concat(_toConsumableArray(n)).forEach(function(t){t.innerHTML=""});var r=o.querySelector(".alm-load-more-btn");r&&r.classList.remove("done"),s(t,a,e)},s=function(t,a,e){r.each(a,function(t,a){t=t.replace(/\W+/g,"-").replace(/([a-z\d])([A-Z])/g,"$1-$2"),r(".alm-listing",e).attr("data-"+t,a)}),e.fadeIn(t),alm_is_filtering=!0,a.target?r(".ajax-load-more-wrap[data-id="+a.target+"]").ajaxloadmore():r(".ajax-load-more-wrap").ajaxloadmore()}}(jQuery);var almMasonry=function t(o,a,n,r,e,s,i,l,p,d){var c=(i+100)/1e3+"s",_="scale(0.5)",g="scale(1)";"zoom-out"===e&&(_="translateY(-20px) scale(1.25)",g="translateY(0) scale(1)"),"slide-up"===e&&(_="translateY(50px)",g="translateY(0)"),"slide-down"===e&&(_="translateY(-50px)",g="translateY(0)"),"none"===e&&(g=_="translateY(0)"),r?isNaN(r)||(r=parseInt(r)):r=n,s="true"===s,d?(o.masonry("destroy"),o[0].parentNode.style.opacity=0,o.append(a),t(o,a,n,r,e,s,i,!0,!0,!1)):l&&p?o.imagesLoaded(function(){var a={itemSelector:n,transitionDuration:c,columnWidth:r,horizontalOrder:s,hiddenStyle:{transform:_,opacity:0},visibleStyle:{transform:g,opacity:1}},e=window.alm_masonry_vars;e&&Object.keys(e).forEach(function(t){a[t]=e[t]}),o.masonry(a),almMasonryFadeIn(o[0].parentNode,i)}):a.imagesLoaded(function(){o.append(a).masonry("appended",a)})},almMasonryFadeIn=function(t,a){a/=10;var e=parseInt(t.style.opacity),o=setInterval(function(){.9<e&&(t.style.opacity=1,clearInterval(o)),t.style.opacity=e,e+=.1},a)},almResultsText=function(t){if(!t.resultsText)return!1;var a="standard";a=t.nextpage&&t.resultsText?"nextpage":t.paging?"paging":"true"===t.preloaded?"preloaded":"standard",almGetResultsText(t,a)},almRenderResultsText=function(t,a,e){var o=alm_localize.display_results;o=(o=o.replace("{num}",a)).replace("{total}",e),t.innerHTML=o},almGetResultsText=function(t){var a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText)return!1;var e=0,o=0;switch(a){case"nextpage":e=t.page+1+parseInt(t.nextpage_startpage),o=parseInt(t.totalposts)+parseInt(t.nextpage_startpage),almRenderResultsText(t.resultsText,e,o);break;case"preloaded":console.log(t),e=parseInt(t.posts)+parseInt(t.preloaded_amount),o=parseInt(t.totalposts)+parseInt(t.preloaded_amount),almRenderResultsText(t.resultsText,e,o);break;case"paging":var n=parseInt(t.page)*parseInt(t.posts_per_page)+1;e=n+" - "+(parseInt(n)-1+parseInt(t.posts)),o=parseInt(t.totalposts)+parseInt(t.preloaded_amount),almRenderResultsText(t.resultsText,e,o);break;default:e=t.posts,o=parseInt(t.totalposts),almRenderResultsText(t.resultsText,e,o)}},almInitResultsText=function(t){var a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText)return!1;var e=0,o=0,n="";switch(a){case"nextpage":e=t.page+parseInt(t.nextpage_startpage),(o=t.localize.total_posts)&&almRenderResultsText(t.resultsText,e,o);break;case"preloaded":e=parseInt(t.posts)+parseInt(t.preloaded_amount),(o=t.localize.total_posts)&&almRenderResultsText(t.resultsText,e,o);break;case"paging":var r=parseInt(t.page)*parseInt(t.posts_per_page)+1;e=r+" - "+(parseInt(r)-1+parseInt(t.posts_per_page)),(n=t.container.get(0).querySelector(".alm-preloaded"))&&almRenderResultsText(t.resultsText,e,n.dataset.totalPosts);break;default:console.log("nothing")}};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(b){b.ajaxloadmore=function(x,t){"true"===alm_localize.scrolltop&&b(window).scrollTop(0);var h=this;h.AjaxLoadMore={},h.window=b(window),h.page=0,h.posts=0,h.totalposts=0,h.proceed=!1,h.disable_ajax=!1,h.init=!0,h.loading=!0,h.finished=!1,h.prefix="alm-",h.el=x,h.master_id=h.el.get(0).id,h.master_id=h.master_id.replace(/-/g,"_"),h.localize=window[h.master_id+"_vars"],h.container=x,h.container.addClass("alm-"+t).attr("data-alm-id",t);var a=h.container.get(0);if(h.content=b(a.querySelector(".alm-ajax")),h.content_preloaded=b(a.querySelector(".alm-preloaded")),h.canonical_url=h.el.attr("data-canonical-url"),h.nested=h.el.attr("data-nested"),h.is_search=h.el.attr("data-search"),h.slug=h.el.attr("data-slug"),h.post_id=h.el.attr("data-post-id"),h.id=h.el.attr("data-id")?h.el.attr("data-id"):"",h.repeater=h.content.attr("data-repeater"),h.theme_repeater=h.content.attr("data-theme-repeater"),h.post_type=h.content.attr("data-post-type"),h.post_type=h.post_type.split(","),h.sticky_posts=h.content.attr("data-sticky-posts"),h.btnWrap=b("> .alm-btn-wrap",h.container),h.btnWrap.get(0).style.visibility="visible",h.button_label=h.content.attr("data-button-label"),h.button_loading_label=h.content.attr("data-button-loading-label"),h.scroll_distance=h.content.attr("data-scroll-distance"),h.scroll_distance=h.scroll_distance?parseInt(h.scroll_distance):150,h.scroll_container=h.content.attr("data-scroll-container"),h.max_pages=h.content.attr("data-max-pages"),h.max_pages=h.max_pages?parseInt(h.max_pages):0,h.pause_override=h.content.attr("data-pause-override"),h.pause=h.content.attr("data-pause"),h.transition=h.content.attr("data-transition"),h.transition_container=h.content.attr("data-transition-container"),h.tcc=h.content.attr("data-transition-container-classes"),h.speed=250,h.images_loaded=h.content.attr("data-images-loaded"),h.destroy_after=h.content.attr("data-destroy-after"),h.orginal_posts_per_page=h.content.attr("data-posts-per-page"),h.posts_per_page=h.content.attr("data-posts-per-page"),h.offset=h.content.attr("data-offset"),h.cache=h.content.attr("data-cache"),h.cache_id=h.content.attr("data-cache-id"),h.cache_path=h.content.attr("data-cache-path"),h.cache_logged_in=h.content.attr("data-cache-logged-in"),h.cta=h.content.attr("data-cta"),h.cta_position=h.content.attr("data-cta-position"),h.cta_repeater=h.content.attr("data-cta-repeater"),h.cta_theme_repeater=h.content.attr("data-cta-theme-repeater"),h.acf=h.content.attr("data-acf"),h.acf_field_type=h.content.attr("data-acf-field-type"),h.acf_field_name=h.content.attr("data-acf-field-name"),h.acf_post_id=h.content.attr("data-acf-post-id"),h.nextpage=h.content.attr("data-nextpage"),h.nextpage_urls=h.content.attr("data-nextpage-urls"),h.nextpage_scroll=h.content.attr("data-nextpage-scroll"),h.nextpage_pageviews=h.content.attr("data-nextpage-pageviews"),h.nextpage_post_id=h.content.attr("data-nextpage-post-id"),h.nextpage_startpage=h.content.attr("data-nextpage-startpage"),h.previous_post=h.content.attr("data-previous-post"),h.previous_post_id=h.content.attr("data-previous-post-id"),h.previous_post_taxonomy=h.content.attr("data-previous-post-taxonomy"),h.previous_post_excluded_terms=h.content.attr("data-previous-post-excluded-terms"),h.comments=h.content.attr("data-comments"),"true"===h.comments&&(h.content=b(".alm-comments",h.container)),h.comments_post_id=h.content.attr("data-comments_post_id"),h.comments_per_page=h.content.attr("data-comments_per_page"),h.comments_type=h.content.attr("data-comments_type"),h.comments_style=h.content.attr("data-comments_style"),h.comments_template=h.content.attr("data-comments_template"),h.comments_callback=h.content.attr("data-comments_callback"),h.filters=h.content.attr("data-filters"),h.restapi=h.content.attr("data-restapi"),h.restapi_base_url=h.content.attr("data-restapi-base-url"),h.restapi_namespace=h.content.attr("data-restapi-namespace"),h.restapi_endpoint=h.content.attr("data-restapi-endpoint"),h.restapi_template_id=h.content.attr("data-restapi-template-id"),h.restapi_debug=h.content.attr("data-restapi-debug"),h.seo=h.content.attr("data-seo"),h.preloaded=h.content.attr("data-preloaded"),h.preloaded_amount=h.content.attr("data-preloaded-amount"),h.is_preloaded="true"===h.content.attr("data-is-preloaded"),h.paging=h.content.attr("data-paging"),h.users="true"===h.content.attr("data-users"),h.users&&(h.orginal_posts_per_page=h.content.attr("data-users-per-page"),h.posts_per_page=h.content.attr("data-users-per-page")),"true"===h.filters){h.filters=!0,h.filters_analtyics=h.content.attr("data-filters-analtyics"),h.filters_debug=h.content.attr("data-filters-debug"),h.filters_startpage=0;var e=almGetParameterByName("pg");null!==e&&(h.filters_startpage=parseInt(e),h.page=h.filters_startpage),h.isPaged=!1,0<h.filters_startpage&&(h.isPaged=!0,h.page=h.filters_startpage-1)}else h.filters=!1;"true"===h.restapi?(h.restapi=!0,void 0===h.restapi_debug&&(h.restapi_debug=!1),""===h.restapi_template_id&&(h.restapi=!1)):h.restapi=!1,"true"===h.paging?(h.paging=!0,h.paging_controls=!!h.content.attr("data-paging-controls"),h.paging_show_at_most=h.content.attr("data-paging-show-at-most"),h.paging_classes=h.content.attr("data-paging-classes"),h.paging_init=!0,h.paging_show_at_most=void 0===h.paging_show_at_most?7:h.paging_show_at_most,h.pause="true"===h.preloaded||h.pause):h.paging=!1,void 0===h.cache&&(h.cache=!1),void 0===h.cache_logged_in&&(h.cache_logged_in=!1),void 0===h.comments_per_page&&(h.comments_per_page="5"),"true"===h.preloaded?(h.preloaded_amount=void 0===h.preloaded_amount?h.posts_per_page:h.preloaded_amount,h.localize&&h.localize.total_posts&&parseInt(h.localize.total_posts)<=parseInt(h.preloaded_amount)&&(h.preloaded_total_posts=h.localize.total_posts,h.disable_ajax=!0)):h.preloaded="false",void 0===h.seo&&(h.seo=!1),"true"===h.seo&&(h.seo=!0),void 0===h.is_search&&(h.is_search=!1),h.search_value="true"===h.is_search?h.slug:"",h.permalink=h.content.attr("data-seo-permalink"),h.pageview=h.content.attr("data-seo-pageview"),h.start_page=h.content.attr("data-seo-start-page"),h.seo_trailing_slash="false"===h.content.attr("data-seo-trailing-slash")?"":"/",h.seo_leading_slash="true"===h.content.attr("data-seo-leading-slash")?"/":"",h.start_page?(h.seo_scroll=h.content.attr("data-seo-scroll"),h.seo_scroll_speed=h.content.attr("data-seo-scroll-speed"),h.seo_scrolltop=h.content.attr("data-seo-scrolltop"),h.seo_controls=h.content.attr("data-seo-controls"),h.isPaged=!1,1<h.start_page&&(h.isPaged=!0,h.posts_per_page=h.start_page*h.posts_per_page),h.paging&&(h.posts_per_page=h.orginal_posts_per_page)):h.start_page=1,"true"===h.nextpage?(h.nextpage=!0,h.posts_per_page=1):h.nextpage=!1,void 0===h.nextpage_urls&&(h.nextpage_urls="true"),void 0===h.nextpage_scroll&&(h.nextpage_scroll="250:30"),void 0===h.nextpage_pageviews&&(h.nextpage_pageviews="true"),void 0===h.nextpage_post_id&&(h.nextpage=!1,h.nextpage_post_id=null),void 0===h.nextpage_startpage&&(h.nextpage_startpage=1),1<h.nextpage_startpage&&(h.isPaged=!0),h.acf="true"===h.acf,void 0!==h.acf_field_type&&void 0!==h.acf_field_name&&void 0!==h.acf_post_id||(h.acf=!1),"true"===h.previous_post?(h.previous_post=!0,h.previous_post_permalink="",h.previous_post_title="",h.previous_post_slug=""):h.previous_post=!1,void 0===h.previous_post_id&&(h.previous_post_id=""),void 0===h.previous_post_taxonomy&&(h.previous_post_taxonomy=""),void 0===h.previous_post_excluded_terms&&(h.previous_post_excluded_terms=""),h.previous_post_title_template=h.content.attr("data-previous-post-title-template"),h.siteTitle=h.content.attr("data-previous-post-site-title"),h.siteTagline=h.content.attr("data-previous-post-site-tagline"),h.previous_post_pageview=h.content.attr("data-previous-post-pageview"),h.previous_post_scroll=h.content.attr("data-previous-post-scroll"),h.previous_post_scroll_speed=h.content.attr("data-previous-post-scroll-speed"),h.previous_post_scroll_top=h.content.attr("data-previous-post-scrolltop"),h.previous_post_controls=h.content.attr("data-previous-post-controls"),h.offset=void 0===h.offset?0:h.offset,(void 0===h.pause||h.seo&&1<h.start_page)&&(h.pause=!1),"true"===h.preloaded&&h.seo&&0<h.start_page&&(h.pause=!1),"true"===h.preloaded&&h.paging&&(h.pause=!0),void 0===h.repeater&&(h.repeater="default"),h.theme_repeater=void 0!==h.theme_repeater&&h.theme_repeater,h.max_pages=void 0===h.max_pages||0===h.max_pages?1e4:h.max_pages,h.scroll_distance=void 0===h.scroll_distance?150:h.scroll_distance,h.scroll_container=void 0===h.scroll_container?"":h.scroll_container,h.transition=void 0===h.transition?"fade":h.transition,h.tcc=void 0===h.tcc?"":h.tcc,h.is_masonry_preloaded=!1,"masonry"===h.transition&&(h.masonry_init=!0,h.masonry_selector=h.content.attr("data-masonry-selector"),h.masonry_columnwidth=h.content.attr("data-masonry-columnwidth"),h.masonry_animation=h.content.attr("data-masonry-animation"),h.masonry_horizontalorder=h.content.attr("data-masonry-horizontalorder"),void 0===h.masonry_animation&&(h.masonry_animation="standard"),void 0===h.masonry_horizontalorder&&(h.masonry_horizontalorder="true"),h.masonry_wrap=h.content,h.transition_container=!1,"true"===h.preloaded&&(h.is_masonry_preloaded=!0)),void 0===h.content.attr("data-scroll")?h.scroll=!0:"false"===h.content.attr("data-scroll")?h.scroll=!1:h.scroll=!0,h.transition_container=void 0===h.transition_container||"true"===h.transition_container,h.images_loaded=void 0===h.images_loaded?"false":h.images_loaded,h.button_label=void 0===h.button_label?"Older Posts":h.button_label,h.button_loading_label=void 0!==h.button_loading_label&&h.button_loading_label,h.paging?h.content.parent().addClass("loading"):h.button=b("> .alm-btn-wrap .alm-load-more-btn",h.container),h.resultsText=document.querySelector(".alm-results-text"),h.resultsText?h.resultsText.innerHTML=alm_localize.display_results:h.resultsText=!1,h.AjaxLoadMore.loadPosts=function(){if(!h.disable_ajax)if(h.paging||(h.button.addClass("loading"),!1!==h.button_loading_label&&h.button.html(h.button_loading_label)),h.container.addClass("alm-loading"),h.loading=!0,"true"!==h.cache||h.cache_logged_in)h.AjaxLoadMore.ajax("standard");else{var t;if(h.init&&h.seo&&h.isPaged){t=h.cache_path+h.cache_id+"/page-1-"+h.start_page+".html"}else if(h.nextpage){var a;h.paging?a=parseInt(h.page)+1:(a=parseInt(h.page)+2,h.isPaged&&(a=parseInt(h.page)+parseInt(h.nextpage_startpage)+1)),t=h.cache_path+h.cache_id+"/page-"+a+".html"}else t=h.previous_post?h.cache_path+h.cache_id+"/"+h.previous_post_id+".html":h.cache_path+h.cache_id+"/page-"+(h.page+1)+".html";b.get(t,function(t){h.AjaxLoadMore.success(t,!0)}).fail(function(){h.AjaxLoadMore.ajax("standard")})}},h.AjaxLoadMore.ajax=function(a){var t="alm_query_posts";if(h.acf_array="",h.acf&&("relationship"!==h.acf_field_type&&(t="alm_acf_query"),h.acf_array={acf:"true",post_id:h.acf_post_id,field_type:h.acf_field_type,field_name:h.acf_field_name}),h.nextpage_array="",h.nextpage&&(t="alm_nextpage_query",h.nextpage_array={nextpage:"true",urls:h.nextpage_urls,scroll:h.nextpage_scroll,pageviews:h.nextpage_pageviews,post_id:h.nextpage_post_id,startpage:h.nextpage_startpage}),h.previous_post_array="",h.previous_post&&(h.previous_post_array={previous_post:"true",id:h.previous_post_id,slug:h.previous_post_slug}),h.comments_array="","true"===h.comments&&(t="alm_comments_query",h.posts_per_page=h.comments_per_page,h.comments_array={comments:"true",post_id:h.comments_post_id,per_page:h.comments_per_page,type:h.comments_type,style:h.comments_style,template:h.comments_template,callback:h.comments_callback}),h.users_array="",h.users&&(t="alm_users_query",h.users_array={users:"true",role:h.content.attr("data-users-role"),include:h.content.attr("data-users-include"),exclude:h.content.attr("data-users-exclude"),per_page:h.posts_per_page,order:h.content.attr("data-users-order"),orderby:h.content.attr("data-users-orderby")}),h.cta_array="","true"===h.cta&&(h.cta_array={cta:"true",cta_position:h.cta_position,cta_repeater:h.cta_repeater,cta_theme_repeater:h.cta_theme_repeater}),h.restapi){var i=wp.template(h.restapi_template_id),e=h.restapi_base_url+"/"+h.restapi_namespace+"/"+h.restapi_endpoint,o=almGetRestParams(h);b.ajax({type:"GET",url:e,data:o,dataType:"JSON",beforeSend:function(){1==h.page||h.paging||h.button.addClass("loading")},success:function(t){var e="",o=t.html,a=t.meta,n=a.postcount,r=a.totalposts;b.each(o,function(t){var a=o[t];"true"===h.restapi_debug&&console.log(a),e+=i(a)});var s={html:e,meta:{postcount:n,totalposts:r}};h.AjaxLoadMore.success(s,!1)}})}else{var n=almGetAjaxParams(h,t,a);b.ajax({type:"GET",url:alm_localize.ajaxurl,dataType:"JSON",data:n,beforeSend:function(){1==h.page||h.paging||h.button.addClass("loading")},success:function(t){"standard"===a?h.AjaxLoadMore.success(t,!1):"totalpages"===a&&h.paging&&h.nextpage?b.isFunction(b.fn.almBuildPagination)&&b.fn.almBuildPagination(t,h):"totalposts"===a&&h.paging&&b.isFunction(b.fn.almBuildPagination)&&b.fn.almBuildPagination(t,h)},error:function(t,a,e){h.AjaxLoadMore.error(t,a,e)}})}},h.paging&&(h.nextpage?h.AjaxLoadMore.ajax("totalpages"):h.AjaxLoadMore.ajax("totalposts")),h.AjaxLoadMore.success=function(t,a){h.previous_post&&h.AjaxLoadMore.getPreviousPost();var e,o,n,r='style="opacity: 0; height: 0;"';if(a?e=t:(e=t.html,o=t.meta,h.posts=h.paging?o.postcount:h.posts+o.postcount,n=o.postcount,h.totalposts=o.totalposts,"true"===h.preloaded&&(h.totalposts=h.totalposts-h.preloaded_amount)),h.setlocalizedVars("viewing",h.posts),h.setlocalizedVars("total_posts",h.totalposts),almResultsText(h),h.data=b(e),n=a?h.data.length:n,h.init&&(o&&o.totalposts&&h.el.attr("data-total-posts",o.totalposts),h.paging?0<n&&(h.el=b('<div class="alm-reveal'+h.tcc+'" '+r+"/>"),h.el.append('<div class="alm-paging-content'+h.tcc+'"></div><div class="alm-paging-loading"></div>'),b(".alm-paging-content",h.el).append(h.data),h.content.append(h.el),h.AjaxLoadMore.fadeIn(h.el.get(0),h.speed),h.content.parent().removeClass("loading"),h.AjaxLoadMore.resetBtnText(),setTimeout(function(){b(".alm-paging-content",h.el).fadeIn(h.speed,"alm_easeInOutQuad",function(){var t=parseInt(h.content.css("padding-top")),a=parseInt(h.content.css("padding-bottom"));h.content.css("height",h.el.height()+t+a+"px"),b.isFunction(b.fn.almFadePageControls)&&b.fn.almFadePageControls(h.btnWrap)})},h.speed)):h.button.html(h.button_label),0===n&&(h.paging&&b.isFunction(b.fn.almPagingEmpty)&&b.fn.almPagingEmpty(h),b.isFunction(b.fn.almEmpty)&&b.fn.almEmpty(h)),h.isPaged&&(h.posts_per_page=h.users?h.content.attr("data-users-per-page"):h.content.attr("data-posts-per-page"),h.page=h.start_page?h.start_page-1:h.page,h.filters&&h.filters_startpage&&(h.page=h.filters_startpage-1,h.posts_per_page=h.content.attr("data-posts-per-page")))),0<n){if(h.paging)h.init?(h.container.removeClass("alm-loading"),h.AjaxLoadMore.triggerAddons(h)):b(".alm-paging-content",h.el).html("").append(h.data).almWaitForImages().done(function(){b(".alm-paging-loading",h.el).fadeOut(h.speed),b.isFunction(b.fn.almOnPagingComplete)&&setTimeout(function(){b.fn.almOnPagingComplete(h)},h.speed),h.container.removeClass("alm-loading"),h.AjaxLoadMore.triggerAddons(h)});else{if(h.previous_post)h.el=b('<div class="alm-reveal alm-previous-post post-'+h.previous_post_id+'" '+r+' data-id="'+h.previous_post_id+'" data-title="'+h.previous_post_title+'" data-url="'+h.previous_post_permalink+'" data-page="'+h.page+'"/>'),h.el.append(h.data);else if(h.transition_container){var s=void 0,i=window.location.search;if(h.init&&1<h.start_page){var l=[],p=[],d=parseInt(h.posts_per_page);Math.ceil(n/d);h.el=h.content,"true"===h.cta&&(d+=1,n=Math.ceil(n/d)+n);for(var c=0;c<n;c+=d)l.push(h.data.slice(c,d+c));for(var _=0;_<l.length;_++){var g="true"===h.preloaded?1:0,u=void 0;if(0<_||"true"===h.preloaded)s=_+1+g,u="default"===h.permalink?b('<div class="alm-reveal alm-seo'+h.tcc+'" data-url="'+h.canonical_url+h.search_value+"&paged="+s+'" data-page="'+s+'" />'):b('<div class="alm-reveal alm-seo'+h.tcc+'" data-url="'+h.canonical_url+h.seo_leading_slash+"page/"+s+h.seo_trailing_slash+h.search_value+'" data-page="'+s+'" />');else{var m=h.is_preloaded?" alm-preloaded":"";u=b('<div class="alm-reveal alm-seo'+m+h.tcc+'" data-url="'+h.canonical_url+h.search_value+'" data-page="1" />')}p.push(u.append(l[_]))}for(var f=0;f<p.length;f++)h.el.append(p[f]);h.el.get(0).style.opacity=0,h.el.get(0).style.height=0}else{if(h.seo&&0<h.page||"true"===h.preloaded){var y="true"===h.preloaded?1:0;s=h.page+1+y,h.seo?"default"===h.permalink?h.el=b('<div class="alm-reveal alm-seo'+h.tcc+'" '+r+' data-url="'+h.canonical_url+h.search_value+"&paged="+s+'" data-page="'+s+'" />'):h.el=b('<div class="alm-reveal alm-seo'+h.tcc+'" '+r+' data-url="'+h.canonical_url+h.seo_leading_slash+"page/"+s+h.seo_trailing_slash+h.search_value+'" data-page="'+s+'" />'):h.filters?h.el=b('<div class="alm-reveal alm-filters'+h.tcc+'" '+r+' data-url="'+h.canonical_url+i+'" data-page="'+s+'" />'):h.el=b('<div class="alm-reveal'+h.tcc+'" '+r+" />")}else h.filters?h.el=b('<div class="alm-reveal alm-filters'+h.tcc+'" '+r+' data-url="'+h.canonical_url+i+'" data-page="'+(h.page+1)+'" />'):h.seo?h.el=b('<div class="alm-reveal alm-seo'+h.tcc+'" '+r+' data-url="'+h.canonical_url+h.search_value+'" data-page="1" />'):h.el=b('<div class="alm-reveal'+h.tcc+'" '+r+" />");h.el.append(h.data)}}else h.el=h.data;("masonry"!==h.transition||h.init&&!h.is_masonry_preloaded)&&h.content.append(h.el),"masonry"===h.transition?(almMasonry(h.masonry_wrap,h.el,h.masonry_selector,h.masonry_columnwidth,h.masonry_animation,h.masonry_horizontalorder,h.speed,h.masonry_init,h.init,alm_is_filtering),h.masonry_init=!1,h.AjaxLoadMore.transitionEnd()):"none"===h.transition?(h.AjaxLoadMore.fadeIn(h.el.get(0),0),h.AjaxLoadMore.transitionEnd()):"true"===h.images_loaded?h.el.almWaitForImages().done(function(){h.transition_container&&h.AjaxLoadMore.fadeIn(h.el.get(0),h.speed),h.AjaxLoadMore.transitionEnd()}):(h.transition_container&&h.AjaxLoadMore.fadeIn(h.el.get(0),h.speed),h.AjaxLoadMore.transitionEnd())}b.isFunction(b.fn.almComplete)&&("true"===h.images_loaded?h.el.almWaitForImages().done(function(){b.fn.almComplete(h)}):b.fn.almComplete(h)),h.cache?n<h.posts_per_page&&h.AjaxLoadMore.triggerDone():h.posts>=h.totalposts&&!h.previous_post&&h.AjaxLoadMore.triggerDone()}else h.paging||(h.button.delay(h.speed).removeClass("loading").addClass("done"),h.AjaxLoadMore.resetBtnText()),h.AjaxLoadMore.triggerDone();if(b.isFunction(b.fn.almFilterComplete)&&b.fn.almFilterComplete(),"function"==typeof almFiltersAddonComplete&&almFiltersAddonComplete(x),void 0!==h.destroy_after&&""!==h.destroy_after){var v=h.page+1;"true"===h.preloaded&&v++,v==h.destroy_after&&h.AjaxLoadMore.destroyed()}alm_is_filtering=h.init=!1},h.AjaxLoadMore.pagingPreloadedInit=function(t){t=null==t?"":t,h.el=b('<div class="alm-reveal'+h.tcc+'"/>'),h.el.append('<div class="alm-paging-content">'+t+'</div><div class="alm-paging-loading"></div>'),h.content.append(h.el),h.content.parent().removeClass("loading"),h.AjaxLoadMore.resetBtnText();var a=parseInt(h.content.css("padding-top")),e=parseInt(h.content.css("padding-bottom"));h.content.css("height",h.el.height()+a+e+"px"),""===t&&(b.isFunction(b.fn.almPagingEmpty)&&b.fn.almPagingEmpty(h),b.isFunction(b.fn.almEmpty)&&b.fn.almEmpty(h)),setTimeout(function(){b.isFunction(b.fn.almFadePageControls)&&b.fn.almFadePageControls(h.btnWrap)},h.speed)},h.AjaxLoadMore.pagingNextpageInit=function(t){h.el=b('<div class="alm-reveal alm-nextpage"/>'),h.el.append('<div class="alm-paging-content">'+t+'</div><div class="alm-paging-loading"></div>'),h.el.appendTo(h.content),h.content.parent().removeClass("loading"),h.AjaxLoadMore.resetBtnText();var a=parseInt(h.content.css("padding-top")),e=parseInt(h.content.css("padding-bottom"));h.content.css("height",h.el.height()+a+e+"px"),b.isFunction(b.fn.almSetNextPageVars)&&b.fn.almSetNextPageVars(h),setTimeout(function(){b.isFunction(b.fn.almFadePageControls)&&b.fn.almFadePageControls(h.btnWrap),b.isFunction(b.fn.almOnWindowResize)&&b.fn.almOnWindowResize(h)},h.speed)},h.fetchingPreviousPost=!1,h.AjaxLoadMore.getPreviousPost=function(){h.fetchingPreviousPost=!0;var t={action:"alm_query_previous_post",id:h.previous_post_id,taxonomy:h.previous_post_taxonomy,excluded_terms:h.previous_post_excluded_terms};b.ajax({type:"GET",dataType:"JSON",url:alm_localize.ajaxurl,data:t,success:function(t){t.has_previous_post?(h.content.attr("data-previous-post-id",t.prev_id),h.previous_post_id=t.prev_id,h.previous_post_permalink=t.prev_permalink,h.previous_post_title=t.prev_title,h.previous_post_slug=t.prev_slug):t.has_previous_post||h.AjaxLoadMore.triggerDone(),b.isFunction(b.fn.almSetPreviousPost)&&b.fn.almSetPreviousPost(h,t.current_id,t.permalink,t.title),h.fetchingPreviousPost=!1},error:function(t,a,e){h.AjaxLoadMore.error(t,a,e),h.fetchingPreviousPost=!1}})},h.AjaxLoadMore.triggerAddons=function(t){b.isFunction(b.fn.almSEO)&&t.seo&&b.fn.almSEO(t,!1),b.isFunction(b.fn.almSetNextPage)&&b.fn.almSetNextPage(t)},h.AjaxLoadMore.triggerDone=function(){h.loading=!1,h.finished=!0,h.paging||h.button.addClass("done"),b.isFunction(b.fn.almDone)&&setTimeout(function(){b.fn.almDone(h)},h.speed+10)},h.AjaxLoadMore.resetBtnText=function(){!1===h.button_loading_label||h.paging||h.button.html(h.button_label)},h.AjaxLoadMore.error=function(t,a,e){h.loading=!1,h.paging||(h.button.removeClass("loading"),h.AjaxLoadMore.resetBtnText()),console.log(e)},h.paging||h.fetchingPreviousPost||(h.button.unbind("click"),h.button.on("click",function(t){t.preventDefault(),"true"===h.pause&&(h.pause=!1,h.pause_override=!1,h.AjaxLoadMore.loadPosts()),h.loading||h.finished||b(this).hasClass("done")||(h.loading=!0,h.page++,h.AjaxLoadMore.loadPosts()),h.filters&&"function"==typeof almFiltersPaged&&almFiltersPaged(h)})),h.paging&&(h.window.unbind("resizeEnd"),h.window.bind("resizeEnd",function(){b.isFunction(b.fn.almOnWindowResize)&&b.fn.almOnWindowResize(h)}),h.window.unbind("resize"),h.window.bind("resize",function(){this.resizeTO&&clearTimeout(this.resizeTO),this.resizeTO=setTimeout(function(){b(this).trigger("resizeEnd")},h.speed)})),h.AjaxLoadMore.isVisible=function(){return h.visible=!1,h.el.is(":visible")&&(h.visible=!0),h.visible},h.scroll&&!h.paging&&(""!==h.scroll_container&&b(h.scroll_container).length&&(h.window=b(h.scroll_container)),h.window.bind("scroll touchstart",function(){if(h.AjaxLoadMore.isVisible()&&!h.fetchingPreviousPost){var t=h.button.offset().top,a=Math.round(t-(h.window.height()-h.scroll_distance)),e=h.window.scrollTop()>=a;""!==h.scroll_container&&(e=h.button.offset().top-(h.window.height()-h.scroll_distance)<h.window.offset().top),!h.loading&&!h.finished&&e&&h.page<h.max_pages-1&&h.proceed&&"true"===h.pause&&"true"===h.pause_override?h.button.trigger("click"):!h.loading&&!h.finished&&e&&h.page<h.max_pages-1&&h.proceed&&"true"!==h.pause&&h.button.trigger("click")}})),h.AjaxLoadMore.destroyed=function(){h.disable_ajax=!0,h.paging||(h.button.delay(h.speed).fadeOut(h.speed),b.isFunction(b.fn.almDestroyed)&&b.fn.almDestroyed(h))},h.AjaxLoadMore.fadeIn=function(t,a){if(0==a)t.style.opacity=1,t.style.height="auto";else{a/=10;var e=0,o=setInterval(function(){.9<e&&(t.style.opacity=1,clearInterval(o)),t.style.opacity=e,e+=.1},a);t.style.height="auto"}},h.AjaxLoadMore.transitionEnd=function(){setTimeout(function(){h.loading=!1,h.container.removeClass("alm-loading"),h.AjaxLoadMore.triggerAddons(h),h.paging||(h.button.delay(h.speed).removeClass("loading"),h.AjaxLoadMore.resetBtnText())},h.speed)},h.setlocalizedVars=function(t,a){h.localize&&t&&a&&(h.localize[t]=a,window[h.master_id+"_vars"][t]=a)},h.AjaxLoadMore.init=function(){if("true"===h.preloaded&&1==h.destroy_after&&h.AjaxLoadMore.destroyed(),h.paging||h.previous_post||(h.disable_ajax?(h.finished=!0,h.button.addClass("done")):"true"===h.pause?(h.button.html(h.button_label),h.loading=!1):h.AjaxLoadMore.loadPosts()),h.previous_post&&(h.AjaxLoadMore.getPreviousPost(),h.loading=!1),"true"===h.preloaded&&h.seo&&!h.paging&&(setTimeout(function(){b.isFunction(b.fn.almSEO)&&h.start_page<1&&b.fn.almSEO(h,!0)},h.speed),h.resultsText&&almInitResultsText(h,"preloaded")),"true"!==h.preloaded||h.paging||(setTimeout(function(){h.preloaded_total_posts<=parseInt(h.preloaded_amount)&&h.AjaxLoadMore.triggerDone(),0==h.preloaded_total_posts&&b.isFunction(b.fn.almEmpty)&&b.fn.almEmpty(h)},h.speed),h.resultsText&&almInitResultsText(h,"preloaded")),h.paging&&h.resultsText&&almInitResultsText(h,"paging"),h.nextpage){if(b(".alm-nextpage",h.container).length)b(".alm-nextpage",h.container).length==b(".alm-nextpage",h.container).eq(0).data("total-posts")&&h.AjaxLoadMore.triggerDone();h.resultsText&&almInitResultsText(h,"nextpage")}h.window.bind("load",function(){h.is_masonry_preloaded&&(almMasonry(h.masonry_wrap,h.el,h.masonry_selector,h.masonry_columnwidth,h.masonry_animation,h.masonry_horizontalorder,h.speed,h.masonry_init,!0,!1),h.masonry_init=!1)})},h.AjaxLoadMore.init(),setTimeout(function(){h.proceed=!0},150),b.fn.almUpdateCurrentPage=function(t,a,e){e.page=t,e.nextpage&&!e.paging&&(e.page=e.page-1);var o="";e.paging_init&&"true"===e.preloaded?(o=b(".alm-reveal",e.el).html(),b(".alm-reveal",e.el).remove(),e.preloaded_amount=0,e.AjaxLoadMore.pagingPreloadedInit(o),e.paging_init=!1,e.init=!1):e.paging_init&&e.nextpage?(o=b(".alm-nextpage",e.el).html(),b(".alm-nextpage",e.el).remove(),e.AjaxLoadMore.pagingNextpageInit(o),e.paging_init=!1,e.init=!1):e.AjaxLoadMore.loadPosts()},b.fn.almGetParentContainer=function(){return h.el.closest("#ajax-load-more")},b.fn.almGetObj=function(){return h},b.fn.almTriggerClick=function(){h.button.trigger("click")},b.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}},b.fn.ajaxloadmore=function(){return this.each(function(t){new b.ajaxloadmore(b(this),t)})};var t=document.querySelectorAll(".ajax-load-more-wrap");t.length&&[].concat(_toConsumableArray(t)).forEach(function(t,a){new b.ajaxloadmore(b(t),a)})}(jQuery);var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"===("undefined"==typeof exports?"undefined":_typeof(exports))?module.exports=t(require("jquery")):t(jQuery)}(function(g){var u="almWaitForImages";g.almWaitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage","cursor"],hasImageAttributes:["srcset"]},g.expr[":"]["has-src"]=function(t){return g(t).is('img[src][src!=""]')},g.expr[":"].uncached=function(t){return!!g(t).is(":has-src")&&!t.complete},g.fn.almWaitForImages=function(){var l,p,e,d=0,c=0,_=g.Deferred();if(g.isPlainObject(arguments[0])?(e=arguments[0].waitForAll,p=arguments[0].each,l=arguments[0].finished):1===arguments.length&&"boolean"===g.type(arguments[0])?e=arguments[0]:(l=arguments[0],p=arguments[1],e=arguments[2]),l=l||g.noop,p=p||g.noop,e=!!e,!g.isFunction(l)||!g.isFunction(p))throw new TypeError("An invalid callback was supplied.");return this.each(function(){var r=g(this),s=[],t=g.almWaitForImages.hasImageProperties||[],a=g.almWaitForImages.hasImageAttributes||[],i=/url\(\s*(['"]?)(.*?)\1\s*\)/g;e?r.find("*").addBack().each(function(){var n=g(this);n.is("img:has-src")&&s.push({src:n.attr("src"),element:n[0]}),g.each(t,function(t,a){var e,o=n.css(a);if(!o)return!0;for(;e=i.exec(o);)s.push({src:e[2],element:n[0]})}),g.each(a,function(t,a){var e,o=n.attr(a);if(!o)return!0;e=o.split(","),g.each(e,function(t,a){a=g.trim(a).split(" ")[0],s.push({src:a,element:n[0]})})})}):r.find("img:has-src").each(function(){s.push({src:this.src,element:this})}),d=s.length,(c=0)===d&&(l.call(r[0]),_.resolveWith(r[0])),g.each(s,function(t,o){var a=new Image,n="load."+u+" error."+u;g(a).one(n,function t(a){var e=[c,d,"load"==a.type];if(c++,p.apply(o.element,e),_.notifyWith(o.element,e),g(this).off(n,t),c==d)return l.call(r[0]),_.resolveWith(r[0]),!1}),a.src=o.src})}),_.promise()}});
|
1 |
+
"use strict";Array.from||(Array.from=function(){var e=Object.prototype.toString,l=function(t){return"function"==typeof t||"[object Function]"===e.call(t)},n=Math.pow(2,53)-1,d=function(t){var e,a=(e=Number(t),isNaN(e)?0:0!==e&&isFinite(e)?(0<e?1:-1)*Math.floor(Math.abs(e)):e);return Math.min(Math.max(a,0),n)};return function(t){var e=Object(t);if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");var a,n=1<arguments.length?arguments[1]:void 0;if(void 0!==n){if(!l(n))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(a=arguments[2])}for(var s,o=d(e.length),r=l(this)?Object(new this(o)):new Array(o),i=0;i<o;)s=e[i],r[i]=n?void 0===a?n(s,i):n.call(a,s,i):s,i+=1;return r.length=o,r}}());var almGetParameterByName=function(t,e){e||(e=window.location.href),t=t.replace(/[\[\]]/g,"\\$&");var a=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);return a?a[2]?decodeURIComponent(a[2].replace(/\+/g," ")):"":null},almGetAjaxParams=function(t,e,a){var n={action:e,nonce:alm_localize.alm_nonce,query_type:a,id:t.id,post_id:t.post_id,slug:t.slug,canonical_url:t.canonical_url,posts_per_page:t.posts_per_page,page:t.page,offset:t.offset,post_type:t.post_type,repeater:t.repeater,seo_start_page:t.start_page};return t.theme_repeater&&(n.theme_repeater=t.theme_repeater),t.paging&&(n.paging=t.paging),t.preloaded&&(n.preloaded=t.preloaded,n.preloaded_amount=t.preloaded_amount),"true"===t.cache&&(n.cache_id=t.cache_id,n.cache_logged_in=t.cache_logged_in),t.acf_array&&(n.acf=t.acf_array),t.cta_array&&(n.cta=t.cta_array),t.comments_array&&(n.comments=t.comments_array),t.nextpage_array&&(n.nextpage=t.nextpage_array),t.single_post_array&&(n.single_post=t.single_post_array),t.users_array&&(n.users=t.users_array),t.content.attr("data-lang")&&(n.lang=t.content.attr("data-lang")),t.content.attr("data-sticky-posts")&&(n.sticky_posts=t.content.attr("data-sticky-posts")),t.content.attr("data-post-format")&&(n.post_format=t.content.attr("data-post-format")),t.content.attr("data-category")&&(n.category=t.content.attr("data-category")),t.content.attr("data-category-and")&&(n.category__and=t.content.attr("data-category-and")),t.content.attr("data-category-not-in")&&(n.category__not_in=t.content.attr("data-category-not-in")),t.content.attr("data-tag")&&(n.tag=t.content.attr("data-tag")),t.content.attr("data-tag-and")&&(n.tag__and=t.content.attr("data-tag-and")),t.content.attr("data-tag-not-in")&&(n.tag__not_in=t.content.attr("data-tag-not-in")),t.content.attr("data-taxonomy")&&(n.taxonomy=t.content.attr("data-taxonomy")),t.content.attr("data-taxonomy-terms")&&(n.taxonomy_terms=t.content.attr("data-taxonomy-terms")),t.content.attr("data-taxonomy-operator")&&(n.taxonomy_operator=t.content.attr("data-taxonomy-operator")),t.content.attr("data-taxonomy-relation")&&(n.taxonomy_relation=t.content.attr("data-taxonomy-relation")),t.content.attr("data-meta-key")&&(n.meta_key=t.content.attr("data-meta-key")),t.content.attr("data-meta-value")&&(n.meta_value=t.content.attr("data-meta-value")),t.content.attr("data-meta-compare")&&(n.meta_compare=t.content.attr("data-meta-compare")),t.content.attr("data-meta-relation")&&(n.meta_relation=t.content.attr("data-meta-relation")),t.content.attr("data-meta-type")&&(n.meta_type=t.content.attr("data-meta-type")),t.content.attr("data-author")&&(n.author=t.content.attr("data-author")),t.content.attr("data-year")&&(n.year=t.content.attr("data-year")),t.content.attr("data-month")&&(n.month=t.content.attr("data-month")),t.content.attr("data-day")&&(n.day=t.content.attr("data-day")),t.content.attr("data-order")&&(n.order=t.content.attr("data-order")),t.content.attr("data-orderby")&&(n.orderby=t.content.attr("data-orderby")),t.content.attr("data-post-status")&&(n.post_status=t.content.attr("data-post-status")),t.content.attr("data-post-in")&&(n.post__in=t.content.attr("data-post-in")),t.content.attr("data-post-not-in")&&(n.post__not_in=t.content.attr("data-post-not-in")),t.content.attr("data-exclude")&&(n.exclude=t.content.attr("data-exclude")),t.content.attr("data-search")&&(n.search=t.content.attr("data-search")),t.content.attr("data-s")&&(n.search=t.content.attr("data-s")),t.content.attr("data-custom-args")&&(n.custom_args=t.content.attr("data-custom-args")),n},almGetRestParams=function(t){return{id:t.id,post_id:t.post_id,posts_per_page:t.posts_per_page,page:t.page,offset:t.offset,slug:t.slug,canonical_url:t.canonical_url,post_type:t.post_type,post_format:t.content.attr("data-post-format"),category:t.content.attr("data-category"),category__not_in:t.content.attr("data-category-not-in"),tag:t.content.attr("data-tag"),tag__not_in:t.content.attr("data-tag-not-in"),taxonomy:t.content.attr("data-taxonomy"),taxonomy_terms:t.content.attr("data-taxonomy-terms"),taxonomy_operator:t.content.attr("data-taxonomy-operator"),taxonomy_relation:t.content.attr("data-taxonomy-relation"),meta_key:t.content.attr("data-meta-key"),meta_value:t.content.attr("data-meta-value"),meta_compare:t.content.attr("data-meta-compare"),meta_relation:t.content.attr("data-meta-relation"),meta_type:t.content.attr("data-meta-type"),author:t.content.attr("data-author"),year:t.content.attr("data-year"),month:t.content.attr("data-month"),day:t.content.attr("data-day"),post_status:t.content.attr("data-post-status"),order:t.content.attr("data-order"),orderby:t.content.attr("data-orderby"),post__in:t.content.attr("data-post-in"),post__not_in:t.content.attr("data-post-not-in"),search:t.content.attr("data-search"),custom_args:t.content.attr("data-custom-args"),lang:t.lang,preloaded:t.preloaded,preloaded_amount:t.preloaded_amount,seo_start_page:t.start_page}};function _toConsumableArray(t){if(Array.isArray(t)){for(var e=0,a=Array(t.length);e<t.length;e++)a[e]=t[e];return a}return Array.from(t)}var alm_is_filtering=!1;!function(o){o.fn.almFilter=function(a,n,s){s.target?o(".ajax-load-more-wrap[data-id='"+s.target+"']").each(function(t){var e=o(this);o.fn.almFilterTransition(a,n,s,e)}):o(".ajax-load-more-wrap").each(function(t){var e=o(this);o.fn.almFilterTransition(a,n,s,e)})},o.fn.almFilterTransition=function(t,e,a,n){"slide"===t?n.slideUp(e,function(){s(e,a,n)}):"fade"===t||"masonry"===t?n.fadeOut(e,function(){s(e,a,n)}):s(e,a,n)};var s=function(t,e,a){var n=a.get(0),s=n.querySelectorAll(".alm-listing");[].concat(_toConsumableArray(s)).forEach(function(t){t.innerHTML=""});var o=n.querySelector(".alm-load-more-btn");o&&o.classList.remove("done"),r(t,e,a)},r=function(t,e,a){o.each(e,function(t,e){t=t.replace(/\W+/g,"-").replace(/([a-z\d])([A-Z])/g,"$1-$2"),o(".alm-listing",a).attr("data-"+t,e)}),a.fadeIn(t),alm_is_filtering=!0,e.target?o(".ajax-load-more-wrap[data-id="+e.target+"]").ajaxloadmore():o(".ajax-load-more-wrap").ajaxloadmore()}}(jQuery);var almMasonry=function t(n,e,s,o,a,r,i,l,d,p){var c=(i+100)/1e3+"s",g="scale(0.5)",_="scale(1)";"zoom-out"===a&&(g="translateY(-20px) scale(1.25)",_="translateY(0) scale(1)"),"slide-up"===a&&(g="translateY(50px)",_="translateY(0)"),"slide-down"===a&&(g="translateY(-50px)",_="translateY(0)"),"none"===a&&(_=g="translateY(0)"),o?isNaN(o)||(o=parseInt(o)):o=s,r="true"===r,p?(n.masonry("destroy"),n[0].parentNode.style.opacity=0,n.append(e),t(n,e,s,o,a,r,i,!0,!0,!1)):l&&d?n.imagesLoaded(function(){var e={itemSelector:s,transitionDuration:c,columnWidth:o,horizontalOrder:r,hiddenStyle:{transform:g,opacity:0},visibleStyle:{transform:_,opacity:1}},a=window.alm_masonry_vars;a&&Object.keys(a).forEach(function(t){e[t]=a[t]}),n.masonry(e),almMasonryFadeIn(n[0].parentNode,i)}):e.imagesLoaded(function(){n.append(e).masonry("appended",e)})},almMasonryFadeIn=function(t,e){e/=10;var a=parseInt(t.style.opacity),n=setInterval(function(){.9<a&&(t.style.opacity=1,clearInterval(n)),t.style.opacity=a,a+=.1},e)},almResultsText=function(t){if(!t.resultsText)return!1;var e="standard";e=t.nextpage&&t.resultsText?"nextpage":t.paging?"paging":"true"===t.preloaded?"preloaded":"standard",almGetResultsText(t,e)},almRenderResultsText=function(t,e,a){var n=alm_localize.display_results;n=(n=n.replace("{num}",e)).replace("{total}",a),t.innerHTML=n},almGetResultsText=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText)return!1;var a=0,n=0;switch(e){case"nextpage":a=t.page+1+parseInt(t.nextpage_startpage),n=parseInt(t.totalposts)+parseInt(t.nextpage_startpage),almRenderResultsText(t.resultsText,a,n);break;case"preloaded":console.log(t),a=parseInt(t.posts)+parseInt(t.preloaded_amount),n=parseInt(t.totalposts)+parseInt(t.preloaded_amount),almRenderResultsText(t.resultsText,a,n);break;case"paging":var s=parseInt(t.page)*parseInt(t.posts_per_page)+1;a=s+" - "+(parseInt(s)-1+parseInt(t.posts)),n=parseInt(t.totalposts)+parseInt(t.preloaded_amount),almRenderResultsText(t.resultsText,a,n);break;default:a=t.posts,n=parseInt(t.totalposts),almRenderResultsText(t.resultsText,a,n)}},almInitResultsText=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText)return!1;var a=0,n=0,s="";switch(e){case"nextpage":a=t.page+parseInt(t.nextpage_startpage),(n=t.localize.total_posts)&&almRenderResultsText(t.resultsText,a,n);break;case"preloaded":a=parseInt(t.posts)+parseInt(t.preloaded_amount),(n=t.localize.total_posts)&&almRenderResultsText(t.resultsText,a,n);break;case"paging":var o=parseInt(t.page)*parseInt(t.posts_per_page)+1;a=o+" - "+(parseInt(o)-1+parseInt(t.posts_per_page)),(s=t.container.get(0).querySelector(".alm-preloaded"))&&almRenderResultsText(t.resultsText,a,s.dataset.totalPosts);break;default:console.log("nothing")}};function _toConsumableArray(t){if(Array.isArray(t)){for(var e=0,a=Array(t.length);e<t.length;e++)a[e]=t[e];return a}return Array.from(t)}!function(b){var a=function(h,t){"true"===alm_localize.scrolltop&&window.scrollTo(0,0);var v=this;v.AjaxLoadMore={},v.window=window,v.timer="",v.page=0,v.posts=0,v.totalposts=0,v.proceed=!1,v.disable_ajax=!1,v.init=!0,v.loading=!0,v.finished=!1,v.el=b(h),v.container=b(h),v.master_id=h.id,h.classList.add("alm-"+t),h.setAttribute("data-alm-id",t),v.master_id=v.master_id.replace(/-/g,"_"),v.localize=window[v.master_id+"_vars"];var e=h;if(v.listing=e.querySelector(".alm-listing")||e.querySelector(".alm-comments"),v.content=b(e.querySelector(".alm-ajax")),v.content_preloaded=b(e.querySelector(".alm-preloaded")),v.canonical_url=h.dataset.canonicalUrl,v.nested=h.dataset.nested,v.is_search=h.dataset.search,v.slug=h.dataset.slug,v.post_id=h.dataset.postId,v.id=h.dataset.id?h.dataset.id:"",v.repeater=v.listing.dataset.repeater,v.theme_repeater=v.listing.dataset.themeRepeater,v.post_type=v.listing.dataset.postType?v.listing.dataset.postType.split(","):"post",v.sticky_posts=v.listing.dataset.stickyPosts,v.btnWrap=b("> .alm-btn-wrap",v.container),v.btnWrap.get(0).style.visibility="visible",v.button_label=v.listing.dataset.buttonLabel,v.button_loading_label=v.listing.dataset.buttonLoadingLabel,v.scroll_distance=v.listing.dataset.scrollDistance,v.scroll_distance=v.scroll_distance?parseInt(v.scroll_distance):100,v.scroll_container=v.listing.dataset.scrollContainer,v.max_pages=v.listing.dataset.maxPages,v.max_pages=v.max_pages?parseInt(v.max_pages):0,v.pause_override=v.listing.dataset.pauseOverride,v.pause=v.listing.dataset.pause,v.transition=v.listing.dataset.transition,v.transition_container=v.listing.dataset.transitionContainer,v.tcc=v.listing.dataset.transitionContainerClasses,v.speed=250,v.images_loaded=v.listing.dataset.imagesLoaded,v.destroy_after=v.listing.dataset.destroyAfter,v.orginal_posts_per_page=v.listing.dataset.postsPerPage,v.posts_per_page=v.listing.dataset.postsPerPage,v.offset=v.listing.dataset.offset,v.cache=v.listing.dataset.cache,v.cache_id=v.listing.dataset.cacheId,v.cache_path=v.listing.dataset.cachePath,v.cache_logged_in=v.listing.dataset.cacheLoggedIn,v.cta=v.listing.dataset.cta,v.cta_position=v.listing.dataset.ctaPosition,v.cta_repeater=v.listing.dataset.ctaRepeater,v.cta_theme_repeater=v.listing.dataset.ctaThemeRepeater,v.acf=v.listing.dataset.acf,v.acf_field_type=v.listing.dataset.acfFieldType,v.acf_field_name=v.listing.dataset.acfFieldName,v.acf_post_id=v.listing.dataset.acfPostId,v.nextpage=v.listing.dataset.nextpage,v.nextpage_urls=v.listing.dataset.nextpageUrls,v.nextpage_scroll=v.listing.dataset.nextpageScroll,v.nextpage_pageviews=v.listing.dataset.nextpagePageviews,v.nextpage_post_id=v.listing.dataset.nextpagePostId,v.nextpage_startpage=v.listing.dataset.nextpageStartpage,v.single_post=v.listing.dataset.singlePost,v.single_post_id=v.listing.dataset.singlePostId,v.single_post_order=v.listing.dataset.singlePostOrder,v.single_post_init_id=v.listing.dataset.singlePostId,v.single_post_taxonomy=v.listing.dataset.singlePostTaxonomy,v.single_post_excluded_terms=v.listing.dataset.singlePostExcludedTerms,v.comments=v.listing.dataset.comments,"true"===v.comments&&(v.content=b(".alm-comments",v.container)),v.comments_post_id=v.listing.dataset.comments_post_id,v.comments_per_page=v.listing.dataset.comments_per_page,v.comments_type=v.listing.dataset.comments_type,v.comments_style=v.listing.dataset.comments_style,v.comments_template=v.listing.dataset.comments_template,v.comments_callback=v.listing.dataset.comments_callback,v.filters=v.listing.dataset.filters,v.restapi=v.listing.dataset.restapi,v.restapi_base_url=v.listing.dataset.restapiBaseUrl,v.restapi_namespace=v.listing.dataset.restapiNamespace,v.restapi_endpoint=v.listing.dataset.restapiEndpoint,v.restapi_template_id=v.listing.dataset.restapiTemplateId,v.restapi_debug=v.listing.dataset.restapiDebug,v.seo=v.listing.dataset.seo,v.preloaded=v.listing.dataset.preloaded,v.preloaded_amount=v.listing.dataset.preloadedAmount,v.is_preloaded="true"===v.listing.dataset.isPreloaded,v.paging=v.listing.dataset.paging,v.users="true"===v.listing.dataset.users,v.users&&(v.orginal_posts_per_page=v.listing.dataset.usersPerPage,v.posts_per_page=v.listing.dataset.usersPerPage),"true"===v.filters){v.filters=!0,v.filters_analtyics=v.listing.dataset.filtersAnaltyics,v.filters_debug=v.listing.dataset.filtersDebug,v.filters_startpage=0;var a=almGetParameterByName("pg");null!==a&&(v.filters_startpage=parseInt(a),v.page=v.filters_startpage),v.isPaged=!1,0<v.filters_startpage&&(v.isPaged=!0,v.page=v.filters_startpage-1)}else v.filters=!1;if("true"===v.restapi?(v.restapi=!0,void 0===v.restapi_debug&&(v.restapi_debug=!1),""===v.restapi_template_id&&(v.restapi=!1)):v.restapi=!1,"true"===v.paging?(v.paging=!0,v.paging_controls=!!v.listing.dataset.pagingControls,v.paging_show_at_most=v.listing.dataset.pagingShowAtMost,v.paging_classes=v.listing.dataset.pagingClasses,v.paging_init=!0,v.paging_show_at_most=void 0===v.paging_show_at_most?7:v.paging_show_at_most,v.pause="true"===v.preloaded||v.pause):v.paging=!1,void 0===v.cache&&(v.cache=!1),void 0===v.cache_logged_in&&(v.cache_logged_in=!1),void 0===v.comments_per_page&&(v.comments_per_page="5"),"true"===v.preloaded?(v.preloaded_amount=void 0===v.preloaded_amount?v.posts_per_page:v.preloaded_amount,v.localize&&v.localize.total_posts&&parseInt(v.localize.total_posts)<=parseInt(v.preloaded_amount)&&(v.preloaded_total_posts=v.localize.total_posts,v.disable_ajax=!0)):v.preloaded="false",void 0===v.seo&&(v.seo=!1),"true"===v.seo&&(v.seo=!0),void 0===v.is_search&&(v.is_search=!1),v.search_value="true"===v.is_search?v.slug:"",v.permalink=v.listing.dataset.seoPermalink,v.pageview=v.listing.dataset.seoPageview,v.start_page=v.listing.dataset.seoStartPage,v.seo_trailing_slash="false"===v.listing.dataset.seoTrailingSlash?"":"/",v.seo_leading_slash="true"===v.listing.dataset.seoLeadingSlash?"/":"",v.start_page?(v.seo_scroll=v.listing.dataset.seoScroll,v.seo_scroll_speed=v.listing.dataset.seoScrollSpeed,v.seo_scrolltop=v.listing.dataset.seoScrolltop,v.seo_controls=v.listing.dataset.seoControls,v.isPaged=!1,1<v.start_page&&(v.isPaged=!0,v.posts_per_page=v.start_page*v.posts_per_page),v.paging&&(v.posts_per_page=v.orginal_posts_per_page)):v.start_page=1,"true"===v.nextpage?(v.nextpage=!0,v.posts_per_page=1):v.nextpage=!1,void 0===v.nextpage_urls&&(v.nextpage_urls="true"),void 0===v.nextpage_scroll&&(v.nextpage_scroll="250:30"),void 0===v.nextpage_pageviews&&(v.nextpage_pageviews="true"),void 0===v.nextpage_post_id&&(v.nextpage=!1,v.nextpage_post_id=null),void 0===v.nextpage_startpage&&(v.nextpage_startpage=1),1<v.nextpage_startpage&&(v.isPaged=!0),v.acf="true"===v.acf,void 0!==v.acf_field_type&&void 0!==v.acf_field_name&&void 0!==v.acf_post_id||(v.acf=!1),"true"===v.single_post?(v.single_post=!0,v.single_post_permalink="",v.single_post_title="",v.single_post_slug=""):v.single_post=!1,void 0===v.single_post_id&&(v.single_post_id="",v.single_post_init_id=""),v.single_post_order=void 0===v.single_post_order?"previous":v.single_post_order,v.single_post_taxonomy=void 0===v.single_post_taxonomy?"":v.single_post_taxonomy,v.single_post_excluded_terms=void 0===v.single_post_excluded_terms?"":v.single_post_excluded_terms,v.single_post_title_template=v.listing.dataset.singlePostTitleTemplate,v.siteTitle=v.listing.dataset.singlePostSiteTitle,v.siteTagline=v.listing.dataset.singlePostSiteTagline,v.single_post_pageview=v.listing.dataset.singlePostPageview,v.single_post_scroll=v.listing.dataset.singlePostScroll,v.single_post_scroll_speed=v.listing.dataset.singlePostScrollSpeed,v.single_post_scroll_top=v.listing.dataset.singlePostScrolltop,v.single_post_controls=v.listing.dataset.singlePostControls,v.offset=void 0===v.offset?0:v.offset,(void 0===v.pause||v.seo&&1<v.start_page)&&(v.pause=!1),"true"===v.preloaded&&v.seo&&0<v.start_page&&(v.pause=!1),"true"===v.preloaded&&v.paging&&(v.pause=!0),void 0===v.repeater&&(v.repeater="default"),v.theme_repeater=void 0!==v.theme_repeater&&v.theme_repeater,v.max_pages=void 0===v.max_pages||0===v.max_pages?1e4:v.max_pages,v.scroll_distance=void 0===v.scroll_distance?150:v.scroll_distance,v.scroll_container=void 0===v.scroll_container?"":v.scroll_container,v.transition=void 0===v.transition?"fade":v.transition,v.tcc=void 0===v.tcc?"":v.tcc,v.is_masonry_preloaded=!1,"masonry"===v.transition&&(v.masonry_init=!0,v.masonry_selector=v.listing.dataset.masonrySelector,v.masonry_columnwidth=v.listing.dataset.masonryColumnwidth,v.masonry_animation=v.listing.dataset.masonryAnimation,v.masonry_animation=void 0===v.masonry_animation?"standard":v.masonry_animation,v.masonry_horizontalorder=v.listing.dataset.masonryHorizontalorder,v.masonry_horizontalorder=void 0===v.masonry_horizontalorder?"true":v.masonry_horizontalorder,v.masonry_wrap=v.content,v.transition_container=!1,v.is_masonry_preloaded="true"===v.preloaded||v.is_masonry_preloaded),void 0===v.listing.dataset.scroll?v.scroll=!0:"false"===v.listing.dataset.scroll?v.scroll=!1:v.scroll=!0,v.transition_container=void 0===v.transition_container||"true"===v.transition_container,v.images_loaded=void 0===v.images_loaded?"false":v.images_loaded,v.button_label=void 0===v.button_label?"Older Posts":v.button_label,v.button_loading_label=void 0!==v.button_loading_label&&v.button_loading_label,v.paging)v.content.parent().addClass("loading");else{var n=e.childNodes;if(n){var s=Array.prototype.slice.call(n).filter(function(t){return t.classList.contains("alm-btn-wrap")});v.button=s?s[0].querySelector(".alm-load-more-btn"):e.querySelector(".alm-btn-wrap .alm-load-more-btn")}else v.button=e.querySelector(".alm-btn-wrap .alm-load-more-btn")}if(v.resultsText=document.querySelector(".alm-results-text"),v.resultsText?v.resultsText.innerHTML=alm_localize.display_results:v.resultsText=!1,v.AjaxLoadMore.loadPosts=function(){if(!v.disable_ajax)if(v.paging||(v.button.classList.add("loading"),!1!==v.button_loading_label&&(v.button.innerHTML=v.button_loading_label)),v.container.addClass("alm-loading"),v.loading=!0,"true"!==v.cache||v.cache_logged_in)v.AjaxLoadMore.ajax("standard");else{var t;if(v.init&&v.seo&&v.isPaged){t=v.cache_path+v.cache_id+"/page-1-"+v.start_page+".html"}else if(v.nextpage){var e;v.paging?e=parseInt(v.page)+1:(e=parseInt(v.page)+2,v.isPaged&&(e=parseInt(v.page)+parseInt(v.nextpage_startpage)+1)),t=v.cache_path+v.cache_id+"/page-"+e+".html"}else t=v.single_post?v.cache_path+v.cache_id+"/"+v.single_post_id+".html":v.cache_path+v.cache_id+"/page-"+(v.page+1)+".html";b.get(t,function(t){v.AjaxLoadMore.success(t,!0)}).fail(function(){v.AjaxLoadMore.ajax("standard")})}},v.AjaxLoadMore.ajax=function(e){var t="alm_query_posts";if(v.acf_array="",v.acf&&("relationship"!==v.acf_field_type&&(t="alm_acf_query"),v.acf_array={acf:"true",post_id:v.acf_post_id,field_type:v.acf_field_type,field_name:v.acf_field_name}),v.nextpage_array="",v.nextpage&&(t="alm_nextpage_query",v.nextpage_array={nextpage:"true",urls:v.nextpage_urls,scroll:v.nextpage_scroll,pageviews:v.nextpage_pageviews,post_id:v.nextpage_post_id,startpage:v.nextpage_startpage}),v.single_post_array="",v.single_post&&(v.single_post_array={single_post:"true",id:v.single_post_id,slug:v.single_post_slug}),v.comments_array="","true"===v.comments&&(t="alm_comments_query",v.posts_per_page=v.comments_per_page,v.comments_array={comments:"true",post_id:v.comments_post_id,per_page:v.comments_per_page,type:v.comments_type,style:v.comments_style,template:v.comments_template,callback:v.comments_callback}),v.users_array="",v.users&&(t="alm_users_query",v.users_array={users:"true",role:v.listing.dataset.usersRole,include:v.listing.dataset.usersInclude,exclude:v.listing.dataset.usersExclude,per_page:v.posts_per_page,order:v.listing.dataset.usersOrder,orderby:v.listing.dataset.usersOrderby}),v.cta_array="","true"===v.cta&&(v.cta_array={cta:"true",cta_position:v.cta_position,cta_repeater:v.cta_repeater,cta_theme_repeater:v.cta_theme_repeater}),v.restapi){var i=wp.template(v.restapi_template_id),a=v.restapi_base_url+"/"+v.restapi_namespace+"/"+v.restapi_endpoint,n=almGetRestParams(v);b.ajax({type:"GET",url:a,data:n,dataType:"JSON",beforeSend:function(){1==v.page||v.paging||v.button.classList.add("loading")},success:function(t){var a="",n=t.html,e=t.meta,s=e.postcount,o=e.totalposts;b.each(n,function(t){var e=n[t];"true"===v.restapi_debug&&console.log(e),a+=i(e)});var r={html:a,meta:{postcount:s,totalposts:o}};v.AjaxLoadMore.success(r,!1)}})}else{var s=almGetAjaxParams(v,t,e);b.ajax({type:"GET",url:alm_localize.ajaxurl,dataType:"JSON",data:s,beforeSend:function(){1==v.page||v.paging||v.button.classList.add("loading")},success:function(t){"standard"===e?v.AjaxLoadMore.success(t,!1):"totalpages"===e&&v.paging&&v.nextpage?b.isFunction(b.fn.almBuildPagination)&&b.fn.almBuildPagination(t,v):"totalposts"===e&&v.paging&&b.isFunction(b.fn.almBuildPagination)&&b.fn.almBuildPagination(t,v)},error:function(t,e,a){v.AjaxLoadMore.error(t,e,a)}})}},v.paging&&(v.nextpage?v.AjaxLoadMore.ajax("totalpages"):v.AjaxLoadMore.ajax("totalposts")),v.AjaxLoadMore.success=function(t,e){v.single_post&&v.AjaxLoadMore.getPreviousPost();var a,n,s,o='style="opacity: 0; height: 0;"';if(e?a=t:(a=t.html,n=t.meta,v.posts=v.paging?n.postcount:v.posts+n.postcount,s=n.postcount,v.totalposts=n.totalposts,"true"===v.preloaded&&(v.totalposts=v.totalposts-v.preloaded_amount)),v.setlocalizedVars("viewing",v.posts),v.setlocalizedVars("total_posts",v.totalposts),almResultsText(v),v.data=b(a),s=e?v.data.length:s,v.init&&(n&&n.totalposts&&v.el.attr("data-total-posts",n.totalposts),v.paging?0<s&&(v.el=b('<div class="alm-reveal" '+o+"/>"),v.el.append('<div class="alm-paging-content'+v.tcc+'"></div><div class="alm-paging-loading"></div>'),b(".alm-paging-content",v.el).append(v.data),v.content.append(v.el),v.AjaxLoadMore.fadeIn(v.el.get(0),v.speed),v.content.parent().removeClass("loading"),v.AjaxLoadMore.resetBtnText(),setTimeout(function(){b(".alm-paging-content",v.el).fadeIn(v.speed,"alm_easeInOutQuad",function(){var t=parseInt(v.content.css("padding-top")),e=parseInt(v.content.css("padding-bottom"));v.content.css("height",v.el.height()+t+e+"px"),b.isFunction(b.fn.almFadePageControls)&&b.fn.almFadePageControls(v.btnWrap)})},v.speed)):v.button.innerHTML=v.button_label,0===s&&(v.paging&&b.isFunction(b.fn.almPagingEmpty)&&b.fn.almPagingEmpty(v),b.isFunction(b.fn.almEmpty)&&b.fn.almEmpty(v)),v.isPaged&&(v.posts_per_page=v.users?v.listing.dataset.usersPerPage:v.listing.dataset.postsPerPage,v.page=v.start_page?v.start_page-1:v.page,v.filters&&v.filters_startpage&&(v.page=v.filters_startpage-1,v.posts_per_page=v.listing.dataset.postsPerPage))),0<s){if(v.paging)v.init?(v.container.removeClass("alm-loading"),v.AjaxLoadMore.triggerAddons(v)):b(".alm-paging-content",v.el).html("").append(v.data).almWaitForImages().done(function(){b(".alm-paging-loading",v.el).fadeOut(v.speed),b.isFunction(b.fn.almOnPagingComplete)&&setTimeout(function(){b.fn.almOnPagingComplete(v)},v.speed),v.container.removeClass("alm-loading"),v.AjaxLoadMore.triggerAddons(v)});else{if(v.single_post)v.el=b('<div class="alm-reveal alm-single-post post-'+v.single_post_id+'" '+o+' data-id="'+v.single_post_id+'" data-title="'+v.single_post_title+'" data-url="'+v.single_post_permalink+'" data-page="'+v.page+'"/>'),v.el.append(v.data);else if(v.transition_container){var r=void 0,i=window.location.search;if(v.init&&1<v.start_page){var l=[],d=[],p=parseInt(v.posts_per_page);Math.ceil(s/p);v.el=v.content,"true"===v.cta&&(p+=1,s=Math.ceil(s/p)+s);for(var c=0;c<s;c+=p)l.push(v.data.slice(c,p+c));for(var g=0;g<l.length;g++){var _="true"===v.preloaded?1:0,m=void 0;if(0<g||"true"===v.preloaded)r=g+1+_,m="default"===v.permalink?b('<div class="alm-reveal alm-seo'+v.tcc+'" data-url="'+v.canonical_url+v.search_value+"&paged="+r+'" data-page="'+r+'" />'):b('<div class="alm-reveal alm-seo'+v.tcc+'" data-url="'+v.canonical_url+v.seo_leading_slash+"page/"+r+v.seo_trailing_slash+v.search_value+'" data-page="'+r+'" />');else{var u=v.is_preloaded?" alm-preloaded":"";m=b('<div class="alm-reveal alm-seo'+u+v.tcc+'" data-url="'+v.canonical_url+v.search_value+'" data-page="1" />')}d.push(m.append(l[g]))}for(var f=0;f<d.length;f++)v.el.append(d[f]);v.el.get(0).style.opacity=0,v.el.get(0).style.height=0}else{if(v.seo&&0<v.page||"true"===v.preloaded){var y="true"===v.preloaded?1:0;r=v.page+1+y,v.seo?"default"===v.permalink?v.el=b('<div class="alm-reveal alm-seo'+v.tcc+'" '+o+' data-url="'+v.canonical_url+v.search_value+"&paged="+r+'" data-page="'+r+'" />'):v.el=b('<div class="alm-reveal alm-seo'+v.tcc+'" '+o+' data-url="'+v.canonical_url+v.seo_leading_slash+"page/"+r+v.seo_trailing_slash+v.search_value+'" data-page="'+r+'" />'):v.filters?v.el=b('<div class="alm-reveal alm-filters'+v.tcc+'" '+o+' data-url="'+v.canonical_url+i+'" data-page="'+r+'" />'):v.el=b('<div class="alm-reveal'+v.tcc+'" '+o+" />")}else v.filters?v.el=b('<div class="alm-reveal alm-filters'+v.tcc+'" '+o+' data-url="'+v.canonical_url+i+'" data-page="'+(v.page+1)+'" />'):v.seo?v.el=b('<div class="alm-reveal alm-seo'+v.tcc+'" '+o+' data-url="'+v.canonical_url+v.search_value+'" data-page="1" />'):v.el=b('<div class="alm-reveal'+v.tcc+'" '+o+" />");v.el.append(v.data)}}else v.el=v.data;("masonry"!==v.transition||v.init&&!v.is_masonry_preloaded)&&v.content.append(v.el),"masonry"===v.transition?(almMasonry(v.masonry_wrap,v.el,v.masonry_selector,v.masonry_columnwidth,v.masonry_animation,v.masonry_horizontalorder,v.speed,v.masonry_init,v.init,alm_is_filtering),v.masonry_init=!1,v.AjaxLoadMore.transitionEnd()):"none"===v.transition?(v.AjaxLoadMore.fadeIn(v.el.get(0),0),v.AjaxLoadMore.transitionEnd()):"true"===v.images_loaded?v.el.almWaitForImages().done(function(){v.transition_container&&v.AjaxLoadMore.fadeIn(v.el.get(0),v.speed),v.AjaxLoadMore.transitionEnd()}):(v.transition_container&&v.AjaxLoadMore.fadeIn(v.el.get(0),v.speed),v.AjaxLoadMore.transitionEnd())}b.isFunction(b.fn.almComplete)&&("true"===v.images_loaded?v.el.almWaitForImages().done(function(){b.fn.almComplete(v)}):b.fn.almComplete(v)),v.cache?s<v.posts_per_page&&v.AjaxLoadMore.triggerDone():v.posts>=v.totalposts&&!v.single_post&&v.AjaxLoadMore.triggerDone()}else v.paging||(setTimeout(function(){v.button.classList.remove("loading"),v.button.classList.add("done")},v.speed),v.AjaxLoadMore.resetBtnText()),v.AjaxLoadMore.triggerDone();if(b.isFunction(b.fn.almFilterComplete)&&b.fn.almFilterComplete(),"function"==typeof almFiltersAddonComplete&&almFiltersAddonComplete(h),void 0!==v.destroy_after&&""!==v.destroy_after){var x=v.page+1;"true"===v.preloaded&&x++,x==v.destroy_after&&v.AjaxLoadMore.destroyed()}alm_is_filtering=v.init=!1},v.AjaxLoadMore.pagingPreloadedInit=function(t){t=null==t?"":t,v.el=b('<div class="alm-reveal'+v.tcc+'"/>'),v.el.append('<div class="alm-paging-content">'+t+'</div><div class="alm-paging-loading"></div>'),v.content.append(v.el),v.content.parent().removeClass("loading"),v.AjaxLoadMore.resetBtnText();var e=parseInt(v.content.css("padding-top")),a=parseInt(v.content.css("padding-bottom"));v.content.css("height",v.el.height()+e+a+"px"),""===t&&(b.isFunction(b.fn.almPagingEmpty)&&b.fn.almPagingEmpty(v),b.isFunction(b.fn.almEmpty)&&b.fn.almEmpty(v)),setTimeout(function(){b.isFunction(b.fn.almFadePageControls)&&b.fn.almFadePageControls(v.btnWrap)},v.speed)},v.AjaxLoadMore.pagingNextpageInit=function(t){v.el=b('<div class="alm-reveal alm-nextpage"/>'),v.el.append('<div class="alm-paging-content">'+t+'</div><div class="alm-paging-loading"></div>'),v.el.appendTo(v.content),v.content.parent().removeClass("loading"),v.AjaxLoadMore.resetBtnText();var e=parseInt(v.content.css("padding-top")),a=parseInt(v.content.css("padding-bottom"));v.content.css("height",v.el.height()+e+a+"px"),b.isFunction(b.fn.almSetNextPageVars)&&b.fn.almSetNextPageVars(v),setTimeout(function(){b.isFunction(b.fn.almFadePageControls)&&b.fn.almFadePageControls(v.btnWrap),b.isFunction(b.fn.almOnWindowResize)&&b.fn.almOnWindowResize(v)},v.speed)},v.single_post_id&&(v.fetchingPreviousPost=!1,v.single_post_init=!0),v.AjaxLoadMore.getPreviousPost=function(){v.fetchingPreviousPost=!0;var t={action:"alm_query_single_post",init:v.single_post_init,id:v.single_post_id,initial_id:v.single_post_init_id,order:v.single_post_order,taxonomy:v.single_post_taxonomy,excluded_terms:v.single_post_excluded_terms,post_type:v.post_type};b.ajax({type:"GET",dataType:"JSON",url:alm_localize.ajaxurl,data:t,success:function(t){t.has_previous_post?(v.listing.setAttribute("data-single-post-id",t.prev_id),v.single_post_id=t.prev_id,v.single_post_permalink=t.prev_permalink,v.single_post_title=t.prev_title,v.single_post_slug=t.prev_slug):t.has_previous_post||v.AjaxLoadMore.triggerDone(),"function"==typeof window.almSetSinglePost&&window.almSetSinglePost(v,t.current_id,t.permalink,t.title),v.fetchingPreviousPost=!1,v.single_post_init=!1},error:function(t,e,a){v.AjaxLoadMore.error(t,e,a),v.fetchingPreviousPost=!1}})},v.AjaxLoadMore.triggerAddons=function(t){b.isFunction(b.fn.almSEO)&&t.seo&&b.fn.almSEO(t,!1),b.isFunction(b.fn.almSetNextPage)&&b.fn.almSetNextPage(t)},v.AjaxLoadMore.triggerDone=function(){v.loading=!1,v.finished=!0,v.paging||v.button.classList.add("done"),b.isFunction(b.fn.almDone)&&setTimeout(function(){b.fn.almDone(v)},v.speed+10)},v.AjaxLoadMore.resetBtnText=function(){!1===v.button_loading_label||v.paging||(v.button.innerHTML=v.button_label)},v.AjaxLoadMore.error=function(t,e,a){v.loading=!1,v.paging||(v.button.classList.remove("loading"),v.AjaxLoadMore.resetBtnText()),console.log(a)},v.AjaxLoadMore.click=function(t){var e=t.target||t.currentTarget;"true"===v.pause&&(v.pause=!1,v.pause_override=!1,v.AjaxLoadMore.loadPosts()),v.loading||v.finished||e.classList.contains("done")||(v.loading=!0,v.page++,v.AjaxLoadMore.loadPosts()),v.filters&&"function"==typeof almFiltersPaged&&almFiltersPaged(v)},v.paging||v.fetchingPreviousPost||(v.button.onclick=v.AjaxLoadMore.click),v.paging){var o=void 0;v.window.onresize=function(){clearTimeout(o),o=setTimeout(function(t){b.isFunction(b.fn.almOnWindowResize)&&b.fn.almOnWindowResize(v)},v.speed)}}v.AjaxLoadMore.isVisible=function(){return v.visible=!1,v.el.is(":visible")&&(v.visible=!0),v.visible},v.AjaxLoadMore.scroll=function(){v.timer&&clearTimeout(v.timer),v.timer=setTimeout(function(){if(v.AjaxLoadMore.isVisible()&&!v.fetchingPreviousPost){var t=v.button.getBoundingClientRect(),e=Math.round(t.top-v.window.innerHeight)+v.scroll_distance<=0;if(v.window!==window)e=v.window.querySelector(".ajax-load-more-wrap").offsetHeight<=Math.round(v.window.scrollTop+v.window.offsetHeight-v.scroll_distance);!v.loading&&!v.finished&&e&&v.page<v.max_pages-1&&v.proceed&&"true"===v.pause&&"true"===v.pause_override?v.button.click():!v.loading&&!v.finished&&e&&v.page<v.max_pages-1&&v.proceed&&"true"!==v.pause&&v.button.click()}},25)},v.scroll&&!v.paging&&(""!==v.scroll_container&&(v.window=document.querySelector(v.scroll_container)?document.querySelector(v.scroll_container):v.window),v.window.addEventListener("scroll",v.AjaxLoadMore.scroll),v.window.addEventListener("touchstart",v.AjaxLoadMore.scroll)),v.AjaxLoadMore.destroyed=function(){v.disable_ajax=!0,v.paging||(setTimeout(function(){v.button.fadeOut(v.speed)},v.speed),b.isFunction(b.fn.almDestroyed)&&b.fn.almDestroyed(v))},v.AjaxLoadMore.fadeIn=function(t,e){if(0==e)t.style.opacity=1,t.style.height="auto";else{e/=10;var a=0,n=setInterval(function(){.9<a&&(t.style.opacity=1,clearInterval(n)),t.style.opacity=a,a+=.1},e);t.style.height="auto"}},v.AjaxLoadMore.transitionEnd=function(){setTimeout(function(){v.loading=!1,v.container.removeClass("alm-loading"),v.AjaxLoadMore.triggerAddons(v),v.paging||(setTimeout(function(){v.button.classList.remove("loading")},v.speed),v.AjaxLoadMore.resetBtnText())},v.speed)},v.setlocalizedVars=function(t,e){v.localize&&t&&e&&(v.localize[t]=e,window[v.master_id+"_vars"][t]=e)},v.AjaxLoadMore.init=function(){if("true"===v.preloaded&&1==v.destroy_after&&v.AjaxLoadMore.destroyed(),v.paging||v.single_post||(v.disable_ajax?(v.finished=!0,v.button.classList.add("done")):"true"===v.pause?(v.button.innerHTML=v.button_label,v.loading=!1):v.AjaxLoadMore.loadPosts()),v.single_post&&(v.AjaxLoadMore.getPreviousPost(),v.loading=!1),"true"===v.preloaded&&v.seo&&!v.paging&&(setTimeout(function(){b.isFunction(b.fn.almSEO)&&v.start_page<1&&b.fn.almSEO(v,!0)},v.speed),v.resultsText&&almInitResultsText(v,"preloaded")),"true"!==v.preloaded||v.paging||(setTimeout(function(){v.preloaded_total_posts<=parseInt(v.preloaded_amount)&&v.AjaxLoadMore.triggerDone(),0==v.preloaded_total_posts&&b.isFunction(b.fn.almEmpty)&&b.fn.almEmpty(v)},v.speed),v.resultsText&&almInitResultsText(v,"preloaded")),v.paging&&v.resultsText&&almInitResultsText(v,"paging"),v.nextpage){if(b(".alm-nextpage",v.container).length)b(".alm-nextpage",v.container).length==b(".alm-nextpage",v.container).eq(0).data("total-posts")&&v.AjaxLoadMore.triggerDone();v.resultsText&&almInitResultsText(v,"nextpage")}v.window.addEventListener("load",function(){v.is_masonry_preloaded&&(almMasonry(v.masonry_wrap,v.el,v.masonry_selector,v.masonry_columnwidth,v.masonry_animation,v.masonry_horizontalorder,v.speed,v.masonry_init,!0,!1),v.masonry_init=!1)})},v.AjaxLoadMore.init(),setTimeout(function(){v.proceed=!0},150),b.fn.almUpdateCurrentPage=function(t,e,a){a.page=t,a.page=a.nextpage&&!a.paging?a.page-1:a.page;var n="";a.paging_init&&"true"===a.preloaded?(n=b(".alm-reveal",a.el).html(),b(".alm-reveal",a.el).remove(),a.preloaded_amount=0,a.AjaxLoadMore.pagingPreloadedInit(n),a.paging_init=!1,a.init=!1):a.paging_init&&a.nextpage?(n=b(".alm-nextpage",a.el).html(),b(".alm-nextpage",a.el).remove(),a.AjaxLoadMore.pagingNextpageInit(n),a.paging_init=!1,a.init=!1):a.AjaxLoadMore.loadPosts()},b.fn.almGetParentContainer=function(){return v.el.closest("#ajax-load-more")},b.fn.almGetObj=function(){return v},b.fn.almTriggerClick=function(){v.button.click()},b.easing.alm_easeInOutQuad=function(t,e,a,n,s){return(e/=s/2)<1?n/2*e*e+a:-n/2*(--e*(e-2)-1)+a}};b.fn.ajaxloadmore=function(){return this.each(function(t){new a(this,t)})};var t=document.querySelectorAll(".ajax-load-more-wrap");t.length&&[].concat(_toConsumableArray(t)).forEach(function(t,e){new a(t,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(_){var m="almWaitForImages";_.almWaitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage","cursor"],hasImageAttributes:["srcset"]},_.expr[":"]["has-src"]=function(t){return _(t).is('img[src][src!=""]')},_.expr[":"].uncached=function(t){return!!_(t).is(":has-src")&&!t.complete},_.fn.almWaitForImages=function(){var l,d,a,p=0,c=0,g=_.Deferred();if(_.isPlainObject(arguments[0])?(a=arguments[0].waitForAll,d=arguments[0].each,l=arguments[0].finished):a=1===arguments.length&&"boolean"===_.type(arguments[0])?arguments[0]:(l=arguments[0],d=arguments[1],arguments[2]),l=l||_.noop,d=d||_.noop,a=!!a,!_.isFunction(l)||!_.isFunction(d))throw new TypeError("An invalid callback was supplied.");return this.each(function(){var o=_(this),r=[],t=_.almWaitForImages.hasImageProperties||[],e=_.almWaitForImages.hasImageAttributes||[],i=/url\(\s*(['"]?)(.*?)\1\s*\)/g;a?o.find("*").addBack().each(function(){var s=_(this);s.is("img:has-src")&&r.push({src:s.attr("src"),element:s[0]}),_.each(t,function(t,e){var a,n=s.css(e);if(!n)return!0;for(;a=i.exec(n);)r.push({src:a[2],element:s[0]})}),_.each(e,function(t,e){var a,n=s.attr(e);if(!n)return!0;a=n.split(","),_.each(a,function(t,e){e=_.trim(e).split(" ")[0],r.push({src:e,element:s[0]})})})}):o.find("img:has-src").each(function(){r.push({src:this.src,element:this})}),p=r.length,(c=0)===p&&(l.call(o[0]),g.resolveWith(o[0])),_.each(r,function(t,n){var e=new Image,s="load."+m+" error."+m;_(e).one(s,function t(e){var a=[c,p,"load"==e.type];if(c++,d.apply(n.element,a),g.notifyWith(n.element,a),_(this).off(s,t),c==p)return l.call(o[0]),g.resolveWith(o[0]),!1}),e.src=n.src})}),g.promise()}});
|
core/functions.php
CHANGED
@@ -11,11 +11,11 @@
|
|
11 |
function alm_get_pro_addon(){
|
12 |
$path_prefix = 'ajax-load-more-';
|
13 |
$url_prefix = 'https://connekthq.com/plugins/ajax-load-more/pro/';
|
14 |
-
|
15 |
$addons = array(
|
16 |
array(
|
17 |
'name' => __('Ajax Load More Pro', 'ajax-load-more'),
|
18 |
-
'intro' => __('Get instant access to all premium add-ons in a single installation.', 'ajax-load-more'),
|
19 |
'desc' => __('The Pro bundle is installed as a single product with one license key and contains immediate access all premium add-ons.', 'ajax-load-more'),
|
20 |
'action' => 'alm_pro_installed',
|
21 |
'key' => 'alm_pro_license_key',
|
@@ -44,7 +44,7 @@ function alm_get_pro_addon(){
|
|
44 |
function alm_get_addons(){
|
45 |
$path_prefix = 'ajax-load-more-';
|
46 |
$url_prefix = 'https://connekthq.com/plugins/ajax-load-more/add-ons/';
|
47 |
-
|
48 |
$addons = array(
|
49 |
array(
|
50 |
'name' => __('Cache', 'ajax-load-more'),
|
@@ -181,21 +181,6 @@ function alm_get_addons(){
|
|
181 |
'path' => $path_prefix .'preloaded',
|
182 |
'slug' => 'preloaded'
|
183 |
),
|
184 |
-
array(
|
185 |
-
'name' => __('Previous Post', 'ajax-load-more'),
|
186 |
-
'intro' => __('An add-on to enable infinite scrolling of single posts.', 'ajax-load-more'),
|
187 |
-
'desc' => __('The Previous Post add-on will load single posts as you scroll and update the browser URL to the current post.', 'ajax-load-more'),
|
188 |
-
'action' => 'alm_prev_post_installed',
|
189 |
-
'key' => 'alm_prev_post_license_key',
|
190 |
-
'status' => 'alm_prev_post_license_status',
|
191 |
-
'settings_field' => 'alm_prev_post_license',
|
192 |
-
'img' => 'img/add-ons/prev-post-add-on.jpg',
|
193 |
-
'url' => $url_prefix .'previous-post/',
|
194 |
-
'item_id' => ALM_PREV_POST_ITEM_NAME,
|
195 |
-
'version' => 'ALM_PREV_POST_VERSION',
|
196 |
-
'path' => $path_prefix .'previous-post',
|
197 |
-
'slug' => 'previous-post'
|
198 |
-
),
|
199 |
array(
|
200 |
'name' => __('Search Engine Optimization', 'ajax-load-more'),
|
201 |
'intro' => __('Generate unique paging URLs with every Ajax Load More query.', 'ajax-load-more'),
|
@@ -211,6 +196,21 @@ function alm_get_addons(){
|
|
211 |
'path' => $path_prefix .'seo',
|
212 |
'slug' => 'seo'
|
213 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
214 |
array(
|
215 |
'name' => __('Theme Repeaters', 'ajax-load-more'),
|
216 |
'intro' => __('Manage repeater templates within your current theme directory.', 'ajax-load-more'),
|
@@ -329,12 +329,12 @@ function alm_css_disabled($setting) {
|
|
329 |
*/
|
330 |
|
331 |
function alm_do_inline_css($setting) {
|
332 |
-
|
333 |
// Exit if this is a REST API request
|
334 |
if(defined('REST_REQUEST')){
|
335 |
if(REST_REQUEST) return false;
|
336 |
}
|
337 |
-
|
338 |
$options = get_option( 'alm_settings' );
|
339 |
$inline = false;
|
340 |
if(!isset($options[$setting]) || $options[$setting] === '1'){
|
@@ -353,22 +353,22 @@ function alm_do_inline_css($setting) {
|
|
353 |
* @return html
|
354 |
* @since 3.7
|
355 |
*/
|
356 |
-
function alm_loop($repeater, $type, $theme_repeater, $alm_found_posts = '', $alm_page = '', $alm_item = '', $alm_current = ''){
|
357 |
-
ob_start();
|
358 |
-
|
359 |
// Theme Repeater
|
360 |
-
if($theme_repeater !== 'null' && has_filter('alm_get_theme_repeater')){
|
361 |
-
do_action('alm_get_theme_repeater', $theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current); // Returns an include file
|
362 |
-
}
|
363 |
// Standard Repeater Templates
|
364 |
-
else {
|
365 |
$file = alm_get_current_repeater($repeater, $type);
|
366 |
-
include($file);
|
367 |
-
}
|
368 |
-
|
369 |
$return = ob_get_contents();
|
370 |
-
ob_end_clean();
|
371 |
-
return $return;
|
372 |
}
|
373 |
|
374 |
|
@@ -399,32 +399,32 @@ function alm_get_current_repeater($repeater, $type) {
|
|
399 |
}
|
400 |
|
401 |
}
|
402 |
-
|
403 |
// Custom Repeaters v2
|
404 |
elseif( $type == 'template_' && has_action('alm_unlimited_installed' )){
|
405 |
-
|
406 |
-
|
407 |
// Custom Repeaters 2.5+
|
408 |
if(ALM_UNLIMITED_VERSION >= '2.5'){
|
409 |
-
|
410 |
// Get path to repeater (alm_templates)
|
411 |
$base_dir = AjaxLoadMore::alm_get_repeater_path();
|
412 |
$include = $base_dir .'/'. $template .'.php';
|
413 |
-
|
414 |
} else {
|
415 |
-
|
416 |
global $wpdb;
|
417 |
$blog_id = $wpdb->blogid;
|
418 |
-
|
419 |
$include = ($blog_id > 1) ? ALM_UNLIMITED_PATH. 'repeaters/'. $blog_id .'/'. $template .'.php' : ALM_UNLIMITED_PATH. 'repeaters/'. $template .'.php';
|
420 |
-
|
421 |
}
|
422 |
|
423 |
if(!file_exists($include)){ //confirm file exists
|
424 |
$include = alm_get_default_repeater();
|
425 |
}
|
426 |
}
|
427 |
-
|
428 |
// Default repeater
|
429 |
else{
|
430 |
$include = alm_get_default_repeater();
|
@@ -831,11 +831,11 @@ function alm_get_canonical_url(){
|
|
831 |
* @since 2.13.0
|
832 |
*/
|
833 |
function alm_get_page_slug($post){
|
834 |
-
|
835 |
// Exit if admin
|
836 |
if(is_admin()) return false;
|
837 |
|
838 |
-
if(!is_archive()){
|
839 |
// If not archive, set the post slug
|
840 |
if(is_front_page() || is_home()){
|
841 |
$slug = 'home';
|
@@ -907,8 +907,8 @@ function alm_get_page_slug($post){
|
|
907 |
* @return $post_id;
|
908 |
* @since 3.0.1
|
909 |
*/
|
910 |
-
function alm_get_page_id($post){
|
911 |
-
|
912 |
// Exit if admin
|
913 |
if(is_admin()) return false;
|
914 |
|
@@ -1024,8 +1024,8 @@ function alm_convert_dashes_to_underscore($string = ''){
|
|
1024 |
* @return array
|
1025 |
* @since 3.7
|
1026 |
*/
|
1027 |
-
function alm_sticky_post__not_in($ids = '', $not_in = ''){
|
1028 |
-
|
1029 |
if(!empty($not_in)){
|
1030 |
$new_array = array();
|
1031 |
foreach($ids as $id){
|
@@ -1034,8 +1034,8 @@ function alm_sticky_post__not_in($ids = '', $not_in = ''){
|
|
1034 |
}
|
1035 |
}
|
1036 |
$ids = $new_array;
|
1037 |
-
|
1038 |
-
}
|
1039 |
-
|
1040 |
-
return $ids;
|
1041 |
}
|
11 |
function alm_get_pro_addon(){
|
12 |
$path_prefix = 'ajax-load-more-';
|
13 |
$url_prefix = 'https://connekthq.com/plugins/ajax-load-more/pro/';
|
14 |
+
|
15 |
$addons = array(
|
16 |
array(
|
17 |
'name' => __('Ajax Load More Pro', 'ajax-load-more'),
|
18 |
+
'intro' => __('Get instant access to all premium add-ons in a single installation.', 'ajax-load-more'),
|
19 |
'desc' => __('The Pro bundle is installed as a single product with one license key and contains immediate access all premium add-ons.', 'ajax-load-more'),
|
20 |
'action' => 'alm_pro_installed',
|
21 |
'key' => 'alm_pro_license_key',
|
44 |
function alm_get_addons(){
|
45 |
$path_prefix = 'ajax-load-more-';
|
46 |
$url_prefix = 'https://connekthq.com/plugins/ajax-load-more/add-ons/';
|
47 |
+
|
48 |
$addons = array(
|
49 |
array(
|
50 |
'name' => __('Cache', 'ajax-load-more'),
|
181 |
'path' => $path_prefix .'preloaded',
|
182 |
'slug' => 'preloaded'
|
183 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
184 |
array(
|
185 |
'name' => __('Search Engine Optimization', 'ajax-load-more'),
|
186 |
'intro' => __('Generate unique paging URLs with every Ajax Load More query.', 'ajax-load-more'),
|
196 |
'path' => $path_prefix .'seo',
|
197 |
'slug' => 'seo'
|
198 |
),
|
199 |
+
array(
|
200 |
+
'name' => __('Single Posts', 'ajax-load-more'),
|
201 |
+
'intro' => __('An add-on to enable infinite scrolling of single posts.', 'ajax-load-more'),
|
202 |
+
'desc' => __('The Single Posts add-on will load full posts as you scroll and update the browser URL to the current post.', 'ajax-load-more'),
|
203 |
+
'action' => 'alm_prev_post_installed',
|
204 |
+
'key' => 'alm_prev_post_license_key',
|
205 |
+
'status' => 'alm_prev_post_license_status',
|
206 |
+
'settings_field' => 'alm_prev_post_license',
|
207 |
+
'img' => 'img/add-ons/prev-post-add-on.jpg',
|
208 |
+
'url' => $url_prefix .'single-post/',
|
209 |
+
'item_id' => ALM_PREV_POST_ITEM_NAME,
|
210 |
+
'version' => 'ALM_PREV_POST_VERSION',
|
211 |
+
'path' => $path_prefix .'previous-post',
|
212 |
+
'slug' => 'previous-post'
|
213 |
+
),
|
214 |
array(
|
215 |
'name' => __('Theme Repeaters', 'ajax-load-more'),
|
216 |
'intro' => __('Manage repeater templates within your current theme directory.', 'ajax-load-more'),
|
329 |
*/
|
330 |
|
331 |
function alm_do_inline_css($setting) {
|
332 |
+
|
333 |
// Exit if this is a REST API request
|
334 |
if(defined('REST_REQUEST')){
|
335 |
if(REST_REQUEST) return false;
|
336 |
}
|
337 |
+
|
338 |
$options = get_option( 'alm_settings' );
|
339 |
$inline = false;
|
340 |
if(!isset($options[$setting]) || $options[$setting] === '1'){
|
353 |
* @return html
|
354 |
* @since 3.7
|
355 |
*/
|
356 |
+
function alm_loop($repeater, $type, $theme_repeater, $alm_found_posts = '', $alm_page = '', $alm_item = '', $alm_current = ''){
|
357 |
+
ob_start();
|
358 |
+
|
359 |
// Theme Repeater
|
360 |
+
if($theme_repeater !== 'null' && has_filter('alm_get_theme_repeater')){
|
361 |
+
do_action('alm_get_theme_repeater', $theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current); // Returns an include file
|
362 |
+
}
|
363 |
// Standard Repeater Templates
|
364 |
+
else {
|
365 |
$file = alm_get_current_repeater($repeater, $type);
|
366 |
+
include($file);
|
367 |
+
}
|
368 |
+
|
369 |
$return = ob_get_contents();
|
370 |
+
ob_end_clean();
|
371 |
+
return $return;
|
372 |
}
|
373 |
|
374 |
|
399 |
}
|
400 |
|
401 |
}
|
402 |
+
|
403 |
// Custom Repeaters v2
|
404 |
elseif( $type == 'template_' && has_action('alm_unlimited_installed' )){
|
405 |
+
|
406 |
+
|
407 |
// Custom Repeaters 2.5+
|
408 |
if(ALM_UNLIMITED_VERSION >= '2.5'){
|
409 |
+
|
410 |
// Get path to repeater (alm_templates)
|
411 |
$base_dir = AjaxLoadMore::alm_get_repeater_path();
|
412 |
$include = $base_dir .'/'. $template .'.php';
|
413 |
+
|
414 |
} else {
|
415 |
+
|
416 |
global $wpdb;
|
417 |
$blog_id = $wpdb->blogid;
|
418 |
+
|
419 |
$include = ($blog_id > 1) ? ALM_UNLIMITED_PATH. 'repeaters/'. $blog_id .'/'. $template .'.php' : ALM_UNLIMITED_PATH. 'repeaters/'. $template .'.php';
|
420 |
+
|
421 |
}
|
422 |
|
423 |
if(!file_exists($include)){ //confirm file exists
|
424 |
$include = alm_get_default_repeater();
|
425 |
}
|
426 |
}
|
427 |
+
|
428 |
// Default repeater
|
429 |
else{
|
430 |
$include = alm_get_default_repeater();
|
831 |
* @since 2.13.0
|
832 |
*/
|
833 |
function alm_get_page_slug($post){
|
834 |
+
|
835 |
// Exit if admin
|
836 |
if(is_admin()) return false;
|
837 |
|
838 |
+
if(!is_archive()){
|
839 |
// If not archive, set the post slug
|
840 |
if(is_front_page() || is_home()){
|
841 |
$slug = 'home';
|
907 |
* @return $post_id;
|
908 |
* @since 3.0.1
|
909 |
*/
|
910 |
+
function alm_get_page_id($post){
|
911 |
+
|
912 |
// Exit if admin
|
913 |
if(is_admin()) return false;
|
914 |
|
1024 |
* @return array
|
1025 |
* @since 3.7
|
1026 |
*/
|
1027 |
+
function alm_sticky_post__not_in($ids = '', $not_in = ''){
|
1028 |
+
|
1029 |
if(!empty($not_in)){
|
1030 |
$new_array = array();
|
1031 |
foreach($ids as $id){
|
1034 |
}
|
1035 |
}
|
1036 |
$ids = $new_array;
|
1037 |
+
|
1038 |
+
}
|
1039 |
+
|
1040 |
+
return $ids;
|
1041 |
}
|
core/src/js/ajax-load-more.js
CHANGED
@@ -3,146 +3,152 @@
|
|
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 |
*
|
10 |
* Author: Darren Cooney
|
11 |
* Twitter: @KaptonKaos, @ajaxloadmore, @connekthq
|
12 |
*/
|
13 |
-
|
14 |
-
(function($){
|
15 |
|
16 |
"use strict";
|
17 |
-
|
18 |
-
|
19 |
|
20 |
// Prevent loading of unnessasry posts - move user to top of page
|
21 |
if(alm_localize.scrolltop === 'true'){
|
22 |
-
|
23 |
-
}
|
24 |
|
25 |
//Set ALM Variables
|
26 |
let alm = this;
|
27 |
alm.AjaxLoadMore = {};
|
28 |
-
alm.window =
|
|
|
29 |
alm.page = 0;
|
30 |
alm.posts = 0;
|
31 |
alm.totalposts = 0;
|
32 |
alm.proceed = false;
|
33 |
alm.disable_ajax = false;
|
34 |
alm.init = true;
|
35 |
-
alm.loading = true;
|
36 |
alm.finished = false;
|
37 |
-
alm.
|
38 |
-
alm.
|
39 |
-
alm.master_id =
|
|
|
|
|
40 |
|
41 |
-
// Get localized <script
|
42 |
alm.master_id = alm.master_id.replace(/-/g, '_'); // Convert dashes to underscores for the var name
|
43 |
alm.localize = window[alm.master_id +'_vars']; // Get localize vars
|
44 |
|
45 |
-
// Main ALM
|
46 |
-
|
47 |
-
alm.container.
|
48 |
-
|
49 |
-
let container = alm.container.get(0); // Get DOM element
|
50 |
alm.content = $(container.querySelector('.alm-ajax')); // Get first `.alm-ajax` element as $ obj
|
51 |
alm.content_preloaded = $(container.querySelector('.alm-preloaded')); // Get first `.alm-preloaded` element as $ obj
|
52 |
|
53 |
-
|
54 |
-
alm.
|
55 |
-
alm.
|
56 |
-
alm.
|
57 |
-
alm.
|
58 |
-
alm.
|
59 |
-
|
60 |
-
|
61 |
-
|
|
|
|
|
|
|
|
|
|
|
62 |
|
63 |
-
alm.post_type = alm.content.attr('data-post-type');
|
64 |
-
alm.post_type = alm.post_type.split(",");
|
65 |
-
alm.sticky_posts = alm.content.attr('data-sticky-posts');
|
66 |
alm.btnWrap = $('> .alm-btn-wrap', alm.container);
|
67 |
alm.btnWrap.get(0).style.visibility = 'visible';
|
68 |
-
alm.button_label = alm.
|
69 |
-
alm.button_loading_label = alm.
|
70 |
-
|
71 |
-
alm.scroll_distance =
|
72 |
-
alm.
|
73 |
-
alm.
|
|
|
74 |
alm.max_pages = (alm.max_pages) ? parseInt(alm.max_pages) : 0;
|
75 |
-
alm.pause_override = alm.
|
76 |
-
alm.pause = alm.
|
77 |
-
alm.transition = alm.
|
78 |
-
alm.transition_container = alm.
|
79 |
-
alm.tcc = alm.
|
80 |
alm.speed = 250;
|
81 |
-
alm.images_loaded = alm.
|
82 |
-
alm.destroy_after = alm.
|
83 |
-
alm.orginal_posts_per_page = alm.
|
84 |
-
alm.posts_per_page = alm.
|
85 |
-
alm.offset = alm.
|
86 |
|
87 |
-
alm.cache = alm.
|
88 |
-
alm.cache_id = alm.
|
89 |
-
alm.cache_path = alm.
|
90 |
-
alm.cache_logged_in = alm.
|
91 |
-
|
92 |
-
alm.cta = alm.
|
93 |
-
alm.cta_position = alm.
|
94 |
-
alm.cta_repeater = alm.
|
95 |
-
alm.cta_theme_repeater = alm.
|
96 |
-
|
97 |
-
alm.acf = alm.
|
98 |
-
alm.acf_field_type = alm.
|
99 |
-
alm.acf_field_name = alm.
|
100 |
-
alm.acf_post_id = alm.
|
101 |
-
|
102 |
-
alm.nextpage = alm.
|
103 |
-
alm.nextpage_urls = alm.
|
104 |
-
alm.nextpage_scroll = alm.
|
105 |
-
alm.nextpage_pageviews = alm.
|
106 |
-
alm.nextpage_post_id = alm.
|
107 |
-
alm.nextpage_startpage = alm.
|
108 |
-
|
109 |
-
alm.
|
110 |
-
alm.
|
111 |
-
alm.
|
112 |
-
alm.
|
113 |
-
|
114 |
-
alm.
|
|
|
|
|
115 |
if(alm.comments === 'true'){ // if comments, adjust alm.content wrapper
|
116 |
alm.content = $('.alm-comments', alm.container);
|
117 |
}
|
118 |
-
alm.comments_post_id = alm.
|
119 |
-
alm.comments_per_page = alm.
|
120 |
-
alm.comments_type = alm.
|
121 |
-
alm.comments_style = alm.
|
122 |
-
alm.comments_template = alm.
|
123 |
-
alm.comments_callback = alm.
|
124 |
-
|
125 |
-
alm.filters = alm.
|
126 |
|
127 |
-
alm.restapi = alm.
|
128 |
-
alm.restapi_base_url = alm.
|
129 |
-
alm.restapi_namespace = alm.
|
130 |
-
alm.restapi_endpoint = alm.
|
131 |
-
alm.restapi_template_id = alm.
|
132 |
-
alm.restapi_debug = alm.
|
133 |
|
134 |
-
alm.seo = alm.
|
135 |
|
136 |
-
alm.preloaded = alm.
|
137 |
-
alm.preloaded_amount = alm.
|
138 |
-
alm.is_preloaded = (alm.
|
139 |
|
140 |
-
alm.paging = alm.
|
141 |
|
142 |
-
alm.users = (alm.
|
143 |
if(alm.users){ // Override paging params for users
|
144 |
-
alm.orginal_posts_per_page = alm.
|
145 |
-
alm.posts_per_page = alm.
|
146 |
}
|
147 |
|
148 |
|
@@ -150,12 +156,12 @@
|
|
150 |
if(alm.filters === 'true'){
|
151 |
alm.filters = true;
|
152 |
|
153 |
-
alm.filters_analtyics = alm.
|
154 |
-
alm.filters_debug = alm.
|
155 |
|
156 |
// Check for startpage param
|
157 |
/*
|
158 |
-
alm.filters_startpage = alm.
|
159 |
alm.filters_startpage = parseInt(alm.filters_startpage);
|
160 |
alm.page = alm.filters_startpage;
|
161 |
*/
|
@@ -199,9 +205,9 @@
|
|
199 |
/* Paging */
|
200 |
if(alm.paging === 'true'){
|
201 |
alm.paging = true;
|
202 |
-
alm.paging_controls = alm.
|
203 |
-
alm.paging_show_at_most = alm.
|
204 |
-
alm.paging_classes = alm.
|
205 |
alm.paging_init = true;
|
206 |
alm.paging_show_at_most = (alm.paging_show_at_most === undefined) ? 7 : alm.paging_show_at_most;
|
207 |
|
@@ -264,17 +270,17 @@
|
|
264 |
}
|
265 |
alm.search_value = (alm.is_search === 'true') ? alm.slug : ''; // Convert to value of slug for appending to seo url
|
266 |
|
267 |
-
alm.permalink = alm.
|
268 |
-
alm.pageview = alm.
|
269 |
-
alm.start_page = alm.
|
270 |
-
alm.seo_trailing_slash = (alm.
|
271 |
-
alm.seo_leading_slash = (alm.
|
272 |
|
273 |
if(alm.start_page){
|
274 |
-
alm.seo_scroll = alm.
|
275 |
-
alm.seo_scroll_speed = alm.
|
276 |
-
alm.seo_scrolltop = alm.
|
277 |
-
alm.seo_controls = alm.
|
278 |
alm.isPaged = false;
|
279 |
if (alm.start_page > 1) {
|
280 |
alm.isPaged = true; // Is this a $paged page > 1 ?
|
@@ -328,31 +334,30 @@
|
|
328 |
|
329 |
|
330 |
/* Previous Post */
|
331 |
-
if (alm.
|
332 |
-
alm.
|
333 |
-
alm.
|
334 |
-
alm.
|
335 |
-
alm.
|
336 |
}else{
|
337 |
-
alm.
|
338 |
}
|
339 |
-
if (alm.
|
340 |
-
alm.
|
|
|
341 |
}
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
alm.
|
349 |
-
alm.
|
350 |
-
alm.
|
351 |
-
alm.
|
352 |
-
alm.
|
353 |
-
alm.
|
354 |
-
alm.previous_post_scroll_top = alm.content.attr('data-previous-post-scrolltop');
|
355 |
-
alm.previous_post_controls = alm.content.attr('data-previous-post-controls');
|
356 |
/* End Previous Post */
|
357 |
|
358 |
/* Offset */
|
@@ -394,27 +399,21 @@
|
|
394 |
alm.is_masonry_preloaded = false;
|
395 |
if(alm.transition === 'masonry'){
|
396 |
alm.masonry_init = true;
|
397 |
-
alm.masonry_selector = alm.
|
398 |
-
alm.masonry_columnwidth = alm.
|
399 |
-
alm.masonry_animation = alm.
|
400 |
-
alm.
|
401 |
-
|
402 |
-
|
403 |
-
}
|
404 |
-
if (alm.masonry_horizontalorder === undefined){
|
405 |
-
alm.masonry_horizontalorder = 'true';
|
406 |
-
}
|
407 |
alm.masonry_wrap = alm.content;
|
408 |
alm.transition_container = false;
|
409 |
-
|
410 |
-
alm.is_masonry_preloaded = true;
|
411 |
-
}
|
412 |
}
|
413 |
|
414 |
/* Scroll */
|
415 |
-
if (alm.
|
416 |
alm.scroll = true;
|
417 |
-
}else if (alm.
|
418 |
alm.scroll = false;
|
419 |
}else{
|
420 |
alm.scroll = true;
|
@@ -430,14 +429,24 @@
|
|
430 |
alm.button_label = (alm.button_label === undefined) ? 'Older Posts' : alm.button_label;
|
431 |
alm.button_loading_label = (alm.button_loading_label === undefined) ? false : alm.button_loading_label;
|
432 |
|
433 |
-
|
434 |
if(alm.paging){
|
435 |
alm.content.parent().addClass('loading'); // add loading class to main container
|
436 |
}else{
|
437 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
438 |
}
|
439 |
-
|
440 |
-
|
441 |
// Render "Showing x of y results" text.
|
442 |
alm.resultsText = document.querySelector('.alm-results-text');
|
443 |
if(alm.resultsText){
|
@@ -445,7 +454,7 @@
|
|
445 |
} else {
|
446 |
alm.resultsText = false;
|
447 |
}
|
448 |
-
|
449 |
|
450 |
|
451 |
/**
|
@@ -457,9 +466,9 @@
|
|
457 |
alm.AjaxLoadMore.loadPosts = function () {
|
458 |
if(!alm.disable_ajax){ // Check for ajax blocker
|
459 |
if(!alm.paging){
|
460 |
-
alm.button.
|
461 |
if(alm.button_loading_label !== false){
|
462 |
-
alm.button.
|
463 |
}
|
464 |
}
|
465 |
alm.container.addClass('alm-loading');
|
@@ -492,9 +501,9 @@
|
|
492 |
cache_page = alm.cache_path + alm.cache_id + '/page' +'-'+ nextpage_cache_page +'.html';
|
493 |
}
|
494 |
|
495 |
-
else if(alm.
|
496 |
// Previous Post
|
497 |
-
cache_page = alm.cache_path + alm.cache_id + '/' + alm.
|
498 |
}
|
499 |
|
500 |
else {
|
@@ -560,12 +569,12 @@
|
|
560 |
}
|
561 |
|
562 |
// Previous Post Params
|
563 |
-
alm.
|
564 |
-
if(alm.
|
565 |
-
alm.
|
566 |
-
'
|
567 |
-
'id'
|
568 |
-
'slug'
|
569 |
};
|
570 |
}
|
571 |
|
@@ -591,12 +600,12 @@
|
|
591 |
action = 'alm_users_query';
|
592 |
alm.users_array = {
|
593 |
'users': 'true',
|
594 |
-
'role': alm.
|
595 |
-
'include': alm.
|
596 |
-
'exclude': alm.
|
597 |
'per_page': alm.posts_per_page,
|
598 |
-
'order': alm.
|
599 |
-
'orderby': alm.
|
600 |
};
|
601 |
}
|
602 |
|
@@ -625,7 +634,7 @@
|
|
625 |
dataType: 'JSON',
|
626 |
beforeSend: function () {
|
627 |
if (alm.page != 1 && !alm.paging) {
|
628 |
-
alm.button.
|
629 |
}
|
630 |
},
|
631 |
success: function (results) {
|
@@ -669,7 +678,7 @@
|
|
669 |
data: alm_data_params,
|
670 |
beforeSend: function () {
|
671 |
if (alm.page != 1 && !alm.paging) {
|
672 |
-
alm.button.
|
673 |
}
|
674 |
},
|
675 |
success: function (data) {
|
@@ -722,7 +731,7 @@
|
|
722 |
|
723 |
alm.AjaxLoadMore.success = function (data, is_cache) {
|
724 |
|
725 |
-
if(alm.
|
726 |
alm.AjaxLoadMore.getPreviousPost();
|
727 |
}
|
728 |
|
@@ -772,13 +781,13 @@
|
|
772 |
|
773 |
if(!alm.paging){
|
774 |
|
775 |
-
alm.button.
|
776 |
|
777 |
} else {
|
778 |
|
779 |
// Paging
|
780 |
if (total > 0) {
|
781 |
-
alm.el = $('<div class="alm-reveal
|
782 |
alm.el.append('<div class="alm-paging-content'+alm.tcc+'"></div><div class="alm-paging-loading"></div>');
|
783 |
$('.alm-paging-content', alm.el).append(alm.data);
|
784 |
alm.content.append(alm.el);
|
@@ -817,7 +826,7 @@
|
|
817 |
if(alm.isPaged){
|
818 |
|
819 |
// Reset the posts_per_page parameter
|
820 |
-
alm.posts_per_page = (alm.users) ? alm.
|
821 |
|
822 |
// SEO add-on
|
823 |
alm.page = (alm.start_page) ? alm.start_page - 1 : alm.page; // Set new page #
|
@@ -830,7 +839,7 @@
|
|
830 |
alm.page = alm.filters_startpage - 1;
|
831 |
|
832 |
// Reset filters-startpage data after the first run
|
833 |
-
alm.posts_per_page = alm.
|
834 |
}
|
835 |
}
|
836 |
}
|
@@ -844,8 +853,8 @@
|
|
844 |
|
845 |
if(!alm.paging){
|
846 |
|
847 |
-
if(alm.
|
848 |
-
alm.el = $('<div class="alm-reveal alm-
|
849 |
alm.el.append(alm.data);
|
850 |
}
|
851 |
|
@@ -1063,7 +1072,7 @@
|
|
1063 |
// ALM Done
|
1064 |
if(!alm.cache){
|
1065 |
// Not Cache & Previous Post
|
1066 |
-
if(alm.posts >= alm.totalposts && !alm.
|
1067 |
alm.AjaxLoadMore.triggerDone();
|
1068 |
}
|
1069 |
}else{ // Cache
|
@@ -1076,8 +1085,12 @@
|
|
1076 |
|
1077 |
} else { // No Results!
|
1078 |
|
1079 |
-
if(!alm.paging){
|
1080 |
-
|
|
|
|
|
|
|
|
|
1081 |
alm.AjaxLoadMore.resetBtnText();
|
1082 |
}
|
1083 |
|
@@ -1183,7 +1196,7 @@
|
|
1183 |
if ($.isFunction($.fn.almFadePageControls)){
|
1184 |
$.fn.almFadePageControls(alm.btnWrap); // Paging Add-on
|
1185 |
}
|
1186 |
-
|
1187 |
if ($.isFunction($.fn.almOnWindowResize)){
|
1188 |
$.fn.almOnWindowResize(alm); // Paging Add-on
|
1189 |
}
|
@@ -1198,17 +1211,25 @@
|
|
1198 |
* Get the previous post ID via ajax
|
1199 |
* @since 2.7.4
|
1200 |
*/
|
1201 |
-
|
|
|
|
|
|
|
|
|
1202 |
|
1203 |
-
alm.AjaxLoadMore.getPreviousPost = function () {
|
1204 |
alm.fetchingPreviousPost = true;
|
1205 |
-
|
1206 |
let data = {
|
1207 |
-
action: '
|
1208 |
-
|
1209 |
-
|
1210 |
-
|
1211 |
-
|
|
|
|
|
|
|
|
|
1212 |
|
1213 |
$.ajax({
|
1214 |
type: "GET",
|
@@ -1217,21 +1238,22 @@
|
|
1217 |
data: data,
|
1218 |
success: function (data) {
|
1219 |
if(data.has_previous_post){
|
1220 |
-
|
1221 |
-
alm.
|
1222 |
-
alm.
|
1223 |
-
alm.
|
1224 |
-
alm.
|
1225 |
|
1226 |
}else{
|
1227 |
if(!data.has_previous_post){
|
1228 |
alm.AjaxLoadMore.triggerDone();
|
1229 |
}
|
1230 |
}
|
1231 |
-
if(
|
1232 |
-
|
1233 |
}
|
1234 |
alm.fetchingPreviousPost = false;
|
|
|
1235 |
},
|
1236 |
error: function (jqXHR, textStatus, errorThrown) {
|
1237 |
alm.AjaxLoadMore.error(jqXHR, textStatus, errorThrown);
|
@@ -1268,7 +1290,7 @@
|
|
1268 |
alm.loading = false;
|
1269 |
alm.finished = true;
|
1270 |
if(!alm.paging){
|
1271 |
-
alm.button.
|
1272 |
}
|
1273 |
if ($.isFunction($.fn.almDone)) {
|
1274 |
// Delay done until after animation
|
@@ -1287,13 +1309,14 @@
|
|
1287 |
*/
|
1288 |
alm.AjaxLoadMore.resetBtnText = function(){
|
1289 |
if(alm.button_loading_label !== false && !alm.paging){ // Reset button text
|
1290 |
-
alm.button.
|
1291 |
}
|
1292 |
};
|
1293 |
|
1294 |
|
1295 |
|
1296 |
-
|
|
|
1297 |
*
|
1298 |
* Error function after failed data
|
1299 |
* @since 2.6.0
|
@@ -1302,42 +1325,50 @@
|
|
1302 |
alm.AjaxLoadMore.error = function (jqXHR, textStatus, errorThrown) {
|
1303 |
alm.loading = false;
|
1304 |
if(!alm.paging){
|
1305 |
-
alm.button.
|
1306 |
alm.AjaxLoadMore.resetBtnText();
|
1307 |
}
|
1308 |
console.log(errorThrown);
|
1309 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1310 |
|
1311 |
|
1312 |
-
|
1313 |
-
/* Button
|
1314 |
*
|
1315 |
-
* Load more button click event
|
1316 |
* @since 1.0.0
|
1317 |
*/
|
1318 |
|
1319 |
-
if(!alm.paging && !alm.fetchingPreviousPost){
|
1320 |
-
alm.button.
|
1321 |
-
alm.button.on('click', function (e) {
|
1322 |
-
e.preventDefault();
|
1323 |
-
|
1324 |
-
if (alm.pause === 'true') {
|
1325 |
-
alm.pause = false;
|
1326 |
-
alm.pause_override = false;
|
1327 |
-
alm.AjaxLoadMore.loadPosts();
|
1328 |
-
}
|
1329 |
-
if (!alm.loading && !alm.finished && !$(this).hasClass('done')) {
|
1330 |
-
alm.loading = true;
|
1331 |
-
alm.page++;
|
1332 |
-
alm.AjaxLoadMore.loadPosts();
|
1333 |
-
}
|
1334 |
-
|
1335 |
-
// Filters Paged URLs
|
1336 |
-
if(alm.filters && typeof almFiltersPaged === 'function'){
|
1337 |
-
almFiltersPaged(alm);
|
1338 |
-
}
|
1339 |
-
});
|
1340 |
}
|
|
|
1341 |
|
1342 |
|
1343 |
|
@@ -1345,26 +1376,18 @@
|
|
1345 |
*
|
1346 |
* Add resize function for Paging add-on only.
|
1347 |
* @since 2.1.2
|
|
|
1348 |
*/
|
1349 |
-
if(alm.paging){
|
1350 |
-
|
1351 |
-
|
1352 |
-
|
1353 |
-
|
1354 |
-
$.fn.almOnWindowResize
|
1355 |
-
|
1356 |
-
|
1357 |
-
|
1358 |
-
alm.window.unbind('resize');
|
1359 |
-
alm.window.bind('resize', function() {
|
1360 |
-
if(this.resizeTO){
|
1361 |
-
clearTimeout(this.resizeTO);
|
1362 |
-
}
|
1363 |
-
this.resizeTO = setTimeout(function() {
|
1364 |
-
$(this).trigger('resizeEnd');
|
1365 |
}, alm.speed);
|
1366 |
-
}
|
1367 |
-
|
1368 |
}
|
1369 |
|
1370 |
|
@@ -1385,49 +1408,58 @@
|
|
1385 |
|
1386 |
|
1387 |
|
1388 |
-
|
1389 |
-
*
|
1390 |
* Load posts as user scrolls the page
|
1391 |
* @since 1.0
|
1392 |
-
* @updated
|
1393 |
*/
|
1394 |
-
|
1395 |
-
|
1396 |
-
|
1397 |
-
|
1398 |
-
|
1399 |
-
|
1400 |
-
alm.window = $(alm.scroll_container);
|
1401 |
-
}
|
1402 |
-
}
|
1403 |
|
1404 |
-
|
1405 |
-
|
1406 |
-
|
1407 |
-
|
1408 |
-
|
1409 |
-
|
1410 |
-
|
1411 |
-
|
1412 |
-
|
1413 |
-
|
1414 |
-
|
1415 |
-
|
1416 |
-
|
1417 |
-
|
|
|
|
|
|
|
1418 |
if(!alm.loading && !alm.finished && scrollTrigger && alm.page < (alm.max_pages - 1) && alm.proceed && alm.pause === 'true' && alm.pause_override === 'true'){
|
1419 |
-
alm.button.
|
1420 |
}
|
1421 |
-
|
1422 |
-
// Standard Scroll
|
1423 |
else{
|
|
|
1424 |
if (!alm.loading && !alm.finished && scrollTrigger && alm.page < (alm.max_pages - 1) && alm.proceed && alm.pause !== 'true') {
|
1425 |
-
alm.button.
|
1426 |
}
|
1427 |
-
|
1428 |
-
|
1429 |
-
|
1430 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1431 |
}
|
1432 |
|
1433 |
|
@@ -1439,8 +1471,10 @@
|
|
1439 |
*/
|
1440 |
alm.AjaxLoadMore.destroyed = function(){
|
1441 |
alm.disable_ajax = true;
|
1442 |
-
if(!alm.paging){
|
1443 |
-
|
|
|
|
|
1444 |
if ($.isFunction($.fn.almDestroyed)) {
|
1445 |
$.fn.almDestroyed(alm);
|
1446 |
}
|
@@ -1486,7 +1520,9 @@
|
|
1486 |
alm.container.removeClass('alm-loading');
|
1487 |
alm.AjaxLoadMore.triggerAddons(alm);
|
1488 |
if(!alm.paging){
|
1489 |
-
|
|
|
|
|
1490 |
alm.AjaxLoadMore.resetBtnText();
|
1491 |
}
|
1492 |
}, alm.speed);
|
@@ -1519,13 +1555,13 @@
|
|
1519 |
alm.AjaxLoadMore.destroyed();
|
1520 |
}
|
1521 |
|
1522 |
-
if(!alm.paging && !alm.
|
1523 |
if(alm.disable_ajax){
|
1524 |
alm.finished = true;
|
1525 |
-
alm.button.
|
1526 |
}else{
|
1527 |
if (alm.pause === 'true') {
|
1528 |
-
alm.button.
|
1529 |
alm.loading = false;
|
1530 |
} else {
|
1531 |
alm.AjaxLoadMore.loadPosts();
|
@@ -1534,7 +1570,7 @@
|
|
1534 |
}
|
1535 |
|
1536 |
// Previous Post Add-on
|
1537 |
-
if(alm.
|
1538 |
alm.AjaxLoadMore.getPreviousPost(); // Set next post on load
|
1539 |
alm.loading = false;
|
1540 |
}
|
@@ -1585,41 +1621,38 @@
|
|
1585 |
|
1586 |
|
1587 |
// Next Page Add-on
|
1588 |
-
if(alm.nextpage){
|
1589 |
-
|
1590 |
-
if($('.alm-nextpage', alm.container).length){
|
1591 |
-
|
1592 |
// `.alm-nextpage` check that posts remain
|
1593 |
var alm_nextpage_pages = $('.alm-nextpage', alm.container).length,
|
1594 |
-
alm_nextpage_total = $('.alm-nextpage', alm.container).eq(0).data('total-posts');
|
1595 |
-
|
1596 |
if(alm_nextpage_pages == alm_nextpage_total){
|
1597 |
alm.AjaxLoadMore.triggerDone();
|
1598 |
}
|
1599 |
-
}
|
1600 |
-
|
1601 |
if(alm.resultsText){
|
1602 |
almInitResultsText(alm, 'nextpage');
|
1603 |
-
}
|
1604 |
-
|
1605 |
}
|
1606 |
|
1607 |
-
|
1608 |
-
// Masonry + Preloaded
|
1609 |
-
alm.window.
|
1610 |
if(alm.is_masonry_preloaded){
|
1611 |
almMasonry(alm.masonry_wrap, alm.el, alm.masonry_selector, alm.masonry_columnwidth, alm.masonry_animation, alm.masonry_horizontalorder, alm.speed, alm.masonry_init, true, false);
|
1612 |
alm.masonry_init = false;
|
1613 |
}
|
1614 |
});
|
|
|
1615 |
|
1616 |
};
|
1617 |
|
|
|
|
|
1618 |
alm.AjaxLoadMore.init();
|
1619 |
|
1620 |
|
1621 |
-
|
1622 |
-
//flag to prevent unnecessary loading of post on init. Hold for 2/10 of a second
|
1623 |
setTimeout(function () {
|
1624 |
alm.proceed = true;
|
1625 |
}, 150);
|
@@ -1632,14 +1665,13 @@
|
|
1632 |
* @since 2.7.0
|
1633 |
*/
|
1634 |
$.fn.almUpdateCurrentPage = function(current, obj, alm){
|
|
|
1635 |
alm.page = current;
|
1636 |
|
1637 |
// Next Page add-on
|
1638 |
-
|
1639 |
-
|
1640 |
-
|
1641 |
-
|
1642 |
-
var data = '';
|
1643 |
|
1644 |
/*
|
1645 |
Paging + Preloaded & Paging + Next Page
|
@@ -1711,7 +1743,7 @@
|
|
1711 |
* @return null
|
1712 |
*/
|
1713 |
$.fn.almTriggerClick = function(){
|
1714 |
-
alm.button.
|
1715 |
};
|
1716 |
|
1717 |
|
@@ -1736,7 +1768,7 @@
|
|
1736 |
*/
|
1737 |
$.fn.ajaxloadmore = function () {
|
1738 |
return this.each(function (e) {
|
1739 |
-
new
|
1740 |
});
|
1741 |
};
|
1742 |
|
@@ -1747,12 +1779,11 @@
|
|
1747 |
* @since 2.1.2
|
1748 |
*/
|
1749 |
|
1750 |
-
let
|
1751 |
-
if(
|
1752 |
-
[...
|
1753 |
-
new
|
1754 |
});
|
1755 |
}
|
1756 |
|
1757 |
-
|
1758 |
})(jQuery);
|
3 |
* http://wordpress.org/plugins/ajax-load-more/
|
4 |
* https://connekthq.com/plugins/ajax-load-more/
|
5 |
*
|
6 |
+
* Copyright 2019 Connekt Media - https://connekthq.com
|
7 |
* Free to use under the GPLv2 license.
|
8 |
+
* http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
*
|
10 |
* Author: Darren Cooney
|
11 |
* Twitter: @KaptonKaos, @ajaxloadmore, @connekthq
|
12 |
*/
|
13 |
+
|
14 |
+
(function($){
|
15 |
|
16 |
"use strict";
|
17 |
+
|
18 |
+
let ajaxloadmore = function (el, e) {
|
19 |
|
20 |
// Prevent loading of unnessasry posts - move user to top of page
|
21 |
if(alm_localize.scrolltop === 'true'){
|
22 |
+
window.scrollTo(0, 0);
|
23 |
+
}
|
24 |
|
25 |
//Set ALM Variables
|
26 |
let alm = this;
|
27 |
alm.AjaxLoadMore = {};
|
28 |
+
alm.window = window;
|
29 |
+
alm.timer = '';
|
30 |
alm.page = 0;
|
31 |
alm.posts = 0;
|
32 |
alm.totalposts = 0;
|
33 |
alm.proceed = false;
|
34 |
alm.disable_ajax = false;
|
35 |
alm.init = true;
|
36 |
+
alm.loading = true;
|
37 |
alm.finished = false;
|
38 |
+
alm.el = $(el);
|
39 |
+
alm.container = $(el);
|
40 |
+
alm.master_id = el.id; // the div#id of the instance
|
41 |
+
el.classList.add('alm-'+e); // Add unique classname
|
42 |
+
el.setAttribute('data-alm-id', e); // Add unique data id
|
43 |
|
44 |
+
// Get localized <script/> variables
|
45 |
alm.master_id = alm.master_id.replace(/-/g, '_'); // Convert dashes to underscores for the var name
|
46 |
alm.localize = window[alm.master_id +'_vars']; // Get localize vars
|
47 |
|
48 |
+
// Main ALM Containers
|
49 |
+
let container = el; // Get DOM element
|
50 |
+
alm.listing = container.querySelector('.alm-listing') || container.querySelector('.alm-comments');
|
|
|
|
|
51 |
alm.content = $(container.querySelector('.alm-ajax')); // Get first `.alm-ajax` element as $ obj
|
52 |
alm.content_preloaded = $(container.querySelector('.alm-preloaded')); // Get first `.alm-preloaded` element as $ obj
|
53 |
|
54 |
+
// Instance Params
|
55 |
+
alm.canonical_url = el.dataset.canonicalUrl;
|
56 |
+
alm.nested = el.dataset.nested;
|
57 |
+
alm.is_search = el.dataset.search;
|
58 |
+
alm.slug = el.dataset.slug;
|
59 |
+
alm.post_id = el.dataset.postId;
|
60 |
+
alm.id = (el.dataset.id) ? el.dataset.id : '';
|
61 |
+
|
62 |
+
// Shortcode Params
|
63 |
+
alm.repeater = alm.listing.dataset.repeater; // Repeaters
|
64 |
+
alm.theme_repeater = alm.listing.dataset.themeRepeater;
|
65 |
+
|
66 |
+
alm.post_type = (alm.listing.dataset.postType) ? alm.listing.dataset.postType.split(",") : 'post';
|
67 |
+
alm.sticky_posts = alm.listing.dataset.stickyPosts;
|
68 |
|
|
|
|
|
|
|
69 |
alm.btnWrap = $('> .alm-btn-wrap', alm.container);
|
70 |
alm.btnWrap.get(0).style.visibility = 'visible';
|
71 |
+
alm.button_label = alm.listing.dataset.buttonLabel;
|
72 |
+
alm.button_loading_label = alm.listing.dataset.buttonLoadingLabel;
|
73 |
+
|
74 |
+
alm.scroll_distance = alm.listing.dataset.scrollDistance;
|
75 |
+
alm.scroll_distance = (alm.scroll_distance) ? parseInt(alm.scroll_distance) : 100;
|
76 |
+
alm.scroll_container = alm.listing.dataset.scrollContainer;
|
77 |
+
alm.max_pages = alm.listing.dataset.maxPages;
|
78 |
alm.max_pages = (alm.max_pages) ? parseInt(alm.max_pages) : 0;
|
79 |
+
alm.pause_override = alm.listing.dataset.pauseOverride; // true | false
|
80 |
+
alm.pause = alm.listing.dataset.pause; // true | false
|
81 |
+
alm.transition = alm.listing.dataset.transition; // Transition
|
82 |
+
alm.transition_container = alm.listing.dataset.transitionContainer; // Transition Container
|
83 |
+
alm.tcc = alm.listing.dataset.transitionContainerClasses; // Transition Container Classes
|
84 |
alm.speed = 250;
|
85 |
+
alm.images_loaded = alm.listing.dataset.imagesLoaded;
|
86 |
+
alm.destroy_after = alm.listing.dataset.destroyAfter;
|
87 |
+
alm.orginal_posts_per_page = alm.listing.dataset.postsPerPage; // Used for paging add-on
|
88 |
+
alm.posts_per_page = alm.listing.dataset.postsPerPage;
|
89 |
+
alm.offset = alm.listing.dataset.offset;
|
90 |
|
91 |
+
alm.cache = alm.listing.dataset.cache; // Cache add-on
|
92 |
+
alm.cache_id = alm.listing.dataset.cacheId;
|
93 |
+
alm.cache_path = alm.listing.dataset.cachePath;
|
94 |
+
alm.cache_logged_in = alm.listing.dataset.cacheLoggedIn;
|
95 |
+
|
96 |
+
alm.cta = alm.listing.dataset.cta; // CTA add-on
|
97 |
+
alm.cta_position = alm.listing.dataset.ctaPosition;
|
98 |
+
alm.cta_repeater = alm.listing.dataset.ctaRepeater;
|
99 |
+
alm.cta_theme_repeater = alm.listing.dataset.ctaThemeRepeater;
|
100 |
+
|
101 |
+
alm.acf = alm.listing.dataset.acf; // ACF add-on
|
102 |
+
alm.acf_field_type = alm.listing.dataset.acfFieldType;
|
103 |
+
alm.acf_field_name = alm.listing.dataset.acfFieldName;
|
104 |
+
alm.acf_post_id = alm.listing.dataset.acfPostId;
|
105 |
+
|
106 |
+
alm.nextpage = alm.listing.dataset.nextpage; // Nextpage add-on
|
107 |
+
alm.nextpage_urls = alm.listing.dataset.nextpageUrls;
|
108 |
+
alm.nextpage_scroll = alm.listing.dataset.nextpageScroll;
|
109 |
+
alm.nextpage_pageviews = alm.listing.dataset.nextpagePageviews;
|
110 |
+
alm.nextpage_post_id = alm.listing.dataset.nextpagePostId;
|
111 |
+
alm.nextpage_startpage = alm.listing.dataset.nextpageStartpage;
|
112 |
+
|
113 |
+
alm.single_post = alm.listing.dataset.singlePost; // Previous Post add-on
|
114 |
+
alm.single_post_id = alm.listing.dataset.singlePostId;
|
115 |
+
alm.single_post_order = alm.listing.dataset.singlePostOrder;
|
116 |
+
alm.single_post_init_id = alm.listing.dataset.singlePostId;
|
117 |
+
alm.single_post_taxonomy = alm.listing.dataset.singlePostTaxonomy;
|
118 |
+
alm.single_post_excluded_terms = alm.listing.dataset.singlePostExcludedTerms;
|
119 |
+
|
120 |
+
alm.comments = alm.listing.dataset.comments; // Comments add-on
|
121 |
if(alm.comments === 'true'){ // if comments, adjust alm.content wrapper
|
122 |
alm.content = $('.alm-comments', alm.container);
|
123 |
}
|
124 |
+
alm.comments_post_id = alm.listing.dataset.comments_post_id; // current post id
|
125 |
+
alm.comments_per_page = alm.listing.dataset.comments_per_page;
|
126 |
+
alm.comments_type = alm.listing.dataset.comments_type;
|
127 |
+
alm.comments_style = alm.listing.dataset.comments_style;
|
128 |
+
alm.comments_template = alm.listing.dataset.comments_template;
|
129 |
+
alm.comments_callback = alm.listing.dataset.comments_callback;
|
130 |
+
|
131 |
+
alm.filters = alm.listing.dataset.filters;
|
132 |
|
133 |
+
alm.restapi = alm.listing.dataset.restapi;
|
134 |
+
alm.restapi_base_url = alm.listing.dataset.restapiBaseUrl;
|
135 |
+
alm.restapi_namespace = alm.listing.dataset.restapiNamespace;
|
136 |
+
alm.restapi_endpoint = alm.listing.dataset.restapiEndpoint;
|
137 |
+
alm.restapi_template_id = alm.listing.dataset.restapiTemplateId;
|
138 |
+
alm.restapi_debug = alm.listing.dataset.restapiDebug;
|
139 |
|
140 |
+
alm.seo = alm.listing.dataset.seo; // SEO add-on
|
141 |
|
142 |
+
alm.preloaded = alm.listing.dataset.preloaded; // Preloaded add-on
|
143 |
+
alm.preloaded_amount = alm.listing.dataset.preloadedAmount;
|
144 |
+
alm.is_preloaded = (alm.listing.dataset.isPreloaded === 'true') ? true : false;
|
145 |
|
146 |
+
alm.paging = alm.listing.dataset.paging; // Paging add-on
|
147 |
|
148 |
+
alm.users = (alm.listing.dataset.users === 'true') ? true : false; // Users add-on
|
149 |
if(alm.users){ // Override paging params for users
|
150 |
+
alm.orginal_posts_per_page = alm.listing.dataset.usersPerPage;
|
151 |
+
alm.posts_per_page = alm.listing.dataset.usersPerPage;
|
152 |
}
|
153 |
|
154 |
|
156 |
if(alm.filters === 'true'){
|
157 |
alm.filters = true;
|
158 |
|
159 |
+
alm.filters_analtyics = alm.listing.dataset.filtersAnaltyics;
|
160 |
+
alm.filters_debug = alm.listing.dataset.filtersDebug;
|
161 |
|
162 |
// Check for startpage param
|
163 |
/*
|
164 |
+
alm.filters_startpage = alm.listing.dataset.filtersStartpage;
|
165 |
alm.filters_startpage = parseInt(alm.filters_startpage);
|
166 |
alm.page = alm.filters_startpage;
|
167 |
*/
|
205 |
/* Paging */
|
206 |
if(alm.paging === 'true'){
|
207 |
alm.paging = true;
|
208 |
+
alm.paging_controls = (alm.listing.dataset.pagingControls) ? true : false;
|
209 |
+
alm.paging_show_at_most = alm.listing.dataset.pagingShowAtMost;
|
210 |
+
alm.paging_classes = alm.listing.dataset.pagingClasses;
|
211 |
alm.paging_init = true;
|
212 |
alm.paging_show_at_most = (alm.paging_show_at_most === undefined) ? 7 : alm.paging_show_at_most;
|
213 |
|
270 |
}
|
271 |
alm.search_value = (alm.is_search === 'true') ? alm.slug : ''; // Convert to value of slug for appending to seo url
|
272 |
|
273 |
+
alm.permalink = alm.listing.dataset.seoPermalink;
|
274 |
+
alm.pageview = alm.listing.dataset.seoPageview;
|
275 |
+
alm.start_page = alm.listing.dataset.seoStartPage;
|
276 |
+
alm.seo_trailing_slash = (alm.listing.dataset.seoTrailingSlash === 'false') ? '' : '/';
|
277 |
+
alm.seo_leading_slash = (alm.listing.dataset.seoLeadingSlash === 'true') ? '/' : '';
|
278 |
|
279 |
if(alm.start_page){
|
280 |
+
alm.seo_scroll = alm.listing.dataset.seoScroll;
|
281 |
+
alm.seo_scroll_speed = alm.listing.dataset.seoScrollSpeed;
|
282 |
+
alm.seo_scrolltop = alm.listing.dataset.seoScrolltop;
|
283 |
+
alm.seo_controls = alm.listing.dataset.seoControls;
|
284 |
alm.isPaged = false;
|
285 |
if (alm.start_page > 1) {
|
286 |
alm.isPaged = true; // Is this a $paged page > 1 ?
|
334 |
|
335 |
|
336 |
/* Previous Post */
|
337 |
+
if (alm.single_post === 'true'){
|
338 |
+
alm.single_post = true;
|
339 |
+
alm.single_post_permalink = '';
|
340 |
+
alm.single_post_title = '';
|
341 |
+
alm.single_post_slug = '';
|
342 |
}else{
|
343 |
+
alm.single_post = false;
|
344 |
}
|
345 |
+
if (alm.single_post_id === undefined){
|
346 |
+
alm.single_post_id = '';
|
347 |
+
alm.single_post_init_id = '';
|
348 |
}
|
349 |
+
alm.single_post_order = (alm.single_post_order === undefined) ? 'previous' : alm.single_post_order;
|
350 |
+
alm.single_post_taxonomy = (alm.single_post_taxonomy === undefined) ? '' : alm.single_post_taxonomy;
|
351 |
+
alm.single_post_excluded_terms = (alm.single_post_excluded_terms === undefined) ? '' : alm.single_post_excluded_terms;
|
352 |
+
|
353 |
+
alm.single_post_title_template = alm.listing.dataset.singlePostTitleTemplate;
|
354 |
+
alm.siteTitle = alm.listing.dataset.singlePostSiteTitle;
|
355 |
+
alm.siteTagline = alm.listing.dataset.singlePostSiteTagline;
|
356 |
+
alm.single_post_pageview = alm.listing.dataset.singlePostPageview;
|
357 |
+
alm.single_post_scroll = alm.listing.dataset.singlePostScroll;
|
358 |
+
alm.single_post_scroll_speed = alm.listing.dataset.singlePostScrollSpeed;
|
359 |
+
alm.single_post_scroll_top = alm.listing.dataset.singlePostScrolltop;
|
360 |
+
alm.single_post_controls = alm.listing.dataset.singlePostControls;
|
|
|
|
|
361 |
/* End Previous Post */
|
362 |
|
363 |
/* Offset */
|
399 |
alm.is_masonry_preloaded = false;
|
400 |
if(alm.transition === 'masonry'){
|
401 |
alm.masonry_init = true;
|
402 |
+
alm.masonry_selector = alm.listing.dataset.masonrySelector;
|
403 |
+
alm.masonry_columnwidth = alm.listing.dataset.masonryColumnwidth;
|
404 |
+
alm.masonry_animation = alm.listing.dataset.masonryAnimation;
|
405 |
+
alm.masonry_animation = (alm.masonry_animation === undefined) ? 'standard' : alm.masonry_animation;
|
406 |
+
alm.masonry_horizontalorder = alm.listing.dataset.masonryHorizontalorder;
|
407 |
+
alm.masonry_horizontalorder = (alm.masonry_horizontalorder === undefined) ? 'true' : alm.masonry_horizontalorder;
|
|
|
|
|
|
|
|
|
408 |
alm.masonry_wrap = alm.content;
|
409 |
alm.transition_container = false;
|
410 |
+
alm.is_masonry_preloaded = (alm.preloaded === 'true') ? true : alm.is_masonry_preloaded;
|
|
|
|
|
411 |
}
|
412 |
|
413 |
/* Scroll */
|
414 |
+
if (alm.listing.dataset.scroll === undefined){
|
415 |
alm.scroll = true;
|
416 |
+
}else if (alm.listing.dataset.scroll === 'false'){
|
417 |
alm.scroll = false;
|
418 |
}else{
|
419 |
alm.scroll = true;
|
429 |
alm.button_label = (alm.button_label === undefined) ? 'Older Posts' : alm.button_label;
|
430 |
alm.button_loading_label = (alm.button_loading_label === undefined) ? false : alm.button_loading_label;
|
431 |
|
432 |
+
/* Paging */
|
433 |
if(alm.paging){
|
434 |
alm.content.parent().addClass('loading'); // add loading class to main container
|
435 |
}else{
|
436 |
+
let almChildren = container.childNodes; // Get child nodes of instance [nodeList]
|
437 |
+
if(almChildren){
|
438 |
+
let almChildArray = Array.prototype.slice.call(almChildren); // Convert nodeList to array
|
439 |
+
let btnWrap = almChildArray.filter(function(element) { // Loop array to find the `.alm-btn-wrap` div
|
440 |
+
return element.classList.contains('alm-btn-wrap');
|
441 |
+
});
|
442 |
+
alm.button = (btnWrap) ? (btnWrap[0]).querySelector('.alm-load-more-btn') : container.querySelector('.alm-btn-wrap .alm-load-more-btn');
|
443 |
+
} else {
|
444 |
+
alm.button = container.querySelector('.alm-btn-wrap .alm-load-more-btn');
|
445 |
+
}
|
446 |
+
|
447 |
}
|
448 |
+
|
449 |
+
|
450 |
// Render "Showing x of y results" text.
|
451 |
alm.resultsText = document.querySelector('.alm-results-text');
|
452 |
if(alm.resultsText){
|
454 |
} else {
|
455 |
alm.resultsText = false;
|
456 |
}
|
457 |
+
|
458 |
|
459 |
|
460 |
/**
|
466 |
alm.AjaxLoadMore.loadPosts = function () {
|
467 |
if(!alm.disable_ajax){ // Check for ajax blocker
|
468 |
if(!alm.paging){
|
469 |
+
alm.button.classList.add('loading');
|
470 |
if(alm.button_loading_label !== false){
|
471 |
+
alm.button.innerHTML = alm.button_loading_label;
|
472 |
}
|
473 |
}
|
474 |
alm.container.addClass('alm-loading');
|
501 |
cache_page = alm.cache_path + alm.cache_id + '/page' +'-'+ nextpage_cache_page +'.html';
|
502 |
}
|
503 |
|
504 |
+
else if(alm.single_post){
|
505 |
// Previous Post
|
506 |
+
cache_page = alm.cache_path + alm.cache_id + '/' + alm.single_post_id +'.html';
|
507 |
}
|
508 |
|
509 |
else {
|
569 |
}
|
570 |
|
571 |
// Previous Post Params
|
572 |
+
alm.single_post_array = '';
|
573 |
+
if(alm.single_post){
|
574 |
+
alm.single_post_array = {
|
575 |
+
'single_post' : 'true',
|
576 |
+
'id' : alm.single_post_id,
|
577 |
+
'slug' : alm.single_post_slug,
|
578 |
};
|
579 |
}
|
580 |
|
600 |
action = 'alm_users_query';
|
601 |
alm.users_array = {
|
602 |
'users': 'true',
|
603 |
+
'role': alm.listing.dataset.usersRole,
|
604 |
+
'include': alm.listing.dataset.usersInclude,
|
605 |
+
'exclude': alm.listing.dataset.usersExclude,
|
606 |
'per_page': alm.posts_per_page,
|
607 |
+
'order': alm.listing.dataset.usersOrder,
|
608 |
+
'orderby': alm.listing.dataset.usersOrderby,
|
609 |
};
|
610 |
}
|
611 |
|
634 |
dataType: 'JSON',
|
635 |
beforeSend: function () {
|
636 |
if (alm.page != 1 && !alm.paging) {
|
637 |
+
alm.button.classList.add('loading');
|
638 |
}
|
639 |
},
|
640 |
success: function (results) {
|
678 |
data: alm_data_params,
|
679 |
beforeSend: function () {
|
680 |
if (alm.page != 1 && !alm.paging) {
|
681 |
+
alm.button.classList.add('loading');
|
682 |
}
|
683 |
},
|
684 |
success: function (data) {
|
731 |
|
732 |
alm.AjaxLoadMore.success = function (data, is_cache) {
|
733 |
|
734 |
+
if(alm.single_post){ // Get previous page data
|
735 |
alm.AjaxLoadMore.getPreviousPost();
|
736 |
}
|
737 |
|
781 |
|
782 |
if(!alm.paging){
|
783 |
|
784 |
+
alm.button.innerHTML = alm.button_label;
|
785 |
|
786 |
} else {
|
787 |
|
788 |
// Paging
|
789 |
if (total > 0) {
|
790 |
+
alm.el = $('<div class="alm-reveal" '+ loadingStyle +'/>');
|
791 |
alm.el.append('<div class="alm-paging-content'+alm.tcc+'"></div><div class="alm-paging-loading"></div>');
|
792 |
$('.alm-paging-content', alm.el).append(alm.data);
|
793 |
alm.content.append(alm.el);
|
826 |
if(alm.isPaged){
|
827 |
|
828 |
// Reset the posts_per_page parameter
|
829 |
+
alm.posts_per_page = (alm.users) ? alm.listing.dataset.usersPerPage : alm.listing.dataset.postsPerPage;
|
830 |
|
831 |
// SEO add-on
|
832 |
alm.page = (alm.start_page) ? alm.start_page - 1 : alm.page; // Set new page #
|
839 |
alm.page = alm.filters_startpage - 1;
|
840 |
|
841 |
// Reset filters-startpage data after the first run
|
842 |
+
alm.posts_per_page = alm.listing.dataset.postsPerPage;
|
843 |
}
|
844 |
}
|
845 |
}
|
853 |
|
854 |
if(!alm.paging){
|
855 |
|
856 |
+
if(alm.single_post){ // Previous Post, create container and append data
|
857 |
+
alm.el = $('<div class="alm-reveal alm-single-post post-'+alm.single_post_id+'" '+ loadingStyle +' data-id="'+alm.single_post_id+'" data-title="'+alm.single_post_title+'" data-url="'+alm.single_post_permalink+'" data-page="'+alm.page+'"/>');
|
858 |
alm.el.append(alm.data);
|
859 |
}
|
860 |
|
1072 |
// ALM Done
|
1073 |
if(!alm.cache){
|
1074 |
// Not Cache & Previous Post
|
1075 |
+
if(alm.posts >= alm.totalposts && !alm.single_post){
|
1076 |
alm.AjaxLoadMore.triggerDone();
|
1077 |
}
|
1078 |
}else{ // Cache
|
1085 |
|
1086 |
} else { // No Results!
|
1087 |
|
1088 |
+
if(!alm.paging){
|
1089 |
+
// Add .done class, reset btn text
|
1090 |
+
setTimeout(function(){
|
1091 |
+
alm.button.classList.remove('loading');
|
1092 |
+
alm.button.classList.add('done');
|
1093 |
+
}, alm.speed);
|
1094 |
alm.AjaxLoadMore.resetBtnText();
|
1095 |
}
|
1096 |
|
1196 |
if ($.isFunction($.fn.almFadePageControls)){
|
1197 |
$.fn.almFadePageControls(alm.btnWrap); // Paging Add-on
|
1198 |
}
|
1199 |
+
|
1200 |
if ($.isFunction($.fn.almOnWindowResize)){
|
1201 |
$.fn.almOnWindowResize(alm); // Paging Add-on
|
1202 |
}
|
1211 |
* Get the previous post ID via ajax
|
1212 |
* @since 2.7.4
|
1213 |
*/
|
1214 |
+
|
1215 |
+
if(alm.single_post_id){
|
1216 |
+
alm.fetchingPreviousPost = false;
|
1217 |
+
alm.single_post_init = true;
|
1218 |
+
}
|
1219 |
|
1220 |
+
alm.AjaxLoadMore.getPreviousPost = function () {
|
1221 |
alm.fetchingPreviousPost = true;
|
1222 |
+
|
1223 |
let data = {
|
1224 |
+
action: 'alm_query_single_post',
|
1225 |
+
init: alm.single_post_init,
|
1226 |
+
id: alm.single_post_id,
|
1227 |
+
initial_id: alm.single_post_init_id,
|
1228 |
+
order: alm.single_post_order,
|
1229 |
+
taxonomy: alm.single_post_taxonomy,
|
1230 |
+
excluded_terms: alm.single_post_excluded_terms,
|
1231 |
+
post_type: alm.post_type,
|
1232 |
+
};
|
1233 |
|
1234 |
$.ajax({
|
1235 |
type: "GET",
|
1238 |
data: data,
|
1239 |
success: function (data) {
|
1240 |
if(data.has_previous_post){
|
1241 |
+
alm.listing.setAttribute('data-single-post-id', data.prev_id); // Update single-post-id on instance
|
1242 |
+
alm.single_post_id = data.prev_id;
|
1243 |
+
alm.single_post_permalink = data.prev_permalink;
|
1244 |
+
alm.single_post_title = data.prev_title;
|
1245 |
+
alm.single_post_slug = data.prev_slug;
|
1246 |
|
1247 |
}else{
|
1248 |
if(!data.has_previous_post){
|
1249 |
alm.AjaxLoadMore.triggerDone();
|
1250 |
}
|
1251 |
}
|
1252 |
+
if(typeof window.almSetSinglePost === 'function'){
|
1253 |
+
window.almSetSinglePost(alm, data.current_id, data.permalink, data.title);
|
1254 |
}
|
1255 |
alm.fetchingPreviousPost = false;
|
1256 |
+
alm.single_post_init = false;
|
1257 |
},
|
1258 |
error: function (jqXHR, textStatus, errorThrown) {
|
1259 |
alm.AjaxLoadMore.error(jqXHR, textStatus, errorThrown);
|
1290 |
alm.loading = false;
|
1291 |
alm.finished = true;
|
1292 |
if(!alm.paging){
|
1293 |
+
alm.button.classList.add('done');
|
1294 |
}
|
1295 |
if ($.isFunction($.fn.almDone)) {
|
1296 |
// Delay done until after animation
|
1309 |
*/
|
1310 |
alm.AjaxLoadMore.resetBtnText = function(){
|
1311 |
if(alm.button_loading_label !== false && !alm.paging){ // Reset button text
|
1312 |
+
alm.button.innerHTML = alm.button_label;
|
1313 |
}
|
1314 |
};
|
1315 |
|
1316 |
|
1317 |
|
1318 |
+
/**
|
1319 |
+
* Ajax Error
|
1320 |
*
|
1321 |
* Error function after failed data
|
1322 |
* @since 2.6.0
|
1325 |
alm.AjaxLoadMore.error = function (jqXHR, textStatus, errorThrown) {
|
1326 |
alm.loading = false;
|
1327 |
if(!alm.paging){
|
1328 |
+
alm.button.classList.remove('loading');
|
1329 |
alm.AjaxLoadMore.resetBtnText();
|
1330 |
}
|
1331 |
console.log(errorThrown);
|
1332 |
};
|
1333 |
+
|
1334 |
+
|
1335 |
+
|
1336 |
+
/**
|
1337 |
+
* Click Handler
|
1338 |
+
*
|
1339 |
+
* Button click handler to load posts
|
1340 |
+
* @since 4.2.0
|
1341 |
+
*/
|
1342 |
+
alm.AjaxLoadMore.click = function(e){
|
1343 |
+
let button = e.target || e.currentTarget;
|
1344 |
+
if (alm.pause === 'true') {
|
1345 |
+
alm.pause = false;
|
1346 |
+
alm.pause_override = false;
|
1347 |
+
alm.AjaxLoadMore.loadPosts();
|
1348 |
+
}
|
1349 |
+
if (!alm.loading && !alm.finished && !button.classList.contains('done')) {
|
1350 |
+
alm.loading = true;
|
1351 |
+
alm.page++;
|
1352 |
+
alm.AjaxLoadMore.loadPosts();
|
1353 |
+
}
|
1354 |
+
// Filters Paged URLs
|
1355 |
+
if(alm.filters && typeof almFiltersPaged === 'function'){
|
1356 |
+
almFiltersPaged(alm);
|
1357 |
+
}
|
1358 |
+
};
|
1359 |
|
1360 |
|
1361 |
+
|
1362 |
+
/* Button Click Event
|
1363 |
*
|
1364 |
+
* Load more button click event
|
1365 |
* @since 1.0.0
|
1366 |
*/
|
1367 |
|
1368 |
+
if(!alm.paging && !alm.fetchingPreviousPost){
|
1369 |
+
alm.button.onclick = alm.AjaxLoadMore.click;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1370 |
}
|
1371 |
+
|
1372 |
|
1373 |
|
1374 |
|
1376 |
*
|
1377 |
* Add resize function for Paging add-on only.
|
1378 |
* @since 2.1.2
|
1379 |
+
* @updated 4.2
|
1380 |
*/
|
1381 |
+
if(alm.paging){
|
1382 |
+
let pagingResize;
|
1383 |
+
alm.window.onresize = function(){
|
1384 |
+
clearTimeout(pagingResize);
|
1385 |
+
pagingResize = setTimeout(function(e){
|
1386 |
+
if ($.isFunction($.fn.almOnWindowResize)){
|
1387 |
+
$.fn.almOnWindowResize(alm);
|
1388 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1389 |
}, alm.speed);
|
1390 |
+
};
|
|
|
1391 |
}
|
1392 |
|
1393 |
|
1408 |
|
1409 |
|
1410 |
|
1411 |
+
/**
|
|
|
1412 |
* Load posts as user scrolls the page
|
1413 |
* @since 1.0
|
1414 |
+
* @updated 4.2.0
|
1415 |
*/
|
1416 |
+
|
1417 |
+
alm.AjaxLoadMore.scroll = function () {
|
1418 |
+
|
1419 |
+
if(alm.timer) {
|
1420 |
+
clearTimeout(alm.timer);
|
1421 |
+
}
|
|
|
|
|
|
|
1422 |
|
1423 |
+
alm.timer = setTimeout(function() {
|
1424 |
+
|
1425 |
+
if (alm.AjaxLoadMore.isVisible() && !alm.fetchingPreviousPost) {
|
1426 |
+
|
1427 |
+
let trigger = alm.button.getBoundingClientRect();
|
1428 |
+
let btnPos = Math.round(trigger.top - alm.window.innerHeight) + alm.scroll_distance;
|
1429 |
+
let scrollTrigger = (btnPos <= 0) ? true : false;
|
1430 |
+
|
1431 |
+
// Scroll Container
|
1432 |
+
if(alm.window !== window){
|
1433 |
+
let scrollInstance = alm.window.querySelector('.ajax-load-more-wrap'); // ALM inside the container
|
1434 |
+
let scrollHeight = scrollInstance.offsetHeight; // ALM height
|
1435 |
+
let scrollPosition = Math.round(alm.window.scrollTop + alm.window.offsetHeight - alm.scroll_distance); // How far user has scrolled
|
1436 |
+
scrollTrigger = (scrollHeight <= scrollPosition) ? true : false;
|
1437 |
+
}
|
1438 |
+
|
1439 |
+
// If Pause && Pause Override
|
1440 |
if(!alm.loading && !alm.finished && scrollTrigger && alm.page < (alm.max_pages - 1) && alm.proceed && alm.pause === 'true' && alm.pause_override === 'true'){
|
1441 |
+
alm.button.click();
|
1442 |
}
|
1443 |
+
|
1444 |
+
// Standard Scroll
|
1445 |
else{
|
1446 |
+
//console.log(alm.window.innerHeight, alm.scroll_distance, alm.window.innerHeight - alm.scroll_distance);
|
1447 |
if (!alm.loading && !alm.finished && scrollTrigger && alm.page < (alm.max_pages - 1) && alm.proceed && alm.pause !== 'true') {
|
1448 |
+
alm.button.click();
|
1449 |
}
|
1450 |
+
}
|
1451 |
+
}
|
1452 |
+
|
1453 |
+
}, 25);
|
1454 |
+
};
|
1455 |
+
|
1456 |
+
if (alm.scroll && !alm.paging) {
|
1457 |
+
// Scroll Container
|
1458 |
+
if(alm.scroll_container !== ''){
|
1459 |
+
alm.window = (document.querySelector(alm.scroll_container)) ? document.querySelector(alm.scroll_container) : alm.window;
|
1460 |
+
}
|
1461 |
+
alm.window.addEventListener('scroll', alm.AjaxLoadMore.scroll);
|
1462 |
+
alm.window.addEventListener('touchstart', alm.AjaxLoadMore.scroll);
|
1463 |
}
|
1464 |
|
1465 |
|
1471 |
*/
|
1472 |
alm.AjaxLoadMore.destroyed = function(){
|
1473 |
alm.disable_ajax = true;
|
1474 |
+
if(!alm.paging){
|
1475 |
+
setTimeout(function(){
|
1476 |
+
alm.button.fadeOut(alm.speed);
|
1477 |
+
}, alm.speed);
|
1478 |
if ($.isFunction($.fn.almDestroyed)) {
|
1479 |
$.fn.almDestroyed(alm);
|
1480 |
}
|
1520 |
alm.container.removeClass('alm-loading');
|
1521 |
alm.AjaxLoadMore.triggerAddons(alm);
|
1522 |
if(!alm.paging){
|
1523 |
+
setTimeout(function(){
|
1524 |
+
alm.button.classList.remove('loading');
|
1525 |
+
}, alm.speed);
|
1526 |
alm.AjaxLoadMore.resetBtnText();
|
1527 |
}
|
1528 |
}, alm.speed);
|
1555 |
alm.AjaxLoadMore.destroyed();
|
1556 |
}
|
1557 |
|
1558 |
+
if(!alm.paging && !alm.single_post){
|
1559 |
if(alm.disable_ajax){
|
1560 |
alm.finished = true;
|
1561 |
+
alm.button.classList.add('done');
|
1562 |
}else{
|
1563 |
if (alm.pause === 'true') {
|
1564 |
+
alm.button.innerHTML = alm.button_label;
|
1565 |
alm.loading = false;
|
1566 |
} else {
|
1567 |
alm.AjaxLoadMore.loadPosts();
|
1570 |
}
|
1571 |
|
1572 |
// Previous Post Add-on
|
1573 |
+
if(alm.single_post){
|
1574 |
alm.AjaxLoadMore.getPreviousPost(); // Set next post on load
|
1575 |
alm.loading = false;
|
1576 |
}
|
1621 |
|
1622 |
|
1623 |
// Next Page Add-on
|
1624 |
+
if(alm.nextpage){
|
1625 |
+
if($('.alm-nextpage', alm.container).length){
|
|
|
|
|
1626 |
// `.alm-nextpage` check that posts remain
|
1627 |
var alm_nextpage_pages = $('.alm-nextpage', alm.container).length,
|
1628 |
+
alm_nextpage_total = $('.alm-nextpage', alm.container).eq(0).data('total-posts');
|
|
|
1629 |
if(alm_nextpage_pages == alm_nextpage_total){
|
1630 |
alm.AjaxLoadMore.triggerDone();
|
1631 |
}
|
1632 |
+
}
|
|
|
1633 |
if(alm.resultsText){
|
1634 |
almInitResultsText(alm, 'nextpage');
|
1635 |
+
}
|
|
|
1636 |
}
|
1637 |
|
1638 |
+
|
1639 |
+
// Window Load (Masonry + Preloaded)
|
1640 |
+
alm.window.addEventListener('load', function(){
|
1641 |
if(alm.is_masonry_preloaded){
|
1642 |
almMasonry(alm.masonry_wrap, alm.el, alm.masonry_selector, alm.masonry_columnwidth, alm.masonry_animation, alm.masonry_horizontalorder, alm.speed, alm.masonry_init, true, false);
|
1643 |
alm.masonry_init = false;
|
1644 |
}
|
1645 |
});
|
1646 |
+
|
1647 |
|
1648 |
};
|
1649 |
|
1650 |
+
|
1651 |
+
// Init Ajax Load More
|
1652 |
alm.AjaxLoadMore.init();
|
1653 |
|
1654 |
|
1655 |
+
// Init flag to prevent unnecessary loading of posts.
|
|
|
1656 |
setTimeout(function () {
|
1657 |
alm.proceed = true;
|
1658 |
}, 150);
|
1665 |
* @since 2.7.0
|
1666 |
*/
|
1667 |
$.fn.almUpdateCurrentPage = function(current, obj, alm){
|
1668 |
+
|
1669 |
alm.page = current;
|
1670 |
|
1671 |
// Next Page add-on
|
1672 |
+
alm.page = (alm.nextpage && !alm.paging) ? alm.page - 1 : alm.page;
|
1673 |
+
|
1674 |
+
let data = '';
|
|
|
|
|
1675 |
|
1676 |
/*
|
1677 |
Paging + Preloaded & Paging + Next Page
|
1743 |
* @return null
|
1744 |
*/
|
1745 |
$.fn.almTriggerClick = function(){
|
1746 |
+
alm.button.click();
|
1747 |
};
|
1748 |
|
1749 |
|
1768 |
*/
|
1769 |
$.fn.ajaxloadmore = function () {
|
1770 |
return this.each(function (e) {
|
1771 |
+
new ajaxloadmore(this, e);
|
1772 |
});
|
1773 |
};
|
1774 |
|
1779 |
* @since 2.1.2
|
1780 |
*/
|
1781 |
|
1782 |
+
let alm_instances = document.querySelectorAll('.ajax-load-more-wrap');
|
1783 |
+
if(alm_instances.length){
|
1784 |
+
[...alm_instances].forEach((alm, e) => {
|
1785 |
+
new ajaxloadmore(alm, e);
|
1786 |
});
|
1787 |
}
|
1788 |
|
|
|
1789 |
})(jQuery);
|
core/src/js/helpers/queryParams.js
CHANGED
@@ -56,8 +56,8 @@ let almGetAjaxParams = function(alm, action, queryType){
|
|
56 |
if(alm.nextpage_array){
|
57 |
data.nextpage = alm.nextpage_array;
|
58 |
}
|
59 |
-
if(alm.
|
60 |
-
data.
|
61 |
}
|
62 |
if(alm.users_array){
|
63 |
data.users = alm.users_array;
|
56 |
if(alm.nextpage_array){
|
57 |
data.nextpage = alm.nextpage_array;
|
58 |
}
|
59 |
+
if(alm.single_post_array){
|
60 |
+
data.single_post = alm.single_post_array;
|
61 |
}
|
62 |
if(alm.users_array){
|
63 |
data.users = alm.users_array;
|
lang/ajax-load-more.pot
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: Ajax Load More\n"
|
5 |
-
"POT-Creation-Date:
|
6 |
"PO-Revision-Date: 2018-06-20 13:05-0500\n"
|
7 |
"Last-Translator: Darren Cooney <darren@connekthq.com>\n"
|
8 |
"Language-Team: \n"
|
@@ -10,7 +10,7 @@ msgstr ""
|
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
"Content-Transfer-Encoding: 8bit\n"
|
13 |
-
"X-Generator: Poedit 2.2\n"
|
14 |
"X-Poedit-Basepath: ..\n"
|
15 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
16 |
"X-Poedit-KeywordsList: __;_e\n"
|
@@ -139,7 +139,7 @@ msgid ""
|
|
139 |
"to read and write files within the /ajax-load-more/core/repeater directory."
|
140 |
msgstr ""
|
141 |
|
142 |
-
#: admin/admin.php:483 admin/admin.php:484 ajax-load-more.php:
|
143 |
msgid "Settings"
|
144 |
msgstr ""
|
145 |
|
@@ -326,7 +326,7 @@ msgid "Preview"
|
|
326 |
msgstr ""
|
327 |
|
328 |
#: admin/admin.php:1585 admin/shortcode-builder/shortcode-builder.php:199
|
329 |
-
#: core/classes/class.alm-shortcode.php:
|
330 |
msgid "Older Posts"
|
331 |
msgstr ""
|
332 |
|
@@ -623,18 +623,18 @@ msgstr ""
|
|
623 |
#: admin/shortcode-builder/components/paging.php:12
|
624 |
#: admin/shortcode-builder/components/paging.php:35
|
625 |
#: admin/shortcode-builder/components/preloaded.php:13
|
626 |
-
#: admin/shortcode-builder/components/previous-post.php:13
|
627 |
#: admin/shortcode-builder/components/rest-api.php:28
|
628 |
#: admin/shortcode-builder/components/rest-api.php:108
|
629 |
#: admin/shortcode-builder/components/seo.php:14
|
|
|
630 |
#: admin/shortcode-builder/components/users.php:13
|
631 |
#: admin/shortcode-builder/shortcode-builder.php:130
|
632 |
#: admin/shortcode-builder/shortcode-builder.php:233
|
633 |
#: admin/shortcode-builder/shortcode-builder.php:293
|
634 |
#: admin/shortcode-builder/shortcode-builder.php:424
|
635 |
#: admin/shortcode-builder/shortcode-builder.php:491
|
636 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
637 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
638 |
msgid "True"
|
639 |
msgstr ""
|
640 |
|
@@ -649,25 +649,25 @@ msgstr ""
|
|
649 |
#: admin/shortcode-builder/components/paging.php:16
|
650 |
#: admin/shortcode-builder/components/paging.php:39
|
651 |
#: admin/shortcode-builder/components/preloaded.php:17
|
652 |
-
#: admin/shortcode-builder/components/previous-post.php:17
|
653 |
#: admin/shortcode-builder/components/rest-api.php:32
|
654 |
#: admin/shortcode-builder/components/rest-api.php:112
|
655 |
#: admin/shortcode-builder/components/seo.php:18
|
|
|
656 |
#: admin/shortcode-builder/components/users.php:17
|
657 |
#: admin/shortcode-builder/shortcode-builder.php:134
|
658 |
#: admin/shortcode-builder/shortcode-builder.php:237
|
659 |
#: admin/shortcode-builder/shortcode-builder.php:297
|
660 |
#: admin/shortcode-builder/shortcode-builder.php:428
|
661 |
#: admin/shortcode-builder/shortcode-builder.php:495
|
662 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
663 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
664 |
msgid "False"
|
665 |
msgstr ""
|
666 |
|
667 |
#: admin/shortcode-builder/components/acf.php:29
|
668 |
#: admin/shortcode-builder/components/comments.php:28
|
669 |
#: admin/shortcode-builder/components/nextpage.php:30
|
670 |
-
#: admin/shortcode-builder/components/
|
671 |
msgid "Post ID"
|
672 |
msgstr ""
|
673 |
|
@@ -682,41 +682,41 @@ msgstr ""
|
|
682 |
msgid "The ID of the current page/post."
|
683 |
msgstr ""
|
684 |
|
685 |
-
#: admin/shortcode-builder/components/acf.php:
|
686 |
-
#: admin/shortcode-builder/components/acf.php:
|
687 |
-
#: admin/shortcode-builder/components/acf.php:
|
688 |
msgid "Field Type"
|
689 |
msgstr ""
|
690 |
|
691 |
-
#: admin/shortcode-builder/components/acf.php:
|
692 |
msgid "Select the type of ACF field"
|
693 |
msgstr ""
|
694 |
|
695 |
-
#: admin/shortcode-builder/components/acf.php:
|
696 |
msgid "Select Field Type"
|
697 |
msgstr ""
|
698 |
|
699 |
-
#: admin/shortcode-builder/components/acf.php:
|
700 |
msgid "Flexible Content"
|
701 |
msgstr ""
|
702 |
|
703 |
-
#: admin/shortcode-builder/components/acf.php:
|
704 |
msgid "Gallery"
|
705 |
msgstr ""
|
706 |
|
707 |
-
#: admin/shortcode-builder/components/acf.php:
|
708 |
msgid "Relationship"
|
709 |
msgstr ""
|
710 |
|
711 |
-
#: admin/shortcode-builder/components/acf.php:
|
712 |
msgid "Repeater"
|
713 |
msgstr ""
|
714 |
|
715 |
-
#: admin/shortcode-builder/components/acf.php:
|
716 |
msgid "Field Name"
|
717 |
msgstr ""
|
718 |
|
719 |
-
#: admin/shortcode-builder/components/acf.php:
|
720 |
msgid "Enter the name of the ACF field"
|
721 |
msgstr ""
|
722 |
|
@@ -747,7 +747,7 @@ msgid "Enable Ajax Load More to display blog comments."
|
|
747 |
msgstr ""
|
748 |
|
749 |
#: admin/shortcode-builder/components/comments.php:29
|
750 |
-
#: admin/shortcode-builder/components/
|
751 |
msgid "The ID of the current single post."
|
752 |
msgstr ""
|
753 |
|
@@ -846,13 +846,17 @@ msgid ""
|
|
846 |
"within your theme directory to locate the callback function for your theme."
|
847 |
msgstr ""
|
848 |
|
849 |
-
#: admin/shortcode-builder/components/comments.php:
|
850 |
msgid ""
|
851 |
"You must add the comments shortcode directly to your single template file "
|
852 |
"using the <a href=\"https://developer.wordpress.org/reference/functions/"
|
853 |
-
"do_shortcode/\" target=\"_blank\">do_shortcode</a> method.
|
854 |
-
"
|
855 |
-
|
|
|
|
|
|
|
|
|
856 |
msgstr ""
|
857 |
|
858 |
#: admin/shortcode-builder/components/cta.php:3 core/functions.php:65
|
@@ -904,11 +908,14 @@ msgstr ""
|
|
904 |
msgid "-- Select Repeater --"
|
905 |
msgstr ""
|
906 |
|
907 |
-
#: admin/shortcode-builder/components/cta.php:
|
|
|
|
|
|
|
|
|
908 |
msgid ""
|
909 |
-
"
|
910 |
-
"
|
911 |
-
"in your shortcode, 6 items will be displayed."
|
912 |
msgstr ""
|
913 |
|
914 |
#: admin/shortcode-builder/components/filters.php:6
|
@@ -1034,7 +1041,7 @@ msgid ""
|
|
1034 |
"browser buttons)"
|
1035 |
msgstr ""
|
1036 |
|
1037 |
-
#: admin/shortcode-builder/components/nextpage.php:
|
1038 |
msgid ""
|
1039 |
"You must add the Next Page shortcode directly to your single template file "
|
1040 |
"using the <a href=\"https://developer.wordpress.org/reference/functions/"
|
@@ -1093,71 +1100,8 @@ msgstr ""
|
|
1093 |
msgid "Enter the number of posts to preload."
|
1094 |
msgstr ""
|
1095 |
|
1096 |
-
#: admin/shortcode-builder/components/previous-post.php:3
|
1097 |
-
#: admin/views/settings.php:43 core/functions.php:185
|
1098 |
-
msgid "Previous Post"
|
1099 |
-
msgstr ""
|
1100 |
-
|
1101 |
-
#: admin/shortcode-builder/components/previous-post.php:6
|
1102 |
-
msgid "Enable the infinite scrolling of single posts."
|
1103 |
-
msgstr ""
|
1104 |
-
|
1105 |
-
#: admin/shortcode-builder/components/previous-post.php:38
|
1106 |
-
#: admin/shortcode-builder/shortcode-builder.php:904
|
1107 |
-
msgid "Taxonomy"
|
1108 |
-
msgstr ""
|
1109 |
-
|
1110 |
-
#: admin/shortcode-builder/components/previous-post.php:38
|
1111 |
-
msgid ""
|
1112 |
-
"Selecting a taxonomy means only previous posts from the same taxonomy term "
|
1113 |
-
"will be returned. If a post has multiple terms attached, each term will be "
|
1114 |
-
"considered using an OR relationship query"
|
1115 |
-
msgstr ""
|
1116 |
-
|
1117 |
-
#: admin/shortcode-builder/components/previous-post.php:39
|
1118 |
-
msgid "Query previous posts from the same taxonomy term(s)."
|
1119 |
-
msgstr ""
|
1120 |
-
|
1121 |
-
#: admin/shortcode-builder/components/previous-post.php:52
|
1122 |
-
#: admin/shortcode-builder/includes/tax-query-options.php:5
|
1123 |
-
#: admin/shortcode-builder/includes/tax-query-options.php:50
|
1124 |
-
#: admin/shortcode-builder/includes/tax-query-options.php:81
|
1125 |
-
msgid "Select Taxonomy"
|
1126 |
-
msgstr ""
|
1127 |
-
|
1128 |
-
#: admin/shortcode-builder/components/previous-post.php:53
|
1129 |
-
#: admin/shortcode-builder/shortcode-builder.php:724
|
1130 |
-
msgid "Category"
|
1131 |
-
msgstr ""
|
1132 |
-
|
1133 |
-
#: admin/shortcode-builder/components/previous-post.php:54
|
1134 |
-
#: admin/shortcode-builder/shortcode-builder.php:814
|
1135 |
-
msgid "Tag"
|
1136 |
-
msgstr ""
|
1137 |
-
|
1138 |
-
#: admin/shortcode-builder/components/previous-post.php:71
|
1139 |
-
msgid "Excluded Terms "
|
1140 |
-
msgstr ""
|
1141 |
-
|
1142 |
-
#: admin/shortcode-builder/components/previous-post.php:71
|
1143 |
-
msgid "A comma-separated list of excluded terms by ID"
|
1144 |
-
msgstr ""
|
1145 |
-
|
1146 |
-
#: admin/shortcode-builder/components/previous-post.php:72
|
1147 |
-
msgid "Exclude posts by term ID from the previous post query."
|
1148 |
-
msgstr ""
|
1149 |
-
|
1150 |
-
#: admin/shortcode-builder/components/previous-post.php:81
|
1151 |
-
msgid ""
|
1152 |
-
"You must add the Previous Post shortcode directly to your single template "
|
1153 |
-
"file using the <a href=\"https://developer.wordpress.org/reference/functions/"
|
1154 |
-
"do_shortcode/\" target=\"_blank\">do_shortcode</a> method. » <a href="
|
1155 |
-
"\"https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/\" "
|
1156 |
-
"target=\"_blank\">View documentation</a>"
|
1157 |
-
msgstr ""
|
1158 |
-
|
1159 |
#: admin/shortcode-builder/components/rest-api.php:18
|
1160 |
-
#: admin/views/settings.php:
|
1161 |
msgid "REST API"
|
1162 |
msgstr ""
|
1163 |
|
@@ -1219,9 +1163,11 @@ msgstr ""
|
|
1219 |
|
1220 |
#: admin/shortcode-builder/components/rest-api.php:88
|
1221 |
#: admin/shortcode-builder/shortcode-builder.php:510
|
1222 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1223 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1224 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
|
|
|
|
1225 |
msgid "View Example"
|
1226 |
msgstr ""
|
1227 |
|
@@ -1230,7 +1176,7 @@ msgid ""
|
|
1230 |
"Enable debugging (console.log) of REST API responses in the browser console. "
|
1231 |
msgstr ""
|
1232 |
|
1233 |
-
#: admin/shortcode-builder/components/rest-api.php:
|
1234 |
msgid ""
|
1235 |
"Visit <a href=\"http://v2.wp-api.org/\" target=\"_blank\">http://v2.wp-api."
|
1236 |
"org</a> for documentation on creating custom <a href=\"http://v2.wp-api.org/"
|
@@ -1247,6 +1193,101 @@ msgid ""
|
|
1247 |
"Enable address bar URL rewrites as users page through ajax loaded content."
|
1248 |
msgstr ""
|
1249 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1250 |
#: admin/shortcode-builder/components/users.php:3 core/functions.php:230
|
1251 |
msgid "Users"
|
1252 |
msgstr ""
|
@@ -1268,9 +1309,9 @@ msgid "All Roles"
|
|
1268 |
msgstr ""
|
1269 |
|
1270 |
#: admin/shortcode-builder/components/users.php:54
|
1271 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1272 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1273 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1274 |
msgid "Include"
|
1275 |
msgstr ""
|
1276 |
|
@@ -1279,9 +1320,9 @@ msgid "A comma separated list of users to be included by ID"
|
|
1279 |
msgstr ""
|
1280 |
|
1281 |
#: admin/shortcode-builder/components/users.php:68
|
1282 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1283 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1284 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1285 |
msgid "Exclude"
|
1286 |
msgstr ""
|
1287 |
|
@@ -1306,12 +1347,12 @@ msgid "Sort users by Order and Orderby parameters"
|
|
1306 |
msgstr ""
|
1307 |
|
1308 |
#: admin/shortcode-builder/components/users.php:99
|
1309 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1310 |
msgid "Order"
|
1311 |
msgstr ""
|
1312 |
|
1313 |
#: admin/shortcode-builder/components/users.php:106
|
1314 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1315 |
msgid "Order By"
|
1316 |
msgstr ""
|
1317 |
|
@@ -1364,7 +1405,7 @@ msgid "Taxonomy Operator:"
|
|
1364 |
msgstr ""
|
1365 |
|
1366 |
#: admin/shortcode-builder/includes/tax-query-options.php:36
|
1367 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1368 |
msgid "Relation:"
|
1369 |
msgstr ""
|
1370 |
|
@@ -1395,6 +1436,11 @@ msgstr ""
|
|
1395 |
msgid "Set a unique ID for this Ajax Load More instance."
|
1396 |
msgstr ""
|
1397 |
|
|
|
|
|
|
|
|
|
|
|
1398 |
#: admin/shortcode-builder/shortcode-builder.php:64
|
1399 |
msgid "Generate Unique ID"
|
1400 |
msgstr ""
|
@@ -1501,7 +1547,7 @@ msgstr ""
|
|
1501 |
#: admin/shortcode-builder/shortcode-builder.php:248
|
1502 |
msgid ""
|
1503 |
"The distance from the bottom of the screen to trigger loading of posts. "
|
1504 |
-
"(Default =
|
1505 |
msgstr ""
|
1506 |
|
1507 |
#: admin/shortcode-builder/shortcode-builder.php:260
|
@@ -1658,8 +1704,7 @@ msgid "Transition Container Classes"
|
|
1658 |
msgstr ""
|
1659 |
|
1660 |
#: admin/shortcode-builder/shortcode-builder.php:444
|
1661 |
-
msgid ""
|
1662 |
-
"This setting is not available with the Previous Post or Next Page add-ons"
|
1663 |
msgstr ""
|
1664 |
|
1665 |
#: admin/shortcode-builder/shortcode-builder.php:445
|
@@ -1701,268 +1746,265 @@ msgstr ""
|
|
1701 |
#: admin/shortcode-builder/shortcode-builder.php:509
|
1702 |
msgid ""
|
1703 |
"Display progress bar indicator at the top of the window while loading Ajax "
|
1704 |
-
"content"
|
1705 |
msgstr ""
|
1706 |
|
1707 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1708 |
msgid "Color"
|
1709 |
msgstr ""
|
1710 |
|
1711 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1712 |
msgid "Enter the hex color of the progress bar"
|
1713 |
msgstr ""
|
1714 |
|
1715 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1716 |
msgid "Images Loaded"
|
1717 |
msgstr ""
|
1718 |
|
1719 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1720 |
msgid "Wait for all images to load before displaying ajax loaded content"
|
1721 |
msgstr ""
|
1722 |
|
1723 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1724 |
msgid "Background images are not supported"
|
1725 |
msgstr ""
|
1726 |
|
1727 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1728 |
msgid "Destroy After"
|
1729 |
msgstr ""
|
1730 |
|
1731 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1732 |
msgid ""
|
1733 |
"Remove Ajax Load More functionality after {<em>n</em>} number of pages have "
|
1734 |
"been loaded."
|
1735 |
msgstr ""
|
1736 |
|
1737 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1738 |
msgid "Query Parameters"
|
1739 |
msgstr ""
|
1740 |
|
1741 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1742 |
msgid "Posts Per Page"
|
1743 |
msgstr ""
|
1744 |
|
1745 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1746 |
msgid "Select the number of posts to load with each request."
|
1747 |
msgstr ""
|
1748 |
|
1749 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1750 |
msgid "Post Type"
|
1751 |
msgstr ""
|
1752 |
|
1753 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1754 |
msgid "Select the Post Types to include in this Ajax Load More query."
|
1755 |
msgstr ""
|
1756 |
|
1757 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1758 |
msgid "Any"
|
1759 |
msgstr ""
|
1760 |
|
1761 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1762 |
msgid "Sticky Posts"
|
1763 |
msgstr ""
|
1764 |
|
1765 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1766 |
msgid "Sticky posts are only available for Posts"
|
1767 |
msgstr ""
|
1768 |
|
1769 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1770 |
msgid ""
|
1771 |
"Preserve the ordering of sticky posts by having them appear first in the "
|
1772 |
"Ajax listing."
|
1773 |
msgstr ""
|
1774 |
|
1775 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1776 |
msgid "Enable Sticky Posts"
|
1777 |
msgstr ""
|
1778 |
|
1779 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1780 |
msgid "Post Format"
|
1781 |
msgstr ""
|
1782 |
|
1783 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1784 |
msgid ""
|
1785 |
"Select a <a href=\"http://codex.wordpress.org/Post_Formats\" target=\"_blank"
|
1786 |
"\">Post Format</a> to query."
|
1787 |
msgstr ""
|
1788 |
|
1789 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1790 |
msgid "Select Post Format"
|
1791 |
msgstr ""
|
1792 |
|
1793 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1794 |
msgid "Standard"
|
1795 |
msgstr ""
|
1796 |
|
1797 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1798 |
msgid "Get posts by category using a category_name or category__and query"
|
1799 |
msgstr ""
|
1800 |
|
1801 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1802 |
msgid "Comma separated list of categories to include by"
|
1803 |
msgstr ""
|
1804 |
|
1805 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1806 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1807 |
msgid "slug"
|
1808 |
msgstr ""
|
1809 |
|
1810 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1811 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1812 |
msgid "What's this"
|
1813 |
msgstr ""
|
1814 |
|
1815 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1816 |
msgid "Comma separated list of categories to exclude by ID."
|
1817 |
msgstr ""
|
1818 |
|
1819 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1820 |
msgid "Get posts by tags using a tag or tag__and query"
|
1821 |
msgstr ""
|
1822 |
|
1823 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1824 |
msgid "Comma separated list of tags to include by"
|
1825 |
msgstr ""
|
1826 |
|
1827 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1828 |
msgid "Comma separated list of tags to exclude by ID"
|
1829 |
msgstr ""
|
1830 |
|
1831 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1832 |
msgid "Select a taxonomy then select the terms and an operator."
|
1833 |
msgstr ""
|
1834 |
|
1835 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1836 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1837 |
msgid "Add Another"
|
1838 |
msgstr ""
|
1839 |
|
1840 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1841 |
msgid "Custom Fields (Meta_Query)"
|
1842 |
msgstr ""
|
1843 |
|
1844 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1845 |
msgid ""
|
1846 |
"Query for <a href=\"http://codex.wordpress.org/Class_Reference/WP_Meta_Query"
|
1847 |
"\" target=\"_blank\">custom field</a> by entering a custom field key, value "
|
1848 |
"and operator."
|
1849 |
msgstr ""
|
1850 |
|
1851 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1852 |
msgid ""
|
1853 |
"The logical relationship between each custom field when there is more than "
|
1854 |
"one"
|
1855 |
msgstr ""
|
1856 |
|
1857 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1858 |
msgid "Date"
|
1859 |
msgstr ""
|
1860 |
|
1861 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1862 |
-
msgid ""
|
1863 |
-
"Enter a year, month(number) and day to query by date archive.<br/>» <a "
|
1864 |
-
"href=\"admin.php?page=ajax-load-more-help§ion=examples#example-date\" "
|
1865 |
-
"target=\"_blank\">View Example</a>"
|
1866 |
msgstr ""
|
1867 |
|
1868 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1869 |
msgid "Year:"
|
1870 |
msgstr ""
|
1871 |
|
1872 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1873 |
msgid "Month:"
|
1874 |
msgstr ""
|
1875 |
|
1876 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1877 |
msgid "Day:"
|
1878 |
msgstr ""
|
1879 |
|
1880 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1881 |
msgid "Author"
|
1882 |
msgstr ""
|
1883 |
|
1884 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1885 |
msgid "Select an Author to query(by ID)."
|
1886 |
msgstr ""
|
1887 |
|
1888 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1889 |
msgid "Search Term"
|
1890 |
msgstr ""
|
1891 |
|
1892 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1893 |
msgid "Enter a search term to query."
|
1894 |
msgstr ""
|
1895 |
|
1896 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1897 |
msgid "Enter search term"
|
1898 |
msgstr ""
|
1899 |
|
1900 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1901 |
msgid "Post Parameters"
|
1902 |
msgstr ""
|
1903 |
|
1904 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1905 |
msgid "A comma separated list of post ID's to query."
|
1906 |
msgstr ""
|
1907 |
|
1908 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1909 |
msgid "225, 340, 818, etc..."
|
1910 |
msgstr ""
|
1911 |
|
1912 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1913 |
msgid "A comma separated list of post ID's to exclude from query."
|
1914 |
msgstr ""
|
1915 |
|
1916 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1917 |
msgid "Post Status"
|
1918 |
msgstr ""
|
1919 |
|
1920 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1921 |
msgid ""
|
1922 |
"Post Status parameters are only available for logged in (admin) users. Non "
|
1923 |
"logged in users will only have access to view content in a 'publish' or "
|
1924 |
"'inherit' state."
|
1925 |
msgstr ""
|
1926 |
|
1927 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1928 |
msgid "Select status of the post."
|
1929 |
msgstr ""
|
1930 |
|
1931 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1932 |
msgid "Published"
|
1933 |
msgstr ""
|
1934 |
|
1935 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1936 |
msgid "Ordering"
|
1937 |
msgstr ""
|
1938 |
|
1939 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1940 |
msgid "Sort posts by Order and Orderby parameters."
|
1941 |
msgstr ""
|
1942 |
|
1943 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1944 |
msgid "Offset"
|
1945 |
msgstr ""
|
1946 |
|
1947 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1948 |
msgid "Offset the initial query by <em>'n'</em> number of posts"
|
1949 |
msgstr ""
|
1950 |
|
1951 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1952 |
msgid "Custom Arguments"
|
1953 |
msgstr ""
|
1954 |
|
1955 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1956 |
msgid "A semicolon separated list of custom value:pair arguments."
|
1957 |
msgstr ""
|
1958 |
|
1959 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1960 |
msgid ""
|
1961 |
"Custom Arguments can be used to query by parameters not available in the "
|
1962 |
"Shortcode Builder"
|
1963 |
msgstr ""
|
1964 |
|
1965 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1966 |
msgid "event_display:upcoming"
|
1967 |
msgstr ""
|
1968 |
|
@@ -2228,10 +2270,6 @@ msgid ""
|
|
2228 |
"org/The_Loop\" target=\"_blank\">WordPress loop</a>"
|
2229 |
msgstr ""
|
2230 |
|
2231 |
-
#: admin/views/repeater-templates.php:478
|
2232 |
-
msgid "Learn More"
|
2233 |
-
msgstr ""
|
2234 |
-
|
2235 |
#: admin/views/settings.php:10
|
2236 |
msgid "A powerful plugin to add infinite scroll functionality to your website."
|
2237 |
msgstr ""
|
@@ -2252,10 +2290,14 @@ msgstr ""
|
|
2252 |
msgid "Layouts"
|
2253 |
msgstr ""
|
2254 |
|
2255 |
-
#: admin/views/settings.php:
|
2256 |
msgid "SEO"
|
2257 |
msgstr ""
|
2258 |
|
|
|
|
|
|
|
|
|
2259 |
#: admin/views/shortcode-builder.php:7
|
2260 |
msgid ""
|
2261 |
"Create your own Ajax Load More <a href=\"http://en.support.wordpress.com/"
|
@@ -2276,19 +2318,19 @@ msgid ""
|
|
2276 |
"theme."
|
2277 |
msgstr ""
|
2278 |
|
2279 |
-
#: admin/views/shortcode-builder.php:
|
2280 |
-
msgid "
|
2281 |
msgstr ""
|
2282 |
|
2283 |
#: admin/views/shortcode-builder.php:39
|
2284 |
-
msgid "
|
2285 |
msgstr ""
|
2286 |
|
2287 |
-
#: ajax-load-more.php:
|
2288 |
msgid "Error creating repeater template directory"
|
2289 |
msgstr ""
|
2290 |
|
2291 |
-
#: ajax-load-more.php:
|
2292 |
msgid "Showing {num} of {total} results"
|
2293 |
msgstr ""
|
2294 |
|
@@ -2405,28 +2447,28 @@ msgid ""
|
|
2405 |
"initial query which can reduce stress on your server."
|
2406 |
msgstr ""
|
2407 |
|
|
|
|
|
|
|
|
|
2408 |
#: core/functions.php:186
|
2409 |
-
msgid "
|
2410 |
msgstr ""
|
2411 |
|
2412 |
#: core/functions.php:187
|
2413 |
msgid ""
|
2414 |
-
"The
|
2415 |
-
"
|
2416 |
-
msgstr ""
|
2417 |
-
|
2418 |
-
#: core/functions.php:200
|
2419 |
-
msgid "Search Engine Optimization"
|
2420 |
msgstr ""
|
2421 |
|
2422 |
#: core/functions.php:201
|
2423 |
-
msgid "
|
2424 |
msgstr ""
|
2425 |
|
2426 |
#: core/functions.php:202
|
2427 |
msgid ""
|
2428 |
-
"The
|
2429 |
-
"
|
2430 |
msgstr ""
|
2431 |
|
2432 |
#: core/functions.php:216
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: Ajax Load More\n"
|
5 |
+
"POT-Creation-Date: 2019-01-15 12:45-0500\n"
|
6 |
"PO-Revision-Date: 2018-06-20 13:05-0500\n"
|
7 |
"Last-Translator: Darren Cooney <darren@connekthq.com>\n"
|
8 |
"Language-Team: \n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
"Content-Transfer-Encoding: 8bit\n"
|
13 |
+
"X-Generator: Poedit 2.2.1\n"
|
14 |
"X-Poedit-Basepath: ..\n"
|
15 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
16 |
"X-Poedit-KeywordsList: __;_e\n"
|
139 |
"to read and write files within the /ajax-load-more/core/repeater directory."
|
140 |
msgstr ""
|
141 |
|
142 |
+
#: admin/admin.php:483 admin/admin.php:484 ajax-load-more.php:297
|
143 |
msgid "Settings"
|
144 |
msgstr ""
|
145 |
|
326 |
msgstr ""
|
327 |
|
328 |
#: admin/admin.php:1585 admin/shortcode-builder/shortcode-builder.php:199
|
329 |
+
#: core/classes/class.alm-shortcode.php:166
|
330 |
msgid "Older Posts"
|
331 |
msgstr ""
|
332 |
|
623 |
#: admin/shortcode-builder/components/paging.php:12
|
624 |
#: admin/shortcode-builder/components/paging.php:35
|
625 |
#: admin/shortcode-builder/components/preloaded.php:13
|
|
|
626 |
#: admin/shortcode-builder/components/rest-api.php:28
|
627 |
#: admin/shortcode-builder/components/rest-api.php:108
|
628 |
#: admin/shortcode-builder/components/seo.php:14
|
629 |
+
#: admin/shortcode-builder/components/single-post.php:13
|
630 |
#: admin/shortcode-builder/components/users.php:13
|
631 |
#: admin/shortcode-builder/shortcode-builder.php:130
|
632 |
#: admin/shortcode-builder/shortcode-builder.php:233
|
633 |
#: admin/shortcode-builder/shortcode-builder.php:293
|
634 |
#: admin/shortcode-builder/shortcode-builder.php:424
|
635 |
#: admin/shortcode-builder/shortcode-builder.php:491
|
636 |
+
#: admin/shortcode-builder/shortcode-builder.php:517
|
637 |
+
#: admin/shortcode-builder/shortcode-builder.php:565
|
638 |
msgid "True"
|
639 |
msgstr ""
|
640 |
|
649 |
#: admin/shortcode-builder/components/paging.php:16
|
650 |
#: admin/shortcode-builder/components/paging.php:39
|
651 |
#: admin/shortcode-builder/components/preloaded.php:17
|
|
|
652 |
#: admin/shortcode-builder/components/rest-api.php:32
|
653 |
#: admin/shortcode-builder/components/rest-api.php:112
|
654 |
#: admin/shortcode-builder/components/seo.php:18
|
655 |
+
#: admin/shortcode-builder/components/single-post.php:17
|
656 |
#: admin/shortcode-builder/components/users.php:17
|
657 |
#: admin/shortcode-builder/shortcode-builder.php:134
|
658 |
#: admin/shortcode-builder/shortcode-builder.php:237
|
659 |
#: admin/shortcode-builder/shortcode-builder.php:297
|
660 |
#: admin/shortcode-builder/shortcode-builder.php:428
|
661 |
#: admin/shortcode-builder/shortcode-builder.php:495
|
662 |
+
#: admin/shortcode-builder/shortcode-builder.php:521
|
663 |
+
#: admin/shortcode-builder/shortcode-builder.php:569
|
664 |
msgid "False"
|
665 |
msgstr ""
|
666 |
|
667 |
#: admin/shortcode-builder/components/acf.php:29
|
668 |
#: admin/shortcode-builder/components/comments.php:28
|
669 |
#: admin/shortcode-builder/components/nextpage.php:30
|
670 |
+
#: admin/shortcode-builder/components/single-post.php:28
|
671 |
msgid "Post ID"
|
672 |
msgstr ""
|
673 |
|
682 |
msgid "The ID of the current page/post."
|
683 |
msgstr ""
|
684 |
|
685 |
+
#: admin/shortcode-builder/components/acf.php:42
|
686 |
+
#: admin/shortcode-builder/components/acf.php:47
|
687 |
+
#: admin/shortcode-builder/components/acf.php:67
|
688 |
msgid "Field Type"
|
689 |
msgstr ""
|
690 |
|
691 |
+
#: admin/shortcode-builder/components/acf.php:43
|
692 |
msgid "Select the type of ACF field"
|
693 |
msgstr ""
|
694 |
|
695 |
+
#: admin/shortcode-builder/components/acf.php:49
|
696 |
msgid "Select Field Type"
|
697 |
msgstr ""
|
698 |
|
699 |
+
#: admin/shortcode-builder/components/acf.php:50
|
700 |
msgid "Flexible Content"
|
701 |
msgstr ""
|
702 |
|
703 |
+
#: admin/shortcode-builder/components/acf.php:51
|
704 |
msgid "Gallery"
|
705 |
msgstr ""
|
706 |
|
707 |
+
#: admin/shortcode-builder/components/acf.php:52
|
708 |
msgid "Relationship"
|
709 |
msgstr ""
|
710 |
|
711 |
+
#: admin/shortcode-builder/components/acf.php:53
|
712 |
msgid "Repeater"
|
713 |
msgstr ""
|
714 |
|
715 |
+
#: admin/shortcode-builder/components/acf.php:62
|
716 |
msgid "Field Name"
|
717 |
msgstr ""
|
718 |
|
719 |
+
#: admin/shortcode-builder/components/acf.php:63
|
720 |
msgid "Enter the name of the ACF field"
|
721 |
msgstr ""
|
722 |
|
747 |
msgstr ""
|
748 |
|
749 |
#: admin/shortcode-builder/components/comments.php:29
|
750 |
+
#: admin/shortcode-builder/components/single-post.php:29
|
751 |
msgid "The ID of the current single post."
|
752 |
msgstr ""
|
753 |
|
846 |
"within your theme directory to locate the callback function for your theme."
|
847 |
msgstr ""
|
848 |
|
849 |
+
#: admin/shortcode-builder/components/comments.php:144
|
850 |
msgid ""
|
851 |
"You must add the comments shortcode directly to your single template file "
|
852 |
"using the <a href=\"https://developer.wordpress.org/reference/functions/"
|
853 |
+
"do_shortcode/\" target=\"_blank\">do_shortcode</a> method."
|
854 |
+
msgstr ""
|
855 |
+
|
856 |
+
#: admin/shortcode-builder/components/comments.php:144
|
857 |
+
#: admin/shortcode-builder/components/single-post.php:42
|
858 |
+
#: admin/shortcode-builder/components/single-post.php:119
|
859 |
+
msgid "View Docs"
|
860 |
msgstr ""
|
861 |
|
862 |
#: admin/shortcode-builder/components/cta.php:3 core/functions.php:65
|
908 |
msgid "-- Select Repeater --"
|
909 |
msgstr ""
|
910 |
|
911 |
+
#: admin/shortcode-builder/components/cta.php:86
|
912 |
+
msgid "Call to actions do NOT count as a post within an Ajax Load More loop."
|
913 |
+
msgstr ""
|
914 |
+
|
915 |
+
#: admin/shortcode-builder/components/cta.php:87
|
916 |
msgid ""
|
917 |
+
"For example, if you set <strong>posts_per_page=\"5\"</strong> in your "
|
918 |
+
"shortcode, 6 items will be displayed."
|
|
|
919 |
msgstr ""
|
920 |
|
921 |
#: admin/shortcode-builder/components/filters.php:6
|
1041 |
"browser buttons)"
|
1042 |
msgstr ""
|
1043 |
|
1044 |
+
#: admin/shortcode-builder/components/nextpage.php:112
|
1045 |
msgid ""
|
1046 |
"You must add the Next Page shortcode directly to your single template file "
|
1047 |
"using the <a href=\"https://developer.wordpress.org/reference/functions/"
|
1100 |
msgid "Enter the number of posts to preload."
|
1101 |
msgstr ""
|
1102 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1103 |
#: admin/shortcode-builder/components/rest-api.php:18
|
1104 |
+
#: admin/views/settings.php:43
|
1105 |
msgid "REST API"
|
1106 |
msgstr ""
|
1107 |
|
1163 |
|
1164 |
#: admin/shortcode-builder/components/rest-api.php:88
|
1165 |
#: admin/shortcode-builder/shortcode-builder.php:510
|
1166 |
+
#: admin/shortcode-builder/shortcode-builder.php:728
|
1167 |
+
#: admin/shortcode-builder/shortcode-builder.php:818
|
1168 |
+
#: admin/shortcode-builder/shortcode-builder.php:961
|
1169 |
+
#: admin/shortcode-builder/shortcode-builder.php:997
|
1170 |
+
#: admin/shortcode-builder/shortcode-builder.php:1051
|
1171 |
msgid "View Example"
|
1172 |
msgstr ""
|
1173 |
|
1176 |
"Enable debugging (console.log) of REST API responses in the browser console. "
|
1177 |
msgstr ""
|
1178 |
|
1179 |
+
#: admin/shortcode-builder/components/rest-api.php:121
|
1180 |
msgid ""
|
1181 |
"Visit <a href=\"http://v2.wp-api.org/\" target=\"_blank\">http://v2.wp-api."
|
1182 |
"org</a> for documentation on creating custom <a href=\"http://v2.wp-api.org/"
|
1193 |
"Enable address bar URL rewrites as users page through ajax loaded content."
|
1194 |
msgstr ""
|
1195 |
|
1196 |
+
#: admin/shortcode-builder/components/single-post.php:3
|
1197 |
+
msgid "Single Posts"
|
1198 |
+
msgstr ""
|
1199 |
+
|
1200 |
+
#: admin/shortcode-builder/components/single-post.php:6
|
1201 |
+
msgid "Enable the infinite scrolling of single posts."
|
1202 |
+
msgstr ""
|
1203 |
+
|
1204 |
+
#: admin/shortcode-builder/components/single-post.php:40
|
1205 |
+
msgid "Post Ordering"
|
1206 |
+
msgstr ""
|
1207 |
+
|
1208 |
+
#: admin/shortcode-builder/components/single-post.php:40
|
1209 |
+
msgid ""
|
1210 |
+
"By default, the Single Posts add-on will use the core WordPress "
|
1211 |
+
"`get_previous_post` function, but you can over ride that here."
|
1212 |
+
msgstr ""
|
1213 |
+
|
1214 |
+
#: admin/shortcode-builder/components/single-post.php:41
|
1215 |
+
msgid "Select the load order of posts while infinite scrolling."
|
1216 |
+
msgstr ""
|
1217 |
+
|
1218 |
+
#: admin/shortcode-builder/components/single-post.php:47
|
1219 |
+
msgid "Previous Post (by date DESC)"
|
1220 |
+
msgstr ""
|
1221 |
+
|
1222 |
+
#: admin/shortcode-builder/components/single-post.php:48
|
1223 |
+
msgid "Latest (Start at most recent post)"
|
1224 |
+
msgstr ""
|
1225 |
+
|
1226 |
+
#: admin/shortcode-builder/components/single-post.php:49
|
1227 |
+
msgid "Next Post (by date ASC)"
|
1228 |
+
msgstr ""
|
1229 |
+
|
1230 |
+
#: admin/shortcode-builder/components/single-post.php:50
|
1231 |
+
#: admin/shortcode-builder/components/single-post.php:60
|
1232 |
+
msgid "Post ID Array"
|
1233 |
+
msgstr ""
|
1234 |
+
|
1235 |
+
#: admin/shortcode-builder/components/single-post.php:61
|
1236 |
+
msgid "A comma separated list of post ID's to query by order."
|
1237 |
+
msgstr ""
|
1238 |
+
|
1239 |
+
#: admin/shortcode-builder/components/single-post.php:74
|
1240 |
+
#: admin/shortcode-builder/shortcode-builder.php:901
|
1241 |
+
msgid "Taxonomy"
|
1242 |
+
msgstr ""
|
1243 |
+
|
1244 |
+
#: admin/shortcode-builder/components/single-post.php:74
|
1245 |
+
msgid ""
|
1246 |
+
"Selecting a taxonomy means only previous posts from the same taxonomy term "
|
1247 |
+
"will be returned. If a post has multiple terms attached, each term will be "
|
1248 |
+
"considered using an OR relationship query"
|
1249 |
+
msgstr ""
|
1250 |
+
|
1251 |
+
#: admin/shortcode-builder/components/single-post.php:75
|
1252 |
+
msgid "Query previous posts from the same taxonomy term(s)."
|
1253 |
+
msgstr ""
|
1254 |
+
|
1255 |
+
#: admin/shortcode-builder/components/single-post.php:88
|
1256 |
+
#: admin/shortcode-builder/includes/tax-query-options.php:5
|
1257 |
+
#: admin/shortcode-builder/includes/tax-query-options.php:50
|
1258 |
+
#: admin/shortcode-builder/includes/tax-query-options.php:81
|
1259 |
+
msgid "Select Taxonomy"
|
1260 |
+
msgstr ""
|
1261 |
+
|
1262 |
+
#: admin/shortcode-builder/components/single-post.php:89
|
1263 |
+
#: admin/shortcode-builder/shortcode-builder.php:722
|
1264 |
+
msgid "Category"
|
1265 |
+
msgstr ""
|
1266 |
+
|
1267 |
+
#: admin/shortcode-builder/components/single-post.php:90
|
1268 |
+
#: admin/shortcode-builder/shortcode-builder.php:811
|
1269 |
+
msgid "Tag"
|
1270 |
+
msgstr ""
|
1271 |
+
|
1272 |
+
#: admin/shortcode-builder/components/single-post.php:106
|
1273 |
+
msgid "Excluded Terms "
|
1274 |
+
msgstr ""
|
1275 |
+
|
1276 |
+
#: admin/shortcode-builder/components/single-post.php:106
|
1277 |
+
msgid "A comma-separated list of excluded terms by ID"
|
1278 |
+
msgstr ""
|
1279 |
+
|
1280 |
+
#: admin/shortcode-builder/components/single-post.php:107
|
1281 |
+
msgid "Exclude posts by term ID from the previous post query."
|
1282 |
+
msgstr ""
|
1283 |
+
|
1284 |
+
#: admin/shortcode-builder/components/single-post.php:119
|
1285 |
+
msgid ""
|
1286 |
+
"You must add the Previous Post shortcode directly to your single template "
|
1287 |
+
"file using the <a href=\"https://developer.wordpress.org/reference/functions/"
|
1288 |
+
"do_shortcode/\" target=\"_blank\">do_shortcode</a> method."
|
1289 |
+
msgstr ""
|
1290 |
+
|
1291 |
#: admin/shortcode-builder/components/users.php:3 core/functions.php:230
|
1292 |
msgid "Users"
|
1293 |
msgstr ""
|
1309 |
msgstr ""
|
1310 |
|
1311 |
#: admin/shortcode-builder/components/users.php:54
|
1312 |
+
#: admin/shortcode-builder/shortcode-builder.php:725
|
1313 |
+
#: admin/shortcode-builder/shortcode-builder.php:814
|
1314 |
+
#: admin/shortcode-builder/shortcode-builder.php:1038
|
1315 |
msgid "Include"
|
1316 |
msgstr ""
|
1317 |
|
1320 |
msgstr ""
|
1321 |
|
1322 |
#: admin/shortcode-builder/components/users.php:68
|
1323 |
+
#: admin/shortcode-builder/shortcode-builder.php:773
|
1324 |
+
#: admin/shortcode-builder/shortcode-builder.php:864
|
1325 |
+
#: admin/shortcode-builder/shortcode-builder.php:1049
|
1326 |
msgid "Exclude"
|
1327 |
msgstr ""
|
1328 |
|
1347 |
msgstr ""
|
1348 |
|
1349 |
#: admin/shortcode-builder/components/users.php:99
|
1350 |
+
#: admin/shortcode-builder/shortcode-builder.php:1091
|
1351 |
msgid "Order"
|
1352 |
msgstr ""
|
1353 |
|
1354 |
#: admin/shortcode-builder/components/users.php:106
|
1355 |
+
#: admin/shortcode-builder/shortcode-builder.php:1098
|
1356 |
msgid "Order By"
|
1357 |
msgstr ""
|
1358 |
|
1405 |
msgstr ""
|
1406 |
|
1407 |
#: admin/shortcode-builder/includes/tax-query-options.php:36
|
1408 |
+
#: admin/shortcode-builder/shortcode-builder.php:933
|
1409 |
msgid "Relation:"
|
1410 |
msgstr ""
|
1411 |
|
1436 |
msgid "Set a unique ID for this Ajax Load More instance."
|
1437 |
msgstr ""
|
1438 |
|
1439 |
+
#: admin/shortcode-builder/shortcode-builder.php:58
|
1440 |
+
#: admin/views/repeater-templates.php:478
|
1441 |
+
msgid "Learn More"
|
1442 |
+
msgstr ""
|
1443 |
+
|
1444 |
#: admin/shortcode-builder/shortcode-builder.php:64
|
1445 |
msgid "Generate Unique ID"
|
1446 |
msgstr ""
|
1547 |
#: admin/shortcode-builder/shortcode-builder.php:248
|
1548 |
msgid ""
|
1549 |
"The distance from the bottom of the screen to trigger loading of posts. "
|
1550 |
+
"(Default = 100)"
|
1551 |
msgstr ""
|
1552 |
|
1553 |
#: admin/shortcode-builder/shortcode-builder.php:260
|
1704 |
msgstr ""
|
1705 |
|
1706 |
#: admin/shortcode-builder/shortcode-builder.php:444
|
1707 |
+
msgid "This setting is not available with the Single Post or Next Page add-ons"
|
|
|
1708 |
msgstr ""
|
1709 |
|
1710 |
#: admin/shortcode-builder/shortcode-builder.php:445
|
1746 |
#: admin/shortcode-builder/shortcode-builder.php:509
|
1747 |
msgid ""
|
1748 |
"Display progress bar indicator at the top of the window while loading Ajax "
|
1749 |
+
"content."
|
1750 |
msgstr ""
|
1751 |
|
1752 |
+
#: admin/shortcode-builder/shortcode-builder.php:536
|
1753 |
msgid "Color"
|
1754 |
msgstr ""
|
1755 |
|
1756 |
+
#: admin/shortcode-builder/shortcode-builder.php:537
|
1757 |
msgid "Enter the hex color of the progress bar"
|
1758 |
msgstr ""
|
1759 |
|
1760 |
+
#: admin/shortcode-builder/shortcode-builder.php:555
|
1761 |
msgid "Images Loaded"
|
1762 |
msgstr ""
|
1763 |
|
1764 |
+
#: admin/shortcode-builder/shortcode-builder.php:558
|
1765 |
msgid "Wait for all images to load before displaying ajax loaded content"
|
1766 |
msgstr ""
|
1767 |
|
1768 |
+
#: admin/shortcode-builder/shortcode-builder.php:558
|
1769 |
msgid "Background images are not supported"
|
1770 |
msgstr ""
|
1771 |
|
1772 |
+
#: admin/shortcode-builder/shortcode-builder.php:580
|
1773 |
msgid "Destroy After"
|
1774 |
msgstr ""
|
1775 |
|
1776 |
+
#: admin/shortcode-builder/shortcode-builder.php:584
|
1777 |
msgid ""
|
1778 |
"Remove Ajax Load More functionality after {<em>n</em>} number of pages have "
|
1779 |
"been loaded."
|
1780 |
msgstr ""
|
1781 |
|
1782 |
+
#: admin/shortcode-builder/shortcode-builder.php:603
|
1783 |
msgid "Query Parameters"
|
1784 |
msgstr ""
|
1785 |
|
1786 |
+
#: admin/shortcode-builder/shortcode-builder.php:608
|
1787 |
msgid "Posts Per Page"
|
1788 |
msgstr ""
|
1789 |
|
1790 |
+
#: admin/shortcode-builder/shortcode-builder.php:611
|
1791 |
msgid "Select the number of posts to load with each request."
|
1792 |
msgstr ""
|
1793 |
|
1794 |
+
#: admin/shortcode-builder/shortcode-builder.php:630
|
1795 |
msgid "Post Type"
|
1796 |
msgstr ""
|
1797 |
|
1798 |
+
#: admin/shortcode-builder/shortcode-builder.php:635
|
1799 |
msgid "Select the Post Types to include in this Ajax Load More query."
|
1800 |
msgstr ""
|
1801 |
|
1802 |
+
#: admin/shortcode-builder/shortcode-builder.php:649
|
1803 |
msgid "Any"
|
1804 |
msgstr ""
|
1805 |
|
1806 |
+
#: admin/shortcode-builder/shortcode-builder.php:661
|
1807 |
msgid "Sticky Posts"
|
1808 |
msgstr ""
|
1809 |
|
1810 |
+
#: admin/shortcode-builder/shortcode-builder.php:661
|
1811 |
msgid "Sticky posts are only available for Posts"
|
1812 |
msgstr ""
|
1813 |
|
1814 |
+
#: admin/shortcode-builder/shortcode-builder.php:662
|
1815 |
msgid ""
|
1816 |
"Preserve the ordering of sticky posts by having them appear first in the "
|
1817 |
"Ajax listing."
|
1818 |
msgstr ""
|
1819 |
|
1820 |
+
#: admin/shortcode-builder/shortcode-builder.php:669
|
1821 |
msgid "Enable Sticky Posts"
|
1822 |
msgstr ""
|
1823 |
|
1824 |
+
#: admin/shortcode-builder/shortcode-builder.php:691
|
1825 |
msgid "Post Format"
|
1826 |
msgstr ""
|
1827 |
|
1828 |
+
#: admin/shortcode-builder/shortcode-builder.php:694
|
1829 |
msgid ""
|
1830 |
"Select a <a href=\"http://codex.wordpress.org/Post_Formats\" target=\"_blank"
|
1831 |
"\">Post Format</a> to query."
|
1832 |
msgstr ""
|
1833 |
|
1834 |
+
#: admin/shortcode-builder/shortcode-builder.php:697
|
1835 |
msgid "Select Post Format"
|
1836 |
msgstr ""
|
1837 |
|
1838 |
+
#: admin/shortcode-builder/shortcode-builder.php:698
|
1839 |
msgid "Standard"
|
1840 |
msgstr ""
|
1841 |
|
1842 |
+
#: admin/shortcode-builder/shortcode-builder.php:725
|
1843 |
msgid "Get posts by category using a category_name or category__and query"
|
1844 |
msgstr ""
|
1845 |
|
1846 |
+
#: admin/shortcode-builder/shortcode-builder.php:726
|
1847 |
msgid "Comma separated list of categories to include by"
|
1848 |
msgstr ""
|
1849 |
|
1850 |
+
#: admin/shortcode-builder/shortcode-builder.php:726
|
1851 |
+
#: admin/shortcode-builder/shortcode-builder.php:815
|
1852 |
msgid "slug"
|
1853 |
msgstr ""
|
1854 |
|
1855 |
+
#: admin/shortcode-builder/shortcode-builder.php:762
|
1856 |
+
#: admin/shortcode-builder/shortcode-builder.php:853
|
1857 |
msgid "What's this"
|
1858 |
msgstr ""
|
1859 |
|
1860 |
+
#: admin/shortcode-builder/shortcode-builder.php:775
|
1861 |
msgid "Comma separated list of categories to exclude by ID."
|
1862 |
msgstr ""
|
1863 |
|
1864 |
+
#: admin/shortcode-builder/shortcode-builder.php:814
|
1865 |
msgid "Get posts by tags using a tag or tag__and query"
|
1866 |
msgstr ""
|
1867 |
|
1868 |
+
#: admin/shortcode-builder/shortcode-builder.php:815
|
1869 |
msgid "Comma separated list of tags to include by"
|
1870 |
msgstr ""
|
1871 |
|
1872 |
+
#: admin/shortcode-builder/shortcode-builder.php:866
|
1873 |
msgid "Comma separated list of tags to exclude by ID"
|
1874 |
msgstr ""
|
1875 |
|
1876 |
+
#: admin/shortcode-builder/shortcode-builder.php:904
|
1877 |
msgid "Select a taxonomy then select the terms and an operator."
|
1878 |
msgstr ""
|
1879 |
|
1880 |
+
#: admin/shortcode-builder/shortcode-builder.php:909
|
1881 |
+
#: admin/shortcode-builder/shortcode-builder.php:947
|
1882 |
msgid "Add Another"
|
1883 |
msgstr ""
|
1884 |
|
1885 |
+
#: admin/shortcode-builder/shortcode-builder.php:919
|
1886 |
msgid "Custom Fields (Meta_Query)"
|
1887 |
msgstr ""
|
1888 |
|
1889 |
+
#: admin/shortcode-builder/shortcode-builder.php:922
|
1890 |
msgid ""
|
1891 |
"Query for <a href=\"http://codex.wordpress.org/Class_Reference/WP_Meta_Query"
|
1892 |
"\" target=\"_blank\">custom field</a> by entering a custom field key, value "
|
1893 |
"and operator."
|
1894 |
msgstr ""
|
1895 |
|
1896 |
+
#: admin/shortcode-builder/shortcode-builder.php:933
|
1897 |
msgid ""
|
1898 |
"The logical relationship between each custom field when there is more than "
|
1899 |
"one"
|
1900 |
msgstr ""
|
1901 |
|
1902 |
+
#: admin/shortcode-builder/shortcode-builder.php:957
|
1903 |
msgid "Date"
|
1904 |
msgstr ""
|
1905 |
|
1906 |
+
#: admin/shortcode-builder/shortcode-builder.php:960
|
1907 |
+
msgid "Enter a year, month(number) and day to query by date archive."
|
|
|
|
|
|
|
1908 |
msgstr ""
|
1909 |
|
1910 |
+
#: admin/shortcode-builder/shortcode-builder.php:967
|
1911 |
msgid "Year:"
|
1912 |
msgstr ""
|
1913 |
|
1914 |
+
#: admin/shortcode-builder/shortcode-builder.php:971
|
1915 |
msgid "Month:"
|
1916 |
msgstr ""
|
1917 |
|
1918 |
+
#: admin/shortcode-builder/shortcode-builder.php:975
|
1919 |
msgid "Day:"
|
1920 |
msgstr ""
|
1921 |
|
1922 |
+
#: admin/shortcode-builder/shortcode-builder.php:992
|
1923 |
msgid "Author"
|
1924 |
msgstr ""
|
1925 |
|
1926 |
+
#: admin/shortcode-builder/shortcode-builder.php:995
|
1927 |
msgid "Select an Author to query(by ID)."
|
1928 |
msgstr ""
|
1929 |
|
1930 |
+
#: admin/shortcode-builder/shortcode-builder.php:1019
|
1931 |
msgid "Search Term"
|
1932 |
msgstr ""
|
1933 |
|
1934 |
+
#: admin/shortcode-builder/shortcode-builder.php:1022
|
1935 |
msgid "Enter a search term to query."
|
1936 |
msgstr ""
|
1937 |
|
1938 |
+
#: admin/shortcode-builder/shortcode-builder.php:1026
|
1939 |
msgid "Enter search term"
|
1940 |
msgstr ""
|
1941 |
|
1942 |
+
#: admin/shortcode-builder/shortcode-builder.php:1035
|
1943 |
msgid "Post Parameters"
|
1944 |
msgstr ""
|
1945 |
|
1946 |
+
#: admin/shortcode-builder/shortcode-builder.php:1039
|
1947 |
msgid "A comma separated list of post ID's to query."
|
1948 |
msgstr ""
|
1949 |
|
1950 |
+
#: admin/shortcode-builder/shortcode-builder.php:1043
|
1951 |
msgid "225, 340, 818, etc..."
|
1952 |
msgstr ""
|
1953 |
|
1954 |
+
#: admin/shortcode-builder/shortcode-builder.php:1050
|
1955 |
msgid "A comma separated list of post ID's to exclude from query."
|
1956 |
msgstr ""
|
1957 |
|
1958 |
+
#: admin/shortcode-builder/shortcode-builder.php:1061
|
1959 |
msgid "Post Status"
|
1960 |
msgstr ""
|
1961 |
|
1962 |
+
#: admin/shortcode-builder/shortcode-builder.php:1061
|
1963 |
msgid ""
|
1964 |
"Post Status parameters are only available for logged in (admin) users. Non "
|
1965 |
"logged in users will only have access to view content in a 'publish' or "
|
1966 |
"'inherit' state."
|
1967 |
msgstr ""
|
1968 |
|
1969 |
+
#: admin/shortcode-builder/shortcode-builder.php:1062
|
1970 |
msgid "Select status of the post."
|
1971 |
msgstr ""
|
1972 |
|
1973 |
+
#: admin/shortcode-builder/shortcode-builder.php:1067
|
1974 |
msgid "Published"
|
1975 |
msgstr ""
|
1976 |
|
1977 |
+
#: admin/shortcode-builder/shortcode-builder.php:1084
|
1978 |
msgid "Ordering"
|
1979 |
msgstr ""
|
1980 |
|
1981 |
+
#: admin/shortcode-builder/shortcode-builder.php:1087
|
1982 |
msgid "Sort posts by Order and Orderby parameters."
|
1983 |
msgstr ""
|
1984 |
|
1985 |
+
#: admin/shortcode-builder/shortcode-builder.php:1119
|
1986 |
msgid "Offset"
|
1987 |
msgstr ""
|
1988 |
|
1989 |
+
#: admin/shortcode-builder/shortcode-builder.php:1122
|
1990 |
msgid "Offset the initial query by <em>'n'</em> number of posts"
|
1991 |
msgstr ""
|
1992 |
|
1993 |
+
#: admin/shortcode-builder/shortcode-builder.php:1135
|
1994 |
msgid "Custom Arguments"
|
1995 |
msgstr ""
|
1996 |
|
1997 |
+
#: admin/shortcode-builder/shortcode-builder.php:1138
|
1998 |
msgid "A semicolon separated list of custom value:pair arguments."
|
1999 |
msgstr ""
|
2000 |
|
2001 |
+
#: admin/shortcode-builder/shortcode-builder.php:1138
|
2002 |
msgid ""
|
2003 |
"Custom Arguments can be used to query by parameters not available in the "
|
2004 |
"Shortcode Builder"
|
2005 |
msgstr ""
|
2006 |
|
2007 |
+
#: admin/shortcode-builder/shortcode-builder.php:1142
|
2008 |
msgid "event_display:upcoming"
|
2009 |
msgstr ""
|
2010 |
|
2270 |
"org/The_Loop\" target=\"_blank\">WordPress loop</a>"
|
2271 |
msgstr ""
|
2272 |
|
|
|
|
|
|
|
|
|
2273 |
#: admin/views/settings.php:10
|
2274 |
msgid "A powerful plugin to add infinite scroll functionality to your website."
|
2275 |
msgstr ""
|
2290 |
msgid "Layouts"
|
2291 |
msgstr ""
|
2292 |
|
2293 |
+
#: admin/views/settings.php:45
|
2294 |
msgid "SEO"
|
2295 |
msgstr ""
|
2296 |
|
2297 |
+
#: admin/views/settings.php:47 core/functions.php:200
|
2298 |
+
msgid "Single Post"
|
2299 |
+
msgstr ""
|
2300 |
+
|
2301 |
#: admin/views/shortcode-builder.php:7
|
2302 |
msgid ""
|
2303 |
"Create your own Ajax Load More <a href=\"http://en.support.wordpress.com/"
|
2318 |
"theme."
|
2319 |
msgstr ""
|
2320 |
|
2321 |
+
#: admin/views/shortcode-builder.php:38
|
2322 |
+
msgid "Copy Shortcode"
|
2323 |
msgstr ""
|
2324 |
|
2325 |
#: admin/views/shortcode-builder.php:39
|
2326 |
+
msgid "Reset"
|
2327 |
msgstr ""
|
2328 |
|
2329 |
+
#: ajax-load-more.php:242
|
2330 |
msgid "Error creating repeater template directory"
|
2331 |
msgstr ""
|
2332 |
|
2333 |
+
#: ajax-load-more.php:392
|
2334 |
msgid "Showing {num} of {total} results"
|
2335 |
msgstr ""
|
2336 |
|
2447 |
"initial query which can reduce stress on your server."
|
2448 |
msgstr ""
|
2449 |
|
2450 |
+
#: core/functions.php:185
|
2451 |
+
msgid "Search Engine Optimization"
|
2452 |
+
msgstr ""
|
2453 |
+
|
2454 |
#: core/functions.php:186
|
2455 |
+
msgid "Generate unique paging URLs with every Ajax Load More query."
|
2456 |
msgstr ""
|
2457 |
|
2458 |
#: core/functions.php:187
|
2459 |
msgid ""
|
2460 |
+
"The SEO add-on will optimize your ajax loaded content for search engines by "
|
2461 |
+
"generating unique URLs with every query."
|
|
|
|
|
|
|
|
|
2462 |
msgstr ""
|
2463 |
|
2464 |
#: core/functions.php:201
|
2465 |
+
msgid "An add-on to enable infinite scrolling of single posts."
|
2466 |
msgstr ""
|
2467 |
|
2468 |
#: core/functions.php:202
|
2469 |
msgid ""
|
2470 |
+
"The Single Post add-on will load full posts as you scroll and update the "
|
2471 |
+
"browser URL to the current post."
|
2472 |
msgstr ""
|
2473 |
|
2474 |
#: core/functions.php:216
|
package.json
CHANGED
@@ -9,12 +9,13 @@
|
|
9 |
"private": true
|
10 |
},
|
11 |
"devDependencies": {
|
12 |
-
"babel-core": "^6.26.
|
13 |
"babel-loader": "^7.1.2",
|
|
|
14 |
"babel-preset-es2015": "latest",
|
15 |
-
"gulp": "
|
16 |
"gulp-autoprefixer": "latest",
|
17 |
-
"gulp-babel": "
|
18 |
"gulp-clean-css": "latest",
|
19 |
"gulp-concat": "latest",
|
20 |
"gulp-jshint": "latest",
|
9 |
"private": true
|
10 |
},
|
11 |
"devDependencies": {
|
12 |
+
"babel-core": "^6.26.3",
|
13 |
"babel-loader": "^7.1.2",
|
14 |
+
"babel-preset-env": "^1.7.0",
|
15 |
"babel-preset-es2015": "latest",
|
16 |
+
"gulp": "3.9.1",
|
17 |
"gulp-autoprefixer": "latest",
|
18 |
+
"gulp-babel": "^7.0.1",
|
19 |
"gulp-clean-css": "latest",
|
20 |
"gulp-concat": "latest",
|
21 |
"gulp-jshint": "latest",
|