Version Description
Download this release
Release Info
Developer | dcooney |
Plugin | WordPress Infinite Scroll – Ajax Load More |
Version | 3.5 |
Comparing to | |
See all releases |
Code changes from version 3.4.1 to 3.5
- README.txt +25 -5
- admin/admin.php +80 -93
- admin/dist/css/admin.css +12 -11
- admin/img/add.png +0 -0
- admin/includes/cta/writeable.php +13 -40
- admin/shortcode-builder/js/shortcode-builder.js +1 -5
- admin/shortcode-builder/shortcode-builder.php +1 -15
- admin/src/scss/admin.scss +14 -13
- admin/views/repeater-templates.php +6 -9
- ajax-load-more.php +66 -36
- core/classes/class.alm-shortcode.php +1 -1
- core/dist/css/ajax-load-more.css +15 -5
- core/dist/css/ajax-load-more.min.css +1 -1
- core/dist/js/ajax-load-more.js +172 -151
- core/dist/js/ajax-load-more.min.js +1 -1
- core/functions.php +9 -12
- core/repeater/default.php +0 -12
- core/src/js/ajax-load-more.js +165 -150
- core/src/js/helpers/helpers.js +7 -6
- core/src/js/modules/masonry.js +21 -7
- core/src/scss/ajax-load-more.scss +9 -7
- lang/ajax-load-more.pot +199 -256
- vendor/js/masonry/masonry.pkgd.min.js +9 -0
- {core/src/js/vendor → vendor/js}/pace/pace.js +0 -0
- {core/src/js/vendor → vendor/js}/pace/pace.min.js +0 -0
README.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== WordPress Infinite Scroll - Ajax Load More ===
|
2 |
Contributors: dcooney, connekthq
|
3 |
Donate link: https://connekthq.com/donate/
|
4 |
-
Tags: infinite scroll, infinite scrolling, scroll, infinite, lazy load, lazy loading, endless scroll, pagination, ajax pagination, ajax, ajax posts,
|
5 |
Requires at least: 3.6
|
6 |
-
Tested up to: 4.9.
|
7 |
-
Stable tag: 3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -107,8 +107,7 @@ Ajax Load More accepts a number of parameters that are passed to the WordPress q
|
|
107 |
* **max_pages** - Maximum number of pages to load while user is scrolling (activated on when scroll = true). Default = '0'
|
108 |
* **pause_override** - Allow scrolling to override the Pause parameter and trigger the loading of posts on scroll. Default = null
|
109 |
* **pause** - Do not load posts until user clicks the Load More button (true/false). Default = 'false'
|
110 |
-
* **transition** - Choose a posts reveal transition (
|
111 |
-
* **transition_speed** - The speed of the loading transition in milliseconds. (slide/fade/none). Default = '250'
|
112 |
* **transition_container** - Display the Ajax Load More (.alm-reveal) loading container. Default = 'true'
|
113 |
* **transition_container_classes** - Add classes to the `.alm-reveal` transition div.
|
114 |
* **masonry_selector** - The target classname of each masonry item. Default = null
|
@@ -370,6 +369,27 @@ How to install Ajax Load More.
|
|
370 |
|
371 |
== Changelog ==
|
372 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
373 |
= 3.4.1 - February 22, 2018 =
|
374 |
* UPDATE - Added compatibility for Filters + Paging add-ons.
|
375 |
* UPDATE - Added compatibility for Filters + Preloaded add-ons.
|
1 |
=== WordPress Infinite Scroll - Ajax Load More ===
|
2 |
Contributors: dcooney, connekthq
|
3 |
Donate link: https://connekthq.com/donate/
|
4 |
+
Tags: infinite scroll, infinite scrolling, scroll, infinite, lazy load, lazy loading, endless scroll, pagination, ajax pagination, ajax, ajax posts, woocommerce, ajax load more, masonry
|
5 |
Requires at least: 3.6
|
6 |
+
Tested up to: 4.9.5
|
7 |
+
Stable tag: 3.5.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
107 |
* **max_pages** - Maximum number of pages to load while user is scrolling (activated on when scroll = true). Default = '0'
|
108 |
* **pause_override** - Allow scrolling to override the Pause parameter and trigger the loading of posts on scroll. Default = null
|
109 |
* **pause** - Do not load posts until user clicks the Load More button (true/false). Default = 'false'
|
110 |
+
* **transition** - Choose a posts reveal transition (fade/masonry/none). Default = 'fade'
|
|
|
111 |
* **transition_container** - Display the Ajax Load More (.alm-reveal) loading container. Default = 'true'
|
112 |
* **transition_container_classes** - Add classes to the `.alm-reveal` transition div.
|
113 |
* **masonry_selector** - The target classname of each masonry item. Default = null
|
369 |
|
370 |
== Changelog ==
|
371 |
|
372 |
+
= 3.5.0 - April 17, 2018 =
|
373 |
+
|
374 |
+
### Notice
|
375 |
+
This Ajax Load More update contains a major change to how the default repeater template is saved and displayed.
|
376 |
+
On update, your default repeater template will be moved from `/plugins/ajax-load-more/core/repeater` to an `alm_templates` directory created within `/wp-content/uploads`.
|
377 |
+
This is a long overdue enhancement to the plugin and I highly recommend you backup your site (or Repeater Template at least) prior to updating Ajax Load More incase permission issues occur during the upgrade process.
|
378 |
+
|
379 |
+
* NEW - Updating Ajax Load More loading sequence to help with integration for Adsense and DFP advertisements in Ajax content.
|
380 |
+
* NEW - Default Repeater Template now saved and accessed from the `/wp-content/uploads` directory.
|
381 |
+
* FIX - Added a fix for WPML users that supports category and tag archives across languages [See issues](https://wpml.org/forums/topic/ajax-load-more-wpml-non-default-languages-not-loading/).
|
382 |
+
* FIX - Fixed issue with `destroy_after` not triggering at correct intervals when using [Preloaded add-on](https://connekthq.com/plugins/ajax-load-more/add-ons/preloaded/).
|
383 |
+
* FIX - Fixed issue with shortcode parameters not being sent to Ajax Load More for the [Comments add-on](https://connekthq.com/plugins/ajax-load-more/add-ons/comments/).
|
384 |
+
* UPDATE - Added support for new [SEO](https://connekthq.com/plugins/ajax-load-more/add-ons/search-engine-optimization/) add-on filter hooks.
|
385 |
+
* UPDATE - Updated CSS for the styling list elements. (`.alm-listing > li`)
|
386 |
+
* UPDATE - Packaging [Masonry v4.2.1](https://masonry.desandro.com/) in Ajax Load More as core WordPress includes an older version of Masonry that was causing issues with certain features.
|
387 |
+
* UPDATE - Simplifying Ajax Load More transition property to allow for feature enhancements (Removed 'slide' transition and jQuery animations).
|
388 |
+
* UPDATE - Removing `transition_speed` shortcode parameter and set a globe 1/4 second transition speed for all animations.
|
389 |
+
* UPDATE - Various UI/UX enhancements
|
390 |
+
* UPDATE - Code cleanup.
|
391 |
+
|
392 |
+
|
393 |
= 3.4.1 - February 22, 2018 =
|
394 |
* UPDATE - Added compatibility for Filters + Paging add-ons.
|
395 |
* UPDATE - Added compatibility for Filters + Preloaded add-ons.
|
admin/admin.php
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
add_action( '
|
3 |
add_action( 'wp_ajax_alm_save_repeater', 'alm_save_repeater' ); // Ajax Save Repeater
|
4 |
add_action( 'wp_ajax_alm_update_repeater', 'alm_update_repeater' ); // Ajax Update Repeater
|
5 |
add_action( 'wp_ajax_alm_get_tax_terms', 'alm_get_tax_terms' ); // Ajax Get Taxonomy Terms
|
@@ -29,23 +29,23 @@ function alm_admin_notice_errors() {
|
|
29 |
}
|
30 |
$class = 'notice error alm-err-notice';
|
31 |
$message = '';
|
32 |
-
$count = 0;
|
33 |
-
$addons = alm_get_addons();
|
34 |
// Loop each addon
|
35 |
foreach($addons as $addon){
|
36 |
-
$action = $addon['action']; // Get action
|
37 |
-
if (has_action($action)){
|
38 |
-
$key = $addon['key']; // Option key
|
39 |
$status = $addon['status']; // license status
|
40 |
$addon_status = get_option( $status );
|
41 |
if( !isset($addon_status) || empty($addon_status) || $addon_status !== 'valid' ) {
|
42 |
$count++;
|
43 |
-
}
|
44 |
}
|
45 |
-
}
|
46 |
if( $count > 0 ) {
|
47 |
-
$message = __( 'You have invalid <a href="admin.php?page=ajax-load-more"><b>Ajax Load More</b></a> license keys - please visit the <a href="admin.php?page=ajax-load-more-licenses">Licenses</a> section and input your license keys.', 'ajax-load-more' );
|
48 |
-
printf( '<div class="%1$s"><p>%2$s</p></div>', $class, $message );
|
49 |
}
|
50 |
}
|
51 |
|
@@ -113,17 +113,17 @@ function alm_license_activation(){
|
|
113 |
}
|
114 |
}
|
115 |
$return["msg"] = $msg;
|
116 |
-
|
117 |
update_option( $option_status, $license_data->license);
|
118 |
update_option( $option_key, $license );
|
119 |
|
120 |
wp_send_json($return);
|
121 |
-
|
122 |
|
123 |
} else {
|
124 |
-
|
125 |
echo __('You don\'t belong here.', 'ajax-load-more');
|
126 |
-
|
127 |
}
|
128 |
}
|
129 |
|
@@ -263,13 +263,8 @@ function alm_core_update() {
|
|
263 |
|
264 |
$alm_installed_ver = get_option( "alm_version" ); // Get value from WP Option tbl
|
265 |
if ( $alm_installed_ver != ALM_VERSION ) {
|
266 |
-
|
267 |
-
|
268 |
-
delete_transient('alm_dismiss_sharing');
|
269 |
-
|
270 |
-
// Update repeaters
|
271 |
-
alm_run_update();
|
272 |
-
|
273 |
}
|
274 |
}
|
275 |
|
@@ -287,14 +282,12 @@ function alm_run_update(){
|
|
287 |
|
288 |
if ( is_multisite()) {
|
289 |
$blog_ids = $wpdb->get_col( "SELECT blog_id FROM $wpdb->blogs" );
|
290 |
-
|
291 |
// Loop all blogs and run update routine
|
292 |
foreach ( $blog_ids as $blog_id ) {
|
293 |
switch_to_blog( $blog_id );
|
294 |
alm_update_template_files();
|
295 |
restore_current_blog();
|
296 |
}
|
297 |
-
|
298 |
} else {
|
299 |
alm_update_template_files();
|
300 |
}
|
@@ -303,7 +296,6 @@ function alm_run_update(){
|
|
303 |
}
|
304 |
|
305 |
|
306 |
-
|
307 |
/**
|
308 |
* alm_update_template_files
|
309 |
* Update routine for template files
|
@@ -314,52 +306,48 @@ function alm_run_update(){
|
|
314 |
function alm_update_template_files(){
|
315 |
global $wpdb;
|
316 |
$table_name = $wpdb->prefix . "alm";
|
317 |
-
$blog_id = $wpdb->blogid;
|
318 |
|
319 |
-
// Get all
|
320 |
$rows = $wpdb->get_results("SELECT * FROM $table_name WHERE name = 'default'");
|
321 |
|
322 |
if($rows){
|
|
|
323 |
foreach( $rows as $row ) { // Loop $rows
|
324 |
|
325 |
$data = $wpdb->get_var("SELECT repeaterDefault FROM $table_name WHERE name = 'default'");
|
326 |
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
echo '<script>console.log("' .$e->getMessage(). '");</script>';
|
352 |
-
}
|
353 |
}
|
354 |
|
355 |
}
|
356 |
}
|
357 |
-
|
358 |
}
|
359 |
|
360 |
|
361 |
|
362 |
-
|
363 |
/**
|
364 |
* alm_admin_menu
|
365 |
* Create Admin Menu
|
@@ -443,8 +431,8 @@ function alm_admin_menu() {
|
|
443 |
'ajax-load-more-licenses',
|
444 |
'alm_licenses_page'
|
445 |
);
|
446 |
-
|
447 |
-
|
448 |
$before_link = '<span style="display:block; border-top: 1px solid #555; padding-top: 8px;">';
|
449 |
$after_link = '</span>';
|
450 |
$style_link_icon = 'style="opacity: 0.6; font-size: 18px; height: 18px; width: 18px; position: relative; left: -2px;"';
|
@@ -461,14 +449,14 @@ function alm_admin_menu() {
|
|
461 |
add_action( 'load-' . $alm_cache_page, 'alm_load_admin_js' );
|
462 |
add_action( 'load-' . $alm_cache_page, 'alm_load_cache_admin_js' );
|
463 |
add_action( 'load-' . $alm_cache_page, 'alm_set_admin_nonce' );
|
464 |
-
}
|
|
|
|
|
465 |
|
466 |
-
if(has_action('alm_filters_installed')){
|
467 |
-
|
468 |
if(has_action('alm_cache_installed')){
|
469 |
$before_link = '<span style="display:block;">';
|
470 |
-
}
|
471 |
-
|
472 |
$alm_filters_page = add_submenu_page(
|
473 |
'ajax-load-more',
|
474 |
__('Filters', 'ajax-load-more'),
|
@@ -670,7 +658,7 @@ function alm_enqueue_admin_scripts(){
|
|
670 |
wp_enqueue_style( 'alm-core', ALM_URL. '/core/dist/css/ajax-load-more.css', '', ALM_VERSION);
|
671 |
|
672 |
// disable ACF select2 on ALM pages
|
673 |
-
wp_dequeue_style( 'acf-input' );
|
674 |
|
675 |
// CodeMirror Syntax Highlighting if on Repater Template page
|
676 |
$screen = get_current_screen();
|
@@ -689,13 +677,13 @@ function alm_enqueue_admin_scripts(){
|
|
689 |
wp_enqueue_script( 'alm-codemirror-clike', ALM_ADMIN_URL. 'codemirror/mode/clike/clike.js' );
|
690 |
wp_enqueue_script( 'alm-codemirror-php', ALM_ADMIN_URL. 'codemirror/mode/php/php.js' );
|
691 |
|
692 |
-
}
|
693 |
|
694 |
// Admin JS
|
695 |
wp_enqueue_script( 'jquery-form' );
|
696 |
wp_enqueue_script( 'alm-admin', ALM_ADMIN_URL. 'dist/js/admin.js', array( 'jquery' ), ALM_VERSION);
|
697 |
wp_enqueue_script( 'alm-shortcode-builder', ALM_ADMIN_URL. 'shortcode-builder/js/shortcode-builder.js', array( 'jquery' ), ALM_VERSION);
|
698 |
-
|
699 |
}
|
700 |
|
701 |
|
@@ -706,6 +694,7 @@ function alm_enqueue_admin_scripts(){
|
|
706 |
*
|
707 |
* @return response
|
708 |
* @since 2.0.0
|
|
|
709 |
*/
|
710 |
|
711 |
function alm_save_repeater(){
|
@@ -716,11 +705,11 @@ function alm_save_repeater(){
|
|
716 |
$table_name = $wpdb->prefix . "alm";
|
717 |
$blog_id = $wpdb->blogid;
|
718 |
$options = get_option( 'alm_settings' ); //Get plugin options
|
719 |
-
|
720 |
$nonce = $_POST["nonce"];
|
721 |
-
|
722 |
-
if (! wp_verify_nonce( $nonce, 'alm_repeater_nonce' ))
|
723 |
die('Error - unable to verify nonce, please try again.');
|
|
|
724 |
|
725 |
// Get _POST Vars
|
726 |
$c = Trim(stripslashes($_POST["value"])); // Repeater Value
|
@@ -728,25 +717,20 @@ function alm_save_repeater(){
|
|
728 |
$t = Trim(stripslashes($_POST["type"])); // Repeater name
|
729 |
$a = Trim(stripslashes($_POST["alias"])); // Repeater alias
|
730 |
|
731 |
-
// Write to repeater templates
|
732 |
|
733 |
-
//
|
734 |
if($t === 'default'){
|
735 |
|
736 |
-
|
737 |
-
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
$f = ALM_PATH. 'core/repeater/'. $blog_id .'/default.php';
|
742 |
-
}else{
|
743 |
-
$f = ALM_PATH. 'core/repeater/default.php';
|
744 |
-
}
|
745 |
|
746 |
}
|
747 |
-
// (Unlimited)
|
748 |
-
elseif($t === 'unlimited'){
|
749 |
|
|
|
|
|
750 |
if($blog_id > 1){
|
751 |
$dir = ALM_UNLIMITED_PATH. 'repeaters/'. $blog_id;
|
752 |
if( !is_dir($dir) ){
|
@@ -758,13 +742,14 @@ function alm_save_repeater(){
|
|
758 |
}
|
759 |
|
760 |
}
|
761 |
-
// (Unlimited v1)
|
762 |
-
else{
|
763 |
|
|
|
|
|
764 |
$f = ALM_REPEATER_PATH. 'repeaters/'.$n .'.php';
|
765 |
-
|
766 |
}
|
767 |
|
|
|
|
|
768 |
try {
|
769 |
$o = fopen($f, 'w+'); //Open file
|
770 |
if ( !$o ) {
|
@@ -783,7 +768,7 @@ function alm_save_repeater(){
|
|
783 |
}
|
784 |
}
|
785 |
|
786 |
-
//Save to database
|
787 |
|
788 |
if($t === 'default') {
|
789 |
$data_update = array('repeaterDefault' => "$c", 'pluginVersion' => ALM_VERSION);
|
@@ -803,10 +788,11 @@ function alm_save_repeater(){
|
|
803 |
|
804 |
//Our results
|
805 |
if($w){
|
806 |
-
echo '<span class="saved">Template Saved Successfully</span>';
|
807 |
} else {
|
808 |
-
echo '<span class="saved-error"><b>'. __('Error Writing File', 'ajax-load-more') .'</b></span><br/>Something went wrong and the data could not be saved.';
|
809 |
}
|
|
|
810 |
die();
|
811 |
|
812 |
}else {
|
@@ -819,10 +805,9 @@ function alm_save_repeater(){
|
|
819 |
/*
|
820 |
* alm_update_repeater
|
821 |
* Update repeater template from database
|
|
|
822 |
*
|
823 |
-
*
|
824 |
-
*
|
825 |
-
* @return DB value
|
826 |
* @since 2.5.0
|
827 |
*/
|
828 |
|
@@ -831,9 +816,10 @@ function alm_update_repeater(){
|
|
831 |
if (current_user_can( 'edit_theme_options' )){
|
832 |
|
833 |
$nonce = $_POST["nonce"];
|
834 |
-
// Check our nonce
|
835 |
-
if (! wp_verify_nonce( $nonce, 'alm_repeater_nonce' ))
|
836 |
die('Error - unable to verify nonce, please try again.');
|
|
|
837 |
|
838 |
// Get _POST Vars
|
839 |
$n = Trim(stripslashes($_POST["repeater"])); // Repeater name
|
@@ -854,9 +840,10 @@ function alm_update_repeater(){
|
|
854 |
die();
|
855 |
|
856 |
} else {
|
|
|
857 |
echo __('You don\'t belong here.', 'ajax-load-more');
|
858 |
-
}
|
859 |
|
|
|
860 |
}
|
861 |
|
862 |
|
@@ -1396,7 +1383,7 @@ function alm_btn_color_callback() {
|
|
1396 |
$html .= '<div class="alm-btn-wrap">';
|
1397 |
$html .= '<div class="ajax-load-more-wrap core '.$type.'"><span>'.__('Preview', 'ajax-load-more') .'</span><button class="alm-load-more-btn loading" disabled="disabled">'.apply_filters('alm_button_label', __('Older Posts', 'ajax-load-more')).'</button></div>';
|
1398 |
$html .= '</div>';
|
1399 |
-
|
1400 |
echo $html;
|
1401 |
}
|
1402 |
|
1 |
<?php
|
2 |
+
add_action( 'init', 'alm_core_update' ); // Core Update
|
3 |
add_action( 'wp_ajax_alm_save_repeater', 'alm_save_repeater' ); // Ajax Save Repeater
|
4 |
add_action( 'wp_ajax_alm_update_repeater', 'alm_update_repeater' ); // Ajax Update Repeater
|
5 |
add_action( 'wp_ajax_alm_get_tax_terms', 'alm_get_tax_terms' ); // Ajax Get Taxonomy Terms
|
29 |
}
|
30 |
$class = 'notice error alm-err-notice';
|
31 |
$message = '';
|
32 |
+
$count = 0;
|
33 |
+
$addons = alm_get_addons();
|
34 |
// Loop each addon
|
35 |
foreach($addons as $addon){
|
36 |
+
$action = $addon['action']; // Get action
|
37 |
+
if (has_action($action)){
|
38 |
+
$key = $addon['key']; // Option key
|
39 |
$status = $addon['status']; // license status
|
40 |
$addon_status = get_option( $status );
|
41 |
if( !isset($addon_status) || empty($addon_status) || $addon_status !== 'valid' ) {
|
42 |
$count++;
|
43 |
+
}
|
44 |
}
|
45 |
+
}
|
46 |
if( $count > 0 ) {
|
47 |
+
$message = __( 'You have invalid <a href="admin.php?page=ajax-load-more"><b>Ajax Load More</b></a> license keys - please visit the <a href="admin.php?page=ajax-load-more-licenses">Licenses</a> section and input your license keys.', 'ajax-load-more' );
|
48 |
+
printf( '<div class="%1$s"><p>%2$s</p></div>', $class, $message );
|
49 |
}
|
50 |
}
|
51 |
|
113 |
}
|
114 |
}
|
115 |
$return["msg"] = $msg;
|
116 |
+
|
117 |
update_option( $option_status, $license_data->license);
|
118 |
update_option( $option_key, $license );
|
119 |
|
120 |
wp_send_json($return);
|
121 |
+
|
122 |
|
123 |
} else {
|
124 |
+
|
125 |
echo __('You don\'t belong here.', 'ajax-load-more');
|
126 |
+
|
127 |
}
|
128 |
}
|
129 |
|
263 |
|
264 |
$alm_installed_ver = get_option( "alm_version" ); // Get value from WP Option tbl
|
265 |
if ( $alm_installed_ver != ALM_VERSION ) {
|
266 |
+
delete_transient('alm_dismiss_sharing'); // Delete ALM transients
|
267 |
+
alm_run_update(); // Update repeaters
|
|
|
|
|
|
|
|
|
|
|
268 |
}
|
269 |
}
|
270 |
|
282 |
|
283 |
if ( is_multisite()) {
|
284 |
$blog_ids = $wpdb->get_col( "SELECT blog_id FROM $wpdb->blogs" );
|
|
|
285 |
// Loop all blogs and run update routine
|
286 |
foreach ( $blog_ids as $blog_id ) {
|
287 |
switch_to_blog( $blog_id );
|
288 |
alm_update_template_files();
|
289 |
restore_current_blog();
|
290 |
}
|
|
|
291 |
} else {
|
292 |
alm_update_template_files();
|
293 |
}
|
296 |
}
|
297 |
|
298 |
|
|
|
299 |
/**
|
300 |
* alm_update_template_files
|
301 |
* Update routine for template files
|
306 |
function alm_update_template_files(){
|
307 |
global $wpdb;
|
308 |
$table_name = $wpdb->prefix . "alm";
|
|
|
309 |
|
310 |
+
// Get all rows where name is 'default'
|
311 |
$rows = $wpdb->get_results("SELECT * FROM $table_name WHERE name = 'default'");
|
312 |
|
313 |
if($rows){
|
314 |
+
|
315 |
foreach( $rows as $row ) { // Loop $rows
|
316 |
|
317 |
$data = $wpdb->get_var("SELECT repeaterDefault FROM $table_name WHERE name = 'default'");
|
318 |
|
319 |
+
// Create Base Repeater Dir (alm_templates)
|
320 |
+
$base_dir = AjaxLoadMore::alm_get_repeater_path();
|
321 |
+
AjaxLoadMore::alm_mkdir($base_dir);
|
322 |
+
|
323 |
+
$file = $base_dir .'/default.php';
|
324 |
+
|
325 |
+
// Wrap is file_exists to avoid updating without cause
|
326 |
+
if( !file_exists($file) ){
|
327 |
+
try {
|
328 |
+
$o = fopen($file, 'w+'); //Open file
|
329 |
+
if ( !$o ) {
|
330 |
+
throw new Exception(__('[Ajax Load More] Error opening default repeater template - Please check your file path and ensure your server is configured to allow Ajax Load More to read and write files within the /ajax-load-more/core/repeater directory', 'ajax-load-more'));
|
331 |
+
}
|
332 |
+
$w = fwrite($o, $data); //Save the file
|
333 |
+
if ( !$w ) {
|
334 |
+
throw new Exception(__('[Ajax Load More] Error updating default repeater template - Please check your file path and ensure your server is configured to allow Ajax Load More to read and write files within the /ajax-load-more/core/repeater directory.', 'ajax-load-more'));
|
335 |
+
}
|
336 |
+
fclose($o); // Close file
|
337 |
+
|
338 |
+
} catch ( Exception $e ) { // Display error message in console.
|
339 |
+
if(!isset($options['_alm_error_notices']) || $options['_alm_error_notices'] == '1'){
|
340 |
+
echo '<script>console.log("' .$e->getMessage(). '");</script>';
|
341 |
+
}
|
342 |
+
}
|
|
|
|
|
343 |
}
|
344 |
|
345 |
}
|
346 |
}
|
|
|
347 |
}
|
348 |
|
349 |
|
350 |
|
|
|
351 |
/**
|
352 |
* alm_admin_menu
|
353 |
* Create Admin Menu
|
431 |
'ajax-load-more-licenses',
|
432 |
'alm_licenses_page'
|
433 |
);
|
434 |
+
|
435 |
+
|
436 |
$before_link = '<span style="display:block; border-top: 1px solid #555; padding-top: 8px;">';
|
437 |
$after_link = '</span>';
|
438 |
$style_link_icon = 'style="opacity: 0.6; font-size: 18px; height: 18px; width: 18px; position: relative; left: -2px;"';
|
449 |
add_action( 'load-' . $alm_cache_page, 'alm_load_admin_js' );
|
450 |
add_action( 'load-' . $alm_cache_page, 'alm_load_cache_admin_js' );
|
451 |
add_action( 'load-' . $alm_cache_page, 'alm_set_admin_nonce' );
|
452 |
+
}
|
453 |
+
|
454 |
+
if(has_action('alm_filters_installed')){
|
455 |
|
|
|
|
|
456 |
if(has_action('alm_cache_installed')){
|
457 |
$before_link = '<span style="display:block;">';
|
458 |
+
}
|
459 |
+
|
460 |
$alm_filters_page = add_submenu_page(
|
461 |
'ajax-load-more',
|
462 |
__('Filters', 'ajax-load-more'),
|
658 |
wp_enqueue_style( 'alm-core', ALM_URL. '/core/dist/css/ajax-load-more.css', '', ALM_VERSION);
|
659 |
|
660 |
// disable ACF select2 on ALM pages
|
661 |
+
wp_dequeue_style( 'acf-input' );
|
662 |
|
663 |
// CodeMirror Syntax Highlighting if on Repater Template page
|
664 |
$screen = get_current_screen();
|
677 |
wp_enqueue_script( 'alm-codemirror-clike', ALM_ADMIN_URL. 'codemirror/mode/clike/clike.js' );
|
678 |
wp_enqueue_script( 'alm-codemirror-php', ALM_ADMIN_URL. 'codemirror/mode/php/php.js' );
|
679 |
|
680 |
+
}
|
681 |
|
682 |
// Admin JS
|
683 |
wp_enqueue_script( 'jquery-form' );
|
684 |
wp_enqueue_script( 'alm-admin', ALM_ADMIN_URL. 'dist/js/admin.js', array( 'jquery' ), ALM_VERSION);
|
685 |
wp_enqueue_script( 'alm-shortcode-builder', ALM_ADMIN_URL. 'shortcode-builder/js/shortcode-builder.js', array( 'jquery' ), ALM_VERSION);
|
686 |
+
|
687 |
}
|
688 |
|
689 |
|
694 |
*
|
695 |
* @return response
|
696 |
* @since 2.0.0
|
697 |
+
* @updated 3.5
|
698 |
*/
|
699 |
|
700 |
function alm_save_repeater(){
|
705 |
$table_name = $wpdb->prefix . "alm";
|
706 |
$blog_id = $wpdb->blogid;
|
707 |
$options = get_option( 'alm_settings' ); //Get plugin options
|
|
|
708 |
$nonce = $_POST["nonce"];
|
709 |
+
|
710 |
+
if (! wp_verify_nonce( $nonce, 'alm_repeater_nonce' )){ // Check our nonce
|
711 |
die('Error - unable to verify nonce, please try again.');
|
712 |
+
}
|
713 |
|
714 |
// Get _POST Vars
|
715 |
$c = Trim(stripslashes($_POST["value"])); // Repeater Value
|
717 |
$t = Trim(stripslashes($_POST["type"])); // Repeater name
|
718 |
$a = Trim(stripslashes($_POST["alias"])); // Repeater alias
|
719 |
|
|
|
720 |
|
721 |
+
// Default
|
722 |
if($t === 'default'){
|
723 |
|
724 |
+
// Create Base Repeater Dir (alm-templates)
|
725 |
+
$base_dir = AjaxLoadMore::alm_get_repeater_path();
|
726 |
+
AjaxLoadMore::alm_mkdir($base_dir);
|
727 |
+
|
728 |
+
$f = $base_dir .'/default.php';
|
|
|
|
|
|
|
|
|
729 |
|
730 |
}
|
|
|
|
|
731 |
|
732 |
+
// Unlimited (Custom Repeaters v2)
|
733 |
+
elseif($t === 'unlimited'){
|
734 |
if($blog_id > 1){
|
735 |
$dir = ALM_UNLIMITED_PATH. 'repeaters/'. $blog_id;
|
736 |
if( !is_dir($dir) ){
|
742 |
}
|
743 |
|
744 |
}
|
|
|
|
|
745 |
|
746 |
+
// Custom Repeaters v1
|
747 |
+
else{
|
748 |
$f = ALM_REPEATER_PATH. 'repeaters/'.$n .'.php';
|
|
|
749 |
}
|
750 |
|
751 |
+
|
752 |
+
// Write Repeater Template
|
753 |
try {
|
754 |
$o = fopen($f, 'w+'); //Open file
|
755 |
if ( !$o ) {
|
768 |
}
|
769 |
}
|
770 |
|
771 |
+
// Save to database
|
772 |
|
773 |
if($t === 'default') {
|
774 |
$data_update = array('repeaterDefault' => "$c", 'pluginVersion' => ALM_VERSION);
|
788 |
|
789 |
//Our results
|
790 |
if($w){
|
791 |
+
echo '<span class="saved">'. __('Template Saved Successfully', 'ajax-load-more') .'</span>';
|
792 |
} else {
|
793 |
+
echo '<span class="saved-error"><b>'. __('Error Writing File', 'ajax-load-more') .'</b></span><br/>'. __('Something went wrong and the data could not be saved.', 'ajax-load-more');
|
794 |
}
|
795 |
+
|
796 |
die();
|
797 |
|
798 |
}else {
|
805 |
/*
|
806 |
* alm_update_repeater
|
807 |
* Update repeater template from database
|
808 |
+
* User case: User deletes plugin, then installs again and the version has not change. Click 'Update from DB' option to load template.
|
809 |
*
|
810 |
+
* @return Database value
|
|
|
|
|
811 |
* @since 2.5.0
|
812 |
*/
|
813 |
|
816 |
if (current_user_can( 'edit_theme_options' )){
|
817 |
|
818 |
$nonce = $_POST["nonce"];
|
819 |
+
// Check our nonce
|
820 |
+
if (! wp_verify_nonce( $nonce, 'alm_repeater_nonce' )){ // Check our nonce
|
821 |
die('Error - unable to verify nonce, please try again.');
|
822 |
+
}
|
823 |
|
824 |
// Get _POST Vars
|
825 |
$n = Trim(stripslashes($_POST["repeater"])); // Repeater name
|
840 |
die();
|
841 |
|
842 |
} else {
|
843 |
+
|
844 |
echo __('You don\'t belong here.', 'ajax-load-more');
|
|
|
845 |
|
846 |
+
}
|
847 |
}
|
848 |
|
849 |
|
1383 |
$html .= '<div class="alm-btn-wrap">';
|
1384 |
$html .= '<div class="ajax-load-more-wrap core '.$type.'"><span>'.__('Preview', 'ajax-load-more') .'</span><button class="alm-load-more-btn loading" disabled="disabled">'.apply_filters('alm_button_label', __('Older Posts', 'ajax-load-more')).'</button></div>';
|
1385 |
$html .= '</div>';
|
1386 |
+
|
1387 |
echo $html;
|
1388 |
}
|
1389 |
|
admin/dist/css/admin.css
CHANGED
@@ -950,7 +950,7 @@ a.layout-hover:hover img {
|
|
950 |
position: relative;
|
951 |
font-size: 17px;
|
952 |
background: #f7f7f7;
|
953 |
-
border-bottom: 1px solid #
|
954 |
|
955 |
.ajax-load-more h3.heading:hover:after,
|
956 |
.ajax-load-more .add-on h3.heading:hover:after {
|
@@ -1408,7 +1408,7 @@ a.layout-hover:hover img {
|
|
1408 |
padding: 0 !important; }
|
1409 |
|
1410 |
.admin.ajax-load-more .row {
|
1411 |
-
border-color: #
|
1412 |
|
1413 |
.admin.ajax-load-more .repeaters .row:hover,
|
1414 |
.admin.ajax-load-more.shortcode-builder .row:hover {
|
@@ -2599,7 +2599,7 @@ span.cnkt-button.installed i,
|
|
2599 |
background: #efefef;
|
2600 |
line-height: 18px;
|
2601 |
text-align: center;
|
2602 |
-
margin:
|
2603 |
position: relative; }
|
2604 |
|
2605 |
.ajax-load-more .cnkt-sidebar .item i.fa-check {
|
@@ -2905,20 +2905,20 @@ span.cnkt-button.installed i,
|
|
2905 |
.ajax-load-more .alm-cache-search-wrap input {
|
2906 |
width: 100% !important;
|
2907 |
margin: 0 !important;
|
2908 |
-
padding:
|
2909 |
display: block;
|
2910 |
-
font-size:
|
2911 |
.ajax-load-more .alm-cache-search-wrap i {
|
2912 |
position: absolute;
|
2913 |
-
right:
|
2914 |
-
top:
|
2915 |
color: #ccc;
|
2916 |
-
font-size:
|
2917 |
z-index: 1; }
|
2918 |
|
2919 |
/* Directory Listing */
|
2920 |
.alm-dir-listing {
|
2921 |
-
border: 1px solid #
|
2922 |
padding: 0;
|
2923 |
margin: 20px 0 0; }
|
2924 |
.alm-dir-listing.theme-repeaters {
|
@@ -2961,12 +2961,13 @@ span.cnkt-button.installed i,
|
|
2961 |
font-size: 14px;
|
2962 |
text-decoration: none;
|
2963 |
padding: 5px 10px;
|
2964 |
-
border: 1px solid #
|
2965 |
color: #ccc;
|
2966 |
border-radius: 2px; }
|
2967 |
|
2968 |
.alm-dir-listing:hover .dir-title .delete {
|
2969 |
-
border-color: #
|
|
|
2970 |
color: #666; }
|
2971 |
|
2972 |
.alm-dir-listing .dir-title .delete:hover {
|
950 |
position: relative;
|
951 |
font-size: 17px;
|
952 |
background: #f7f7f7;
|
953 |
+
border-bottom: 1px solid #e1e1e1; }
|
954 |
|
955 |
.ajax-load-more h3.heading:hover:after,
|
956 |
.ajax-load-more .add-on h3.heading:hover:after {
|
1408 |
padding: 0 !important; }
|
1409 |
|
1410 |
.admin.ajax-load-more .row {
|
1411 |
+
border-color: #e1e1e1; }
|
1412 |
|
1413 |
.admin.ajax-load-more .repeaters .row:hover,
|
1414 |
.admin.ajax-load-more.shortcode-builder .row:hover {
|
2599 |
background: #efefef;
|
2600 |
line-height: 18px;
|
2601 |
text-align: center;
|
2602 |
+
margin: 1px 7px 0 0;
|
2603 |
position: relative; }
|
2604 |
|
2605 |
.ajax-load-more .cnkt-sidebar .item i.fa-check {
|
2905 |
.ajax-load-more .alm-cache-search-wrap input {
|
2906 |
width: 100% !important;
|
2907 |
margin: 0 !important;
|
2908 |
+
padding: 12px;
|
2909 |
display: block;
|
2910 |
+
font-size: 16px; }
|
2911 |
.ajax-load-more .alm-cache-search-wrap i {
|
2912 |
position: absolute;
|
2913 |
+
right: 11px;
|
2914 |
+
top: 13px;
|
2915 |
color: #ccc;
|
2916 |
+
font-size: 20px;
|
2917 |
z-index: 1; }
|
2918 |
|
2919 |
/* Directory Listing */
|
2920 |
.alm-dir-listing {
|
2921 |
+
border: 1px solid #e1e1e1;
|
2922 |
padding: 0;
|
2923 |
margin: 20px 0 0; }
|
2924 |
.alm-dir-listing.theme-repeaters {
|
2961 |
font-size: 14px;
|
2962 |
text-decoration: none;
|
2963 |
padding: 5px 10px;
|
2964 |
+
border: 1px solid #e1e1e1;
|
2965 |
color: #ccc;
|
2966 |
border-radius: 2px; }
|
2967 |
|
2968 |
.alm-dir-listing:hover .dir-title .delete {
|
2969 |
+
border-color: #e1e1e1;
|
2970 |
+
background-color: #fff;
|
2971 |
color: #666; }
|
2972 |
|
2973 |
.alm-dir-listing .dir-title .delete:hover {
|
admin/img/add.png
DELETED
Binary file
|
admin/includes/cta/writeable.php
CHANGED
@@ -3,50 +3,23 @@
|
|
3 |
<div class="cta-inner">
|
4 |
<div class="item">
|
5 |
<?php
|
6 |
-
//Test server for write capabilities
|
7 |
-
|
8 |
-
$alm_file =
|
|
|
9 |
if(file_exists($alm_file)){
|
10 |
-
if (is_writable($alm_file))
|
11 |
-
echo __('<p class="writeable-title"><i class="fa fa-check"></i><strong>
|
12 |
-
else
|
13 |
-
echo __('<p class="writeable-title"><i class="fa fa-exclamation"></i><strong>
|
|
|
14 |
}else{
|
15 |
-
echo __('<p class="writeable-title"><i class="fa fa-exclamation"></i><strong>
|
16 |
}
|
17 |
?>
|
18 |
-
|
19 |
-
<?php
|
20 |
-
// Custom Repeaters Add-on
|
21 |
-
if (has_action('alm_custom_repeaters')){
|
22 |
-
echo '<div class="spacer"></div>';
|
23 |
-
$alm_custom_repeater_file = ALM_REPEATER_PATH. '/repeaters/repeater2.php'; // Test file
|
24 |
-
if(file_exists($alm_custom_repeater_file)){
|
25 |
-
if (is_writable($alm_custom_repeater_file))
|
26 |
-
echo __('<p class="writeable-title"><i class="fa fa-check"></i><strong>Custom Repeaters</strong></p><p class="desc">Nice! Read/Write access is enabled within the /ajax-load-more-repeaters/repeaters/ directory.', 'ajax-load-more');
|
27 |
-
else
|
28 |
-
echo __('<p class="writeable-title"><i class="fa fa-exclamation"></i><strong>ALM Custom Repeaters</strong></p><p class="desc">Access Denied! You must enable read and write access for Ajax Load More Custom Repeaters directory (/ajax-load-more-repeaters/repeaters/) in order to save repeater template data.<br/><br/>Please contact your hosting provider or site administrator for more information.', 'ajax-load-more');
|
29 |
-
}else{
|
30 |
-
echo __('<p class="writeable-title"><i class="fa fa-exclamation"></i><strong>ALM Custom Repeaters</strong></p><p class="desc">Unable to locate configuration file. Directory access may not be granted.', 'ajax-load-more');
|
31 |
-
}
|
32 |
-
}
|
33 |
-
?>
|
34 |
-
|
35 |
-
<?php
|
36 |
-
// Unlimited Repeaters Add-on
|
37 |
-
if (has_action('alm_unlimited_repeaters')){
|
38 |
-
echo '<div class="spacer"></div>';
|
39 |
-
$alm_unlimited_file = ALM_UNLIMITED_REPEATER_PATH .'_is_writeable.php'; // Test file
|
40 |
-
if(file_exists($alm_unlimited_file)){
|
41 |
-
if (is_writable($alm_unlimited_file))
|
42 |
-
echo __('<p class="writeable-title"><i class="fa fa-check"></i><strong>Custom Repeaters</strong></p><p class="desc">Read/Write access is enabled within the /ajax-load-more-repeaters-v2/repeaters/ directory.', 'ajax-load-more');
|
43 |
-
else
|
44 |
-
echo __('<p class="writeable-title"><i class="fa fa-exclamation"></i><strong>ALM - Custom Repeaters v2</strong></p><p class="desc">Access Denied! You must enable read and write access for Ajax Load More Unlimited directory (/ajax-load-more-repeaters-v2/repeaters/) in order to save repeater template data.<br/><br/>Please contact your hosting provider or site administrator for more information.', 'ajax-load-more');
|
45 |
-
}else{
|
46 |
-
echo __('<p class="writeable-title"><i class="fa fa-exclamation"></i><strong>ALM Unlimited</strong></p><p class="desc">Unable to locate configuration file. Directory access may not be granted.', 'ajax-load-more');
|
47 |
-
}
|
48 |
-
}
|
49 |
-
?>
|
50 |
</div>
|
|
|
|
|
|
|
51 |
</div>
|
52 |
</div>
|
3 |
<div class="cta-inner">
|
4 |
<div class="item">
|
5 |
<?php
|
6 |
+
//Test server for write capabilities
|
7 |
+
$path = AjaxLoadMore::alm_get_repeater_path();
|
8 |
+
$alm_file = $path .'/default.php'; // Default ALM repeater
|
9 |
+
|
10 |
if(file_exists($alm_file)){
|
11 |
+
if (is_writable($alm_file)){
|
12 |
+
echo __('<p class="writeable-title"><i class="fa fa-check"></i><strong>Enabled</strong></p><p class="desc">Read/Write access is enabled within the Repeater Template directory.', 'ajax-load-more');
|
13 |
+
} else {
|
14 |
+
echo __('<p class="writeable-title"><i class="fa fa-exclamation"></i><strong>Access Denied</strong></p><p class="desc">You must enable read and write access to save repeater template data.<br/><br/>Please contact your hosting provider or site administrator for more information.</p>', 'ajax-load-more');
|
15 |
+
}
|
16 |
}else{
|
17 |
+
echo __('<p class="writeable-title"><i class="fa fa-exclamation"></i><strong>Error</strong></p><p class="desc">Unable to locate configuration file. Directory access may not be granted.', 'ajax-load-more');
|
18 |
}
|
19 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
</div>
|
21 |
+
<p style="padding-top: 10px; margin: 0;">
|
22 |
+
<input type="text" value="<?php echo $path; ?>" style="font-family: 'Consolas'; opacity: 0.8; width: 100%; font-size: 12px;" readonly="readonly">
|
23 |
+
</p>
|
24 |
</div>
|
25 |
</div>
|
admin/shortcode-builder/js/shortcode-builder.js
CHANGED
@@ -1052,10 +1052,6 @@ jQuery(document).ready(function($) {
|
|
1052 |
}
|
1053 |
|
1054 |
}
|
1055 |
-
// Speed
|
1056 |
-
var transition_speed = $('.transition input[name=transition-speed]').val();
|
1057 |
-
if(transition_speed !== '250' && transition !== 'none')
|
1058 |
-
output += ' transition_speed="'+ transition_speed +'"';
|
1059 |
|
1060 |
|
1061 |
// ---------------------------
|
@@ -1267,7 +1263,7 @@ jQuery(document).ready(function($) {
|
|
1267 |
|
1268 |
$('.table-of-contents .toc').change(function() {
|
1269 |
var pos = $(this).val();
|
1270 |
-
if(pos !== 'null'){
|
1271 |
$('html,body').animate({
|
1272 |
scrollTop: $('#'+pos).offset().top - 46
|
1273 |
}, 500, 'alm_easeInOutQuad');
|
1052 |
}
|
1053 |
|
1054 |
}
|
|
|
|
|
|
|
|
|
1055 |
|
1056 |
|
1057 |
// ---------------------------
|
1263 |
|
1264 |
$('.table-of-contents .toc').change(function() {
|
1265 |
var pos = $(this).val();
|
1266 |
+
if(pos !== 'null' && pos !== '#'){
|
1267 |
$('html,body').animate({
|
1268 |
scrollTop: $('#'+pos).offset().top - 46
|
1269 |
}, 500, 'alm_easeInOutQuad');
|
admin/shortcode-builder/shortcode-builder.php
CHANGED
@@ -283,8 +283,7 @@
|
|
283 |
<div class="wrap">
|
284 |
<div class="inner">
|
285 |
<select class="alm_element transition" name="transition">
|
286 |
-
<option value="fade" selected="selected"><?php _e('Fade', 'ajax-load-more'); ?></option>
|
287 |
-
<option value="slide"><?php _e('Slide', 'ajax-load-more'); ?></option>
|
288 |
<option value="masonry"><?php _e('Masonry', 'ajax-load-more'); ?></option>
|
289 |
<option value="none"><?php _e('None', 'ajax-load-more'); ?></option>
|
290 |
</select>
|
@@ -427,19 +426,6 @@
|
|
427 |
</div>
|
428 |
<!-- End Hide transition_container if Masonry is selected -->
|
429 |
|
430 |
-
<div class="clear"></div>
|
431 |
-
<hr>
|
432 |
-
|
433 |
-
<div class="section-title">
|
434 |
-
<h4><?php _e('Speed', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('0.5 seconds = 500, 1 second = 1000 etc','ajax-load-more'); ?>."></a></h4>
|
435 |
-
<p><?php _e('The speed of the loading transition in milliseconds', 'ajax-load-more'); ?>.<br/></p>
|
436 |
-
</div>
|
437 |
-
<div class="wrap">
|
438 |
-
<div class="inner">
|
439 |
-
<input type="number" class="alm_element numbers-only" name="transition-speed" id="transition-speed" step="50" min="50" value="250">
|
440 |
-
</div>
|
441 |
-
</div>
|
442 |
-
|
443 |
</div>
|
444 |
</div>
|
445 |
<!-- End Transition -->
|
283 |
<div class="wrap">
|
284 |
<div class="inner">
|
285 |
<select class="alm_element transition" name="transition">
|
286 |
+
<option value="fade" selected="selected"><?php _e('Fade In', 'ajax-load-more'); ?></option>
|
|
|
287 |
<option value="masonry"><?php _e('Masonry', 'ajax-load-more'); ?></option>
|
288 |
<option value="none"><?php _e('None', 'ajax-load-more'); ?></option>
|
289 |
</select>
|
426 |
</div>
|
427 |
<!-- End Hide transition_container if Masonry is selected -->
|
428 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
429 |
</div>
|
430 |
</div>
|
431 |
<!-- End Transition -->
|
admin/src/scss/admin.scss
CHANGED
@@ -273,7 +273,7 @@ a.layout-hover{
|
|
273 |
position: relative;
|
274 |
font-size: 17px;
|
275 |
background: #f7f7f7;
|
276 |
-
border-bottom: 1px solid #
|
277 |
}
|
278 |
.ajax-load-more h3.heading:hover:after,
|
279 |
.ajax-load-more .add-on h3.heading:hover:after{
|
@@ -773,7 +773,7 @@ a.layout-hover{
|
|
773 |
}
|
774 |
|
775 |
.admin.ajax-load-more .row{
|
776 |
-
border-color: #
|
777 |
}
|
778 |
.admin.ajax-load-more .repeaters .row:hover,
|
779 |
.admin.ajax-load-more.shortcode-builder .row:hover{
|
@@ -2039,7 +2039,7 @@ table.highlight{
|
|
2039 |
background: #efefef;
|
2040 |
line-height: 18px;
|
2041 |
text-align: center;
|
2042 |
-
margin:
|
2043 |
position: relative;
|
2044 |
}
|
2045 |
|
@@ -2362,20 +2362,20 @@ table.highlight{
|
|
2362 |
.ajax-load-more .alm-cache-search-wrap{
|
2363 |
position: relative;
|
2364 |
display: block;
|
2365 |
-
margin: -5px 0 25px;
|
2366 |
input{
|
2367 |
width: 100% !important;
|
2368 |
margin: 0 !important;
|
2369 |
-
padding:
|
2370 |
display: block;
|
2371 |
-
font-size:
|
2372 |
}
|
2373 |
i{
|
2374 |
position: absolute;
|
2375 |
-
right:
|
2376 |
-
top:
|
2377 |
-
color: #ccc;
|
2378 |
-
font-size:
|
2379 |
z-index: 1;
|
2380 |
}
|
2381 |
}
|
@@ -2383,7 +2383,7 @@ table.highlight{
|
|
2383 |
/* Directory Listing */
|
2384 |
|
2385 |
.alm-dir-listing{
|
2386 |
-
border: 1px solid #
|
2387 |
padding: 0;
|
2388 |
margin: 20px 0 0;
|
2389 |
&.theme-repeaters{
|
@@ -2432,14 +2432,15 @@ table.highlight{
|
|
2432 |
font-size: 14px;
|
2433 |
text-decoration: none;
|
2434 |
padding: 5px 10px;
|
2435 |
-
border: 1px solid #
|
2436 |
color: #ccc;
|
2437 |
-webkit-border-radius: 2px;
|
2438 |
-moz-border-radius: 2px;
|
2439 |
border-radius: 2px;
|
2440 |
}
|
2441 |
.alm-dir-listing:hover .dir-title .delete{
|
2442 |
-
border-color: #
|
|
|
2443 |
color: #666;
|
2444 |
}
|
2445 |
.alm-dir-listing .dir-title .delete:hover{
|
273 |
position: relative;
|
274 |
font-size: 17px;
|
275 |
background: #f7f7f7;
|
276 |
+
border-bottom: 1px solid #e1e1e1;
|
277 |
}
|
278 |
.ajax-load-more h3.heading:hover:after,
|
279 |
.ajax-load-more .add-on h3.heading:hover:after{
|
773 |
}
|
774 |
|
775 |
.admin.ajax-load-more .row{
|
776 |
+
border-color: #e1e1e1;
|
777 |
}
|
778 |
.admin.ajax-load-more .repeaters .row:hover,
|
779 |
.admin.ajax-load-more.shortcode-builder .row:hover{
|
2039 |
background: #efefef;
|
2040 |
line-height: 18px;
|
2041 |
text-align: center;
|
2042 |
+
margin: 1px 7px 0 0;
|
2043 |
position: relative;
|
2044 |
}
|
2045 |
|
2362 |
.ajax-load-more .alm-cache-search-wrap{
|
2363 |
position: relative;
|
2364 |
display: block;
|
2365 |
+
margin: -5px 0 25px;
|
2366 |
input{
|
2367 |
width: 100% !important;
|
2368 |
margin: 0 !important;
|
2369 |
+
padding: 12px;
|
2370 |
display: block;
|
2371 |
+
font-size: 16px;
|
2372 |
}
|
2373 |
i{
|
2374 |
position: absolute;
|
2375 |
+
right: 11px;
|
2376 |
+
top: 13px;
|
2377 |
+
color: #ccc;
|
2378 |
+
font-size: 20px;
|
2379 |
z-index: 1;
|
2380 |
}
|
2381 |
}
|
2383 |
/* Directory Listing */
|
2384 |
|
2385 |
.alm-dir-listing{
|
2386 |
+
border: 1px solid #e1e1e1;
|
2387 |
padding: 0;
|
2388 |
margin: 20px 0 0;
|
2389 |
&.theme-repeaters{
|
2432 |
font-size: 14px;
|
2433 |
text-decoration: none;
|
2434 |
padding: 5px 10px;
|
2435 |
+
border: 1px solid #e1e1e1;
|
2436 |
color: #ccc;
|
2437 |
-webkit-border-radius: 2px;
|
2438 |
-moz-border-radius: 2px;
|
2439 |
border-radius: 2px;
|
2440 |
}
|
2441 |
.alm-dir-listing:hover .dir-title .delete{
|
2442 |
+
border-color: #e1e1e1;
|
2443 |
+
background-color: #fff;
|
2444 |
color: #666;
|
2445 |
}
|
2446 |
.alm-dir-listing .dir-title .delete:hover{
|
admin/views/repeater-templates.php
CHANGED
@@ -40,11 +40,10 @@
|
|
40 |
<div class="group no-shadow">
|
41 |
|
42 |
<?php
|
43 |
-
$options = get_option( 'alm_settings' );
|
44 |
-
|
45 |
if(!isset($options['_alm_theme_repeaters_dir']))
|
46 |
$options['_alm_theme_repeaters_dir'] = 'alm_templates';
|
47 |
-
|
48 |
// Get template location
|
49 |
if(is_child_theme()){
|
50 |
$dir = get_stylesheet_directory() . '/' . $options['_alm_theme_repeaters_dir'];
|
@@ -52,13 +51,11 @@
|
|
52 |
$dir = get_template_directory() . '/' . $options['_alm_theme_repeaters_dir'];
|
53 |
}
|
54 |
|
55 |
-
$count = 0;
|
56 |
-
|
57 |
foreach (glob($dir.'/*') as $file) {
|
58 |
$count++;
|
59 |
$file = realpath($file);
|
60 |
-
$link = substr($file, strlen($dir) + 1);
|
61 |
-
|
62 |
$file_extension = strtolower(substr(basename($file), strrpos(basename($file), '.') + 1));
|
63 |
$file_directory = get_option('stylesheet') .'/'. strtolower(substr(basename($dir), strrpos(basename($dir), '/')));
|
64 |
|
@@ -179,7 +176,7 @@
|
|
179 |
if(!$local_template){
|
180 |
// Add Label
|
181 |
echo '<label class="template-title" for="template-default">';
|
182 |
-
|
183 |
echo ':</label>';
|
184 |
|
185 |
// Layouts - Template Selection
|
@@ -313,7 +310,7 @@
|
|
313 |
btn.removeClass('saving');
|
314 |
});
|
315 |
|
316 |
-
},
|
317 |
|
318 |
},
|
319 |
error: function(xhr, status, error) {
|
40 |
<div class="group no-shadow">
|
41 |
|
42 |
<?php
|
43 |
+
$options = get_option( 'alm_settings' );
|
|
|
44 |
if(!isset($options['_alm_theme_repeaters_dir']))
|
45 |
$options['_alm_theme_repeaters_dir'] = 'alm_templates';
|
46 |
+
|
47 |
// Get template location
|
48 |
if(is_child_theme()){
|
49 |
$dir = get_stylesheet_directory() . '/' . $options['_alm_theme_repeaters_dir'];
|
51 |
$dir = get_template_directory() . '/' . $options['_alm_theme_repeaters_dir'];
|
52 |
}
|
53 |
|
54 |
+
$count = 0;
|
|
|
55 |
foreach (glob($dir.'/*') as $file) {
|
56 |
$count++;
|
57 |
$file = realpath($file);
|
58 |
+
$link = substr($file, strlen($dir) + 1);
|
|
|
59 |
$file_extension = strtolower(substr(basename($file), strrpos(basename($file), '.') + 1));
|
60 |
$file_directory = get_option('stylesheet') .'/'. strtolower(substr(basename($dir), strrpos(basename($dir), '/')));
|
61 |
|
176 |
if(!$local_template){
|
177 |
// Add Label
|
178 |
echo '<label class="template-title" for="template-default">';
|
179 |
+
_e('Enter the HTML and PHP code for the default template', 'ajax-load-more');
|
180 |
echo ':</label>';
|
181 |
|
182 |
// Layouts - Template Selection
|
310 |
btn.removeClass('saving');
|
311 |
});
|
312 |
|
313 |
+
}, 3000);
|
314 |
|
315 |
},
|
316 |
error: function(xhr, status, error) {
|
ajax-load-more.php
CHANGED
@@ -7,35 +7,30 @@ Text Domain: ajax-load-more
|
|
7 |
Author: Darren Cooney
|
8 |
Twitter: @KaptonKaos
|
9 |
Author URI: https://connekthq.com
|
10 |
-
Version: 3.
|
11 |
License: GPL
|
12 |
Copyright: Darren Cooney & Connekt Media
|
13 |
*/
|
14 |
|
15 |
|
16 |
|
17 |
-
define('ALM_VERSION', '3.
|
18 |
-
define('ALM_RELEASE', '
|
19 |
define('ALM_STORE_URL', 'https://connekthq.com');
|
20 |
|
21 |
|
22 |
|
23 |
/*
|
24 |
* alm_install
|
25 |
-
*
|
26 |
-
* Activation hook
|
27 |
-
* Create table for storing repeater
|
28 |
*
|
29 |
* @since 2.0.0
|
30 |
*/
|
31 |
|
32 |
function alm_install($network_wide) {
|
33 |
-
|
34 |
global $wpdb;
|
35 |
add_option( "alm_version", ALM_VERSION ); // Add to WP Option tbl
|
36 |
-
|
37 |
if ( is_multisite() && $network_wide ) {
|
38 |
-
|
39 |
// Get all blogs in the network and activate plugin on each one
|
40 |
$blog_ids = $wpdb->get_col( "SELECT blog_id FROM $wpdb->blogs" );
|
41 |
foreach ( $blog_ids as $blog_id ) {
|
@@ -46,7 +41,6 @@ function alm_install($network_wide) {
|
|
46 |
} else {
|
47 |
alm_create_table();
|
48 |
}
|
49 |
-
|
50 |
}
|
51 |
register_activation_hook( __FILE__, 'alm_install' );
|
52 |
add_action( 'wpmu_new_blog', 'alm_install' );
|
@@ -55,10 +49,10 @@ add_action( 'wpmu_new_blog', 'alm_install' );
|
|
55 |
|
56 |
/*
|
57 |
* alm_create_table
|
58 |
-
*
|
59 |
* Create new table and repeater template
|
60 |
*
|
61 |
* @since 2.0.0
|
|
|
62 |
*/
|
63 |
function alm_create_table(){
|
64 |
|
@@ -66,29 +60,21 @@ function alm_create_table(){
|
|
66 |
$table_name = $wpdb->prefix . "alm";
|
67 |
$blog_id = $wpdb->blogid;
|
68 |
|
69 |
-
$defaultRepeater = '<li <?php if (!has_post_thumbnail()) { ?> class="no-img"<?php }
|
70 |
-
|
71 |
-
/* MULTISITE */
|
72 |
-
/* if this is a multisite blog and it's not id = 1, create default template */
|
73 |
-
if($blog_id > 1){
|
74 |
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
}
|
79 |
-
|
80 |
-
$file = ALM_PATH. 'core/repeater/'. $blog_id .'/default.php';
|
81 |
-
if( !file_exists($file) ){
|
82 |
-
$tmp = fopen($file, 'w');
|
83 |
-
$w = fwrite($tmp, $defaultRepeater);
|
84 |
-
fclose($tmp);
|
85 |
-
}
|
86 |
|
|
|
|
|
|
|
|
|
|
|
87 |
}
|
88 |
|
89 |
-
//
|
90 |
if($wpdb->get_var("SHOW TABLES LIKE '$table_name'") != $table_name) {
|
91 |
-
|
92 |
$sql = "CREATE TABLE $table_name (
|
93 |
id mediumint(9) NOT NULL AUTO_INCREMENT,
|
94 |
name text NOT NULL,
|
@@ -99,12 +85,9 @@ function alm_create_table(){
|
|
99 |
);";
|
100 |
require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
|
101 |
dbDelta( $sql );
|
102 |
-
|
103 |
-
//Insert the default data in created table
|
104 |
$wpdb->insert($table_name , array('name' => 'default', 'repeaterDefault' => $defaultRepeater, 'repeaterType' => 'default', 'pluginVersion' => ALM_VERSION));
|
105 |
-
|
106 |
}
|
107 |
-
|
108 |
}
|
109 |
|
110 |
|
@@ -116,7 +99,6 @@ if( !class_exists('AjaxLoadMore') ):
|
|
116 |
|
117 |
function __construct(){
|
118 |
|
119 |
-
|
120 |
$this->alm_define_constants();
|
121 |
$this->alm_includes();
|
122 |
|
@@ -136,6 +118,45 @@ if( !class_exists('AjaxLoadMore') ):
|
|
136 |
|
137 |
|
138 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
139 |
/*
|
140 |
* alm_define_constants
|
141 |
* Define plugin constants
|
@@ -269,9 +290,13 @@ if( !class_exists('AjaxLoadMore') ):
|
|
269 |
wp_register_script( 'ajax-load-more', plugins_url( '/core/dist/js/ajax-load-more.min.js', __FILE__ ), $dependencies, ALM_VERSION, true );
|
270 |
|
271 |
// Progress Bar JS
|
272 |
-
wp_register_script( 'ajax-load-more-progress', plugins_url( '/
|
273 |
|
274 |
-
//
|
|
|
|
|
|
|
|
|
275 |
if( !alm_do_inline_css('_alm_inline_css') && !alm_css_disabled('_alm_disable_css')){ // Not inline or disabled
|
276 |
$file = plugins_url('/core/dist/css/'. ALM_SLUG .'.min.css', __FILE__ );
|
277 |
ALM_ENQUEUE::alm_enqueue_css(ALM_SLUG, $file);
|
@@ -339,6 +364,11 @@ if( !class_exists('AjaxLoadMore') ):
|
|
339 |
|
340 |
$options = get_option( 'alm_settings' );
|
341 |
|
|
|
|
|
|
|
|
|
|
|
342 |
$id = (isset($_GET['id'])) ? $_GET['id'] : '';
|
343 |
$post_id = (isset($_GET['post_id'])) ? $_GET['post_id'] : '';
|
344 |
$slug = (isset($_GET['slug'])) ? $_GET['slug'] : '';
|
7 |
Author: Darren Cooney
|
8 |
Twitter: @KaptonKaos
|
9 |
Author URI: https://connekthq.com
|
10 |
+
Version: 3.5.0
|
11 |
License: GPL
|
12 |
Copyright: Darren Cooney & Connekt Media
|
13 |
*/
|
14 |
|
15 |
|
16 |
|
17 |
+
define('ALM_VERSION', '3.5.0');
|
18 |
+
define('ALM_RELEASE', 'April 17, 2018');
|
19 |
define('ALM_STORE_URL', 'https://connekthq.com');
|
20 |
|
21 |
|
22 |
|
23 |
/*
|
24 |
* alm_install
|
25 |
+
* Activation hook - Create table & repeater
|
|
|
|
|
26 |
*
|
27 |
* @since 2.0.0
|
28 |
*/
|
29 |
|
30 |
function alm_install($network_wide) {
|
|
|
31 |
global $wpdb;
|
32 |
add_option( "alm_version", ALM_VERSION ); // Add to WP Option tbl
|
|
|
33 |
if ( is_multisite() && $network_wide ) {
|
|
|
34 |
// Get all blogs in the network and activate plugin on each one
|
35 |
$blog_ids = $wpdb->get_col( "SELECT blog_id FROM $wpdb->blogs" );
|
36 |
foreach ( $blog_ids as $blog_id ) {
|
41 |
} else {
|
42 |
alm_create_table();
|
43 |
}
|
|
|
44 |
}
|
45 |
register_activation_hook( __FILE__, 'alm_install' );
|
46 |
add_action( 'wpmu_new_blog', 'alm_install' );
|
49 |
|
50 |
/*
|
51 |
* alm_create_table
|
|
|
52 |
* Create new table and repeater template
|
53 |
*
|
54 |
* @since 2.0.0
|
55 |
+
* @updated 3.5
|
56 |
*/
|
57 |
function alm_create_table(){
|
58 |
|
60 |
$table_name = $wpdb->prefix . "alm";
|
61 |
$blog_id = $wpdb->blogid;
|
62 |
|
63 |
+
$defaultRepeater = '<li <?php if (!has_post_thumbnail()) { ?> class="no-img"<?php } ?>>'. PHP_EOL .' <?php if ( has_post_thumbnail() ) { the_post_thumbnail(\'alm-thumbnail\'); }?>'. PHP_EOL .' <h3><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>'. PHP_EOL .' <p class="entry-meta"><?php the_time("F d, Y"); ?></p>'. PHP_EOL .' <?php the_excerpt(); ?>'. PHP_EOL .'</li>';
|
|
|
|
|
|
|
|
|
64 |
|
65 |
+
// Create Base Repeater Directory
|
66 |
+
$base_dir = AjaxLoadMore::alm_get_repeater_path();
|
67 |
+
AjaxLoadMore::alm_mkdir($base_dir);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
|
69 |
+
$file = $base_dir .'/default.php';
|
70 |
+
if( !file_exists($file) ){
|
71 |
+
$tmp = fopen($file, 'w+');
|
72 |
+
$w = fwrite($tmp, $defaultRepeater);
|
73 |
+
fclose($tmp);
|
74 |
}
|
75 |
|
76 |
+
//C reate table, if it doesn't already exist.
|
77 |
if($wpdb->get_var("SHOW TABLES LIKE '$table_name'") != $table_name) {
|
|
|
78 |
$sql = "CREATE TABLE $table_name (
|
79 |
id mediumint(9) NOT NULL AUTO_INCREMENT,
|
80 |
name text NOT NULL,
|
85 |
);";
|
86 |
require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
|
87 |
dbDelta( $sql );
|
88 |
+
// Insert the default data in created table
|
|
|
89 |
$wpdb->insert($table_name , array('name' => 'default', 'repeaterDefault' => $defaultRepeater, 'repeaterType' => 'default', 'pluginVersion' => ALM_VERSION));
|
|
|
90 |
}
|
|
|
91 |
}
|
92 |
|
93 |
|
99 |
|
100 |
function __construct(){
|
101 |
|
|
|
102 |
$this->alm_define_constants();
|
103 |
$this->alm_includes();
|
104 |
|
118 |
|
119 |
|
120 |
|
121 |
+
/*
|
122 |
+
* alm_get_repeater_base_path
|
123 |
+
* Get absolute path to repeater directory base
|
124 |
+
*
|
125 |
+
* Multisite installs directories will be `uploads/sites/{id}/alm_templates`
|
126 |
+
*
|
127 |
+
* @return $path;
|
128 |
+
* @since 3.5
|
129 |
+
*/
|
130 |
+
public static function alm_get_repeater_path(){
|
131 |
+
$upload_dir = wp_upload_dir();
|
132 |
+
$path = apply_filters( 'alm_repeater_path', $upload_dir['basedir']. '/alm_templates' );
|
133 |
+
return $path;
|
134 |
+
}
|
135 |
+
|
136 |
+
|
137 |
+
|
138 |
+
/*
|
139 |
+
* alm_mkdir
|
140 |
+
* Create repeater template directory
|
141 |
+
*
|
142 |
+
* @since 3.5
|
143 |
+
*/
|
144 |
+
public static function alm_mkdir($dir){
|
145 |
+
|
146 |
+
// Does $dir exist?
|
147 |
+
if( !is_dir($dir) ) {
|
148 |
+
mkdir($dir, 0755);
|
149 |
+
|
150 |
+
// Check again after creating it (permission checker)
|
151 |
+
if( !is_dir($dir) ) {
|
152 |
+
echo __('Error creating repeater template directory', 'ajax-load-more');
|
153 |
+
echo ' - '. $dir;
|
154 |
+
}
|
155 |
+
}
|
156 |
+
}
|
157 |
+
|
158 |
+
|
159 |
+
|
160 |
/*
|
161 |
* alm_define_constants
|
162 |
* Define plugin constants
|
290 |
wp_register_script( 'ajax-load-more', plugins_url( '/core/dist/js/ajax-load-more.min.js', __FILE__ ), $dependencies, ALM_VERSION, true );
|
291 |
|
292 |
// Progress Bar JS
|
293 |
+
wp_register_script( 'ajax-load-more-progress', plugins_url( '/vendor/js/pace/pace.min.js', __FILE__ ), 'ajax-load-more', ALM_VERSION, true );
|
294 |
|
295 |
+
// Masonry JS
|
296 |
+
wp_register_script( 'ajax-load-more-masonry', plugins_url( '/vendor/js/masonry/masonry.pkgd.min.js', __FILE__ ), 'ajax-load-more', '4.2.1', true );
|
297 |
+
|
298 |
+
|
299 |
+
// Core CSS
|
300 |
if( !alm_do_inline_css('_alm_inline_css') && !alm_css_disabled('_alm_disable_css')){ // Not inline or disabled
|
301 |
$file = plugins_url('/core/dist/css/'. ALM_SLUG .'.min.css', __FILE__ );
|
302 |
ALM_ENQUEUE::alm_enqueue_css(ALM_SLUG, $file);
|
364 |
|
365 |
$options = get_option( 'alm_settings' );
|
366 |
|
367 |
+
// WPML fix for category/tag archives
|
368 |
+
if ( isset( $_GET['category'] ) && $_GET['category'] ) {
|
369 |
+
unset($_REQUEST['post_id']);
|
370 |
+
}
|
371 |
+
|
372 |
$id = (isset($_GET['id'])) ? $_GET['id'] : '';
|
373 |
$post_id = (isset($_GET['post_id'])) ? $_GET['post_id'] : '';
|
374 |
$slug = (isset($_GET['slug'])) ? $_GET['slug'] : '';
|
core/classes/class.alm-shortcode.php
CHANGED
@@ -169,7 +169,7 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
169 |
// Masonry
|
170 |
if($transition === 'masonry'){
|
171 |
wp_enqueue_script( 'imagesloaded' ); // Enqueue before core ALM
|
172 |
-
wp_enqueue_script( 'masonry' ); // Enqueue before core ALM
|
173 |
}
|
174 |
|
175 |
// Core ALM
|
169 |
// Masonry
|
170 |
if($transition === 'masonry'){
|
171 |
wp_enqueue_script( 'imagesloaded' ); // Enqueue before core ALM
|
172 |
+
wp_enqueue_script( 'ajax-load-more-masonry' ); // Enqueue before core ALM
|
173 |
}
|
174 |
|
175 |
// Core ALM
|
core/dist/css/ajax-load-more.css
CHANGED
@@ -177,20 +177,30 @@
|
|
177 |
.alm-listing {
|
178 |
margin: 0;
|
179 |
padding: 0; }
|
180 |
-
.alm-listing li
|
|
|
|
|
181 |
background: none;
|
182 |
margin: 0 0 30px;
|
183 |
padding: 0 0 0 170px;
|
184 |
overflow: hidden;
|
185 |
position: relative;
|
186 |
list-style: none; }
|
187 |
-
.alm-listing li.no-img
|
|
|
|
|
188 |
padding: 0; }
|
189 |
-
.alm-listing li p
|
|
|
|
|
190 |
margin: 0; }
|
191 |
-
.alm-listing li h3
|
|
|
|
|
192 |
margin: 0 0 10px; }
|
193 |
-
.alm-listing li img
|
|
|
|
|
194 |
position: absolute;
|
195 |
left: 0;
|
196 |
top: 0;
|
177 |
.alm-listing {
|
178 |
margin: 0;
|
179 |
padding: 0; }
|
180 |
+
.alm-listing .alm-reveal > li,
|
181 |
+
.alm-listing .alm-paging-content > li,
|
182 |
+
.alm-listing > li {
|
183 |
background: none;
|
184 |
margin: 0 0 30px;
|
185 |
padding: 0 0 0 170px;
|
186 |
overflow: hidden;
|
187 |
position: relative;
|
188 |
list-style: none; }
|
189 |
+
.alm-listing .alm-reveal > li.no-img,
|
190 |
+
.alm-listing .alm-paging-content > li.no-img,
|
191 |
+
.alm-listing > li.no-img {
|
192 |
padding: 0; }
|
193 |
+
.alm-listing .alm-reveal > li p,
|
194 |
+
.alm-listing .alm-paging-content > li p,
|
195 |
+
.alm-listing > li p {
|
196 |
margin: 0; }
|
197 |
+
.alm-listing .alm-reveal > li h3,
|
198 |
+
.alm-listing .alm-paging-content > li h3,
|
199 |
+
.alm-listing > li h3 {
|
200 |
margin: 0 0 10px; }
|
201 |
+
.alm-listing .alm-reveal > li img,
|
202 |
+
.alm-listing .alm-paging-content > li img,
|
203 |
+
.alm-listing > li img {
|
204 |
position: absolute;
|
205 |
left: 0;
|
206 |
top: 0;
|
core/dist/css/ajax-load-more.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.alm-btn-wrap .alm-load-more-btn{font-size:15px;font-weight:600;width:auto;height:42px;line-height:42px;background:#ed7070;color:#fff;border:none;border-radius:3px;margin:0 0 4px;padding:0 20px;display:inline-block;position:relative;-webkit-transition:padding .25s ease-in-out,width .25s ease-in-out;transition:padding .25s ease-in-out,width .25s ease-in-out;text-align:center;text-decoration:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.alm-btn-wrap .alm-load-more-btn:hover{background-color:#e06464;color:#fff;text-decoration:none}.alm-btn-wrap .alm-load-more-btn:active{-webkit-box-shadow:inset 0 2px 1px rgba(0,0,0,.1);box-shadow:inset 0 2px 1px rgba(0,0,0,.1);text-decoration:none}.alm-btn-wrap .alm-load-more-btn:active,.alm-btn-wrap .alm-load-more-btn:focus{outline:0}.alm-btn-wrap .alm-load-more-btn.loading{padding-left:44px}.alm-btn-wrap .alm-load-more-btn.done{cursor:default;opacity:.2;background-color:#ed7070;outline:0!important;-webkit-box-shadow:none!important;box-shadow:none!important}.alm-btn-wrap .alm-load-more-btn.done:before,.alm-btn-wrap .alm-load-more-btn:before{background:0 0;width:0}.alm-btn-wrap .alm-load-more-btn.loading:before{background:#fff url(../../img/ajax-loader.gif) no-repeat center center;width:30px;height:30px;margin:6px;border-radius:2px;display:inline-block;z-index:0;content:'';position:absolute;left:0;top:0;overflow:hidden;-webkit-transition:width .5s ease-in-out;transition:width .5s ease-in-out}.alm-btn-wrap,.alm-masonry{display:block;overflow:hidden;clear:both}.alm-btn-wrap{text-align:center;padding:10px 0 25px}.ajax-load-more-wrap.blue .alm-load-more-btn{background-color:#0081bf}.ajax-load-more-wrap.blue .alm-load-more-btn.done,.ajax-load-more-wrap.blue .alm-load-more-btn:hover{background-color:#0073aa}.ajax-load-more-wrap.green .alm-load-more-btn{background-color:#6fca68}.ajax-load-more-wrap.green .alm-load-more-btn.done,.ajax-load-more-wrap.green .alm-load-more-btn:hover{background-color:#64b95e}.ajax-load-more-wrap.red .alm-load-more-btn{background-color:#ca4b4b}.ajax-load-more-wrap.red .alm-load-more-btn.done,.ajax-load-more-wrap.red .alm-load-more-btn:hover{background-color:#b13b3b}.ajax-load-more-wrap.purple .alm-load-more-btn{background-color:#a86bb9}.ajax-load-more-wrap.purple .alm-load-more-btn.done,.ajax-load-more-wrap.purple .alm-load-more-btn:hover{background-color:#9963a8}.ajax-load-more-wrap.grey .alm-load-more-btn{background-color:#888}.ajax-load-more-wrap.grey .alm-load-more-btn.done,.ajax-load-more-wrap.grey .alm-load-more-btn:hover{background-color:#777}.ajax-load-more-wrap.white .alm-load-more-btn{background-color:#fff;color:#666;border:1px solid #efefef}.ajax-load-more-wrap.white .alm-load-more-btn.done,.ajax-load-more-wrap.white .alm-load-more-btn:hover{background-color:#efefef;color:#333}.ajax-load-more-wrap.white .alm-load-more-btn.done{border-color:#fff}.ajax-load-more-wrap.infinite .alm-load-more-btn{width:100%;background-color:transparent!important;background-position:center center;background-repeat:no-repeat;background-image:url(../../img/spinner.gif);border:none!important;opacity:0;-webkit-transition:opacity .25s ease;transition:opacity .25s ease;-webkit-box-shadow:none!important;box-shadow:none!important;overflow:hidden;text-indent:-9999px;cursor:default!important;outline:0!important}.ajax-load-more-wrap.infinite .alm-load-more-btn:before{display:none!important}.ajax-load-more-wrap.infinite .alm-load-more-btn:active{-webkit-box-shadow:none;box-shadow:none}.ajax-load-more-wrap.infinite .alm-load-more-btn.done{opacity:0}.ajax-load-more-wrap.infinite .alm-load-more-btn.loading{opacity:1}.ajax-load-more-wrap.infinite.skype .alm-load-more-btn{background-image:url(../../img/spinner-skype.gif)}.ajax-load-more-wrap.infinite.ring .alm-load-more-btn{background-image:url(../../img/spinner-ring.gif)}.ajax-load-more-wrap.infinite.fading-blocks .alm-load-more-btn{background-image:url(../../img/loader-fading-blocks.gif)}.ajax-load-more-wrap.infinite.fading-circles .alm-load-more-btn{background-image:url(../../img/loader-fading-circles.gif)}.ajax-load-more-wrap.infinite.chasing-arrows .alm-load-more-btn{background-image:url(../../img/spinner-chasing-arrows.gif)}.alm-listing{margin:0;padding:0}.alm-listing li{background:0 0;margin:0 0 30px;padding:0 0 0 170px;overflow:hidden;position:relative;list-style:none}.alm-listing li.no-img{padding:0}.alm-listing li p{margin:0}.alm-listing li h3{margin:0 0 10px}.alm-listing li img{position:absolute;left:0;top:0;border-radius:2px}
|
1 |
+
.alm-btn-wrap .alm-load-more-btn{font-size:15px;font-weight:600;width:auto;height:42px;line-height:42px;background:#ed7070;color:#fff;border:none;border-radius:3px;margin:0 0 4px;padding:0 20px;display:inline-block;position:relative;-webkit-transition:padding .25s ease-in-out,width .25s ease-in-out;transition:padding .25s ease-in-out,width .25s ease-in-out;text-align:center;text-decoration:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.alm-btn-wrap .alm-load-more-btn:hover{background-color:#e06464;color:#fff;text-decoration:none}.alm-btn-wrap .alm-load-more-btn:active{-webkit-box-shadow:inset 0 2px 1px rgba(0,0,0,.1);box-shadow:inset 0 2px 1px rgba(0,0,0,.1);text-decoration:none}.alm-btn-wrap .alm-load-more-btn:active,.alm-btn-wrap .alm-load-more-btn:focus{outline:0}.alm-btn-wrap .alm-load-more-btn.loading{padding-left:44px}.alm-btn-wrap .alm-load-more-btn.done{cursor:default;opacity:.2;background-color:#ed7070;outline:0!important;-webkit-box-shadow:none!important;box-shadow:none!important}.alm-btn-wrap .alm-load-more-btn.done:before,.alm-btn-wrap .alm-load-more-btn:before{background:0 0;width:0}.alm-btn-wrap .alm-load-more-btn.loading:before{background:#fff url(../../img/ajax-loader.gif) no-repeat center center;width:30px;height:30px;margin:6px;border-radius:2px;display:inline-block;z-index:0;content:'';position:absolute;left:0;top:0;overflow:hidden;-webkit-transition:width .5s ease-in-out;transition:width .5s ease-in-out}.alm-btn-wrap,.alm-masonry{display:block;overflow:hidden;clear:both}.alm-btn-wrap{text-align:center;padding:10px 0 25px}.ajax-load-more-wrap.blue .alm-load-more-btn{background-color:#0081bf}.ajax-load-more-wrap.blue .alm-load-more-btn.done,.ajax-load-more-wrap.blue .alm-load-more-btn:hover{background-color:#0073aa}.ajax-load-more-wrap.green .alm-load-more-btn{background-color:#6fca68}.ajax-load-more-wrap.green .alm-load-more-btn.done,.ajax-load-more-wrap.green .alm-load-more-btn:hover{background-color:#64b95e}.ajax-load-more-wrap.red .alm-load-more-btn{background-color:#ca4b4b}.ajax-load-more-wrap.red .alm-load-more-btn.done,.ajax-load-more-wrap.red .alm-load-more-btn:hover{background-color:#b13b3b}.ajax-load-more-wrap.purple .alm-load-more-btn{background-color:#a86bb9}.ajax-load-more-wrap.purple .alm-load-more-btn.done,.ajax-load-more-wrap.purple .alm-load-more-btn:hover{background-color:#9963a8}.ajax-load-more-wrap.grey .alm-load-more-btn{background-color:#888}.ajax-load-more-wrap.grey .alm-load-more-btn.done,.ajax-load-more-wrap.grey .alm-load-more-btn:hover{background-color:#777}.ajax-load-more-wrap.white .alm-load-more-btn{background-color:#fff;color:#666;border:1px solid #efefef}.ajax-load-more-wrap.white .alm-load-more-btn.done,.ajax-load-more-wrap.white .alm-load-more-btn:hover{background-color:#efefef;color:#333}.ajax-load-more-wrap.white .alm-load-more-btn.done{border-color:#fff}.ajax-load-more-wrap.infinite .alm-load-more-btn{width:100%;background-color:transparent!important;background-position:center center;background-repeat:no-repeat;background-image:url(../../img/spinner.gif);border:none!important;opacity:0;-webkit-transition:opacity .25s ease;transition:opacity .25s ease;-webkit-box-shadow:none!important;box-shadow:none!important;overflow:hidden;text-indent:-9999px;cursor:default!important;outline:0!important}.ajax-load-more-wrap.infinite .alm-load-more-btn:before{display:none!important}.ajax-load-more-wrap.infinite .alm-load-more-btn:active{-webkit-box-shadow:none;box-shadow:none}.ajax-load-more-wrap.infinite .alm-load-more-btn.done{opacity:0}.ajax-load-more-wrap.infinite .alm-load-more-btn.loading{opacity:1}.ajax-load-more-wrap.infinite.skype .alm-load-more-btn{background-image:url(../../img/spinner-skype.gif)}.ajax-load-more-wrap.infinite.ring .alm-load-more-btn{background-image:url(../../img/spinner-ring.gif)}.ajax-load-more-wrap.infinite.fading-blocks .alm-load-more-btn{background-image:url(../../img/loader-fading-blocks.gif)}.ajax-load-more-wrap.infinite.fading-circles .alm-load-more-btn{background-image:url(../../img/loader-fading-circles.gif)}.ajax-load-more-wrap.infinite.chasing-arrows .alm-load-more-btn{background-image:url(../../img/spinner-chasing-arrows.gif)}.alm-listing{margin:0;padding:0}.alm-listing .alm-paging-content>li,.alm-listing .alm-reveal>li,.alm-listing>li{background:0 0;margin:0 0 30px;padding:0 0 0 170px;overflow:hidden;position:relative;list-style:none}.alm-listing .alm-paging-content>li.no-img,.alm-listing .alm-reveal>li.no-img,.alm-listing>li.no-img{padding:0}.alm-listing .alm-paging-content>li p,.alm-listing .alm-reveal>li p,.alm-listing>li p{margin:0}.alm-listing .alm-paging-content>li h3,.alm-listing .alm-reveal>li h3,.alm-listing>li h3{margin:0 0 10px}.alm-listing .alm-paging-content>li img,.alm-listing .alm-reveal>li img,.alm-listing>li img{position:absolute;left:0;top:0;border-radius:2px}
|
core/dist/js/ajax-load-more.js
CHANGED
@@ -261,7 +261,6 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
|
|
261 |
// First Run
|
262 |
if (masonry_init && init) {
|
263 |
container.imagesLoaded(function () {
|
264 |
-
items.fadeIn(speed);
|
265 |
container.masonry({
|
266 |
itemSelector: selector,
|
267 |
transitionDuration: duration,
|
@@ -276,16 +275,16 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
|
|
276 |
opacity: 1
|
277 |
}
|
278 |
});
|
279 |
-
|
280 |
});
|
281 |
}
|
282 |
|
283 |
// Standard
|
284 |
else {
|
285 |
-
container.append(items); // Append new items
|
286 |
-
|
287 |
-
items.show();
|
288 |
-
container.masonry('appended', items);
|
289 |
});
|
290 |
}
|
291 |
} else {
|
@@ -295,6 +294,20 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
|
|
295 |
almMasonry(container, items, selector, animation, horizontalOrder, speed, true, true, false);
|
296 |
}
|
297 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
298 |
'use strict';
|
299 |
|
300 |
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
|
@@ -344,6 +357,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
344 |
alm.is_search = alm.el.attr('data-search');
|
345 |
alm.slug = alm.el.attr('data-slug');
|
346 |
alm.post_id = alm.el.attr('data-post-id');
|
|
|
347 |
|
348 |
alm.repeater = alm.content.attr('data-repeater'); // Repeaters
|
349 |
alm.theme_repeater = alm.content.attr('data-theme-repeater');
|
@@ -364,7 +378,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
364 |
alm.transition = alm.content.attr('data-transition'); // Transition
|
365 |
alm.transition_container = alm.content.attr('data-transition-container'); // Transition Container
|
366 |
alm.tcc = alm.content.attr('data-transition-container-classes'); // Transition Container Classes
|
367 |
-
alm.speed =
|
368 |
alm.images_loaded = alm.content.attr('data-images-loaded');
|
369 |
alm.destroy_after = alm.content.attr('data-destroy-after');
|
370 |
alm.lang = alm.content.attr('data-lang');
|
@@ -404,6 +418,12 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
404 |
// if comments, adjust alm.content wrapper
|
405 |
alm.content = $('.alm-comments', alm.container);
|
406 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
407 |
|
408 |
alm.filters = alm.content.attr('data-filters');
|
409 |
|
@@ -539,7 +559,8 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
539 |
alm.permalink = alm.content.attr('data-seo-permalink');
|
540 |
alm.pageview = alm.content.attr('data-seo-pageview');
|
541 |
alm.start_page = alm.content.attr('data-seo-start-page');
|
542 |
-
alm.
|
|
|
543 |
|
544 |
if (alm.start_page) {
|
545 |
alm.seo_scroll = alm.content.attr('data-seo-scroll');
|
@@ -684,9 +705,6 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
684 |
}
|
685 |
}
|
686 |
|
687 |
-
/* Speed */
|
688 |
-
alm.speed = alm.speed === undefined || alm.speed === '' ? 250 : parseInt(alm.speed);
|
689 |
-
|
690 |
/* Scroll */
|
691 |
if (alm.content.attr('data-scroll') === undefined) {
|
692 |
alm.scroll = true;
|
@@ -826,7 +844,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
826 |
};
|
827 |
}
|
828 |
|
829 |
-
// Comment
|
830 |
alm.comments_array = '';
|
831 |
if (alm.comments === 'true') {
|
832 |
action = 'alm_comments_query';
|
@@ -842,7 +860,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
842 |
};
|
843 |
}
|
844 |
|
845 |
-
// Users
|
846 |
alm.users_array = '';
|
847 |
if (alm.users) {
|
848 |
action = 'alm_users_query';
|
@@ -857,7 +875,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
857 |
};
|
858 |
}
|
859 |
|
860 |
-
// CTA
|
861 |
alm.cta_array = '';
|
862 |
if (alm.cta === 'true') {
|
863 |
alm.cta_array = {
|
@@ -961,8 +979,8 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
961 |
action: action,
|
962 |
nonce: alm_localize.alm_nonce,
|
963 |
query_type: queryType,
|
964 |
-
post_id: alm.post_id,
|
965 |
id: el.attr('data-id'),
|
|
|
966 |
slug: alm.slug,
|
967 |
canonical_url: alm.canonical_url,
|
968 |
cache_id: alm.cache_id,
|
@@ -1069,6 +1087,8 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1069 |
alm.AjaxLoadMore.getPreviousPost();
|
1070 |
}
|
1071 |
|
|
|
|
|
1072 |
var html, meta, total;
|
1073 |
|
1074 |
if (is_cache) {
|
@@ -1103,21 +1123,25 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1103 |
|
1104 |
// Is pagination
|
1105 |
if (total > 0) {
|
1106 |
-
alm.el = $('<div class="alm-reveal' + alm.tcc + '"/>');
|
1107 |
alm.el.append('<div class="alm-paging-content"></div><div class="alm-paging-loading"></div>');
|
1108 |
-
$('.alm-paging-content', alm.el).append(alm.data)
|
1109 |
alm.content.append(alm.el);
|
|
|
1110 |
alm.content.parent().removeClass('loading'); // Remove loading class from main container
|
1111 |
alm.AjaxLoadMore.resetBtnText();
|
1112 |
|
1113 |
-
|
1114 |
-
|
1115 |
-
|
1116 |
-
|
1117 |
-
|
1118 |
-
|
1119 |
-
|
1120 |
-
|
|
|
|
|
|
|
1121 |
}
|
1122 |
}
|
1123 |
|
@@ -1149,8 +1173,8 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1149 |
if (alm.filters) {
|
1150 |
|
1151 |
if (alm.filters_startpage) {
|
1152 |
-
|
1153 |
-
alm.page = alm.filters_startpage - 1;
|
1154 |
|
1155 |
// Reset filters-startpage data attr after the first run
|
1156 |
alm.posts_per_page = alm.content.attr('data-posts-per-page');
|
@@ -1161,20 +1185,19 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1161 |
|
1162 |
if (total > 0) {
|
1163 |
|
1164 |
-
//
|
|
|
1165 |
if (!alm.paging) {
|
1166 |
|
1167 |
if (alm.previous_post) {
|
1168 |
-
//
|
1169 |
-
|
1170 |
-
alm.el
|
1171 |
-
alm.el.append(alm.data).hide();
|
1172 |
} else {
|
1173 |
|
1174 |
if (!alm.transition_container) {
|
1175 |
// No transition container
|
1176 |
|
1177 |
-
alm.data.hide();
|
1178 |
alm.el = alm.data;
|
1179 |
} else {
|
1180 |
// Standard container
|
@@ -1212,19 +1235,19 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1212 |
if (alm.permalink === 'default') {
|
1213 |
div = $('<div class="alm-reveal alm-seo' + alm.tcc + '" data-url="' + alm.canonical_url + '' + alm.search_value + '&paged=' + pagenum + '" data-page="' + pagenum + '" />');
|
1214 |
} else {
|
1215 |
-
div = $('<div class="alm-reveal alm-seo' + alm.tcc + '" data-url="' + alm.canonical_url + 'page/' + pagenum + alm.
|
1216 |
}
|
1217 |
} else {
|
1218 |
// First Page
|
1219 |
-
div = $('<div class="alm-reveal alm-seo' + alm.tcc + '"
|
1220 |
}
|
1221 |
|
1222 |
div.append(seo_data[k]);
|
1223 |
div = $(div); // convert to object
|
1224 |
-
alm.el.append(div)
|
1225 |
}
|
1226 |
}
|
1227 |
-
// End SEO
|
1228 |
|
1229 |
else {
|
1230 |
// If is SEO and paged OR Preloaded.
|
@@ -1238,32 +1261,32 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1238 |
if (alm.seo) {
|
1239 |
|
1240 |
if (alm.permalink === 'default') {
|
1241 |
-
alm.el = $('<div class="alm-reveal alm-seo' + alm.tcc + '" data-url="' + alm.canonical_url + '' + alm.search_value + '&paged=' + pagenum + '" data-page="' + pagenum + '" />');
|
1242 |
} else {
|
1243 |
-
alm.el = $('<div class="alm-reveal alm-seo' + alm.tcc + '" data-url="' + alm.canonical_url + 'page/' + pagenum + alm.
|
1244 |
}
|
1245 |
} else if (alm.filters) {
|
1246 |
// Filters
|
1247 |
-
alm.el = $('<div class="alm-reveal alm-filters' + alm.tcc + '" data-url="' + alm.canonical_url + '' + querystring + '" data-page="' + pagenum + '" />');
|
1248 |
} else {
|
1249 |
// Basic ALM
|
1250 |
-
alm.el = $('<div class="alm-reveal' + alm.tcc + '" />');
|
1251 |
}
|
1252 |
} else if (alm.filters) {
|
1253 |
// Filters
|
1254 |
-
alm.el = $('<div class="alm-reveal alm-filters' + alm.tcc + '" data-url="' + alm.canonical_url + '' + querystring + '" data-page="' + (alm.page + 1) + '" />');
|
1255 |
} else {
|
1256 |
|
1257 |
if (alm.seo) {
|
1258 |
// SEO [Page 1]
|
1259 |
-
alm.el = $('<div class="alm-reveal alm-seo' + alm.tcc + '" data-url="' + alm.canonical_url + '' + alm.search_value + '" data-page="1" />');
|
1260 |
} else {
|
1261 |
// Basic ALM
|
1262 |
-
alm.el = $('<div class="alm-reveal' + alm.tcc + '" />');
|
1263 |
}
|
1264 |
}
|
1265 |
|
1266 |
-
alm.el.append(alm.data)
|
1267 |
}
|
1268 |
}
|
1269 |
}
|
@@ -1274,87 +1297,31 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1274 |
alm.content.append(alm.el);
|
1275 |
}
|
1276 |
|
1277 |
-
//
|
1278 |
-
if (alm.transition === 'fade') {
|
1279 |
-
// Fade
|
1280 |
-
if (alm.images_loaded === 'true') {
|
1281 |
-
alm.el.almWaitForImages().done(function () {
|
1282 |
-
alm.el.fadeIn(alm.speed, 'alm_easeInOutQuad', function () {
|
1283 |
-
alm.loading = false;
|
1284 |
-
if (!alm.paging) {
|
1285 |
-
alm.button.delay(alm.speed).removeClass('loading');
|
1286 |
-
alm.AjaxLoadMore.resetBtnText();
|
1287 |
-
}
|
1288 |
-
alm.container.removeClass('alm-loading');
|
1289 |
-
alm.AjaxLoadMore.triggerAddons(alm);
|
1290 |
-
});
|
1291 |
-
});
|
1292 |
-
} else {
|
1293 |
-
alm.el.fadeIn(alm.speed, 'alm_easeInOutQuad', function () {
|
1294 |
-
alm.loading = false;
|
1295 |
-
if (!alm.paging) {
|
1296 |
-
alm.button.delay(alm.speed).removeClass('loading');
|
1297 |
-
alm.AjaxLoadMore.resetBtnText();
|
1298 |
-
}
|
1299 |
-
alm.container.removeClass('alm-loading');
|
1300 |
-
alm.AjaxLoadMore.triggerAddons(alm);
|
1301 |
-
});
|
1302 |
-
}
|
1303 |
-
} else if (alm.transition === 'masonry') {
|
1304 |
-
// Masonry
|
1305 |
-
|
1306 |
-
almMasonry(alm.masonry_wrap, alm.el, alm.masonry_selector, alm.masonry_animation, alm.masonry_horizontalorder, alm.speed, alm.masonry_init, alm.init, alm_is_filtering);alm.masonry_init = false;
|
1307 |
|
1308 |
-
|
1309 |
-
|
1310 |
-
|
1311 |
-
|
1312 |
-
alm.
|
1313 |
-
|
1314 |
-
|
1315 |
-
|
1316 |
-
|
1317 |
-
|
1318 |
-
alm.el.almWaitForImages().done(function () {
|
1319 |
-
alm.el.show();
|
1320 |
-
alm.AjaxLoadMore.triggerAddons(alm);
|
1321 |
-
});
|
1322 |
-
} else {
|
1323 |
-
alm.el.show();
|
1324 |
-
alm.AjaxLoadMore.triggerAddons(alm);
|
1325 |
-
}
|
1326 |
-
alm.loading = false;
|
1327 |
-
if (!alm.paging) {
|
1328 |
-
alm.button.delay(alm.speed).removeClass('loading');
|
1329 |
-
alm.AjaxLoadMore.resetBtnText();
|
1330 |
}
|
1331 |
-
|
1332 |
-
|
1333 |
-
|
1334 |
-
|
1335 |
-
|
1336 |
-
|
1337 |
-
|
1338 |
-
|
1339 |
-
|
1340 |
-
|
1341 |
-
alm.container.removeClass('alm-loading');
|
1342 |
-
alm.AjaxLoadMore.triggerAddons(alm);
|
1343 |
-
});
|
1344 |
-
});
|
1345 |
-
} else {
|
1346 |
-
alm.el.slideDown(alm.speed, 'alm_easeInOutQuad', function () {
|
1347 |
-
alm.loading = false;
|
1348 |
-
if (!alm.paging) {
|
1349 |
-
alm.button.delay(alm.speed).removeClass('loading');
|
1350 |
-
alm.AjaxLoadMore.resetBtnText();
|
1351 |
}
|
1352 |
-
|
1353 |
-
alm.AjaxLoadMore.triggerAddons(alm);
|
1354 |
-
});
|
1355 |
-
}
|
1356 |
-
}
|
1357 |
-
// End Transition
|
1358 |
} else {
|
1359 |
|
1360 |
// Paging
|
@@ -1415,18 +1382,13 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1415 |
// Destroy After
|
1416 |
if (alm.destroy_after !== undefined && alm.destroy_after !== '') {
|
1417 |
var currentPage = alm.page + 1; // Add 1 because alm.page starts at 0
|
1418 |
-
if (alm.
|
|
|
1419 |
currentPage++;
|
1420 |
}
|
1421 |
if (currentPage == alm.destroy_after) {
|
1422 |
-
//
|
1423 |
-
alm.
|
1424 |
-
if (!alm.paging) {
|
1425 |
-
alm.button.delay(alm.speed).fadeOut(alm.speed);
|
1426 |
-
if ($.isFunction($.fn.almDestroyed)) {
|
1427 |
-
$.fn.almDestroyed(alm);
|
1428 |
-
}
|
1429 |
-
}
|
1430 |
}
|
1431 |
}
|
1432 |
// End Destroy After
|
@@ -1465,10 +1427,12 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1465 |
$.fn.almEmpty(alm);
|
1466 |
}
|
1467 |
}
|
1468 |
-
|
1469 |
-
|
1470 |
-
$.fn.almFadePageControls
|
1471 |
-
|
|
|
|
|
1472 |
};
|
1473 |
|
1474 |
/* pagingNextpageInit()
|
@@ -1494,7 +1458,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1494 |
$.fn.almSetNextPageVars(alm); // Next Page Add-on
|
1495 |
}
|
1496 |
|
1497 |
-
// Delay
|
1498 |
setTimeout(function () {
|
1499 |
if ($.isFunction($.fn.almFadePageControls)) {
|
1500 |
$.fn.almFadePageControls(alm.btnWrap); // Paging Add-on
|
@@ -1503,10 +1467,10 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1503 |
if ($.isFunction($.fn.almOnWindowResize)) {
|
1504 |
$.fn.almOnWindowResize(alm); // Paging Add-on
|
1505 |
}
|
1506 |
-
},
|
1507 |
};
|
1508 |
|
1509 |
-
/*
|
1510 |
*
|
1511 |
* Get the previous post ID via ajax
|
1512 |
* @since 2.7.4
|
@@ -1552,9 +1516,9 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1552 |
});
|
1553 |
};
|
1554 |
|
1555 |
-
/*
|
1556 |
*
|
1557 |
-
*
|
1558 |
* @since 2.14.0
|
1559 |
*/
|
1560 |
alm.AjaxLoadMore.triggerAddons = function (alm) {
|
@@ -1591,11 +1555,9 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1591 |
* @since 2.8.4
|
1592 |
*/
|
1593 |
alm.AjaxLoadMore.resetBtnText = function () {
|
1594 |
-
if (alm.button_loading_label !== false) {
|
1595 |
// Reset button text
|
1596 |
-
|
1597 |
-
alm.button.html(alm.button_label);
|
1598 |
-
}
|
1599 |
}
|
1600 |
};
|
1601 |
|
@@ -1664,7 +1626,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1664 |
}
|
1665 |
this.resizeTO = setTimeout(function () {
|
1666 |
$(this).trigger('resizeEnd');
|
1667 |
-
},
|
1668 |
});
|
1669 |
}
|
1670 |
|
@@ -1723,6 +1685,62 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1723 |
});
|
1724 |
}
|
1725 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1726 |
/* Init Ajax load More
|
1727 |
*
|
1728 |
* Load posts as user scrolls the page
|
@@ -1730,6 +1748,11 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1730 |
*/
|
1731 |
alm.AjaxLoadMore.init = function () {
|
1732 |
|
|
|
|
|
|
|
|
|
|
|
1733 |
if (!alm.paging && !alm.previous_post) {
|
1734 |
if (alm.disable_ajax) {
|
1735 |
alm.finished = true;
|
@@ -1757,7 +1780,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1757 |
if ($.isFunction($.fn.almSEO) && alm.start_page < 1) {
|
1758 |
$.fn.almSEO(alm, true);
|
1759 |
}
|
1760 |
-
},
|
1761 |
}
|
1762 |
|
1763 |
// Preloaded
|
@@ -1774,7 +1797,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1774 |
$.fn.almEmpty(alm);
|
1775 |
}
|
1776 |
}
|
1777 |
-
},
|
1778 |
}
|
1779 |
|
1780 |
// Next Page Add-on
|
@@ -1804,7 +1827,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1804 |
//flag to prevent unnecessary loading of post on init. Hold for 2/10 of a second
|
1805 |
setTimeout(function () {
|
1806 |
alm.proceed = true;
|
1807 |
-
},
|
1808 |
|
1809 |
/* $.fn.almUpdateCurrentPage()
|
1810 |
*
|
@@ -1832,7 +1855,6 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1832 |
data = $('.alm-preloaded .alm-reveal', alm.el).html(); // Content of preloaded page
|
1833 |
$('.alm-preloaded', alm.el).remove();
|
1834 |
alm.preloaded_amount = 0; // Reset
|
1835 |
-
//alm.AjaxLoadMore.success(data, true); // Skip post loading and go right to success() for display
|
1836 |
alm.AjaxLoadMore.pagingPreloadedInit(data);
|
1837 |
alm.paging_init = false;
|
1838 |
alm.init = false;
|
@@ -1915,7 +1937,6 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
1915 |
var ajaxloadmore = document.querySelectorAll('.ajax-load-more-wrap');
|
1916 |
if (ajaxloadmore.length) {
|
1917 |
[].concat(_toConsumableArray(ajaxloadmore)).forEach(function (alm, e) {
|
1918 |
-
//$(alm).data('alm', new $.ajaxloadmore($(alm), e));
|
1919 |
new $.ajaxloadmore($(alm), e);
|
1920 |
});
|
1921 |
}
|
261 |
// First Run
|
262 |
if (masonry_init && init) {
|
263 |
container.imagesLoaded(function () {
|
|
|
264 |
container.masonry({
|
265 |
itemSelector: selector,
|
266 |
transitionDuration: duration,
|
275 |
opacity: 1
|
276 |
}
|
277 |
});
|
278 |
+
almMasonryFadeIn(container[0].parentNode, speed);
|
279 |
});
|
280 |
}
|
281 |
|
282 |
// Standard
|
283 |
else {
|
284 |
+
//container.append( items ); // Append new items
|
285 |
+
items.imagesLoaded(function () {
|
286 |
+
//items.show();
|
287 |
+
container.append(items).masonry('appended', items);
|
288 |
});
|
289 |
}
|
290 |
} else {
|
294 |
almMasonry(container, items, selector, animation, horizontalOrder, speed, true, true, false);
|
295 |
}
|
296 |
};
|
297 |
+
|
298 |
+
// Fade in masonry on initial page load
|
299 |
+
var almMasonryFadeIn = function almMasonryFadeIn(element, speed) {
|
300 |
+
speed = speed / 10;
|
301 |
+
var op = parseInt(element.style.opacity); // initial opacity
|
302 |
+
var timer = setInterval(function () {
|
303 |
+
if (op > 0.9) {
|
304 |
+
element.style.opacity = 1;
|
305 |
+
clearInterval(timer);
|
306 |
+
}
|
307 |
+
element.style.opacity = op;
|
308 |
+
op += 0.1;
|
309 |
+
}, speed);
|
310 |
+
};
|
311 |
'use strict';
|
312 |
|
313 |
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
|
357 |
alm.is_search = alm.el.attr('data-search');
|
358 |
alm.slug = alm.el.attr('data-slug');
|
359 |
alm.post_id = alm.el.attr('data-post-id');
|
360 |
+
alm.id = alm.el.attr('data-id') ? alm.el.attr('data-id') : '';
|
361 |
|
362 |
alm.repeater = alm.content.attr('data-repeater'); // Repeaters
|
363 |
alm.theme_repeater = alm.content.attr('data-theme-repeater');
|
378 |
alm.transition = alm.content.attr('data-transition'); // Transition
|
379 |
alm.transition_container = alm.content.attr('data-transition-container'); // Transition Container
|
380 |
alm.tcc = alm.content.attr('data-transition-container-classes'); // Transition Container Classes
|
381 |
+
alm.speed = 250;
|
382 |
alm.images_loaded = alm.content.attr('data-images-loaded');
|
383 |
alm.destroy_after = alm.content.attr('data-destroy-after');
|
384 |
alm.lang = alm.content.attr('data-lang');
|
418 |
// if comments, adjust alm.content wrapper
|
419 |
alm.content = $('.alm-comments', alm.container);
|
420 |
}
|
421 |
+
alm.comments_post_id = alm.content.attr('data-comments_post_id'); // current post id
|
422 |
+
alm.comments_per_page = alm.content.attr('data-comments_per_page');
|
423 |
+
alm.comments_type = alm.content.attr('data-comments_type');
|
424 |
+
alm.comments_style = alm.content.attr('data-comments_style');
|
425 |
+
alm.comments_template = alm.content.attr('data-comments_template');
|
426 |
+
alm.comments_callback = alm.content.attr('data-comments_callback');
|
427 |
|
428 |
alm.filters = alm.content.attr('data-filters');
|
429 |
|
559 |
alm.permalink = alm.content.attr('data-seo-permalink');
|
560 |
alm.pageview = alm.content.attr('data-seo-pageview');
|
561 |
alm.start_page = alm.content.attr('data-seo-start-page');
|
562 |
+
alm.seo_trailing_slash = alm.content.attr('data-seo-trailing-slash') === 'false' ? '' : '/';
|
563 |
+
alm.seo_leading_slash = alm.content.attr('data-seo-leading-slash') === 'true' ? '/' : '';
|
564 |
|
565 |
if (alm.start_page) {
|
566 |
alm.seo_scroll = alm.content.attr('data-seo-scroll');
|
705 |
}
|
706 |
}
|
707 |
|
|
|
|
|
|
|
708 |
/* Scroll */
|
709 |
if (alm.content.attr('data-scroll') === undefined) {
|
710 |
alm.scroll = true;
|
844 |
};
|
845 |
}
|
846 |
|
847 |
+
// Comment Params
|
848 |
alm.comments_array = '';
|
849 |
if (alm.comments === 'true') {
|
850 |
action = 'alm_comments_query';
|
860 |
};
|
861 |
}
|
862 |
|
863 |
+
// Users Params
|
864 |
alm.users_array = '';
|
865 |
if (alm.users) {
|
866 |
action = 'alm_users_query';
|
875 |
};
|
876 |
}
|
877 |
|
878 |
+
// CTA Params
|
879 |
alm.cta_array = '';
|
880 |
if (alm.cta === 'true') {
|
881 |
alm.cta_array = {
|
979 |
action: action,
|
980 |
nonce: alm_localize.alm_nonce,
|
981 |
query_type: queryType,
|
|
|
982 |
id: el.attr('data-id'),
|
983 |
+
post_id: alm.post_id,
|
984 |
slug: alm.slug,
|
985 |
canonical_url: alm.canonical_url,
|
986 |
cache_id: alm.cache_id,
|
1087 |
alm.AjaxLoadMore.getPreviousPost();
|
1088 |
}
|
1089 |
|
1090 |
+
var loadingStyle = 'style="opacity: 0; height: 0;"';
|
1091 |
+
|
1092 |
var html, meta, total;
|
1093 |
|
1094 |
if (is_cache) {
|
1123 |
|
1124 |
// Is pagination
|
1125 |
if (total > 0) {
|
1126 |
+
alm.el = $('<div class="alm-reveal' + alm.tcc + '" ' + loadingStyle + '/>');
|
1127 |
alm.el.append('<div class="alm-paging-content"></div><div class="alm-paging-loading"></div>');
|
1128 |
+
$('.alm-paging-content', alm.el).append(alm.data);
|
1129 |
alm.content.append(alm.el);
|
1130 |
+
alm.AjaxLoadMore.fadeIn(alm.el.get(0), alm.speed);
|
1131 |
alm.content.parent().removeClass('loading'); // Remove loading class from main container
|
1132 |
alm.AjaxLoadMore.resetBtnText();
|
1133 |
|
1134 |
+
// Delay reveal until paging elements have been added
|
1135 |
+
setTimeout(function () {
|
1136 |
+
$('.alm-paging-content', alm.el).fadeIn(alm.speed, 'alm_easeInOutQuad', function () {
|
1137 |
+
var paddingT = parseInt(alm.content.css('padding-top')),
|
1138 |
+
paddingB = parseInt(alm.content.css('padding-bottom'));
|
1139 |
+
alm.content.css('height', alm.el.height() + paddingT + paddingB + 'px');
|
1140 |
+
if ($.isFunction($.fn.almFadePageControls)) {
|
1141 |
+
$.fn.almFadePageControls(alm.btnWrap);
|
1142 |
+
}
|
1143 |
+
});
|
1144 |
+
}, alm.speed);
|
1145 |
}
|
1146 |
}
|
1147 |
|
1173 |
if (alm.filters) {
|
1174 |
|
1175 |
if (alm.filters_startpage) {
|
1176 |
+
|
1177 |
+
alm.page = alm.filters_startpage - 1; // Set new page #
|
1178 |
|
1179 |
// Reset filters-startpage data attr after the first run
|
1180 |
alm.posts_per_page = alm.content.attr('data-posts-per-page');
|
1185 |
|
1186 |
if (total > 0) {
|
1187 |
|
1188 |
+
// We have results!
|
1189 |
+
|
1190 |
if (!alm.paging) {
|
1191 |
|
1192 |
if (alm.previous_post) {
|
1193 |
+
// Previous Post, create container and append data
|
1194 |
+
alm.el = $('<div class="alm-reveal alm-previous-post post-' + alm.previous_post_id + '" ' + loadingStyle + ' data-id="' + alm.previous_post_id + '" data-title="' + alm.previous_post_title + '" data-url="' + alm.previous_post_permalink + '" data-page="' + alm.page + '"/>');
|
1195 |
+
alm.el.append(alm.data);
|
|
|
1196 |
} else {
|
1197 |
|
1198 |
if (!alm.transition_container) {
|
1199 |
// No transition container
|
1200 |
|
|
|
1201 |
alm.el = alm.data;
|
1202 |
} else {
|
1203 |
// Standard container
|
1235 |
if (alm.permalink === 'default') {
|
1236 |
div = $('<div class="alm-reveal alm-seo' + alm.tcc + '" data-url="' + alm.canonical_url + '' + alm.search_value + '&paged=' + pagenum + '" data-page="' + pagenum + '" />');
|
1237 |
} else {
|
1238 |
+
div = $('<div class="alm-reveal alm-seo' + alm.tcc + '" data-url="' + alm.canonical_url + alm.seo_leading_slash + 'page/' + pagenum + alm.seo_trailing_slash + alm.search_value + '" data-page="' + pagenum + '" />');
|
1239 |
}
|
1240 |
} else {
|
1241 |
// First Page
|
1242 |
+
div = $('<div class="alm-reveal alm-seo' + alm.tcc + '" data-url="' + alm.canonical_url + '' + alm.search_value + '" data-page="1" />');
|
1243 |
}
|
1244 |
|
1245 |
div.append(seo_data[k]);
|
1246 |
div = $(div); // convert to object
|
1247 |
+
alm.el.append(div); // Append data to .alm-listing wrapper
|
1248 |
}
|
1249 |
}
|
1250 |
+
// End SEO
|
1251 |
|
1252 |
else {
|
1253 |
// If is SEO and paged OR Preloaded.
|
1261 |
if (alm.seo) {
|
1262 |
|
1263 |
if (alm.permalink === 'default') {
|
1264 |
+
alm.el = $('<div class="alm-reveal alm-seo' + alm.tcc + '" ' + loadingStyle + ' data-url="' + alm.canonical_url + '' + alm.search_value + '&paged=' + pagenum + '" data-page="' + pagenum + '" />');
|
1265 |
} else {
|
1266 |
+
alm.el = $('<div class="alm-reveal alm-seo' + alm.tcc + '" ' + loadingStyle + ' data-url="' + alm.canonical_url + alm.seo_leading_slash + 'page/' + pagenum + alm.seo_trailing_slash + alm.search_value + '" data-page="' + pagenum + '" />');
|
1267 |
}
|
1268 |
} else if (alm.filters) {
|
1269 |
// Filters
|
1270 |
+
alm.el = $('<div class="alm-reveal alm-filters' + alm.tcc + '" ' + loadingStyle + ' data-url="' + alm.canonical_url + '' + querystring + '" data-page="' + pagenum + '" />');
|
1271 |
} else {
|
1272 |
// Basic ALM
|
1273 |
+
alm.el = $('<div class="alm-reveal' + alm.tcc + '" ' + loadingStyle + ' />');
|
1274 |
}
|
1275 |
} else if (alm.filters) {
|
1276 |
// Filters
|
1277 |
+
alm.el = $('<div class="alm-reveal alm-filters' + alm.tcc + '" ' + loadingStyle + ' data-url="' + alm.canonical_url + '' + querystring + '" data-page="' + (alm.page + 1) + '" />');
|
1278 |
} else {
|
1279 |
|
1280 |
if (alm.seo) {
|
1281 |
// SEO [Page 1]
|
1282 |
+
alm.el = $('<div class="alm-reveal alm-seo' + alm.tcc + '" ' + loadingStyle + ' data-url="' + alm.canonical_url + '' + alm.search_value + '" data-page="1" />');
|
1283 |
} else {
|
1284 |
// Basic ALM
|
1285 |
+
alm.el = $('<div class="alm-reveal' + alm.tcc + '" ' + loadingStyle + ' />');
|
1286 |
}
|
1287 |
}
|
1288 |
|
1289 |
+
alm.el.append(alm.data);
|
1290 |
}
|
1291 |
}
|
1292 |
}
|
1297 |
alm.content.append(alm.el);
|
1298 |
}
|
1299 |
|
1300 |
+
// Transitions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1301 |
|
1302 |
+
// Masonry
|
1303 |
+
if (alm.transition === 'masonry') {
|
1304 |
+
almMasonry(alm.masonry_wrap, alm.el, alm.masonry_selector, alm.masonry_animation, alm.masonry_horizontalorder, alm.speed, alm.masonry_init, alm.init, alm_is_filtering);
|
1305 |
+
alm.masonry_init = false;
|
1306 |
+
alm.AjaxLoadMore.transitionEnd();
|
1307 |
+
}
|
1308 |
+
// None
|
1309 |
+
else if (alm.transition === 'none') {
|
1310 |
+
alm.AjaxLoadMore.fadeIn(alm.el.get(0), 0);
|
1311 |
+
alm.AjaxLoadMore.transitionEnd();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1312 |
}
|
1313 |
+
// Fade transition
|
1314 |
+
else {
|
1315 |
+
if (alm.images_loaded === 'true') {
|
1316 |
+
alm.el.almWaitForImages().done(function () {
|
1317 |
+
alm.AjaxLoadMore.fadeIn(alm.el.get(0), alm.speed);
|
1318 |
+
alm.AjaxLoadMore.transitionEnd();
|
1319 |
+
});
|
1320 |
+
} else {
|
1321 |
+
alm.AjaxLoadMore.fadeIn(alm.el.get(0), alm.speed);
|
1322 |
+
alm.AjaxLoadMore.transitionEnd();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1323 |
}
|
1324 |
+
}
|
|
|
|
|
|
|
|
|
|
|
1325 |
} else {
|
1326 |
|
1327 |
// Paging
|
1382 |
// Destroy After
|
1383 |
if (alm.destroy_after !== undefined && alm.destroy_after !== '') {
|
1384 |
var currentPage = alm.page + 1; // Add 1 because alm.page starts at 0
|
1385 |
+
if (alm.preloaded === 'true') {
|
1386 |
+
// Add 1 for preloaded
|
1387 |
currentPage++;
|
1388 |
}
|
1389 |
if (currentPage == alm.destroy_after) {
|
1390 |
+
// Disable ALM if page = alm.destroy_after val
|
1391 |
+
alm.AjaxLoadMore.destroyed();
|
|
|
|
|
|
|
|
|
|
|
|
|
1392 |
}
|
1393 |
}
|
1394 |
// End Destroy After
|
1427 |
$.fn.almEmpty(alm);
|
1428 |
}
|
1429 |
}
|
1430 |
+
// Delay to avoid positioning issues
|
1431 |
+
setTimeout(function () {
|
1432 |
+
if ($.isFunction($.fn.almFadePageControls)) {
|
1433 |
+
$.fn.almFadePageControls(alm.btnWrap);
|
1434 |
+
}
|
1435 |
+
}, alm.speed);
|
1436 |
};
|
1437 |
|
1438 |
/* pagingNextpageInit()
|
1458 |
$.fn.almSetNextPageVars(alm); // Next Page Add-on
|
1459 |
}
|
1460 |
|
1461 |
+
// Delay to avoid positioning issues
|
1462 |
setTimeout(function () {
|
1463 |
if ($.isFunction($.fn.almFadePageControls)) {
|
1464 |
$.fn.almFadePageControls(alm.btnWrap); // Paging Add-on
|
1467 |
if ($.isFunction($.fn.almOnWindowResize)) {
|
1468 |
$.fn.almOnWindowResize(alm); // Paging Add-on
|
1469 |
}
|
1470 |
+
}, alm.speed);
|
1471 |
};
|
1472 |
|
1473 |
+
/* fetchingPreviousPost()
|
1474 |
*
|
1475 |
* Get the previous post ID via ajax
|
1476 |
* @since 2.7.4
|
1516 |
});
|
1517 |
};
|
1518 |
|
1519 |
+
/* triggerAddons()
|
1520 |
*
|
1521 |
+
* Triggers various add-on functions (if available) after load complete.
|
1522 |
* @since 2.14.0
|
1523 |
*/
|
1524 |
alm.AjaxLoadMore.triggerAddons = function (alm) {
|
1555 |
* @since 2.8.4
|
1556 |
*/
|
1557 |
alm.AjaxLoadMore.resetBtnText = function () {
|
1558 |
+
if (alm.button_loading_label !== false && !alm.paging) {
|
1559 |
// Reset button text
|
1560 |
+
alm.button.html(alm.button_label);
|
|
|
|
|
1561 |
}
|
1562 |
};
|
1563 |
|
1626 |
}
|
1627 |
this.resizeTO = setTimeout(function () {
|
1628 |
$(this).trigger('resizeEnd');
|
1629 |
+
}, alm.speed);
|
1630 |
});
|
1631 |
}
|
1632 |
|
1685 |
});
|
1686 |
}
|
1687 |
|
1688 |
+
/* Destroy Ajax load More
|
1689 |
+
*
|
1690 |
+
* Destroy Ajax Load More functionality
|
1691 |
+
* @since 3.4.2
|
1692 |
+
*/
|
1693 |
+
alm.AjaxLoadMore.destroyed = function () {
|
1694 |
+
alm.disable_ajax = true;
|
1695 |
+
if (!alm.paging) {
|
1696 |
+
alm.button.delay(alm.speed).fadeOut(alm.speed);
|
1697 |
+
if ($.isFunction($.fn.almDestroyed)) {
|
1698 |
+
$.fn.almDestroyed(alm);
|
1699 |
+
}
|
1700 |
+
}
|
1701 |
+
};
|
1702 |
+
|
1703 |
+
/* Fade in helper
|
1704 |
+
*
|
1705 |
+
* Fade in elements after an Ajax call
|
1706 |
+
* @since 3.5
|
1707 |
+
*/
|
1708 |
+
alm.AjaxLoadMore.fadeIn = function (element, speed) {
|
1709 |
+
if (speed == 0) {
|
1710 |
+
element.style.opacity = 1;
|
1711 |
+
element.style.height = 'auto';
|
1712 |
+
} else {
|
1713 |
+
speed = speed / 10;
|
1714 |
+
var op = 0; // initial opacity
|
1715 |
+
var timer = setInterval(function () {
|
1716 |
+
if (op > 0.9) {
|
1717 |
+
element.style.opacity = 1;
|
1718 |
+
clearInterval(timer);
|
1719 |
+
}
|
1720 |
+
element.style.opacity = op;
|
1721 |
+
op += 0.1;
|
1722 |
+
}, speed);
|
1723 |
+
element.style.height = 'auto';
|
1724 |
+
}
|
1725 |
+
};
|
1726 |
+
|
1727 |
+
/* Transition End
|
1728 |
+
*
|
1729 |
+
* Set variables after loading transiton completes
|
1730 |
+
* @since 3.5
|
1731 |
+
*/
|
1732 |
+
alm.AjaxLoadMore.transitionEnd = function () {
|
1733 |
+
setTimeout(function () {
|
1734 |
+
alm.loading = false;
|
1735 |
+
alm.container.removeClass('alm-loading');
|
1736 |
+
alm.AjaxLoadMore.triggerAddons(alm);
|
1737 |
+
if (!alm.paging) {
|
1738 |
+
alm.button.delay(alm.speed).removeClass('loading');
|
1739 |
+
alm.AjaxLoadMore.resetBtnText();
|
1740 |
+
}
|
1741 |
+
}, alm.speed);
|
1742 |
+
};
|
1743 |
+
|
1744 |
/* Init Ajax load More
|
1745 |
*
|
1746 |
* Load posts as user scrolls the page
|
1748 |
*/
|
1749 |
alm.AjaxLoadMore.init = function () {
|
1750 |
|
1751 |
+
// Preloaded and destroy_after is 1
|
1752 |
+
if (alm.preloaded === 'true' && alm.destroy_after == 1) {
|
1753 |
+
alm.AjaxLoadMore.destroyed();
|
1754 |
+
}
|
1755 |
+
|
1756 |
if (!alm.paging && !alm.previous_post) {
|
1757 |
if (alm.disable_ajax) {
|
1758 |
alm.finished = true;
|
1780 |
if ($.isFunction($.fn.almSEO) && alm.start_page < 1) {
|
1781 |
$.fn.almSEO(alm, true);
|
1782 |
}
|
1783 |
+
}, alm.speed);
|
1784 |
}
|
1785 |
|
1786 |
// Preloaded
|
1797 |
$.fn.almEmpty(alm);
|
1798 |
}
|
1799 |
}
|
1800 |
+
}, alm.speed);
|
1801 |
}
|
1802 |
|
1803 |
// Next Page Add-on
|
1827 |
//flag to prevent unnecessary loading of post on init. Hold for 2/10 of a second
|
1828 |
setTimeout(function () {
|
1829 |
alm.proceed = true;
|
1830 |
+
}, 150);
|
1831 |
|
1832 |
/* $.fn.almUpdateCurrentPage()
|
1833 |
*
|
1855 |
data = $('.alm-preloaded .alm-reveal', alm.el).html(); // Content of preloaded page
|
1856 |
$('.alm-preloaded', alm.el).remove();
|
1857 |
alm.preloaded_amount = 0; // Reset
|
|
|
1858 |
alm.AjaxLoadMore.pagingPreloadedInit(data);
|
1859 |
alm.paging_init = false;
|
1860 |
alm.init = false;
|
1937 |
var ajaxloadmore = document.querySelectorAll('.ajax-load-more-wrap');
|
1938 |
if (ajaxloadmore.length) {
|
1939 |
[].concat(_toConsumableArray(ajaxloadmore)).forEach(function (alm, e) {
|
|
|
1940 |
new $.ajaxloadmore($(alm), e);
|
1941 |
});
|
1942 |
}
|
core/dist/js/ajax-load-more.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
"use strict";function _toConsumableArray(t){if(Array.isArray(t)){for(var a=0,e=Array(t.length);a<t.length;a++)e[a]=t[a];return e}return Array.from(t)}function _toConsumableArray(t){if(Array.isArray(t)){for(var a=0,e=Array(t.length);a<t.length;a++)e[a]=t[a];return e}return Array.from(t)}Array.from||(Array.from=function(){var t=Object.prototype.toString,a=function(a){return"function"==typeof a||"[object Function]"===t.call(a)},e=function(t){var a=Number(t);return isNaN(a)?0:0!==a&&isFinite(a)?(a>0?1:-1)*Math.floor(Math.abs(a)):a},o=Math.pow(2,53)-1,n=function(t){var a=e(t);return Math.min(Math.max(a,0),o)};return function(t){var e=this,o=Object(t);if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r,s=arguments.length>1?arguments[1]:void 0;if(void 0!==s){if(!a(s))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(r=arguments[2])}for(var i,l=n(o.length),d=a(e)?Object(new e(l)):new Array(l),p=0;p<l;)i=o[p],d[p]=s?void 0===r?s(i,p):s.call(r,i,p):i,p+=1;return d.length=l,d}}());var almGetParameterByName=function(t,a){a||(a=window.location.href),t=t.replace(/[\[\]]/g,"\\$&");var e=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(a);return e?e[2]?decodeURIComponent(e[2].replace(/\+/g," ")):"":null},alm_is_filtering=!1;!function(t){t.fn.almFilter=function(a,e,o){o.target?t(".ajax-load-more-wrap[data-id='"+o.target+"']").each(function(n){var r=t(this);t.fn.almFilterTransition(a,e,o,r)}):t(".ajax-load-more-wrap").each(function(n){var r=t(this);t.fn.almFilterTransition(a,e,o,r)})},t.fn.almFilterTransition=function(t,e,o,n){"slide"===t?n.slideUp(e,function(){a(e,o,n)}):"fade"===t||"masonry"===t?n.fadeOut(e,function(){a(e,o,n)}):a(e,o,n)};var a=function(t,a,o){var n=o.get(0),r=n.querySelectorAll(".alm-listing");[].concat(_toConsumableArray(r)).forEach(function(t){t.innerHTML=""});var s=n.querySelector(".alm-load-more-btn");s&&s.classList.remove("done"),e(t,a,o)},e=function(a,e,o){t.each(e,function(a,e){a=a.replace(/\W+/g,"-").replace(/([a-z\d])([A-Z])/g,"$1-$2"),t(".alm-listing",o).attr("data-"+a,e)}),t.isFunction(t.fn.almFilterComplete)&&t.fn.almFilterComplete(),"function"==typeof almFiltersAddonComplete&&almFiltersAddonComplete(o),alm_is_filtering=!0,o.fadeIn(a),e.target?t(".ajax-load-more-wrap[data-id="+e.target+"]").ajaxloadmore():t(".ajax-load-more-wrap").ajaxloadmore()}}(jQuery);var almMasonry=function t(a,e,o,n,r,s,i,l,d){var p=(s+100)/1e3+"s",c="scale(0.5)",g="scale(1)";"zoom-out"===n&&(c="translateY(-20px) scale(1.25)",g="translateY(0) scale(1)"),"slide-up"===n&&(c="translateY(50px)",g="translateY(0)"),"slide-down"===n&&(c="translateY(-50px)",g="translateY(0)"),"none"===n&&(c="translateY(0)",g="translateY(0)"),r="true"===r,d?(a.masonry("destroy"),a.append(e),t(a,e,o,n,r,s,!0,!0,!1)):i&&l?a.imagesLoaded(function(){e.fadeIn(s),a.masonry({itemSelector:o,transitionDuration:p,columnWidth:o,horizontalOrder:r,hiddenStyle:{transform:c,opacity:0},visibleStyle:{transform:g,opacity:1}})}):(a.append(e),a.imagesLoaded(function(){e.show(),a.masonry("appended",e)}))};!function(t){t.ajaxloadmore=function(a,e){"true"===alm_localize.scrolltop&&t(window).scrollTop(0);var o=this;if(o.AjaxLoadMore={},o.window=t(window),o.page=0,o.posts=0,o.totalposts=0,o.proceed=!1,o.disable_ajax=!1,o.init=!0,o.loading=!0,o.finished=!1,o.prefix="alm-",o.el=a,o.container=a,o.container.addClass("alm-"+e).attr("data-alm-id",e),o.content=t(".alm-ajax",o.container),o.content_preloaded=t(".alm-listing.alm-preloaded",o.container),o.canonical_url=o.el.attr("data-canonical-url"),o.is_search=o.el.attr("data-search"),o.slug=o.el.attr("data-slug"),o.post_id=o.el.attr("data-post-id"),o.repeater=o.content.attr("data-repeater"),o.theme_repeater=o.content.attr("data-theme-repeater"),o.post_type=o.content.attr("data-post-type"),o.post_type=o.post_type.split(","),o.sticky_posts=o.content.attr("data-sticky-posts"),o.btnWrap=t(".alm-btn-wrap",o.container),o.button_label=o.content.attr("data-button-label"),o.button_loading_label=o.content.attr("data-button-loading-label"),o.scroll_distance=o.content.attr("data-scroll-distance"),o.scroll_distance=o.scroll_distance?parseInt(o.scroll_distance):150,o.scroll_container=o.content.attr("data-scroll-container"),o.max_pages=o.content.attr("data-max-pages"),o.max_pages=o.max_pages?parseInt(o.max_pages):0,o.pause_override=o.content.attr("data-pause-override"),o.pause=o.content.attr("data-pause"),o.transition=o.content.attr("data-transition"),o.transition_container=o.content.attr("data-transition-container"),o.tcc=o.content.attr("data-transition-container-classes"),o.speed=o.content.attr("data-transition-speed"),o.images_loaded=o.content.attr("data-images-loaded"),o.destroy_after=o.content.attr("data-destroy-after"),o.lang=o.content.attr("data-lang"),o.orginal_posts_per_page=o.content.attr("data-posts-per-page"),o.posts_per_page=o.content.attr("data-posts-per-page"),o.offset=o.content.attr("data-offset"),o.cache=o.content.attr("data-cache"),o.cache_id=o.content.attr("data-cache-id"),o.cache_path=o.content.attr("data-cache-path"),o.cache_logged_in=o.content.attr("data-cache-logged-in"),o.cta=o.content.attr("data-cta"),o.cta_position=o.content.attr("data-cta-position"),o.cta_repeater=o.content.attr("data-cta-repeater"),o.cta_theme_repeater=o.content.attr("data-cta-theme-repeater"),o.acf=o.content.attr("data-acf"),o.acf_field_type=o.content.attr("data-acf-field-type"),o.acf_field_name=o.content.attr("data-acf-field-name"),o.acf_post_id=o.content.attr("data-acf-post-id"),o.nextpage=o.content.attr("data-nextpage"),o.nextpage_urls=o.content.attr("data-nextpage-urls"),o.nextpage_scroll=o.content.attr("data-nextpage-scroll"),o.nextpage_pageviews=o.content.attr("data-nextpage-pageviews"),o.nextpage_post_id=o.content.attr("data-nextpage-post-id"),o.nextpage_startpage=o.content.attr("data-nextpage-startpage"),o.previous_post=o.content.attr("data-previous-post"),o.previous_post_id=o.content.attr("data-previous-post-id"),o.previous_post_taxonomy=o.content.attr("data-previous-post-taxonomy"),o.previous_post_excluded_terms=o.content.attr("data-previous-post-excluded-terms"),o.comments=o.content.attr("data-comments"),"true"===o.comments&&(o.content=t(".alm-comments",o.container)),o.filters=o.content.attr("data-filters"),o.restapi=o.content.attr("data-restapi"),o.restapi_base_url=o.content.attr("data-restapi-base-url"),o.restapi_namespace=o.content.attr("data-restapi-namespace"),o.restapi_endpoint=o.content.attr("data-restapi-endpoint"),o.restapi_template_id=o.content.attr("data-restapi-template-id"),o.restapi_debug=o.content.attr("data-restapi-debug"),o.seo=o.content.attr("data-seo"),o.preloaded=o.content.attr("data-preloaded"),o.preloaded_amount=o.content.attr("data-preloaded-amount"),o.paging=o.content.attr("data-paging"),o.users="true"===o.content.attr("data-users"),o.users&&(o.orginal_posts_per_page=o.content.attr("data-users-per-page"),o.posts_per_page=o.content.attr("data-users-per-page")),"true"===o.filters){o.filters=!0,o.filters_analtyics=o.content.attr("data-filters-analtyics"),o.filters_debug=o.content.attr("data-filters-debug"),o.filters_startpage=0;var n=almGetParameterByName("pg");null!==n&&(o.filters_startpage=parseInt(n),o.page=o.filters_startpage),o.isPaged=!1,o.filters_startpage>0&&(o.isPaged=!0,o.page=o.filters_startpage-1)}else o.filters=!1;"true"===o.restapi?(o.restapi=!0,void 0===o.restapi_debug&&(o.restapi_debug=!1),""===o.restapi_template_id&&(o.restapi=!1)):o.restapi=!1,"true"===o.paging?(o.paging=!0,o.paging_controls=!!o.content.attr("data-paging-controls"),o.paging_show_at_most=o.content.attr("data-paging-show-at-most"),o.paging_classes=o.content.attr("data-paging-classes"),o.paging_init=!0,o.paging_show_at_most=void 0===o.paging_show_at_most?7:o.paging_show_at_most,"true"===o.preloaded&&(o.pause=!0)):o.paging=!1,void 0===o.cache&&(o.cache=!1),void 0===o.cache_logged_in&&(o.cache_logged_in=!1),void 0===o.comments_per_page&&(o.comments_per_page="5"),"true"===o.preloaded?(o.preload_wrap=o.content.prev(".alm-preloaded"),o.preloaded_total_posts=parseInt(o.preload_wrap.attr("data-total-posts")),void 0===o.preloaded_amount&&(o.preloaded_amount=!1),o.preloaded_total_posts<=o.preloaded_amount&&(o.disable_ajax=!0)):o.preloaded="false",void 0===o.seo&&(o.seo=!1),"true"===o.seo&&(o.seo=!0),void 0===o.is_search&&(o.is_search=!1),o.search_value="true"===o.is_search?o.slug:"",o.permalink=o.content.attr("data-seo-permalink"),o.pageview=o.content.attr("data-seo-pageview"),o.start_page=o.content.attr("data-seo-start-page"),o.trailing_slash="false"===o.content.attr("data-seo-trailing-slash")?"":"/",o.start_page?(o.seo_scroll=o.content.attr("data-seo-scroll"),o.seo_scroll_speed=o.content.attr("data-seo-scroll-speed"),o.seo_scrolltop=o.content.attr("data-seo-scrolltop"),o.seo_controls=o.content.attr("data-seo-controls"),o.isPaged=!1,o.start_page>1&&(o.isPaged=!0,o.posts_per_page=o.start_page*o.posts_per_page),o.paging&&(o.posts_per_page=o.orginal_posts_per_page)):o.start_page=1,"true"===o.nextpage?(o.nextpage=!0,o.posts_per_page=1):o.nextpage=!1,void 0===o.nextpage_urls&&(o.nextpage_urls="true"),void 0===o.nextpage_scroll&&(o.nextpage_scroll="250:30"),void 0===o.nextpage_pageviews&&(o.nextpage_pageviews="true"),void 0===o.nextpage_post_id&&(o.nextpage=!1,o.nextpage_post_id=null),void 0===o.nextpage_startpage&&(o.nextpage_startpage=1),o.nextpage_startpage>1&&(o.isPaged=!0),o.acf="true"===o.acf,void 0!==o.acf_field_type&&void 0!==o.acf_field_name&&void 0!==o.acf_post_id||(o.acf=!1),"true"===o.previous_post?(o.previous_post=!0,o.previous_post_permalink="",o.previous_post_title="",o.previous_post_slug=""):o.previous_post=!1,void 0===o.previous_post_id&&(o.previous_post_id=""),void 0===o.previous_post_taxonomy&&(o.previous_post_taxonomy=""),void 0===o.previous_post_excluded_terms&&(o.previous_post_excluded_terms=""),o.previous_post_title_template=o.content.attr("data-previous-post-title-template"),o.siteTitle=o.content.attr("data-previous-post-site-title"),o.siteTagline=o.content.attr("data-previous-post-site-tagline"),o.previous_post_pageview=o.content.attr("data-previous-post-pageview"),o.previous_post_scroll=o.content.attr("data-previous-post-scroll"),o.previous_post_scroll_speed=o.content.attr("data-previous-post-scroll-speed"),o.previous_post_scroll_top=o.content.attr("data-previous-post-scrolltop"),o.previous_post_controls=o.content.attr("data-previous-post-controls"),o.offset=void 0===o.offset?0:o.offset,(void 0===o.pause||o.seo&&o.start_page>1)&&(o.pause=!1),"true"===o.preloaded&&o.seo&&o.start_page>0&&(o.pause=!1),"true"===o.preloaded&&o.paging&&(o.pause=!0),void 0===o.repeater&&(o.repeater="default"),void 0===o.theme_repeater&&(o.theme_repeater="null"),o.max_pages=void 0===o.max_pages||0===o.max_pages?1e4:o.max_pages,o.scroll_distance=void 0===o.scroll_distance?150:o.scroll_distance,o.scroll_container=void 0===o.scroll_container?"":o.scroll_container,o.transition=void 0===o.transition?"fade":o.transition,o.tcc=void 0===o.tcc?"":o.tcc,o.is_masonry_preloaded=!1,"masonry"===o.transition&&(o.masonry_init=!0,o.masonry_selector=o.content.attr("data-masonry-selector"),o.masonry_animation=o.content.attr("data-masonry-animation"),o.masonry_horizontalorder=o.content.attr("data-masonry-horizontalorder"),void 0===o.masonry_animation&&(o.masonry_animation="standard"),void 0===o.masonry_horizontalorder&&(o.masonry_horizontalorder="true"),o.masonry_wrap=o.content,o.transition_container=!1,document.body.contains(o.content_preloaded.get(0))&&(o.masonry_wrap=o.content_preloaded,o.is_masonry_preloaded=!0)),o.speed=void 0===o.speed||""===o.speed?250:parseInt(o.speed),void 0===o.content.attr("data-scroll")?o.scroll=!0:"false"===o.content.attr("data-scroll")?o.scroll=!1:o.scroll=!0,o.transition_container=void 0===o.transition_container||"true"===o.transition_container,o.images_loaded=void 0===o.images_loaded?"false":o.images_loaded,o.button_label=void 0===o.button_label?"Older Posts":o.button_label,o.button_loading_label=void 0!==o.button_loading_label&&o.button_loading_label,o.paging?o.content.parent().addClass("loading"):o.button=t(".alm-load-more-btn",o.container),o.AjaxLoadMore.loadPosts=function(){if(!o.disable_ajax)if(o.paging||(o.button.addClass("loading"),!1!==o.button_loading_label&&o.button.html(o.button_loading_label)),o.container.addClass("alm-loading"),o.loading=!0,"true"!==o.cache||o.cache_logged_in)o.AjaxLoadMore.ajax("standard");else{var a;if(o.init&&o.seo&&o.isPaged){a=o.cache_path+o.cache_id+"/page-1-"+o.start_page+".html"}else if(o.nextpage){var e;o.paging?e=parseInt(o.page)+1:(e=parseInt(o.page)+2,o.isPaged&&(e=parseInt(o.page)+parseInt(o.nextpage_startpage)+1)),a=o.cache_path+o.cache_id+"/page-"+e+".html"}else a=o.previous_post?o.cache_path+o.cache_id+"/"+o.previous_post_id+".html":o.cache_path+o.cache_id+"/page-"+(o.page+1)+".html";t.get(a,function(t){o.AjaxLoadMore.success(t,!0)}).fail(function(){o.AjaxLoadMore.ajax("standard")})}},o.AjaxLoadMore.ajax=function(e){var n="alm_query_posts";if(o.acf_array="",o.acf&&("relationship"!==o.acf_field_type&&(n="alm_acf_query"),o.acf_array={acf:"true",post_id:o.acf_post_id,field_type:o.acf_field_type,field_name:o.acf_field_name}),o.nextpage_array="",o.nextpage&&(n="alm_nextpage_query",o.nextpage_array={nextpage:"true",urls:o.nextpage_urls,scroll:o.nextpage_scroll,pageviews:o.nextpage_pageviews,post_id:o.nextpage_post_id,startpage:o.nextpage_startpage}),o.previous_post_array="",o.previous_post&&(o.previous_post_array={previous_post:"true",id:o.previous_post_id,slug:o.previous_post_slug}),o.comments_array="","true"===o.comments&&(n="alm_comments_query",o.posts_per_page=o.comments_per_page,o.comments_array={comments:"true",post_id:o.comments_post_id,per_page:o.comments_per_page,type:o.comments_type,style:o.comments_style,template:o.comments_template,callback:o.comments_callback}),o.users_array="",o.users&&(n="alm_users_query",o.users_array={users:"true",role:o.content.attr("data-users-role"),include:o.content.attr("data-users-include"),exclude:o.content.attr("data-users-exclude"),per_page:o.posts_per_page,order:o.content.attr("data-users-order"),orderby:o.content.attr("data-users-orderby")}),o.cta_array="","true"===o.cta&&(o.cta_array={cta:"true",cta_position:o.cta_position,cta_repeater:o.cta_repeater,cta_theme_repeater:o.cta_theme_repeater}),o.restapi){var r=wp.template(o.restapi_template_id),s=o.restapi_base_url+"/"+o.restapi_namespace+"/"+o.restapi_endpoint,i={id:a.attr("data-id"),post_id:o.post_id,posts_per_page:o.posts_per_page,page:o.page,offset:o.offset,slug:o.slug,canonical_url:o.canonical_url,post_type:o.post_type,post_format:o.content.attr("data-post-format"),category:o.content.attr("data-category"),category__not_in:o.content.attr("data-category-not-in"),tag:o.content.attr("data-tag"),tag__not_in:o.content.attr("data-tag-not-in"),taxonomy:o.content.attr("data-taxonomy"),taxonomy_terms:o.content.attr("data-taxonomy-terms"),taxonomy_operator:o.content.attr("data-taxonomy-operator"),taxonomy_relation:o.content.attr("data-taxonomy-relation"),meta_key:o.content.attr("data-meta-key"),meta_value:o.content.attr("data-meta-value"),meta_compare:o.content.attr("data-meta-compare"),meta_relation:o.content.attr("data-meta-relation"),meta_type:o.content.attr("data-meta-type"),author:o.content.attr("data-author"),year:o.content.attr("data-year"),month:o.content.attr("data-month"),day:o.content.attr("data-day"),post_status:o.content.attr("data-post-status"),order:o.content.attr("data-order"),orderby:o.content.attr("data-orderby"),post__in:o.content.attr("data-post-in"),post__not_in:o.content.attr("data-post-not-in"),search:o.content.attr("data-search"),custom_args:o.content.attr("data-custom-args"),lang:o.lang,preloaded:o.preloaded,preloaded_amount:o.preloaded_amount,seo_start_page:o.start_page};t.ajax({type:"GET",url:s,data:i,dataType:"JSON",beforeSend:function(){1==o.page||o.paging||o.button.addClass("loading")},success:function(a){var e="",n=a.html,s=a.meta,i=s.postcount,l=s.totalposts;t.each(n,function(t){var a=n[t];"true"===o.restapi_debug&&console.log(a),e+=r(a)});var d={html:e,meta:{postcount:i,totalposts:l}};o.AjaxLoadMore.success(d,!1)}})}else t.ajax({type:"GET",url:alm_localize.ajaxurl,dataType:"JSON",data:{action:n,nonce:alm_localize.alm_nonce,query_type:e,post_id:o.post_id,id:a.attr("data-id"),slug:o.slug,canonical_url:o.canonical_url,cache_id:o.cache_id,cache_logged_in:o.cache_logged_in,repeater:o.repeater,theme_repeater:o.theme_repeater,acf:o.acf_array,nextpage:o.nextpage_array,cta:o.cta_array,comments:o.comments_array,users:o.users_array,post_type:o.post_type,sticky_posts:o.sticky_posts,post_format:o.content.attr("data-post-format"),category:o.content.attr("data-category"),category__not_in:o.content.attr("data-category-not-in"),tag:o.content.attr("data-tag"),tag__not_in:o.content.attr("data-tag-not-in"),taxonomy:o.content.attr("data-taxonomy"),taxonomy_terms:o.content.attr("data-taxonomy-terms"),taxonomy_operator:o.content.attr("data-taxonomy-operator"),taxonomy_relation:o.content.attr("data-taxonomy-relation"),meta_key:o.content.attr("data-meta-key"),meta_value:o.content.attr("data-meta-value"),meta_compare:o.content.attr("data-meta-compare"),meta_relation:o.content.attr("data-meta-relation"),meta_type:o.content.attr("data-meta-type"),author:o.content.attr("data-author"),year:o.content.attr("data-year"),month:o.content.attr("data-month"),day:o.content.attr("data-day"),post_status:o.content.attr("data-post-status"),order:o.content.attr("data-order"),orderby:o.content.attr("data-orderby"),post__in:o.content.attr("data-post-in"),post__not_in:o.content.attr("data-post-not-in"),exclude:o.content.attr("data-exclude"),search:o.content.attr("data-search"),custom_args:o.content.attr("data-custom-args"),posts_per_page:o.posts_per_page,page:o.page,offset:o.offset,preloaded:o.preloaded,preloaded_amount:o.preloaded_amount,seo_start_page:o.start_page,paging:o.paging,previous_post:o.previous_post_array,lang:o.lang},beforeSend:function(){1==o.page||o.paging||o.button.addClass("loading")},success:function(a){"standard"===e?o.AjaxLoadMore.success(a,!1):"totalpages"===e&&o.paging&&o.nextpage?t.isFunction(t.fn.almBuildPagination)&&t.fn.almBuildPagination(a,o):"totalposts"===e&&o.paging&&t.isFunction(t.fn.almBuildPagination)&&t.fn.almBuildPagination(a,o)},error:function(t,a,e){o.AjaxLoadMore.error(t,a,e)}})},o.paging&&(o.nextpage?o.AjaxLoadMore.ajax("totalpages"):o.AjaxLoadMore.ajax("totalposts")),o.AjaxLoadMore.success=function(a,e){o.previous_post&&o.AjaxLoadMore.getPreviousPost();var n,r,s;if(e?n=a:(n=a.html,r=a.meta,o.posts=o.posts+r.postcount,s=r.postcount,o.totalposts=r.totalposts,"true"===o.preloaded&&(o.totalposts=o.totalposts-o.preloaded_amount)),o.data=t(n),e&&(s=o.data.length),o.init&&(o.paging?s>0&&(o.el=t('<div class="alm-reveal'+o.tcc+'"/>'),o.el.append('<div class="alm-paging-content"></div><div class="alm-paging-loading"></div>'),t(".alm-paging-content",o.el).append(o.data).hide(),o.content.append(o.el),o.content.parent().removeClass("loading"),o.AjaxLoadMore.resetBtnText(),t(".alm-paging-content",o.el).fadeIn(o.speed,"alm_easeInOutQuad",function(){var a=parseInt(o.content.css("padding-top")),e=parseInt(o.content.css("padding-bottom"));o.content.css("height",o.el.height()+a+e+"px"),t.isFunction(t.fn.almFadePageControls)&&t.fn.almFadePageControls(o.btnWrap)})):o.button.html(o.button_label),0===s&&(o.paging&&t.isFunction(t.fn.almPagingEmpty)&&t.fn.almPagingEmpty(o),t.isFunction(t.fn.almEmpty)&&t.fn.almEmpty(o)),o.isPaged&&(o.posts_per_page=o.users?o.content.attr("data-users-per-page"):o.content.attr("data-posts-per-page"),o.start_page&&(o.page=o.start_page-1),o.filters&&o.filters_startpage&&(o.page=o.filters_startpage-1,o.posts_per_page=o.content.attr("data-posts-per-page")))),s>0){if(o.paging)o.init?(o.container.removeClass("alm-loading"),o.AjaxLoadMore.triggerAddons(o)):t(".alm-paging-content",o.el).html("").append(o.data).almWaitForImages().done(function(){t(".alm-paging-loading",o.el).fadeOut(o.speed),t.isFunction(t.fn.almOnPagingComplete)&&t.fn.almOnPagingComplete(o),o.container.removeClass("alm-loading"),o.AjaxLoadMore.triggerAddons(o)});else{if(o.previous_post)o.el=t('<div class="alm-reveal alm-previous-post post-'+o.previous_post_id+'" data-id="'+o.previous_post_id+'" data-title="'+o.previous_post_title+'" data-url="'+o.previous_post_permalink+'" data-page="'+o.page+'"/>'),o.el.append(o.data).hide();else if(o.transition_container){var i=void 0,l=window.location.search;if(o.init&&o.start_page>1){var d=[],p=parseInt(o.posts_per_page);"true"===o.cta&&(p+=1);Math.ceil(s/p);for(var c=0;c<s;c+=p)d.push(o.data.slice(c,p+c));o.el=o.content;for(var g=0;g<d.length;g++){var _="true"===o.preloaded?1:0,u=void 0;g>0||"true"===o.preloaded?(i=g+1+_,u=t("default"===o.permalink?'<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+o.search_value+"&paged="+i+'" data-page="'+i+'" />':'<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+"page/"+i+o.trailing_slash+o.search_value+'" data-page="'+i+'" />')):u=t('<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+o.search_value+'" data-page="1" />'),u.append(d[g]),u=t(u),o.el.append(u).hide()}}else{if(o.seo&&o.page>0||"true"===o.preloaded){var m="true"===o.preloaded?1:0;i=o.page+1+m,o.seo?"default"===o.permalink?o.el=t('<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+o.search_value+"&paged="+i+'" data-page="'+i+'" />'):o.el=t('<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+"page/"+i+o.trailing_slash+o.search_value+'" data-page="'+i+'" />'):o.filters?o.el=t('<div class="alm-reveal alm-filters'+o.tcc+'" data-url="'+o.canonical_url+l+'" data-page="'+i+'" />'):o.el=t('<div class="alm-reveal'+o.tcc+'" />')}else o.filters?o.el=t('<div class="alm-reveal alm-filters'+o.tcc+'" data-url="'+o.canonical_url+l+'" data-page="'+(o.page+1)+'" />'):o.seo?o.el=t('<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+o.search_value+'" data-page="1" />'):o.el=t('<div class="alm-reveal'+o.tcc+'" />');o.el.append(o.data).hide()}}else o.data.hide(),o.el=o.data;("masonry"!==o.transition||o.init&&!o.is_masonry_preloaded)&&o.content.append(o.el),"fade"===o.transition?"true"===o.images_loaded?o.el.almWaitForImages().done(function(){o.el.fadeIn(o.speed,"alm_easeInOutQuad",function(){o.loading=!1,o.paging||(o.button.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText()),o.container.removeClass("alm-loading"),o.AjaxLoadMore.triggerAddons(o)})}):o.el.fadeIn(o.speed,"alm_easeInOutQuad",function(){o.loading=!1,o.paging||(o.button.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText()),o.container.removeClass("alm-loading"),o.AjaxLoadMore.triggerAddons(o)}):"masonry"===o.transition?(almMasonry(o.masonry_wrap,o.el,o.masonry_selector,o.masonry_animation,o.masonry_horizontalorder,o.speed,o.masonry_init,o.init,alm_is_filtering),o.masonry_init=!1,o.paging||(o.button.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText()),o.loading=!1,o.container.removeClass("alm-loading"),o.AjaxLoadMore.triggerAddons(o)):"none"===o.transition?("true"===o.images_loaded?o.el.almWaitForImages().done(function(){o.el.show(),o.AjaxLoadMore.triggerAddons(o)}):(o.el.show(),o.AjaxLoadMore.triggerAddons(o)),o.loading=!1,o.paging||(o.button.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText())):"true"===o.images_loaded?o.el.almWaitForImages().done(function(){o.el.slideDown(o.speed,"alm_easeInOutQuad",function(){o.loading=!1,o.paging||(o.button.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText()),o.container.removeClass("alm-loading"),o.AjaxLoadMore.triggerAddons(o)})}):o.el.slideDown(o.speed,"alm_easeInOutQuad",function(){o.loading=!1,o.paging||(o.button.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText()),o.container.removeClass("alm-loading"),o.AjaxLoadMore.triggerAddons(o)})}t.isFunction(t.fn.almComplete)&&("true"===o.images_loaded?o.el.almWaitForImages().done(function(){t.fn.almComplete(o)}):t.fn.almComplete(o)),o.cache?s<o.posts_per_page&&o.AjaxLoadMore.triggerDone():o.posts>=o.totalposts&&!o.previous_post&&o.AjaxLoadMore.triggerDone()}else o.paging||(o.button.delay(o.speed).removeClass("loading").addClass("done"),o.AjaxLoadMore.resetBtnText()),o.AjaxLoadMore.triggerDone();if(void 0!==o.destroy_after&&""!==o.destroy_after){var f=o.page+1;o.preload&&f++,f==o.destroy_after&&(o.disable_ajax=!0,o.paging||(o.button.delay(o.speed).fadeOut(o.speed),t.isFunction(t.fn.almDestroyed)&&t.fn.almDestroyed(o)))}alm_is_filtering=!1,o.init=!1},o.AjaxLoadMore.pagingPreloadedInit=function(a){a=null==a?"":a,o.el=t('<div class="alm-reveal'+o.tcc+'"/>'),o.el.append('<div class="alm-paging-content">'+a+'</div><div class="alm-paging-loading"></div>'),o.content.append(o.el),o.content.parent().removeClass("loading"),o.AjaxLoadMore.resetBtnText();var e=parseInt(o.content.css("padding-top")),n=parseInt(o.content.css("padding-bottom"));o.content.css("height",o.el.height()+e+n+"px"),""===a&&(t.isFunction(t.fn.almPagingEmpty)&&t.fn.almPagingEmpty(o),t.isFunction(t.fn.almEmpty)&&t.fn.almEmpty(o)),t.isFunction(t.fn.almFadePageControls)&&t.fn.almFadePageControls(o.btnWrap)},o.AjaxLoadMore.pagingNextpageInit=function(a){o.el=t('<div class="alm-reveal alm-nextpage"/>'),o.el.append('<div class="alm-paging-content">'+a+'</div><div class="alm-paging-loading"></div>'),o.el.appendTo(o.content),o.content.parent().removeClass("loading"),o.AjaxLoadMore.resetBtnText();var e=parseInt(o.content.css("padding-top")),n=parseInt(o.content.css("padding-bottom"));o.content.css("height",o.el.height()+e+n+"px"),t.isFunction(t.fn.almSetNextPageVars)&&t.fn.almSetNextPageVars(o),setTimeout(function(){t.isFunction(t.fn.almFadePageControls)&&t.fn.almFadePageControls(o.btnWrap),t.isFunction(t.fn.almOnWindowResize)&&t.fn.almOnWindowResize(o)},200)},o.fetchingPreviousPost=!1,o.AjaxLoadMore.getPreviousPost=function(){o.fetchingPreviousPost=!0;var a={action:"alm_query_previous_post",id:o.previous_post_id,taxonomy:o.previous_post_taxonomy,excluded_terms:o.previous_post_excluded_terms};t.ajax({type:"GET",dataType:"JSON",url:alm_localize.ajaxurl,data:a,success:function(a){a.has_previous_post?(o.content.attr("data-previous-post-id",a.prev_id),o.previous_post_id=a.prev_id,o.previous_post_permalink=a.prev_permalink,o.previous_post_title=a.prev_title,o.previous_post_slug=a.prev_slug):a.has_previous_post||o.AjaxLoadMore.triggerDone(),t.isFunction(t.fn.almSetPreviousPost)&&t.fn.almSetPreviousPost(o,a.current_id,a.permalink,a.title),o.fetchingPreviousPost=!1},error:function(t,a,e){o.AjaxLoadMore.error(t,a,e),o.fetchingPreviousPost=!1}})},o.AjaxLoadMore.triggerAddons=function(a){t.isFunction(t.fn.almSEO)&&a.seo&&t.fn.almSEO(a,!1),t.isFunction(t.fn.almSetNextPage)&&t.fn.almSetNextPage(a)},o.AjaxLoadMore.triggerDone=function(){o.loading=!1,o.finished=!0,o.paging||o.button.addClass("done"),t.isFunction(t.fn.almDone)&&setTimeout(function(){t.fn.almDone(o)},o.speed+10)},o.AjaxLoadMore.resetBtnText=function(){!1!==o.button_loading_label&&(o.paging||o.button.html(o.button_label))},o.AjaxLoadMore.error=function(t,a,e){o.loading=!1,o.paging||(o.button.removeClass("loading"),o.AjaxLoadMore.resetBtnText()),console.log(e)},o.paging||o.fetchingPreviousPost||(o.button.unbind("click"),o.button.on("click",function(a){a.preventDefault(),"true"===o.pause&&(o.pause=!1,o.pause_override=!1,o.AjaxLoadMore.loadPosts()),o.loading||o.finished||t(this).hasClass("done")||(o.loading=!0,o.page++,o.AjaxLoadMore.loadPosts()),o.filters&&"function"==typeof almFiltersPaged&&almFiltersPaged(o)})),o.paging&&(o.window.unbind("resizeEnd"),o.window.bind("resizeEnd",function(){t.isFunction(t.fn.almOnWindowResize)&&t.fn.almOnWindowResize(o)}),o.window.unbind("resize"),o.window.bind("resize",function(){this.resizeTO&&clearTimeout(this.resizeTO),this.resizeTO=setTimeout(function(){t(this).trigger("resizeEnd")},250)})),o.AjaxLoadMore.isVisible=function(){return o.visible=!1,o.el.is(":visible")&&(o.visible=!0),o.visible},o.scroll&&!o.paging&&(""!==o.scroll_container&&(o.window=t(o.scroll_container)),o.window.bind("scroll touchstart",function(){if(o.AjaxLoadMore.isVisible()&&!o.fetchingPreviousPost){var t=o.button.offset().top,a=Math.round(t-(o.window.height()-o.scroll_distance)),e=o.window.scrollTop()>=a;""!==o.scroll_container&&(e=o.button.offset().top-(o.window.height()-o.scroll_distance)<o.window.offset().top),!o.loading&&!o.finished&&e&&o.page<o.max_pages-1&&o.proceed&&"true"===o.pause&&"true"===o.pause_override?o.button.trigger("click"):!o.loading&&!o.finished&&e&&o.page<o.max_pages-1&&o.proceed&&"true"!==o.pause&&o.button.trigger("click")}})),o.AjaxLoadMore.init=function(){o.paging||o.previous_post||(o.disable_ajax?(o.finished=!0,o.button.addClass("done")):"true"===o.pause?(o.button.html(o.button_label),o.loading=!1):o.AjaxLoadMore.loadPosts()),o.previous_post&&(o.AjaxLoadMore.getPreviousPost(),o.loading=!1),"true"===o.preloaded&&o.seo&&!o.paging&&setTimeout(function(){t.isFunction(t.fn.almSEO)&&o.start_page<1&&t.fn.almSEO(o,!0)},150),"true"!==o.preloaded||o.paging||setTimeout(function(){o.preloaded_total_posts<=parseInt(o.preloaded_amount)&&o.AjaxLoadMore.triggerDone(),0==o.preloaded_total_posts&&t.isFunction(t.fn.almEmpty)&&t.fn.almEmpty(o)},150),o.nextpage&&t(".alm-nextpage").length>1&&t(".alm-nextpage").length==t(".alm-nextpage").eq(0).data("total-pages")&&o.AjaxLoadMore.triggerDone(),o.window.bind("load",function(){o.is_masonry_preloaded&&(almMasonry(o.masonry_wrap,o.el,o.masonry_selector,o.masonry_animation,o.masonry_horizontalorder,o.speed,o.masonry_init,!0,!1),o.masonry_init=!1)})},o.AjaxLoadMore.init(),setTimeout(function(){o.proceed=!0},200),t.fn.almUpdateCurrentPage=function(a,e,o){o.page=a,o.nextpage&&!o.paging&&(o.page=o.page-1);var n="";o.paging_init&&"true"===o.preloaded?(n=t(".alm-preloaded .alm-reveal",o.el).html(),t(".alm-preloaded",o.el).remove(),o.preloaded_amount=0,o.AjaxLoadMore.pagingPreloadedInit(n),o.paging_init=!1,o.init=!1):o.paging_init&&o.nextpage?(n=t(".alm-nextpage",o.el).html(),t(".alm-nextpage",o.el).remove(),o.AjaxLoadMore.pagingNextpageInit(n),o.paging_init=!1,o.init=!1):o.AjaxLoadMore.loadPosts()},t.fn.almGetParentContainer=function(){return o.el.closest("#ajax-load-more")},t.fn.almGetObj=function(){return o},t.fn.almTriggerClick=function(){o.button.trigger("click")},t.easing.alm_easeInOutQuad=function(t,a,e,o,n){return(a/=n/2)<1?o/2*a*a+e:-o/2*(--a*(a-2)-1)+e}},t.fn.ajaxloadmore=function(){return this.each(function(a){new t.ajaxloadmore(t(this),a)})};var a=document.querySelectorAll(".ajax-load-more-wrap");a.length&&[].concat(_toConsumableArray(a)).forEach(function(a,e){new t.ajaxloadmore(t(a),e)})}(jQuery);var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"===("undefined"==typeof exports?"undefined":_typeof(exports))?module.exports=t(require("jquery")):t(jQuery)}(function(t){t.almWaitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage","cursor"],hasImageAttributes:["srcset"]},t.expr[":"]["has-src"]=function(a){return t(a).is('img[src][src!=""]')},t.expr[":"].uncached=function(a){return!!t(a).is(":has-src")&&!a.complete},t.fn.almWaitForImages=function(){var a,e,o,n=0,r=0,s=t.Deferred();if(t.isPlainObject(arguments[0])?(o=arguments[0].waitForAll,e=arguments[0].each,a=arguments[0].finished):1===arguments.length&&"boolean"===t.type(arguments[0])?o=arguments[0]:(a=arguments[0],e=arguments[1],o=arguments[2]),a=a||t.noop,e=e||t.noop,o=!!o,!t.isFunction(a)||!t.isFunction(e))throw new TypeError("An invalid callback was supplied.");return this.each(function(){var i=t(this),l=[],d=t.almWaitForImages.hasImageProperties||[],p=t.almWaitForImages.hasImageAttributes||[],c=/url\(\s*(['"]?)(.*?)\1\s*\)/g;o?i.find("*").addBack().each(function(){var a=t(this);a.is("img:has-src")&&l.push({src:a.attr("src"),element:a[0]}),t.each(d,function(t,e){var o,n=a.css(e);if(!n)return!0;for(;o=c.exec(n);)l.push({src:o[2],element:a[0]})}),t.each(p,function(e,o){var n,r=a.attr(o);if(!r)return!0;n=r.split(","),t.each(n,function(e,o){o=t.trim(o).split(" ")[0],l.push({src:o,element:a[0]})})})}):i.find("img:has-src").each(function(){l.push({src:this.src,element:this})}),n=l.length,r=0,0===n&&(a.call(i[0]),s.resolveWith(i[0])),t.each(l,function(o,l){var d=new Image,p="load.almWaitForImages error.almWaitForImages";t(d).one(p,function o(d){var c=[r,n,"load"==d.type];if(r++,e.apply(l.element,c),s.notifyWith(l.element,c),t(this).off(p,o),r==n)return a.call(i[0]),s.resolveWith(i[0]),!1}),d.src=l.src})}),s.promise()}});
|
1 |
+
"use strict";function _toConsumableArray(t){if(Array.isArray(t)){for(var a=0,e=Array(t.length);a<t.length;a++)e[a]=t[a];return e}return Array.from(t)}function _toConsumableArray(t){if(Array.isArray(t)){for(var a=0,e=Array(t.length);a<t.length;a++)e[a]=t[a];return e}return Array.from(t)}Array.from||(Array.from=function(){var t=Object.prototype.toString,a=function(a){return"function"==typeof a||"[object Function]"===t.call(a)},e=function(t){var a=Number(t);return isNaN(a)?0:0!==a&&isFinite(a)?(a>0?1:-1)*Math.floor(Math.abs(a)):a},o=Math.pow(2,53)-1,n=function(t){var a=e(t);return Math.min(Math.max(a,0),o)};return function(t){var e=this,o=Object(t);if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r,s=arguments.length>1?arguments[1]:void 0;if(void 0!==s){if(!a(s))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(r=arguments[2])}for(var i,l=n(o.length),p=a(e)?Object(new e(l)):new Array(l),d=0;d<l;)i=o[d],p[d]=s?void 0===r?s(i,d):s.call(r,i,d):i,d+=1;return p.length=l,p}}());var almGetParameterByName=function(t,a){a||(a=window.location.href),t=t.replace(/[\[\]]/g,"\\$&");var e=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(a);return e?e[2]?decodeURIComponent(e[2].replace(/\+/g," ")):"":null},alm_is_filtering=!1;!function(t){t.fn.almFilter=function(a,e,o){o.target?t(".ajax-load-more-wrap[data-id='"+o.target+"']").each(function(n){var r=t(this);t.fn.almFilterTransition(a,e,o,r)}):t(".ajax-load-more-wrap").each(function(n){var r=t(this);t.fn.almFilterTransition(a,e,o,r)})},t.fn.almFilterTransition=function(t,e,o,n){"slide"===t?n.slideUp(e,function(){a(e,o,n)}):"fade"===t||"masonry"===t?n.fadeOut(e,function(){a(e,o,n)}):a(e,o,n)};var a=function(t,a,o){var n=o.get(0),r=n.querySelectorAll(".alm-listing");[].concat(_toConsumableArray(r)).forEach(function(t){t.innerHTML=""});var s=n.querySelector(".alm-load-more-btn");s&&s.classList.remove("done"),e(t,a,o)},e=function(a,e,o){t.each(e,function(a,e){a=a.replace(/\W+/g,"-").replace(/([a-z\d])([A-Z])/g,"$1-$2"),t(".alm-listing",o).attr("data-"+a,e)}),t.isFunction(t.fn.almFilterComplete)&&t.fn.almFilterComplete(),"function"==typeof almFiltersAddonComplete&&almFiltersAddonComplete(o),alm_is_filtering=!0,o.fadeIn(a),e.target?t(".ajax-load-more-wrap[data-id="+e.target+"]").ajaxloadmore():t(".ajax-load-more-wrap").ajaxloadmore()}}(jQuery);var almMasonry=function t(a,e,o,n,r,s,i,l,p){var d=(s+100)/1e3+"s",c="scale(0.5)",_="scale(1)";"zoom-out"===n&&(c="translateY(-20px) scale(1.25)",_="translateY(0) scale(1)"),"slide-up"===n&&(c="translateY(50px)",_="translateY(0)"),"slide-down"===n&&(c="translateY(-50px)",_="translateY(0)"),"none"===n&&(c="translateY(0)",_="translateY(0)"),r="true"===r,p?(a.masonry("destroy"),a.append(e),t(a,e,o,n,r,s,!0,!0,!1)):i&&l?a.imagesLoaded(function(){a.masonry({itemSelector:o,transitionDuration:d,columnWidth:o,horizontalOrder:r,hiddenStyle:{transform:c,opacity:0},visibleStyle:{transform:_,opacity:1}}),almMasonryFadeIn(a[0].parentNode,s)}):e.imagesLoaded(function(){a.append(e).masonry("appended",e)})},almMasonryFadeIn=function(t,a){a/=10;var e=parseInt(t.style.opacity),o=setInterval(function(){e>.9&&(t.style.opacity=1,clearInterval(o)),t.style.opacity=e,e+=.1},a)};!function(t){t.ajaxloadmore=function(a,e){"true"===alm_localize.scrolltop&&t(window).scrollTop(0);var o=this;if(o.AjaxLoadMore={},o.window=t(window),o.page=0,o.posts=0,o.totalposts=0,o.proceed=!1,o.disable_ajax=!1,o.init=!0,o.loading=!0,o.finished=!1,o.prefix="alm-",o.el=a,o.container=a,o.container.addClass("alm-"+e).attr("data-alm-id",e),o.content=t(".alm-ajax",o.container),o.content_preloaded=t(".alm-listing.alm-preloaded",o.container),o.canonical_url=o.el.attr("data-canonical-url"),o.is_search=o.el.attr("data-search"),o.slug=o.el.attr("data-slug"),o.post_id=o.el.attr("data-post-id"),o.id=o.el.attr("data-id")?o.el.attr("data-id"):"",o.repeater=o.content.attr("data-repeater"),o.theme_repeater=o.content.attr("data-theme-repeater"),o.post_type=o.content.attr("data-post-type"),o.post_type=o.post_type.split(","),o.sticky_posts=o.content.attr("data-sticky-posts"),o.btnWrap=t(".alm-btn-wrap",o.container),o.button_label=o.content.attr("data-button-label"),o.button_loading_label=o.content.attr("data-button-loading-label"),o.scroll_distance=o.content.attr("data-scroll-distance"),o.scroll_distance=o.scroll_distance?parseInt(o.scroll_distance):150,o.scroll_container=o.content.attr("data-scroll-container"),o.max_pages=o.content.attr("data-max-pages"),o.max_pages=o.max_pages?parseInt(o.max_pages):0,o.pause_override=o.content.attr("data-pause-override"),o.pause=o.content.attr("data-pause"),o.transition=o.content.attr("data-transition"),o.transition_container=o.content.attr("data-transition-container"),o.tcc=o.content.attr("data-transition-container-classes"),o.speed=250,o.images_loaded=o.content.attr("data-images-loaded"),o.destroy_after=o.content.attr("data-destroy-after"),o.lang=o.content.attr("data-lang"),o.orginal_posts_per_page=o.content.attr("data-posts-per-page"),o.posts_per_page=o.content.attr("data-posts-per-page"),o.offset=o.content.attr("data-offset"),o.cache=o.content.attr("data-cache"),o.cache_id=o.content.attr("data-cache-id"),o.cache_path=o.content.attr("data-cache-path"),o.cache_logged_in=o.content.attr("data-cache-logged-in"),o.cta=o.content.attr("data-cta"),o.cta_position=o.content.attr("data-cta-position"),o.cta_repeater=o.content.attr("data-cta-repeater"),o.cta_theme_repeater=o.content.attr("data-cta-theme-repeater"),o.acf=o.content.attr("data-acf"),o.acf_field_type=o.content.attr("data-acf-field-type"),o.acf_field_name=o.content.attr("data-acf-field-name"),o.acf_post_id=o.content.attr("data-acf-post-id"),o.nextpage=o.content.attr("data-nextpage"),o.nextpage_urls=o.content.attr("data-nextpage-urls"),o.nextpage_scroll=o.content.attr("data-nextpage-scroll"),o.nextpage_pageviews=o.content.attr("data-nextpage-pageviews"),o.nextpage_post_id=o.content.attr("data-nextpage-post-id"),o.nextpage_startpage=o.content.attr("data-nextpage-startpage"),o.previous_post=o.content.attr("data-previous-post"),o.previous_post_id=o.content.attr("data-previous-post-id"),o.previous_post_taxonomy=o.content.attr("data-previous-post-taxonomy"),o.previous_post_excluded_terms=o.content.attr("data-previous-post-excluded-terms"),o.comments=o.content.attr("data-comments"),"true"===o.comments&&(o.content=t(".alm-comments",o.container)),o.comments_post_id=o.content.attr("data-comments_post_id"),o.comments_per_page=o.content.attr("data-comments_per_page"),o.comments_type=o.content.attr("data-comments_type"),o.comments_style=o.content.attr("data-comments_style"),o.comments_template=o.content.attr("data-comments_template"),o.comments_callback=o.content.attr("data-comments_callback"),o.filters=o.content.attr("data-filters"),o.restapi=o.content.attr("data-restapi"),o.restapi_base_url=o.content.attr("data-restapi-base-url"),o.restapi_namespace=o.content.attr("data-restapi-namespace"),o.restapi_endpoint=o.content.attr("data-restapi-endpoint"),o.restapi_template_id=o.content.attr("data-restapi-template-id"),o.restapi_debug=o.content.attr("data-restapi-debug"),o.seo=o.content.attr("data-seo"),o.preloaded=o.content.attr("data-preloaded"),o.preloaded_amount=o.content.attr("data-preloaded-amount"),o.paging=o.content.attr("data-paging"),o.users="true"===o.content.attr("data-users"),o.users&&(o.orginal_posts_per_page=o.content.attr("data-users-per-page"),o.posts_per_page=o.content.attr("data-users-per-page")),"true"===o.filters){o.filters=!0,o.filters_analtyics=o.content.attr("data-filters-analtyics"),o.filters_debug=o.content.attr("data-filters-debug"),o.filters_startpage=0;var n=almGetParameterByName("pg");null!==n&&(o.filters_startpage=parseInt(n),o.page=o.filters_startpage),o.isPaged=!1,o.filters_startpage>0&&(o.isPaged=!0,o.page=o.filters_startpage-1)}else o.filters=!1;"true"===o.restapi?(o.restapi=!0,void 0===o.restapi_debug&&(o.restapi_debug=!1),""===o.restapi_template_id&&(o.restapi=!1)):o.restapi=!1,"true"===o.paging?(o.paging=!0,o.paging_controls=!!o.content.attr("data-paging-controls"),o.paging_show_at_most=o.content.attr("data-paging-show-at-most"),o.paging_classes=o.content.attr("data-paging-classes"),o.paging_init=!0,o.paging_show_at_most=void 0===o.paging_show_at_most?7:o.paging_show_at_most,"true"===o.preloaded&&(o.pause=!0)):o.paging=!1,void 0===o.cache&&(o.cache=!1),void 0===o.cache_logged_in&&(o.cache_logged_in=!1),void 0===o.comments_per_page&&(o.comments_per_page="5"),"true"===o.preloaded?(o.preload_wrap=o.content.prev(".alm-preloaded"),o.preloaded_total_posts=parseInt(o.preload_wrap.attr("data-total-posts")),void 0===o.preloaded_amount&&(o.preloaded_amount=!1),o.preloaded_total_posts<=o.preloaded_amount&&(o.disable_ajax=!0)):o.preloaded="false",void 0===o.seo&&(o.seo=!1),"true"===o.seo&&(o.seo=!0),void 0===o.is_search&&(o.is_search=!1),o.search_value="true"===o.is_search?o.slug:"",o.permalink=o.content.attr("data-seo-permalink"),o.pageview=o.content.attr("data-seo-pageview"),o.start_page=o.content.attr("data-seo-start-page"),o.seo_trailing_slash="false"===o.content.attr("data-seo-trailing-slash")?"":"/",o.seo_leading_slash="true"===o.content.attr("data-seo-leading-slash")?"/":"",o.start_page?(o.seo_scroll=o.content.attr("data-seo-scroll"),o.seo_scroll_speed=o.content.attr("data-seo-scroll-speed"),o.seo_scrolltop=o.content.attr("data-seo-scrolltop"),o.seo_controls=o.content.attr("data-seo-controls"),o.isPaged=!1,o.start_page>1&&(o.isPaged=!0,o.posts_per_page=o.start_page*o.posts_per_page),o.paging&&(o.posts_per_page=o.orginal_posts_per_page)):o.start_page=1,"true"===o.nextpage?(o.nextpage=!0,o.posts_per_page=1):o.nextpage=!1,void 0===o.nextpage_urls&&(o.nextpage_urls="true"),void 0===o.nextpage_scroll&&(o.nextpage_scroll="250:30"),void 0===o.nextpage_pageviews&&(o.nextpage_pageviews="true"),void 0===o.nextpage_post_id&&(o.nextpage=!1,o.nextpage_post_id=null),void 0===o.nextpage_startpage&&(o.nextpage_startpage=1),o.nextpage_startpage>1&&(o.isPaged=!0),o.acf="true"===o.acf,void 0!==o.acf_field_type&&void 0!==o.acf_field_name&&void 0!==o.acf_post_id||(o.acf=!1),"true"===o.previous_post?(o.previous_post=!0,o.previous_post_permalink="",o.previous_post_title="",o.previous_post_slug=""):o.previous_post=!1,void 0===o.previous_post_id&&(o.previous_post_id=""),void 0===o.previous_post_taxonomy&&(o.previous_post_taxonomy=""),void 0===o.previous_post_excluded_terms&&(o.previous_post_excluded_terms=""),o.previous_post_title_template=o.content.attr("data-previous-post-title-template"),o.siteTitle=o.content.attr("data-previous-post-site-title"),o.siteTagline=o.content.attr("data-previous-post-site-tagline"),o.previous_post_pageview=o.content.attr("data-previous-post-pageview"),o.previous_post_scroll=o.content.attr("data-previous-post-scroll"),o.previous_post_scroll_speed=o.content.attr("data-previous-post-scroll-speed"),o.previous_post_scroll_top=o.content.attr("data-previous-post-scrolltop"),o.previous_post_controls=o.content.attr("data-previous-post-controls"),o.offset=void 0===o.offset?0:o.offset,(void 0===o.pause||o.seo&&o.start_page>1)&&(o.pause=!1),"true"===o.preloaded&&o.seo&&o.start_page>0&&(o.pause=!1),"true"===o.preloaded&&o.paging&&(o.pause=!0),void 0===o.repeater&&(o.repeater="default"),void 0===o.theme_repeater&&(o.theme_repeater="null"),o.max_pages=void 0===o.max_pages||0===o.max_pages?1e4:o.max_pages,o.scroll_distance=void 0===o.scroll_distance?150:o.scroll_distance,o.scroll_container=void 0===o.scroll_container?"":o.scroll_container,o.transition=void 0===o.transition?"fade":o.transition,o.tcc=void 0===o.tcc?"":o.tcc,o.is_masonry_preloaded=!1,"masonry"===o.transition&&(o.masonry_init=!0,o.masonry_selector=o.content.attr("data-masonry-selector"),o.masonry_animation=o.content.attr("data-masonry-animation"),o.masonry_horizontalorder=o.content.attr("data-masonry-horizontalorder"),void 0===o.masonry_animation&&(o.masonry_animation="standard"),void 0===o.masonry_horizontalorder&&(o.masonry_horizontalorder="true"),o.masonry_wrap=o.content,o.transition_container=!1,document.body.contains(o.content_preloaded.get(0))&&(o.masonry_wrap=o.content_preloaded,o.is_masonry_preloaded=!0)),void 0===o.content.attr("data-scroll")?o.scroll=!0:"false"===o.content.attr("data-scroll")?o.scroll=!1:o.scroll=!0,o.transition_container=void 0===o.transition_container||"true"===o.transition_container,o.images_loaded=void 0===o.images_loaded?"false":o.images_loaded,o.button_label=void 0===o.button_label?"Older Posts":o.button_label,o.button_loading_label=void 0!==o.button_loading_label&&o.button_loading_label,o.paging?o.content.parent().addClass("loading"):o.button=t(".alm-load-more-btn",o.container),o.AjaxLoadMore.loadPosts=function(){if(!o.disable_ajax)if(o.paging||(o.button.addClass("loading"),!1!==o.button_loading_label&&o.button.html(o.button_loading_label)),o.container.addClass("alm-loading"),o.loading=!0,"true"!==o.cache||o.cache_logged_in)o.AjaxLoadMore.ajax("standard");else{var a;if(o.init&&o.seo&&o.isPaged){a=o.cache_path+o.cache_id+"/page-1-"+o.start_page+".html"}else if(o.nextpage){var e;o.paging?e=parseInt(o.page)+1:(e=parseInt(o.page)+2,o.isPaged&&(e=parseInt(o.page)+parseInt(o.nextpage_startpage)+1)),a=o.cache_path+o.cache_id+"/page-"+e+".html"}else a=o.previous_post?o.cache_path+o.cache_id+"/"+o.previous_post_id+".html":o.cache_path+o.cache_id+"/page-"+(o.page+1)+".html";t.get(a,function(t){o.AjaxLoadMore.success(t,!0)}).fail(function(){o.AjaxLoadMore.ajax("standard")})}},o.AjaxLoadMore.ajax=function(e){var n="alm_query_posts";if(o.acf_array="",o.acf&&("relationship"!==o.acf_field_type&&(n="alm_acf_query"),o.acf_array={acf:"true",post_id:o.acf_post_id,field_type:o.acf_field_type,field_name:o.acf_field_name}),o.nextpage_array="",o.nextpage&&(n="alm_nextpage_query",o.nextpage_array={nextpage:"true",urls:o.nextpage_urls,scroll:o.nextpage_scroll,pageviews:o.nextpage_pageviews,post_id:o.nextpage_post_id,startpage:o.nextpage_startpage}),o.previous_post_array="",o.previous_post&&(o.previous_post_array={previous_post:"true",id:o.previous_post_id,slug:o.previous_post_slug}),o.comments_array="","true"===o.comments&&(n="alm_comments_query",o.posts_per_page=o.comments_per_page,o.comments_array={comments:"true",post_id:o.comments_post_id,per_page:o.comments_per_page,type:o.comments_type,style:o.comments_style,template:o.comments_template,callback:o.comments_callback}),o.users_array="",o.users&&(n="alm_users_query",o.users_array={users:"true",role:o.content.attr("data-users-role"),include:o.content.attr("data-users-include"),exclude:o.content.attr("data-users-exclude"),per_page:o.posts_per_page,order:o.content.attr("data-users-order"),orderby:o.content.attr("data-users-orderby")}),o.cta_array="","true"===o.cta&&(o.cta_array={cta:"true",cta_position:o.cta_position,cta_repeater:o.cta_repeater,cta_theme_repeater:o.cta_theme_repeater}),o.restapi){var r=wp.template(o.restapi_template_id),s=o.restapi_base_url+"/"+o.restapi_namespace+"/"+o.restapi_endpoint,i={id:a.attr("data-id"),post_id:o.post_id,posts_per_page:o.posts_per_page,page:o.page,offset:o.offset,slug:o.slug,canonical_url:o.canonical_url,post_type:o.post_type,post_format:o.content.attr("data-post-format"),category:o.content.attr("data-category"),category__not_in:o.content.attr("data-category-not-in"),tag:o.content.attr("data-tag"),tag__not_in:o.content.attr("data-tag-not-in"),taxonomy:o.content.attr("data-taxonomy"),taxonomy_terms:o.content.attr("data-taxonomy-terms"),taxonomy_operator:o.content.attr("data-taxonomy-operator"),taxonomy_relation:o.content.attr("data-taxonomy-relation"),meta_key:o.content.attr("data-meta-key"),meta_value:o.content.attr("data-meta-value"),meta_compare:o.content.attr("data-meta-compare"),meta_relation:o.content.attr("data-meta-relation"),meta_type:o.content.attr("data-meta-type"),author:o.content.attr("data-author"),year:o.content.attr("data-year"),month:o.content.attr("data-month"),day:o.content.attr("data-day"),post_status:o.content.attr("data-post-status"),order:o.content.attr("data-order"),orderby:o.content.attr("data-orderby"),post__in:o.content.attr("data-post-in"),post__not_in:o.content.attr("data-post-not-in"),search:o.content.attr("data-search"),custom_args:o.content.attr("data-custom-args"),lang:o.lang,preloaded:o.preloaded,preloaded_amount:o.preloaded_amount,seo_start_page:o.start_page};t.ajax({type:"GET",url:s,data:i,dataType:"JSON",beforeSend:function(){1==o.page||o.paging||o.button.addClass("loading")},success:function(a){var e="",n=a.html,s=a.meta,i=s.postcount,l=s.totalposts;t.each(n,function(t){var a=n[t];"true"===o.restapi_debug&&console.log(a),e+=r(a)});var p={html:e,meta:{postcount:i,totalposts:l}};o.AjaxLoadMore.success(p,!1)}})}else t.ajax({type:"GET",url:alm_localize.ajaxurl,dataType:"JSON",data:{action:n,nonce:alm_localize.alm_nonce,query_type:e,id:a.attr("data-id"),post_id:o.post_id,slug:o.slug,canonical_url:o.canonical_url,cache_id:o.cache_id,cache_logged_in:o.cache_logged_in,repeater:o.repeater,theme_repeater:o.theme_repeater,acf:o.acf_array,nextpage:o.nextpage_array,cta:o.cta_array,comments:o.comments_array,users:o.users_array,post_type:o.post_type,sticky_posts:o.sticky_posts,post_format:o.content.attr("data-post-format"),category:o.content.attr("data-category"),category__not_in:o.content.attr("data-category-not-in"),tag:o.content.attr("data-tag"),tag__not_in:o.content.attr("data-tag-not-in"),taxonomy:o.content.attr("data-taxonomy"),taxonomy_terms:o.content.attr("data-taxonomy-terms"),taxonomy_operator:o.content.attr("data-taxonomy-operator"),taxonomy_relation:o.content.attr("data-taxonomy-relation"),meta_key:o.content.attr("data-meta-key"),meta_value:o.content.attr("data-meta-value"),meta_compare:o.content.attr("data-meta-compare"),meta_relation:o.content.attr("data-meta-relation"),meta_type:o.content.attr("data-meta-type"),author:o.content.attr("data-author"),year:o.content.attr("data-year"),month:o.content.attr("data-month"),day:o.content.attr("data-day"),post_status:o.content.attr("data-post-status"),order:o.content.attr("data-order"),orderby:o.content.attr("data-orderby"),post__in:o.content.attr("data-post-in"),post__not_in:o.content.attr("data-post-not-in"),exclude:o.content.attr("data-exclude"),search:o.content.attr("data-search"),custom_args:o.content.attr("data-custom-args"),posts_per_page:o.posts_per_page,page:o.page,offset:o.offset,preloaded:o.preloaded,preloaded_amount:o.preloaded_amount,seo_start_page:o.start_page,paging:o.paging,previous_post:o.previous_post_array,lang:o.lang},beforeSend:function(){1==o.page||o.paging||o.button.addClass("loading")},success:function(a){"standard"===e?o.AjaxLoadMore.success(a,!1):"totalpages"===e&&o.paging&&o.nextpage?t.isFunction(t.fn.almBuildPagination)&&t.fn.almBuildPagination(a,o):"totalposts"===e&&o.paging&&t.isFunction(t.fn.almBuildPagination)&&t.fn.almBuildPagination(a,o)},error:function(t,a,e){o.AjaxLoadMore.error(t,a,e)}})},o.paging&&(o.nextpage?o.AjaxLoadMore.ajax("totalpages"):o.AjaxLoadMore.ajax("totalposts")),o.AjaxLoadMore.success=function(a,e){o.previous_post&&o.AjaxLoadMore.getPreviousPost();var n,r,s,i='style="opacity: 0; height: 0;"';if(e?n=a:(n=a.html,r=a.meta,o.posts=o.posts+r.postcount,s=r.postcount,o.totalposts=r.totalposts,"true"===o.preloaded&&(o.totalposts=o.totalposts-o.preloaded_amount)),o.data=t(n),e&&(s=o.data.length),o.init&&(o.paging?s>0&&(o.el=t('<div class="alm-reveal'+o.tcc+'" '+i+"/>"),o.el.append('<div class="alm-paging-content"></div><div class="alm-paging-loading"></div>'),t(".alm-paging-content",o.el).append(o.data),o.content.append(o.el),o.AjaxLoadMore.fadeIn(o.el.get(0),o.speed),o.content.parent().removeClass("loading"),o.AjaxLoadMore.resetBtnText(),setTimeout(function(){t(".alm-paging-content",o.el).fadeIn(o.speed,"alm_easeInOutQuad",function(){var a=parseInt(o.content.css("padding-top")),e=parseInt(o.content.css("padding-bottom"));o.content.css("height",o.el.height()+a+e+"px"),t.isFunction(t.fn.almFadePageControls)&&t.fn.almFadePageControls(o.btnWrap)})},o.speed)):o.button.html(o.button_label),0===s&&(o.paging&&t.isFunction(t.fn.almPagingEmpty)&&t.fn.almPagingEmpty(o),t.isFunction(t.fn.almEmpty)&&t.fn.almEmpty(o)),o.isPaged&&(o.posts_per_page=o.users?o.content.attr("data-users-per-page"):o.content.attr("data-posts-per-page"),o.start_page&&(o.page=o.start_page-1),o.filters&&o.filters_startpage&&(o.page=o.filters_startpage-1,o.posts_per_page=o.content.attr("data-posts-per-page")))),s>0){if(o.paging)o.init?(o.container.removeClass("alm-loading"),o.AjaxLoadMore.triggerAddons(o)):t(".alm-paging-content",o.el).html("").append(o.data).almWaitForImages().done(function(){t(".alm-paging-loading",o.el).fadeOut(o.speed),t.isFunction(t.fn.almOnPagingComplete)&&t.fn.almOnPagingComplete(o),o.container.removeClass("alm-loading"),o.AjaxLoadMore.triggerAddons(o)});else{if(o.previous_post)o.el=t('<div class="alm-reveal alm-previous-post post-'+o.previous_post_id+'" '+i+' data-id="'+o.previous_post_id+'" data-title="'+o.previous_post_title+'" data-url="'+o.previous_post_permalink+'" data-page="'+o.page+'"/>'),o.el.append(o.data);else if(o.transition_container){var l=void 0,p=window.location.search;if(o.init&&o.start_page>1){var d=[],c=parseInt(o.posts_per_page);"true"===o.cta&&(c+=1);Math.ceil(s/c);for(var _=0;_<s;_+=c)d.push(o.data.slice(_,c+_));o.el=o.content;for(var g=0;g<d.length;g++){var u="true"===o.preloaded?1:0,m=void 0;g>0||"true"===o.preloaded?(l=g+1+u,m=t("default"===o.permalink?'<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+o.search_value+"&paged="+l+'" data-page="'+l+'" />':'<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+o.seo_leading_slash+"page/"+l+o.seo_trailing_slash+o.search_value+'" data-page="'+l+'" />')):m=t('<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+o.search_value+'" data-page="1" />'),m.append(d[g]),m=t(m),o.el.append(m)}}else{if(o.seo&&o.page>0||"true"===o.preloaded){var f="true"===o.preloaded?1:0;l=o.page+1+f,o.seo?"default"===o.permalink?o.el=t('<div class="alm-reveal alm-seo'+o.tcc+'" '+i+' data-url="'+o.canonical_url+o.search_value+"&paged="+l+'" data-page="'+l+'" />'):o.el=t('<div class="alm-reveal alm-seo'+o.tcc+'" '+i+' data-url="'+o.canonical_url+o.seo_leading_slash+"page/"+l+o.seo_trailing_slash+o.search_value+'" data-page="'+l+'" />'):o.filters?o.el=t('<div class="alm-reveal alm-filters'+o.tcc+'" '+i+' data-url="'+o.canonical_url+p+'" data-page="'+l+'" />'):o.el=t('<div class="alm-reveal'+o.tcc+'" '+i+" />")}else o.filters?o.el=t('<div class="alm-reveal alm-filters'+o.tcc+'" '+i+' data-url="'+o.canonical_url+p+'" data-page="'+(o.page+1)+'" />'):o.seo?o.el=t('<div class="alm-reveal alm-seo'+o.tcc+'" '+i+' data-url="'+o.canonical_url+o.search_value+'" data-page="1" />'):o.el=t('<div class="alm-reveal'+o.tcc+'" '+i+" />");o.el.append(o.data)}}else o.el=o.data;("masonry"!==o.transition||o.init&&!o.is_masonry_preloaded)&&o.content.append(o.el),"masonry"===o.transition?(almMasonry(o.masonry_wrap,o.el,o.masonry_selector,o.masonry_animation,o.masonry_horizontalorder,o.speed,o.masonry_init,o.init,alm_is_filtering),o.masonry_init=!1,o.AjaxLoadMore.transitionEnd()):"none"===o.transition?(o.AjaxLoadMore.fadeIn(o.el.get(0),0),o.AjaxLoadMore.transitionEnd()):"true"===o.images_loaded?o.el.almWaitForImages().done(function(){o.AjaxLoadMore.fadeIn(o.el.get(0),o.speed),o.AjaxLoadMore.transitionEnd()}):(o.AjaxLoadMore.fadeIn(o.el.get(0),o.speed),o.AjaxLoadMore.transitionEnd())}t.isFunction(t.fn.almComplete)&&("true"===o.images_loaded?o.el.almWaitForImages().done(function(){t.fn.almComplete(o)}):t.fn.almComplete(o)),o.cache?s<o.posts_per_page&&o.AjaxLoadMore.triggerDone():o.posts>=o.totalposts&&!o.previous_post&&o.AjaxLoadMore.triggerDone()}else o.paging||(o.button.delay(o.speed).removeClass("loading").addClass("done"),o.AjaxLoadMore.resetBtnText()),o.AjaxLoadMore.triggerDone();if(void 0!==o.destroy_after&&""!==o.destroy_after){var v=o.page+1;"true"===o.preloaded&&v++,v==o.destroy_after&&o.AjaxLoadMore.destroyed()}alm_is_filtering=!1,o.init=!1},o.AjaxLoadMore.pagingPreloadedInit=function(a){a=null==a?"":a,o.el=t('<div class="alm-reveal'+o.tcc+'"/>'),o.el.append('<div class="alm-paging-content">'+a+'</div><div class="alm-paging-loading"></div>'),o.content.append(o.el),o.content.parent().removeClass("loading"),o.AjaxLoadMore.resetBtnText();var e=parseInt(o.content.css("padding-top")),n=parseInt(o.content.css("padding-bottom"));o.content.css("height",o.el.height()+e+n+"px"),""===a&&(t.isFunction(t.fn.almPagingEmpty)&&t.fn.almPagingEmpty(o),t.isFunction(t.fn.almEmpty)&&t.fn.almEmpty(o)),setTimeout(function(){t.isFunction(t.fn.almFadePageControls)&&t.fn.almFadePageControls(o.btnWrap)},o.speed)},o.AjaxLoadMore.pagingNextpageInit=function(a){o.el=t('<div class="alm-reveal alm-nextpage"/>'),o.el.append('<div class="alm-paging-content">'+a+'</div><div class="alm-paging-loading"></div>'),o.el.appendTo(o.content),o.content.parent().removeClass("loading"),o.AjaxLoadMore.resetBtnText();var e=parseInt(o.content.css("padding-top")),n=parseInt(o.content.css("padding-bottom"));o.content.css("height",o.el.height()+e+n+"px"),t.isFunction(t.fn.almSetNextPageVars)&&t.fn.almSetNextPageVars(o),setTimeout(function(){t.isFunction(t.fn.almFadePageControls)&&t.fn.almFadePageControls(o.btnWrap),t.isFunction(t.fn.almOnWindowResize)&&t.fn.almOnWindowResize(o)},o.speed)},o.fetchingPreviousPost=!1,o.AjaxLoadMore.getPreviousPost=function(){o.fetchingPreviousPost=!0;var a={action:"alm_query_previous_post",id:o.previous_post_id,taxonomy:o.previous_post_taxonomy,excluded_terms:o.previous_post_excluded_terms};t.ajax({type:"GET",dataType:"JSON",url:alm_localize.ajaxurl,data:a,success:function(a){a.has_previous_post?(o.content.attr("data-previous-post-id",a.prev_id),o.previous_post_id=a.prev_id,o.previous_post_permalink=a.prev_permalink,o.previous_post_title=a.prev_title,o.previous_post_slug=a.prev_slug):a.has_previous_post||o.AjaxLoadMore.triggerDone(),t.isFunction(t.fn.almSetPreviousPost)&&t.fn.almSetPreviousPost(o,a.current_id,a.permalink,a.title),o.fetchingPreviousPost=!1},error:function(t,a,e){o.AjaxLoadMore.error(t,a,e),o.fetchingPreviousPost=!1}})},o.AjaxLoadMore.triggerAddons=function(a){t.isFunction(t.fn.almSEO)&&a.seo&&t.fn.almSEO(a,!1),t.isFunction(t.fn.almSetNextPage)&&t.fn.almSetNextPage(a)},o.AjaxLoadMore.triggerDone=function(){o.loading=!1,o.finished=!0,o.paging||o.button.addClass("done"),t.isFunction(t.fn.almDone)&&setTimeout(function(){t.fn.almDone(o)},o.speed+10)},o.AjaxLoadMore.resetBtnText=function(){!1===o.button_loading_label||o.paging||o.button.html(o.button_label)},o.AjaxLoadMore.error=function(t,a,e){o.loading=!1,o.paging||(o.button.removeClass("loading"),o.AjaxLoadMore.resetBtnText()),console.log(e)},o.paging||o.fetchingPreviousPost||(o.button.unbind("click"),o.button.on("click",function(a){a.preventDefault(),"true"===o.pause&&(o.pause=!1,o.pause_override=!1,o.AjaxLoadMore.loadPosts()),o.loading||o.finished||t(this).hasClass("done")||(o.loading=!0,o.page++,o.AjaxLoadMore.loadPosts()),o.filters&&"function"==typeof almFiltersPaged&&almFiltersPaged(o)})),o.paging&&(o.window.unbind("resizeEnd"),o.window.bind("resizeEnd",function(){t.isFunction(t.fn.almOnWindowResize)&&t.fn.almOnWindowResize(o)}),o.window.unbind("resize"),o.window.bind("resize",function(){this.resizeTO&&clearTimeout(this.resizeTO),this.resizeTO=setTimeout(function(){t(this).trigger("resizeEnd")},o.speed)})),o.AjaxLoadMore.isVisible=function(){return o.visible=!1,o.el.is(":visible")&&(o.visible=!0),o.visible},o.scroll&&!o.paging&&(""!==o.scroll_container&&(o.window=t(o.scroll_container)),o.window.bind("scroll touchstart",function(){if(o.AjaxLoadMore.isVisible()&&!o.fetchingPreviousPost){var t=o.button.offset().top,a=Math.round(t-(o.window.height()-o.scroll_distance)),e=o.window.scrollTop()>=a;""!==o.scroll_container&&(e=o.button.offset().top-(o.window.height()-o.scroll_distance)<o.window.offset().top),!o.loading&&!o.finished&&e&&o.page<o.max_pages-1&&o.proceed&&"true"===o.pause&&"true"===o.pause_override?o.button.trigger("click"):!o.loading&&!o.finished&&e&&o.page<o.max_pages-1&&o.proceed&&"true"!==o.pause&&o.button.trigger("click")}})),o.AjaxLoadMore.destroyed=function(){o.disable_ajax=!0,o.paging||(o.button.delay(o.speed).fadeOut(o.speed),t.isFunction(t.fn.almDestroyed)&&t.fn.almDestroyed(o))},o.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(){e>.9&&(t.style.opacity=1,clearInterval(o)),t.style.opacity=e,e+=.1},a);t.style.height="auto"}},o.AjaxLoadMore.transitionEnd=function(){setTimeout(function(){o.loading=!1,o.container.removeClass("alm-loading"),o.AjaxLoadMore.triggerAddons(o),o.paging||(o.button.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText())},o.speed)},o.AjaxLoadMore.init=function(){"true"===o.preloaded&&1==o.destroy_after&&o.AjaxLoadMore.destroyed(),o.paging||o.previous_post||(o.disable_ajax?(o.finished=!0,o.button.addClass("done")):"true"===o.pause?(o.button.html(o.button_label),o.loading=!1):o.AjaxLoadMore.loadPosts()),o.previous_post&&(o.AjaxLoadMore.getPreviousPost(),o.loading=!1),"true"===o.preloaded&&o.seo&&!o.paging&&setTimeout(function(){t.isFunction(t.fn.almSEO)&&o.start_page<1&&t.fn.almSEO(o,!0)},o.speed),"true"!==o.preloaded||o.paging||setTimeout(function(){o.preloaded_total_posts<=parseInt(o.preloaded_amount)&&o.AjaxLoadMore.triggerDone(),0==o.preloaded_total_posts&&t.isFunction(t.fn.almEmpty)&&t.fn.almEmpty(o)},o.speed),o.nextpage&&t(".alm-nextpage").length>1&&t(".alm-nextpage").length==t(".alm-nextpage").eq(0).data("total-pages")&&o.AjaxLoadMore.triggerDone(),o.window.bind("load",function(){o.is_masonry_preloaded&&(almMasonry(o.masonry_wrap,o.el,o.masonry_selector,o.masonry_animation,o.masonry_horizontalorder,o.speed,o.masonry_init,!0,!1),o.masonry_init=!1)})},o.AjaxLoadMore.init(),setTimeout(function(){o.proceed=!0},150),t.fn.almUpdateCurrentPage=function(a,e,o){o.page=a,o.nextpage&&!o.paging&&(o.page=o.page-1);var n="";o.paging_init&&"true"===o.preloaded?(n=t(".alm-preloaded .alm-reveal",o.el).html(),t(".alm-preloaded",o.el).remove(),o.preloaded_amount=0,o.AjaxLoadMore.pagingPreloadedInit(n),o.paging_init=!1,o.init=!1):o.paging_init&&o.nextpage?(n=t(".alm-nextpage",o.el).html(),t(".alm-nextpage",o.el).remove(),o.AjaxLoadMore.pagingNextpageInit(n),o.paging_init=!1,o.init=!1):o.AjaxLoadMore.loadPosts()},t.fn.almGetParentContainer=function(){return o.el.closest("#ajax-load-more")},t.fn.almGetObj=function(){return o},t.fn.almTriggerClick=function(){o.button.trigger("click")},t.easing.alm_easeInOutQuad=function(t,a,e,o,n){return(a/=n/2)<1?o/2*a*a+e:-o/2*(--a*(a-2)-1)+e}},t.fn.ajaxloadmore=function(){return this.each(function(a){new t.ajaxloadmore(t(this),a)})};var a=document.querySelectorAll(".ajax-load-more-wrap");a.length&&[].concat(_toConsumableArray(a)).forEach(function(a,e){new t.ajaxloadmore(t(a),e)})}(jQuery);var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"===("undefined"==typeof exports?"undefined":_typeof(exports))?module.exports=t(require("jquery")):t(jQuery)}(function(t){t.almWaitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage","cursor"],hasImageAttributes:["srcset"]},t.expr[":"]["has-src"]=function(a){return t(a).is('img[src][src!=""]')},t.expr[":"].uncached=function(a){return!!t(a).is(":has-src")&&!a.complete},t.fn.almWaitForImages=function(){var a,e,o,n=0,r=0,s=t.Deferred();if(t.isPlainObject(arguments[0])?(o=arguments[0].waitForAll,e=arguments[0].each,a=arguments[0].finished):1===arguments.length&&"boolean"===t.type(arguments[0])?o=arguments[0]:(a=arguments[0],e=arguments[1],o=arguments[2]),a=a||t.noop,e=e||t.noop,o=!!o,!t.isFunction(a)||!t.isFunction(e))throw new TypeError("An invalid callback was supplied.");return this.each(function(){var i=t(this),l=[],p=t.almWaitForImages.hasImageProperties||[],d=t.almWaitForImages.hasImageAttributes||[],c=/url\(\s*(['"]?)(.*?)\1\s*\)/g;o?i.find("*").addBack().each(function(){var a=t(this);a.is("img:has-src")&&l.push({src:a.attr("src"),element:a[0]}),t.each(p,function(t,e){var o,n=a.css(e);if(!n)return!0;for(;o=c.exec(n);)l.push({src:o[2],element:a[0]})}),t.each(d,function(e,o){var n,r=a.attr(o);if(!r)return!0;n=r.split(","),t.each(n,function(e,o){o=t.trim(o).split(" ")[0],l.push({src:o,element:a[0]})})})}):i.find("img:has-src").each(function(){l.push({src:this.src,element:this})}),n=l.length,r=0,0===n&&(a.call(i[0]),s.resolveWith(i[0])),t.each(l,function(o,l){var p=new Image,d="load.almWaitForImages error.almWaitForImages";t(p).one(d,function o(p){var c=[r,n,"load"==p.type];if(r++,e.apply(l.element,c),s.notifyWith(l.element,c),t(this).off(d,o),r==n)return a.call(i[0]),s.resolveWith(i[0]),!1}),p.src=l.src})}),s.promise()}});
|
core/functions.php
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
* @since 3.1.0
|
10 |
*/
|
11 |
function alm_masonry_before($transition){
|
12 |
-
return ($transition === 'masonry') ? '<div class="alm-masonry">' : '';
|
13 |
}
|
14 |
add_filter('alm_masonry_before', 'alm_masonry_before');
|
15 |
|
@@ -85,8 +85,8 @@ function alm_css_disabled($setting) {
|
|
85 |
$disabled = true;
|
86 |
if(!isset($options[$setting]) || $options[$setting] != '1'){
|
87 |
$disabled = false;
|
88 |
-
}
|
89 |
-
return $disabled;
|
90 |
}
|
91 |
|
92 |
|
@@ -106,8 +106,8 @@ function alm_do_inline_css($setting) {
|
|
106 |
$inline = false;
|
107 |
if(!isset($options[$setting]) || $options[$setting] === '1'){
|
108 |
$inline = true;
|
109 |
-
}
|
110 |
-
return $inline;
|
111 |
}
|
112 |
|
113 |
|
@@ -116,6 +116,8 @@ function alm_do_inline_css($setting) {
|
|
116 |
* alm_get_current_repeater
|
117 |
* Get the current repeater template file
|
118 |
*
|
|
|
|
|
119 |
* @return $include (file path)
|
120 |
* @since 2.5.0
|
121 |
*/
|
@@ -200,14 +202,9 @@ function alm_get_default_repeater() {
|
|
200 |
}
|
201 |
|
202 |
// Since 2.0
|
203 |
-
//
|
204 |
if($file == null){
|
205 |
-
|
206 |
-
if($blog_id > 1){
|
207 |
-
$file = ALM_PATH. 'core/repeater/'. $blog_id .'/default.php'; // File
|
208 |
-
}else{
|
209 |
-
$file = ALM_PATH. 'core/repeater/default.php';
|
210 |
-
}
|
211 |
}
|
212 |
|
213 |
return $file;
|
9 |
* @since 3.1.0
|
10 |
*/
|
11 |
function alm_masonry_before($transition){
|
12 |
+
return ($transition === 'masonry') ? '<div class="alm-masonry" style="opacity: 0;">' : '';
|
13 |
}
|
14 |
add_filter('alm_masonry_before', 'alm_masonry_before');
|
15 |
|
85 |
$disabled = true;
|
86 |
if(!isset($options[$setting]) || $options[$setting] != '1'){
|
87 |
$disabled = false;
|
88 |
+
}
|
89 |
+
return $disabled;
|
90 |
}
|
91 |
|
92 |
|
106 |
$inline = false;
|
107 |
if(!isset($options[$setting]) || $options[$setting] === '1'){
|
108 |
$inline = true;
|
109 |
+
}
|
110 |
+
return $inline;
|
111 |
}
|
112 |
|
113 |
|
116 |
* alm_get_current_repeater
|
117 |
* Get the current repeater template file
|
118 |
*
|
119 |
+
* @param $repeater string current repater name*
|
120 |
+
* @param $type string The type of template
|
121 |
* @return $include (file path)
|
122 |
* @since 2.5.0
|
123 |
*/
|
202 |
}
|
203 |
|
204 |
// Since 2.0
|
205 |
+
// Updated 3.5
|
206 |
if($file == null){
|
207 |
+
$file = AjaxLoadMore::alm_get_repeater_path() .'/default.php';
|
|
|
|
|
|
|
|
|
|
|
208 |
}
|
209 |
|
210 |
return $file;
|
core/repeater/default.php
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
<li<?php if (! has_post_thumbnail() ) { echo ' class="no-img"'; } ?>>
|
2 |
-
<?php
|
3 |
-
if ( has_post_thumbnail() ) {
|
4 |
-
the_post_thumbnail('alm-thumbnail');
|
5 |
-
}
|
6 |
-
?>
|
7 |
-
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
|
8 |
-
<p class="entry-meta">
|
9 |
-
<?php the_time("F d, Y"); ?>
|
10 |
-
</p>
|
11 |
-
<?php the_excerpt(); ?>
|
12 |
-
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/ajax-load-more.js
CHANGED
@@ -41,6 +41,7 @@
|
|
41 |
alm.is_search = alm.el.attr('data-search');
|
42 |
alm.slug = alm.el.attr('data-slug');
|
43 |
alm.post_id = alm.el.attr('data-post-id');
|
|
|
44 |
|
45 |
alm.repeater = alm.content.attr('data-repeater'); // Repeaters
|
46 |
alm.theme_repeater = alm.content.attr('data-theme-repeater');
|
@@ -61,7 +62,7 @@
|
|
61 |
alm.transition = alm.content.attr('data-transition'); // Transition
|
62 |
alm.transition_container = alm.content.attr('data-transition-container'); // Transition Container
|
63 |
alm.tcc = alm.content.attr('data-transition-container-classes'); // Transition Container Classes
|
64 |
-
alm.speed =
|
65 |
alm.images_loaded = alm.content.attr('data-images-loaded');
|
66 |
alm.destroy_after = alm.content.attr('data-destroy-after');
|
67 |
alm.lang = alm.content.attr('data-lang');
|
@@ -100,6 +101,12 @@
|
|
100 |
if(alm.comments === 'true'){ // if comments, adjust alm.content wrapper
|
101 |
alm.content = $('.alm-comments', alm.container);
|
102 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
|
104 |
alm.filters = alm.content.attr('data-filters');
|
105 |
|
@@ -243,7 +250,8 @@
|
|
243 |
alm.permalink = alm.content.attr('data-seo-permalink');
|
244 |
alm.pageview = alm.content.attr('data-seo-pageview');
|
245 |
alm.start_page = alm.content.attr('data-seo-start-page');
|
246 |
-
alm.
|
|
|
247 |
|
248 |
if(alm.start_page){
|
249 |
alm.seo_scroll = alm.content.attr('data-seo-scroll');
|
@@ -387,9 +395,6 @@
|
|
387 |
alm.is_masonry_preloaded = true;
|
388 |
}
|
389 |
}
|
390 |
-
|
391 |
-
/* Speed */
|
392 |
-
alm.speed = (alm.speed === undefined || alm.speed === '') ? 250 : parseInt(alm.speed);
|
393 |
|
394 |
/* Scroll */
|
395 |
if (alm.content.attr('data-scroll') === undefined){
|
@@ -541,7 +546,7 @@
|
|
541 |
};
|
542 |
}
|
543 |
|
544 |
-
// Comment
|
545 |
alm.comments_array = '';
|
546 |
if(alm.comments === 'true'){
|
547 |
action = 'alm_comments_query';
|
@@ -557,7 +562,7 @@
|
|
557 |
};
|
558 |
}
|
559 |
|
560 |
-
// Users
|
561 |
alm.users_array = '';
|
562 |
if(alm.users){
|
563 |
action = 'alm_users_query';
|
@@ -572,7 +577,7 @@
|
|
572 |
};
|
573 |
}
|
574 |
|
575 |
-
// CTA
|
576 |
alm.cta_array = '';
|
577 |
if(alm.cta === 'true'){
|
578 |
alm.cta_array = {
|
@@ -676,8 +681,8 @@
|
|
676 |
action : action,
|
677 |
nonce : alm_localize.alm_nonce,
|
678 |
query_type : queryType,
|
679 |
-
post_id : alm.post_id,
|
680 |
id : el.attr('data-id'),
|
|
|
681 |
slug : alm.slug,
|
682 |
canonical_url : alm.canonical_url,
|
683 |
cache_id : alm.cache_id,
|
@@ -789,6 +794,8 @@
|
|
789 |
if(alm.previous_post){ // Get previous page data
|
790 |
alm.AjaxLoadMore.getPreviousPost();
|
791 |
}
|
|
|
|
|
792 |
|
793 |
var html, meta, total;
|
794 |
|
@@ -824,21 +831,25 @@
|
|
824 |
|
825 |
// Is pagination
|
826 |
if (total > 0) {
|
827 |
-
alm.el = $('<div class="alm-reveal'+alm.tcc+'"/>');
|
828 |
alm.el.append('<div class="alm-paging-content"></div><div class="alm-paging-loading"></div>');
|
829 |
-
$('.alm-paging-content', alm.el).append(alm.data)
|
830 |
-
alm.content.append(alm.el);
|
|
|
831 |
alm.content.parent().removeClass('loading'); // Remove loading class from main container
|
832 |
alm.AjaxLoadMore.resetBtnText();
|
833 |
-
|
834 |
-
|
835 |
-
|
836 |
-
|
837 |
-
|
838 |
-
|
839 |
-
|
840 |
-
|
841 |
-
|
|
|
|
|
|
|
842 |
}
|
843 |
}
|
844 |
|
@@ -870,8 +881,8 @@
|
|
870 |
if(alm.filters){
|
871 |
|
872 |
if(alm.filters_startpage){
|
873 |
-
|
874 |
-
alm.page = alm.filters_startpage - 1;
|
875 |
|
876 |
// Reset filters-startpage data attr after the first run
|
877 |
alm.posts_per_page = alm.content.attr('data-posts-per-page');
|
@@ -884,27 +895,26 @@
|
|
884 |
|
885 |
if (total > 0) {
|
886 |
|
887 |
-
//
|
|
|
888 |
if(!alm.paging){
|
889 |
|
890 |
-
if(alm.previous_post){ //
|
891 |
-
|
892 |
-
alm.el
|
893 |
-
|
894 |
-
|
895 |
-
}
|
896 |
|
897 |
else {
|
898 |
|
899 |
if(!alm.transition_container){ // No transition container
|
900 |
|
901 |
-
alm.data.hide();
|
902 |
alm.el = alm.data;
|
903 |
|
904 |
} else { // Standard container
|
905 |
|
906 |
let pagenum;
|
907 |
let querystring = window.location.search;
|
|
|
908 |
|
909 |
// SEO
|
910 |
if (alm.init && alm.start_page > 1){
|
@@ -936,20 +946,20 @@
|
|
936 |
if(alm.permalink === 'default'){
|
937 |
div = $('<div class="alm-reveal alm-seo'+alm.tcc+'" data-url="'+alm.canonical_url+''+ alm.search_value +'&paged='+ pagenum+'" data-page="'+ pagenum +'" />');
|
938 |
}else{
|
939 |
-
div = $('<div class="alm-reveal alm-seo'+alm.tcc+'" data-url="'+alm.canonical_url+'page/'+ pagenum + alm.
|
940 |
}
|
941 |
}else{
|
942 |
// First Page
|
943 |
-
div = $('<div class="alm-reveal alm-seo'+alm.tcc+'"
|
944 |
}
|
945 |
|
946 |
div.append(seo_data[k]);
|
947 |
div = $(div); // convert to object
|
948 |
-
alm.el.append(div)
|
949 |
|
950 |
}
|
951 |
}
|
952 |
-
// End SEO
|
953 |
|
954 |
else {
|
955 |
// If is SEO and paged OR Preloaded.
|
@@ -963,44 +973,44 @@
|
|
963 |
if(alm.seo){
|
964 |
|
965 |
if(alm.permalink === 'default'){
|
966 |
-
alm.el = $('<div class="alm-reveal alm-seo'+alm.tcc+'" data-url="'+alm.canonical_url+''+ alm.search_value +'&paged='+ pagenum+'" data-page="'+ pagenum +'" />');
|
967 |
}
|
968 |
else{
|
969 |
-
alm.el = $('<div class="alm-reveal alm-seo'+alm.tcc+'" data-url="'+alm.canonical_url+'page/'+ pagenum + alm.
|
970 |
}
|
971 |
|
972 |
}
|
973 |
|
974 |
else if(alm.filters){
|
975 |
// Filters
|
976 |
-
alm.el = $('<div class="alm-reveal alm-filters'+alm.tcc+'" data-url="'+alm.canonical_url+''+ querystring +'" data-page="'+ (pagenum) +'" />');
|
977 |
}
|
978 |
|
979 |
else{
|
980 |
// Basic ALM
|
981 |
-
alm.el = $('<div class="alm-reveal'+alm.tcc+'" />');
|
982 |
}
|
983 |
|
984 |
}
|
985 |
|
986 |
else if(alm.filters){
|
987 |
// Filters
|
988 |
-
alm.el = $('<div class="alm-reveal alm-filters'+alm.tcc+'" data-url="'+alm.canonical_url+''+ querystring +'" data-page="'+ (alm.page + 1) +'" />');
|
989 |
}
|
990 |
|
991 |
else{
|
992 |
|
993 |
if(alm.seo){
|
994 |
// SEO [Page 1]
|
995 |
-
alm.el = $('<div class="alm-reveal alm-seo'+alm.tcc+'" data-url="'+alm.canonical_url+''+ alm.search_value +'" data-page="1" />');
|
996 |
}else{
|
997 |
// Basic ALM
|
998 |
-
alm.el = $('<div class="alm-reveal'+alm.tcc+'" />');
|
999 |
}
|
1000 |
|
1001 |
}
|
1002 |
-
|
1003 |
-
alm.el.append(alm.data)
|
1004 |
}
|
1005 |
}
|
1006 |
}
|
@@ -1011,89 +1021,33 @@
|
|
1011 |
alm.content.append(alm.el);
|
1012 |
}
|
1013 |
|
1014 |
-
//
|
1015 |
-
|
1016 |
-
|
1017 |
-
|
1018 |
-
|
1019 |
-
|
1020 |
-
|
1021 |
-
alm.button.delay(alm.speed).removeClass('loading');
|
1022 |
-
alm.AjaxLoadMore.resetBtnText();
|
1023 |
-
}
|
1024 |
-
alm.container.removeClass('alm-loading');
|
1025 |
-
alm.AjaxLoadMore.triggerAddons(alm);
|
1026 |
-
});
|
1027 |
-
});
|
1028 |
-
}else{
|
1029 |
-
alm.el.fadeIn(alm.speed, 'alm_easeInOutQuad', function () {
|
1030 |
-
alm.loading = false;
|
1031 |
-
if(!alm.paging){
|
1032 |
-
alm.button.delay(alm.speed).removeClass('loading');
|
1033 |
-
alm.AjaxLoadMore.resetBtnText();
|
1034 |
-
}
|
1035 |
-
alm.container.removeClass('alm-loading');
|
1036 |
-
alm.AjaxLoadMore.triggerAddons(alm);
|
1037 |
-
});
|
1038 |
-
}
|
1039 |
|
1040 |
}
|
1041 |
-
|
1042 |
-
|
1043 |
-
|
1044 |
-
|
1045 |
-
if(!alm.paging){
|
1046 |
-
alm.button.delay(alm.speed).removeClass('loading');
|
1047 |
-
alm.AjaxLoadMore.resetBtnText();
|
1048 |
-
}
|
1049 |
-
alm.loading = false;
|
1050 |
-
alm.container.removeClass('alm-loading');
|
1051 |
-
alm.AjaxLoadMore.triggerAddons(alm);
|
1052 |
|
1053 |
}
|
1054 |
-
|
|
|
1055 |
if(alm.images_loaded === 'true'){
|
1056 |
alm.el.almWaitForImages().done(function(){
|
1057 |
-
alm.el.
|
1058 |
-
alm.AjaxLoadMore.
|
1059 |
-
});
|
1060 |
-
}else{
|
1061 |
-
alm.el.show();
|
1062 |
-
alm.AjaxLoadMore.triggerAddons(alm);
|
1063 |
-
}
|
1064 |
-
alm.loading = false;
|
1065 |
-
if(!alm.paging){
|
1066 |
-
alm.button.delay(alm.speed).removeClass('loading');
|
1067 |
-
alm.AjaxLoadMore.resetBtnText();
|
1068 |
-
}
|
1069 |
-
|
1070 |
-
}
|
1071 |
-
else { // Slide
|
1072 |
-
if(alm.images_loaded === 'true'){
|
1073 |
-
alm.el.almWaitForImages().done(function(){
|
1074 |
-
alm.el.slideDown(alm.speed, 'alm_easeInOutQuad', function () {
|
1075 |
-
alm.loading = false;
|
1076 |
-
if(!alm.paging){
|
1077 |
-
alm.button.delay(alm.speed).removeClass('loading');
|
1078 |
-
alm.AjaxLoadMore.resetBtnText();
|
1079 |
-
}
|
1080 |
-
alm.container.removeClass('alm-loading');
|
1081 |
-
alm.AjaxLoadMore.triggerAddons(alm);
|
1082 |
-
});
|
1083 |
});
|
1084 |
}else{
|
1085 |
-
|
1086 |
-
|
1087 |
-
|
1088 |
-
alm.button.delay(alm.speed).removeClass('loading');
|
1089 |
-
alm.AjaxLoadMore.resetBtnText();
|
1090 |
-
}
|
1091 |
-
alm.container.removeClass('alm-loading');
|
1092 |
-
alm.AjaxLoadMore.triggerAddons(alm);
|
1093 |
-
});
|
1094 |
-
}
|
1095 |
}
|
1096 |
-
// End Transition
|
1097 |
|
1098 |
} else {
|
1099 |
|
@@ -1158,17 +1112,11 @@
|
|
1158 |
// Destroy After
|
1159 |
if (alm.destroy_after !== undefined && alm.destroy_after !== '') {
|
1160 |
var currentPage = alm.page + 1; // Add 1 because alm.page starts at 0
|
1161 |
-
if(alm.
|
1162 |
-
currentPage++;
|
1163 |
}
|
1164 |
-
if(currentPage == alm.destroy_after){ //
|
1165 |
-
|
1166 |
-
if(!alm.paging){
|
1167 |
-
alm.button.delay(alm.speed).fadeOut(alm.speed);
|
1168 |
-
if ($.isFunction($.fn.almDestroyed)) {
|
1169 |
-
$.fn.almDestroyed(alm);
|
1170 |
-
}
|
1171 |
-
}
|
1172 |
}
|
1173 |
}
|
1174 |
// End Destroy After
|
@@ -1211,10 +1159,12 @@
|
|
1211 |
$.fn.almEmpty(alm);
|
1212 |
}
|
1213 |
}
|
1214 |
-
|
1215 |
-
|
1216 |
-
|
1217 |
-
|
|
|
|
|
1218 |
};
|
1219 |
|
1220 |
|
@@ -1242,7 +1192,7 @@
|
|
1242 |
$.fn.almSetNextPageVars(alm); // Next Page Add-on
|
1243 |
}
|
1244 |
|
1245 |
-
// Delay
|
1246 |
setTimeout(function(){
|
1247 |
if ($.isFunction($.fn.almFadePageControls)){
|
1248 |
$.fn.almFadePageControls(alm.btnWrap); // Paging Add-on
|
@@ -1251,13 +1201,13 @@
|
|
1251 |
if ($.isFunction($.fn.almOnWindowResize)){
|
1252 |
$.fn.almOnWindowResize(alm); // Paging Add-on
|
1253 |
}
|
1254 |
-
},
|
1255 |
};
|
1256 |
|
1257 |
|
1258 |
|
1259 |
|
1260 |
-
/*
|
1261 |
*
|
1262 |
* Get the previous post ID via ajax
|
1263 |
* @since 2.7.4
|
@@ -1307,9 +1257,9 @@
|
|
1307 |
|
1308 |
|
1309 |
|
1310 |
-
/*
|
1311 |
*
|
1312 |
-
*
|
1313 |
* @since 2.14.0
|
1314 |
*/
|
1315 |
alm.AjaxLoadMore.triggerAddons = function(alm){
|
@@ -1350,10 +1300,8 @@
|
|
1350 |
* @since 2.8.4
|
1351 |
*/
|
1352 |
alm.AjaxLoadMore.resetBtnText = function(){
|
1353 |
-
if(alm.button_loading_label !== false){ // Reset button text
|
1354 |
-
|
1355 |
-
alm.button.html(alm.button_label);
|
1356 |
-
}
|
1357 |
}
|
1358 |
};
|
1359 |
|
@@ -1428,7 +1376,7 @@
|
|
1428 |
}
|
1429 |
this.resizeTO = setTimeout(function() {
|
1430 |
$(this).trigger('resizeEnd');
|
1431 |
-
},
|
1432 |
});
|
1433 |
|
1434 |
}
|
@@ -1493,6 +1441,69 @@
|
|
1493 |
}
|
1494 |
});
|
1495 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1496 |
|
1497 |
|
1498 |
|
@@ -1502,12 +1513,17 @@
|
|
1502 |
* @since 2.0
|
1503 |
*/
|
1504 |
alm.AjaxLoadMore.init = function(){
|
|
|
|
|
|
|
|
|
|
|
1505 |
|
|
|
1506 |
if(!alm.paging && !alm.previous_post){
|
1507 |
if(alm.disable_ajax){
|
1508 |
alm.finished = true;
|
1509 |
alm.button.addClass('done');
|
1510 |
-
|
1511 |
}else{
|
1512 |
if (alm.pause === 'true') {
|
1513 |
alm.button.html(alm.button_label);
|
@@ -1533,7 +1549,7 @@
|
|
1533 |
if ($.isFunction($.fn.almSEO) && alm.start_page < 1) {
|
1534 |
$.fn.almSEO(alm, true);
|
1535 |
}
|
1536 |
-
},
|
1537 |
}
|
1538 |
|
1539 |
|
@@ -1551,8 +1567,9 @@
|
|
1551 |
$.fn.almEmpty(alm);
|
1552 |
}
|
1553 |
}
|
1554 |
-
},
|
1555 |
-
|
|
|
1556 |
|
1557 |
|
1558 |
// Next Page Add-on
|
@@ -1586,7 +1603,7 @@
|
|
1586 |
//flag to prevent unnecessary loading of post on init. Hold for 2/10 of a second
|
1587 |
setTimeout(function () {
|
1588 |
alm.proceed = true;
|
1589 |
-
},
|
1590 |
|
1591 |
|
1592 |
|
@@ -1616,7 +1633,6 @@
|
|
1616 |
data = $('.alm-preloaded .alm-reveal', alm.el).html(); // Content of preloaded page
|
1617 |
$('.alm-preloaded', alm.el).remove();
|
1618 |
alm.preloaded_amount = 0; // Reset
|
1619 |
-
//alm.AjaxLoadMore.success(data, true); // Skip post loading and go right to success() for display
|
1620 |
alm.AjaxLoadMore.pagingPreloadedInit(data);
|
1621 |
alm.paging_init = false;
|
1622 |
alm.init = false;
|
@@ -1714,8 +1730,7 @@
|
|
1714 |
|
1715 |
let ajaxloadmore = document.querySelectorAll('.ajax-load-more-wrap');
|
1716 |
if(ajaxloadmore.length){
|
1717 |
-
[...ajaxloadmore].forEach((alm, e) => {
|
1718 |
-
//$(alm).data('alm', new $.ajaxloadmore($(alm), e));
|
1719 |
new $.ajaxloadmore($(alm), e);
|
1720 |
});
|
1721 |
}
|
41 |
alm.is_search = alm.el.attr('data-search');
|
42 |
alm.slug = alm.el.attr('data-slug');
|
43 |
alm.post_id = alm.el.attr('data-post-id');
|
44 |
+
alm.id = (alm.el.attr('data-id')) ? alm.el.attr('data-id') : '';
|
45 |
|
46 |
alm.repeater = alm.content.attr('data-repeater'); // Repeaters
|
47 |
alm.theme_repeater = alm.content.attr('data-theme-repeater');
|
62 |
alm.transition = alm.content.attr('data-transition'); // Transition
|
63 |
alm.transition_container = alm.content.attr('data-transition-container'); // Transition Container
|
64 |
alm.tcc = alm.content.attr('data-transition-container-classes'); // Transition Container Classes
|
65 |
+
alm.speed = 250;
|
66 |
alm.images_loaded = alm.content.attr('data-images-loaded');
|
67 |
alm.destroy_after = alm.content.attr('data-destroy-after');
|
68 |
alm.lang = alm.content.attr('data-lang');
|
101 |
if(alm.comments === 'true'){ // if comments, adjust alm.content wrapper
|
102 |
alm.content = $('.alm-comments', alm.container);
|
103 |
}
|
104 |
+
alm.comments_post_id = alm.content.attr('data-comments_post_id'); // current post id
|
105 |
+
alm.comments_per_page = alm.content.attr('data-comments_per_page');
|
106 |
+
alm.comments_type = alm.content.attr('data-comments_type');
|
107 |
+
alm.comments_style = alm.content.attr('data-comments_style');
|
108 |
+
alm.comments_template = alm.content.attr('data-comments_template');
|
109 |
+
alm.comments_callback = alm.content.attr('data-comments_callback');
|
110 |
|
111 |
alm.filters = alm.content.attr('data-filters');
|
112 |
|
250 |
alm.permalink = alm.content.attr('data-seo-permalink');
|
251 |
alm.pageview = alm.content.attr('data-seo-pageview');
|
252 |
alm.start_page = alm.content.attr('data-seo-start-page');
|
253 |
+
alm.seo_trailing_slash = (alm.content.attr('data-seo-trailing-slash') === 'false') ? '' : '/';
|
254 |
+
alm.seo_leading_slash = (alm.content.attr('data-seo-leading-slash') === 'true') ? '/' : '';
|
255 |
|
256 |
if(alm.start_page){
|
257 |
alm.seo_scroll = alm.content.attr('data-seo-scroll');
|
395 |
alm.is_masonry_preloaded = true;
|
396 |
}
|
397 |
}
|
|
|
|
|
|
|
398 |
|
399 |
/* Scroll */
|
400 |
if (alm.content.attr('data-scroll') === undefined){
|
546 |
};
|
547 |
}
|
548 |
|
549 |
+
// Comment Params
|
550 |
alm.comments_array = '';
|
551 |
if(alm.comments === 'true'){
|
552 |
action = 'alm_comments_query';
|
562 |
};
|
563 |
}
|
564 |
|
565 |
+
// Users Params
|
566 |
alm.users_array = '';
|
567 |
if(alm.users){
|
568 |
action = 'alm_users_query';
|
577 |
};
|
578 |
}
|
579 |
|
580 |
+
// CTA Params
|
581 |
alm.cta_array = '';
|
582 |
if(alm.cta === 'true'){
|
583 |
alm.cta_array = {
|
681 |
action : action,
|
682 |
nonce : alm_localize.alm_nonce,
|
683 |
query_type : queryType,
|
|
|
684 |
id : el.attr('data-id'),
|
685 |
+
post_id : alm.post_id,
|
686 |
slug : alm.slug,
|
687 |
canonical_url : alm.canonical_url,
|
688 |
cache_id : alm.cache_id,
|
794 |
if(alm.previous_post){ // Get previous page data
|
795 |
alm.AjaxLoadMore.getPreviousPost();
|
796 |
}
|
797 |
+
|
798 |
+
let loadingStyle = 'style="opacity: 0; height: 0;"';
|
799 |
|
800 |
var html, meta, total;
|
801 |
|
831 |
|
832 |
// Is pagination
|
833 |
if (total > 0) {
|
834 |
+
alm.el = $('<div class="alm-reveal'+alm.tcc+'" '+ loadingStyle +'/>');
|
835 |
alm.el.append('<div class="alm-paging-content"></div><div class="alm-paging-loading"></div>');
|
836 |
+
$('.alm-paging-content', alm.el).append(alm.data);
|
837 |
+
alm.content.append(alm.el);
|
838 |
+
alm.AjaxLoadMore.fadeIn(alm.el.get(0), alm.speed);
|
839 |
alm.content.parent().removeClass('loading'); // Remove loading class from main container
|
840 |
alm.AjaxLoadMore.resetBtnText();
|
841 |
+
|
842 |
+
// Delay reveal until paging elements have been added
|
843 |
+
setTimeout(function(){
|
844 |
+
$('.alm-paging-content', alm.el).fadeIn( alm.speed, 'alm_easeInOutQuad', function(){
|
845 |
+
var paddingT = parseInt(alm.content.css('padding-top')),
|
846 |
+
paddingB = parseInt(alm.content.css('padding-bottom'));
|
847 |
+
alm.content.css('height', alm.el.height() + paddingT + paddingB + 'px');
|
848 |
+
if ($.isFunction($.fn.almFadePageControls)){
|
849 |
+
$.fn.almFadePageControls(alm.btnWrap);
|
850 |
+
}
|
851 |
+
});
|
852 |
+
}, alm.speed);
|
853 |
}
|
854 |
}
|
855 |
|
881 |
if(alm.filters){
|
882 |
|
883 |
if(alm.filters_startpage){
|
884 |
+
|
885 |
+
alm.page = alm.filters_startpage - 1; // Set new page #
|
886 |
|
887 |
// Reset filters-startpage data attr after the first run
|
888 |
alm.posts_per_page = alm.content.attr('data-posts-per-page');
|
895 |
|
896 |
if (total > 0) {
|
897 |
|
898 |
+
// We have results!
|
899 |
+
|
900 |
if(!alm.paging){
|
901 |
|
902 |
+
if(alm.previous_post){ // Previous Post, create container and append data
|
903 |
+
alm.el = $('<div class="alm-reveal alm-previous-post post-'+alm.previous_post_id+'" '+ loadingStyle +' data-id="'+alm.previous_post_id+'" data-title="'+alm.previous_post_title+'" data-url="'+alm.previous_post_permalink+'" data-page="'+alm.page+'"/>');
|
904 |
+
alm.el.append(alm.data);
|
905 |
+
}
|
|
|
|
|
906 |
|
907 |
else {
|
908 |
|
909 |
if(!alm.transition_container){ // No transition container
|
910 |
|
|
|
911 |
alm.el = alm.data;
|
912 |
|
913 |
} else { // Standard container
|
914 |
|
915 |
let pagenum;
|
916 |
let querystring = window.location.search;
|
917 |
+
|
918 |
|
919 |
// SEO
|
920 |
if (alm.init && alm.start_page > 1){
|
946 |
if(alm.permalink === 'default'){
|
947 |
div = $('<div class="alm-reveal alm-seo'+alm.tcc+'" data-url="'+alm.canonical_url+''+ alm.search_value +'&paged='+ pagenum+'" data-page="'+ pagenum +'" />');
|
948 |
}else{
|
949 |
+
div = $('<div class="alm-reveal alm-seo'+alm.tcc+'" data-url="'+ alm.canonical_url + alm.seo_leading_slash +'page/'+ pagenum + alm.seo_trailing_slash + alm.search_value +'" data-page="'+ pagenum +'" />');
|
950 |
}
|
951 |
}else{
|
952 |
// First Page
|
953 |
+
div = $('<div class="alm-reveal alm-seo'+alm.tcc+'" data-url="'+alm.canonical_url+''+ alm.search_value +'" data-page="1" />');
|
954 |
}
|
955 |
|
956 |
div.append(seo_data[k]);
|
957 |
div = $(div); // convert to object
|
958 |
+
alm.el.append(div); // Append data to .alm-listing wrapper
|
959 |
|
960 |
}
|
961 |
}
|
962 |
+
// End SEO
|
963 |
|
964 |
else {
|
965 |
// If is SEO and paged OR Preloaded.
|
973 |
if(alm.seo){
|
974 |
|
975 |
if(alm.permalink === 'default'){
|
976 |
+
alm.el = $('<div class="alm-reveal alm-seo'+alm.tcc+'" '+ loadingStyle +' data-url="'+alm.canonical_url+''+ alm.search_value +'&paged='+ pagenum+'" data-page="'+ pagenum +'" />');
|
977 |
}
|
978 |
else{
|
979 |
+
alm.el = $('<div class="alm-reveal alm-seo'+alm.tcc+'" '+ loadingStyle +' data-url="'+ alm.canonical_url + alm.seo_leading_slash +'page/'+ pagenum + alm.seo_trailing_slash + alm.search_value +'" data-page="'+ pagenum +'" />');
|
980 |
}
|
981 |
|
982 |
}
|
983 |
|
984 |
else if(alm.filters){
|
985 |
// Filters
|
986 |
+
alm.el = $('<div class="alm-reveal alm-filters'+alm.tcc+'" '+ loadingStyle +' data-url="'+alm.canonical_url+''+ querystring +'" data-page="'+ (pagenum) +'" />');
|
987 |
}
|
988 |
|
989 |
else{
|
990 |
// Basic ALM
|
991 |
+
alm.el = $('<div class="alm-reveal'+alm.tcc+'" '+ loadingStyle +' />');
|
992 |
}
|
993 |
|
994 |
}
|
995 |
|
996 |
else if(alm.filters){
|
997 |
// Filters
|
998 |
+
alm.el = $('<div class="alm-reveal alm-filters'+alm.tcc+'" '+ loadingStyle +' data-url="'+alm.canonical_url+''+ querystring +'" data-page="'+ (alm.page + 1) +'" />');
|
999 |
}
|
1000 |
|
1001 |
else{
|
1002 |
|
1003 |
if(alm.seo){
|
1004 |
// SEO [Page 1]
|
1005 |
+
alm.el = $('<div class="alm-reveal alm-seo'+alm.tcc+'" '+ loadingStyle +' data-url="'+alm.canonical_url+''+ alm.search_value +'" data-page="1" />');
|
1006 |
}else{
|
1007 |
// Basic ALM
|
1008 |
+
alm.el = $('<div class="alm-reveal'+alm.tcc+'" '+ loadingStyle +' />');
|
1009 |
}
|
1010 |
|
1011 |
}
|
1012 |
+
|
1013 |
+
alm.el.append(alm.data);
|
1014 |
}
|
1015 |
}
|
1016 |
}
|
1021 |
alm.content.append(alm.el);
|
1022 |
}
|
1023 |
|
1024 |
+
// Transitions
|
1025 |
+
|
1026 |
+
// Masonry
|
1027 |
+
if(alm.transition === 'masonry') {
|
1028 |
+
almMasonry(alm.masonry_wrap, alm.el, alm.masonry_selector, alm.masonry_animation, alm.masonry_horizontalorder, alm.speed, alm.masonry_init, alm.init, alm_is_filtering);
|
1029 |
+
alm.masonry_init = false;
|
1030 |
+
alm.AjaxLoadMore.transitionEnd();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1031 |
|
1032 |
}
|
1033 |
+
// None
|
1034 |
+
else if(alm.transition === 'none') {
|
1035 |
+
alm.AjaxLoadMore.fadeIn(alm.el.get(0), 0);
|
1036 |
+
alm.AjaxLoadMore.transitionEnd();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1037 |
|
1038 |
}
|
1039 |
+
// Fade transition
|
1040 |
+
else {
|
1041 |
if(alm.images_loaded === 'true'){
|
1042 |
alm.el.almWaitForImages().done(function(){
|
1043 |
+
alm.AjaxLoadMore.fadeIn(alm.el.get(0), alm.speed);
|
1044 |
+
alm.AjaxLoadMore.transitionEnd();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1045 |
});
|
1046 |
}else{
|
1047 |
+
alm.AjaxLoadMore.fadeIn(alm.el.get(0), alm.speed);
|
1048 |
+
alm.AjaxLoadMore.transitionEnd();
|
1049 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1050 |
}
|
|
|
1051 |
|
1052 |
} else {
|
1053 |
|
1112 |
// Destroy After
|
1113 |
if (alm.destroy_after !== undefined && alm.destroy_after !== '') {
|
1114 |
var currentPage = alm.page + 1; // Add 1 because alm.page starts at 0
|
1115 |
+
if(alm.preloaded === 'true'){ // Add 1 for preloaded
|
1116 |
+
currentPage++;
|
1117 |
}
|
1118 |
+
if(currentPage == alm.destroy_after){ // Disable ALM if page = alm.destroy_after val
|
1119 |
+
alm.AjaxLoadMore.destroyed();
|
|
|
|
|
|
|
|
|
|
|
|
|
1120 |
}
|
1121 |
}
|
1122 |
// End Destroy After
|
1159 |
$.fn.almEmpty(alm);
|
1160 |
}
|
1161 |
}
|
1162 |
+
// Delay to avoid positioning issues
|
1163 |
+
setTimeout(function(){
|
1164 |
+
if ($.isFunction($.fn.almFadePageControls)){
|
1165 |
+
$.fn.almFadePageControls(alm.btnWrap);
|
1166 |
+
}
|
1167 |
+
}, alm.speed);
|
1168 |
};
|
1169 |
|
1170 |
|
1192 |
$.fn.almSetNextPageVars(alm); // Next Page Add-on
|
1193 |
}
|
1194 |
|
1195 |
+
// Delay to avoid positioning issues
|
1196 |
setTimeout(function(){
|
1197 |
if ($.isFunction($.fn.almFadePageControls)){
|
1198 |
$.fn.almFadePageControls(alm.btnWrap); // Paging Add-on
|
1201 |
if ($.isFunction($.fn.almOnWindowResize)){
|
1202 |
$.fn.almOnWindowResize(alm); // Paging Add-on
|
1203 |
}
|
1204 |
+
}, alm.speed);
|
1205 |
};
|
1206 |
|
1207 |
|
1208 |
|
1209 |
|
1210 |
+
/* fetchingPreviousPost()
|
1211 |
*
|
1212 |
* Get the previous post ID via ajax
|
1213 |
* @since 2.7.4
|
1257 |
|
1258 |
|
1259 |
|
1260 |
+
/* triggerAddons()
|
1261 |
*
|
1262 |
+
* Triggers various add-on functions (if available) after load complete.
|
1263 |
* @since 2.14.0
|
1264 |
*/
|
1265 |
alm.AjaxLoadMore.triggerAddons = function(alm){
|
1300 |
* @since 2.8.4
|
1301 |
*/
|
1302 |
alm.AjaxLoadMore.resetBtnText = function(){
|
1303 |
+
if(alm.button_loading_label !== false && !alm.paging){ // Reset button text
|
1304 |
+
alm.button.html(alm.button_label);
|
|
|
|
|
1305 |
}
|
1306 |
};
|
1307 |
|
1376 |
}
|
1377 |
this.resizeTO = setTimeout(function() {
|
1378 |
$(this).trigger('resizeEnd');
|
1379 |
+
}, alm.speed);
|
1380 |
});
|
1381 |
|
1382 |
}
|
1441 |
}
|
1442 |
});
|
1443 |
}
|
1444 |
+
|
1445 |
+
|
1446 |
+
|
1447 |
+
/* Destroy Ajax load More
|
1448 |
+
*
|
1449 |
+
* Destroy Ajax Load More functionality
|
1450 |
+
* @since 3.4.2
|
1451 |
+
*/
|
1452 |
+
alm.AjaxLoadMore.destroyed = function(){
|
1453 |
+
alm.disable_ajax = true;
|
1454 |
+
if(!alm.paging){
|
1455 |
+
alm.button.delay(alm.speed).fadeOut(alm.speed);
|
1456 |
+
if ($.isFunction($.fn.almDestroyed)) {
|
1457 |
+
$.fn.almDestroyed(alm);
|
1458 |
+
}
|
1459 |
+
}
|
1460 |
+
};
|
1461 |
+
|
1462 |
+
|
1463 |
+
|
1464 |
+
/* Fade in helper
|
1465 |
+
*
|
1466 |
+
* Fade in elements after an Ajax call
|
1467 |
+
* @since 3.5
|
1468 |
+
*/
|
1469 |
+
alm.AjaxLoadMore.fadeIn = function(element, speed) {
|
1470 |
+
if(speed == 0){
|
1471 |
+
element.style.opacity = 1;
|
1472 |
+
element.style.height = 'auto';
|
1473 |
+
|
1474 |
+
} else {
|
1475 |
+
speed = speed/10;
|
1476 |
+
let op = 0; // initial opacity
|
1477 |
+
let timer = setInterval(function () {
|
1478 |
+
if (op > 0.9){
|
1479 |
+
element.style.opacity = 1;
|
1480 |
+
clearInterval(timer);
|
1481 |
+
}
|
1482 |
+
element.style.opacity = op;
|
1483 |
+
op += 0.1;
|
1484 |
+
}, speed);
|
1485 |
+
element.style.height = 'auto';
|
1486 |
+
}
|
1487 |
+
};
|
1488 |
+
|
1489 |
+
|
1490 |
+
|
1491 |
+
/* Transition End
|
1492 |
+
*
|
1493 |
+
* Set variables after loading transiton completes
|
1494 |
+
* @since 3.5
|
1495 |
+
*/
|
1496 |
+
alm.AjaxLoadMore.transitionEnd = function() {
|
1497 |
+
setTimeout(function(){
|
1498 |
+
alm.loading = false;
|
1499 |
+
alm.container.removeClass('alm-loading');
|
1500 |
+
alm.AjaxLoadMore.triggerAddons(alm);
|
1501 |
+
if(!alm.paging){
|
1502 |
+
alm.button.delay(alm.speed).removeClass('loading');
|
1503 |
+
alm.AjaxLoadMore.resetBtnText();
|
1504 |
+
}
|
1505 |
+
}, alm.speed);
|
1506 |
+
};
|
1507 |
|
1508 |
|
1509 |
|
1513 |
* @since 2.0
|
1514 |
*/
|
1515 |
alm.AjaxLoadMore.init = function(){
|
1516 |
+
|
1517 |
+
// Preloaded and destroy_after is 1
|
1518 |
+
if(alm.preloaded === 'true' && alm.destroy_after == 1){
|
1519 |
+
alm.AjaxLoadMore.destroyed();
|
1520 |
+
}
|
1521 |
|
1522 |
+
|
1523 |
if(!alm.paging && !alm.previous_post){
|
1524 |
if(alm.disable_ajax){
|
1525 |
alm.finished = true;
|
1526 |
alm.button.addClass('done');
|
|
|
1527 |
}else{
|
1528 |
if (alm.pause === 'true') {
|
1529 |
alm.button.html(alm.button_label);
|
1549 |
if ($.isFunction($.fn.almSEO) && alm.start_page < 1) {
|
1550 |
$.fn.almSEO(alm, true);
|
1551 |
}
|
1552 |
+
}, alm.speed);
|
1553 |
}
|
1554 |
|
1555 |
|
1567 |
$.fn.almEmpty(alm);
|
1568 |
}
|
1569 |
}
|
1570 |
+
}, alm.speed);
|
1571 |
+
|
1572 |
+
}
|
1573 |
|
1574 |
|
1575 |
// Next Page Add-on
|
1603 |
//flag to prevent unnecessary loading of post on init. Hold for 2/10 of a second
|
1604 |
setTimeout(function () {
|
1605 |
alm.proceed = true;
|
1606 |
+
}, 150);
|
1607 |
|
1608 |
|
1609 |
|
1633 |
data = $('.alm-preloaded .alm-reveal', alm.el).html(); // Content of preloaded page
|
1634 |
$('.alm-preloaded', alm.el).remove();
|
1635 |
alm.preloaded_amount = 0; // Reset
|
|
|
1636 |
alm.AjaxLoadMore.pagingPreloadedInit(data);
|
1637 |
alm.paging_init = false;
|
1638 |
alm.init = false;
|
1730 |
|
1731 |
let ajaxloadmore = document.querySelectorAll('.ajax-load-more-wrap');
|
1732 |
if(ajaxloadmore.length){
|
1733 |
+
[...ajaxloadmore].forEach((alm, e) => {
|
|
|
1734 |
new $.ajaxloadmore($(alm), e);
|
1735 |
});
|
1736 |
}
|
core/src/js/helpers/helpers.js
CHANGED
@@ -76,12 +76,13 @@ if (!Array.from) {
|
|
76 |
}());
|
77 |
}
|
78 |
|
|
|
79 |
let almGetParameterByName = function( name, url ) {
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
results = regex.exec(url);
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
};
|
76 |
}());
|
77 |
}
|
78 |
|
79 |
+
|
80 |
let almGetParameterByName = function( name, url ) {
|
81 |
+
if (!url) url = window.location.href;
|
82 |
+
name = name.replace(/[\[\]]/g, "\\$&");
|
83 |
+
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
|
84 |
results = regex.exec(url);
|
85 |
+
if (!results) return null;
|
86 |
+
if (!results[2]) return '';
|
87 |
+
return decodeURIComponent(results[2].replace(/\+/g, " "));
|
88 |
};
|
core/src/js/modules/masonry.js
CHANGED
@@ -48,8 +48,7 @@ let almMasonry = (container, items, selector, animation, horizontalOrder, speed,
|
|
48 |
|
49 |
// First Run
|
50 |
if(masonry_init && init){
|
51 |
-
container.imagesLoaded( () => {
|
52 |
-
items.fadeIn(speed);
|
53 |
container.masonry({
|
54 |
itemSelector: selector,
|
55 |
transitionDuration: duration,
|
@@ -64,16 +63,16 @@ let almMasonry = (container, items, selector, animation, horizontalOrder, speed,
|
|
64 |
opacity: 1
|
65 |
}
|
66 |
});
|
67 |
-
|
68 |
});
|
69 |
}
|
70 |
|
71 |
// Standard
|
72 |
else{
|
73 |
-
container.append( items ); // Append new items
|
74 |
-
|
75 |
-
items.show();
|
76 |
-
container.masonry( 'appended', items );
|
77 |
});
|
78 |
}
|
79 |
|
@@ -85,3 +84,18 @@ let almMasonry = (container, items, selector, animation, horizontalOrder, speed,
|
|
85 |
}
|
86 |
|
87 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
|
49 |
// First Run
|
50 |
if(masonry_init && init){
|
51 |
+
container.imagesLoaded( () => {
|
|
|
52 |
container.masonry({
|
53 |
itemSelector: selector,
|
54 |
transitionDuration: duration,
|
63 |
opacity: 1
|
64 |
}
|
65 |
});
|
66 |
+
almMasonryFadeIn(container[0].parentNode, speed);
|
67 |
});
|
68 |
}
|
69 |
|
70 |
// Standard
|
71 |
else{
|
72 |
+
//container.append( items ); // Append new items
|
73 |
+
items.imagesLoaded( () => {
|
74 |
+
//items.show();
|
75 |
+
container.append(items).masonry( 'appended', items );
|
76 |
});
|
77 |
}
|
78 |
|
84 |
}
|
85 |
|
86 |
};
|
87 |
+
|
88 |
+
|
89 |
+
// Fade in masonry on initial page load
|
90 |
+
let almMasonryFadeIn = (element, speed) => {
|
91 |
+
speed = speed/10;
|
92 |
+
let op = parseInt(element.style.opacity); // initial opacity
|
93 |
+
let timer = setInterval(function () {
|
94 |
+
if (op > 0.9){
|
95 |
+
element.style.opacity = 1;
|
96 |
+
clearInterval(timer);
|
97 |
+
}
|
98 |
+
element.style.opacity = op;
|
99 |
+
op += 0.1;
|
100 |
+
}, speed);
|
101 |
+
}
|
core/src/scss/ajax-load-more.scss
CHANGED
@@ -208,22 +208,24 @@
|
|
208 |
* Generic alm-listing styles
|
209 |
* @since 1.0.0
|
210 |
*/
|
211 |
-
|
212 |
.alm-listing{
|
213 |
margin: 0;
|
214 |
padding: 0;
|
215 |
-
li
|
|
|
|
|
216 |
background: none;
|
217 |
-
margin: 0 0 30px;
|
218 |
padding: 0 0 0 170px;
|
219 |
overflow: hidden;
|
220 |
position: relative;
|
221 |
list-style: none;
|
222 |
-
&.no-img{
|
223 |
padding: 0;
|
224 |
}
|
225 |
p{
|
226 |
-
margin: 0;
|
227 |
}
|
228 |
h3{
|
229 |
margin: 0 0 10px;
|
@@ -234,5 +236,5 @@
|
|
234 |
top: 0;
|
235 |
border-radius: 2px;
|
236 |
}
|
237 |
-
}
|
238 |
-
}
|
208 |
* Generic alm-listing styles
|
209 |
* @since 1.0.0
|
210 |
*/
|
211 |
+
|
212 |
.alm-listing{
|
213 |
margin: 0;
|
214 |
padding: 0;
|
215 |
+
.alm-reveal > li,
|
216 |
+
.alm-paging-content > li,
|
217 |
+
> li{
|
218 |
background: none;
|
219 |
+
margin: 0 0 30px;
|
220 |
padding: 0 0 0 170px;
|
221 |
overflow: hidden;
|
222 |
position: relative;
|
223 |
list-style: none;
|
224 |
+
&.no-img{
|
225 |
padding: 0;
|
226 |
}
|
227 |
p{
|
228 |
+
margin: 0;
|
229 |
}
|
230 |
h3{
|
231 |
margin: 0 0 10px;
|
236 |
top: 0;
|
237 |
border-radius: 2px;
|
238 |
}
|
239 |
+
}
|
240 |
+
}
|
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: 2018-
|
6 |
"PO-Revision-Date: 2017-10-05 16:14-0500\n"
|
7 |
"Last-Translator: Darren Cooney <darren@connekthq.com>\n"
|
8 |
"Language-Team: \n"
|
@@ -16,8 +16,8 @@ msgstr ""
|
|
16 |
"X-Poedit-KeywordsList: __;_e\n"
|
17 |
"X-Poedit-SearchPath-0: ..\n"
|
18 |
|
19 |
-
#: ../admin/admin-functions.php:32 ../admin/admin.php:
|
20 |
-
#: ../admin/admin.php:
|
21 |
#: ../admin/views/settings.php:60
|
22 |
msgid "Cache"
|
23 |
msgstr ""
|
@@ -77,8 +77,8 @@ msgid ""
|
|
77 |
"absolutely zero restrictions."
|
78 |
msgstr ""
|
79 |
|
80 |
-
#: ../admin/admin-functions.php:80 ../admin/admin.php:
|
81 |
-
#: ../admin/admin.php:
|
82 |
#: ../admin/views/settings.php:62
|
83 |
msgid "Filters"
|
84 |
msgstr ""
|
@@ -220,8 +220,8 @@ msgid ""
|
|
220 |
"load-more-licenses\">Licenses</a> section and input your license keys."
|
221 |
msgstr ""
|
222 |
|
223 |
-
#: ../admin/admin.php:125 ../admin/admin.php:185 ../admin/admin.php:
|
224 |
-
#: ../admin/admin.php:
|
225 |
msgid "You don't belong here."
|
226 |
msgstr ""
|
227 |
|
@@ -244,7 +244,7 @@ msgid "Applying layout"
|
|
244 |
msgstr ""
|
245 |
|
246 |
#: ../admin/admin.php:218 ../admin/editor/editor-build.php:72
|
247 |
-
#: ../admin/views/repeater-templates.php:
|
248 |
msgid "Template Updated"
|
249 |
msgstr ""
|
250 |
|
@@ -297,115 +297,123 @@ msgstr ""
|
|
297 |
msgid "Error Saving Settings"
|
298 |
msgstr ""
|
299 |
|
300 |
-
#: ../admin/admin.php:
|
301 |
msgid ""
|
302 |
"[Ajax Load More] Error opening default repeater template - Please check your "
|
303 |
"file path and ensure your server is configured to allow Ajax Load More to "
|
304 |
"read and write files within the /ajax-load-more/core/repeater directory"
|
305 |
msgstr ""
|
306 |
|
307 |
-
#: ../admin/admin.php:
|
308 |
msgid ""
|
309 |
"[Ajax Load More] Error updating default repeater template - Please check "
|
310 |
"your file path and ensure your server is configured to allow Ajax Load More "
|
311 |
"to read and write files within the /ajax-load-more/core/repeater directory."
|
312 |
msgstr ""
|
313 |
|
314 |
-
#: ../admin/admin.php:
|
315 |
msgid "[Ajax Load More] Unable to open repeater template - "
|
316 |
msgstr ""
|
317 |
|
318 |
-
#: ../admin/admin.php:
|
319 |
msgid "[Ajax Load More] Error saving repeater template - "
|
320 |
msgstr ""
|
321 |
|
322 |
-
#: ../admin/admin.php:
|
|
|
|
|
|
|
|
|
323 |
msgid "Error Writing File"
|
324 |
msgstr ""
|
325 |
|
326 |
-
#: ../admin/admin.php:
|
|
|
|
|
|
|
|
|
327 |
msgid "Container Type"
|
328 |
msgstr ""
|
329 |
|
330 |
-
#: ../admin/admin.php:
|
331 |
msgid "Container Classes"
|
332 |
msgstr ""
|
333 |
|
334 |
-
#: ../admin/admin.php:
|
335 |
msgid "Disable CSS"
|
336 |
msgstr ""
|
337 |
|
338 |
-
#: ../admin/admin.php:
|
339 |
msgid "Button/Loading Style"
|
340 |
msgstr ""
|
341 |
|
342 |
-
#: ../admin/admin.php:
|
343 |
msgid "Button Classes"
|
344 |
msgstr ""
|
345 |
|
346 |
-
#: ../admin/admin.php:
|
347 |
msgid "Load CSS Inline"
|
348 |
msgstr ""
|
349 |
|
350 |
-
#: ../admin/admin.php:
|
351 |
msgid "Top of Page"
|
352 |
msgstr ""
|
353 |
|
354 |
-
#: ../admin/admin.php:
|
355 |
msgid "Dynamic Content"
|
356 |
msgstr ""
|
357 |
|
358 |
-
#: ../admin/admin.php:
|
359 |
msgid "Editor Button"
|
360 |
msgstr ""
|
361 |
|
362 |
-
#: ../admin/admin.php:
|
363 |
msgid "Error Notices"
|
364 |
msgstr ""
|
365 |
|
366 |
-
#: ../admin/admin.php:
|
367 |
msgid ""
|
368 |
"Customize the user experience of Ajax Load More by updating the fields below."
|
369 |
msgstr ""
|
370 |
|
371 |
-
#: ../admin/admin.php:
|
372 |
msgid "The following settings affect the WordPress admin area only."
|
373 |
msgstr ""
|
374 |
|
375 |
-
#: ../admin/admin.php:
|
376 |
msgid "I want to use my own CSS styles."
|
377 |
msgstr ""
|
378 |
|
379 |
-
#: ../admin/admin.php:
|
380 |
msgid "View Ajax Load More CSS"
|
381 |
msgstr ""
|
382 |
|
383 |
-
#: ../admin/admin.php:
|
384 |
msgid "Hide shortcode button in WYSIWYG editor."
|
385 |
msgstr ""
|
386 |
|
387 |
-
#: ../admin/admin.php:
|
388 |
msgid ""
|
389 |
"Display error messaging regarding repeater template updates in the browser "
|
390 |
"console."
|
391 |
msgstr ""
|
392 |
|
393 |
-
#: ../admin/admin.php:
|
394 |
msgid ""
|
395 |
"Disable dynamic population of categories, tags and authors in the Shortcode "
|
396 |
"Builder.<span style=\"display:block\">Recommended if you have a large number "
|
397 |
"of categories, tags and/or authors."
|
398 |
msgstr ""
|
399 |
|
400 |
-
#: ../admin/admin.php:
|
401 |
msgid "Ajax Posts Here"
|
402 |
msgstr ""
|
403 |
|
404 |
-
#: ../admin/admin.php:
|
405 |
msgid "You can modify the container type when building a shortcode."
|
406 |
msgstr ""
|
407 |
|
408 |
-
#: ../admin/admin.php:
|
409 |
msgid ""
|
410 |
"Add custom classes to the <i>.alm-listing</i> container - classes are "
|
411 |
"applied globally and will appear with every instance of Ajax Load More. "
|
@@ -413,45 +421,45 @@ msgid ""
|
|
413 |
"shortcode.</span>"
|
414 |
msgstr ""
|
415 |
|
416 |
-
#: ../admin/admin.php:
|
417 |
msgid ""
|
418 |
"Select an Ajax loading style - you can choose between a <strong>Button</"
|
419 |
"strong> or <strong>Infinite Scroll</strong>"
|
420 |
msgstr ""
|
421 |
|
422 |
-
#: ../admin/admin.php:
|
423 |
msgid "Button"
|
424 |
msgstr ""
|
425 |
|
426 |
-
#: ../admin/admin.php:
|
427 |
msgid "Infinite Scroll (No Button)"
|
428 |
msgstr ""
|
429 |
|
430 |
-
#: ../admin/admin.php:
|
431 |
msgid "Preview"
|
432 |
msgstr ""
|
433 |
|
434 |
-
#: ../admin/admin.php:
|
435 |
#: ../core/classes/class.alm-shortcode.php:151
|
436 |
msgid "Older Posts"
|
437 |
msgstr ""
|
438 |
|
439 |
-
#: ../admin/admin.php:
|
440 |
msgid "Improve site performance by loading Ajax Load More CSS inline"
|
441 |
msgstr ""
|
442 |
|
443 |
-
#: ../admin/admin.php:
|
444 |
msgid "Add classes to your <strong>Load More</strong> button"
|
445 |
msgstr ""
|
446 |
|
447 |
-
#: ../admin/admin.php:
|
448 |
msgid ""
|
449 |
"On initial page load, move the user's browser window to the top of the "
|
450 |
"screen.<span style=\"display:block\">This <u>may</u> help prevent the "
|
451 |
"loading of unnecessary posts.</span>"
|
452 |
msgstr ""
|
453 |
|
454 |
-
#: ../admin/admin.php:
|
455 |
msgid ""
|
456 |
"Enable <a href=\"https://codex.wordpress.org/WordPress_Nonces\" target="
|
457 |
"\"_blank\">WP nonce</a> verification to help protect URLs against certain "
|
@@ -477,15 +485,15 @@ msgstr ""
|
|
477 |
|
478 |
#: ../admin/includes/components/example-list.php:2
|
479 |
#: ../admin/shortcode-builder/shortcode-builder.php:3
|
480 |
-
#: ../admin/views/repeater-templates.php:
|
481 |
-
#: ../admin/views/repeater-templates.php:
|
482 |
msgid "Collapse All"
|
483 |
msgstr ""
|
484 |
|
485 |
#: ../admin/includes/components/example-list.php:2
|
486 |
#: ../admin/shortcode-builder/shortcode-builder.php:4
|
487 |
-
#: ../admin/views/repeater-templates.php:
|
488 |
-
#: ../admin/views/repeater-templates.php:
|
489 |
msgid "Expand All"
|
490 |
msgstr ""
|
491 |
|
@@ -661,75 +669,26 @@ msgstr ""
|
|
661 |
msgid "Read/Write Access"
|
662 |
msgstr ""
|
663 |
|
664 |
-
#: ../admin/includes/cta/writeable.php:
|
665 |
msgid ""
|
666 |
-
"<p class=\"writeable-title\"><i class=\"fa fa-check\"></i><strong>
|
667 |
-
"
|
668 |
-
"
|
669 |
msgstr ""
|
670 |
|
671 |
-
#: ../admin/includes/cta/writeable.php:
|
672 |
msgid ""
|
673 |
-
"<p class=\"writeable-title\"><i class=\"fa fa-exclamation\"></
|
674 |
-
"
|
675 |
-
"
|
676 |
-
"
|
677 |
-
"or site administrator for more information."
|
678 |
msgstr ""
|
679 |
|
680 |
-
#: ../admin/includes/cta/writeable.php:
|
681 |
msgid ""
|
682 |
-
"<p class=\"writeable-title\"><i class=\"fa fa-exclamation\"></
|
683 |
-
"
|
684 |
-
"Directory access may not be granted."
|
685 |
-
msgstr ""
|
686 |
-
|
687 |
-
#: ../admin/includes/cta/writeable.php:26
|
688 |
-
msgid ""
|
689 |
-
"<p class=\"writeable-title\"><i class=\"fa fa-check\"></i><strong>Custom "
|
690 |
-
"Repeaters</strong></p><p class=\"desc\">Nice! Read/Write access is enabled "
|
691 |
-
"within the /ajax-load-more-repeaters/repeaters/ directory."
|
692 |
-
msgstr ""
|
693 |
-
|
694 |
-
#: ../admin/includes/cta/writeable.php:28
|
695 |
-
msgid ""
|
696 |
-
"<p class=\"writeable-title\"><i class=\"fa fa-exclamation\"></i><strong>ALM "
|
697 |
-
"Custom Repeaters</strong></p><p class=\"desc\">Access Denied! You must "
|
698 |
-
"enable read and write access for Ajax Load More Custom Repeaters directory (/"
|
699 |
-
"ajax-load-more-repeaters/repeaters/) in order to save repeater template data."
|
700 |
-
"<br/><br/>Please contact your hosting provider or site administrator for "
|
701 |
-
"more information."
|
702 |
-
msgstr ""
|
703 |
-
|
704 |
-
#: ../admin/includes/cta/writeable.php:30
|
705 |
-
msgid ""
|
706 |
-
"<p class=\"writeable-title\"><i class=\"fa fa-exclamation\"></i><strong>ALM "
|
707 |
-
"Custom Repeaters</strong></p><p class=\"desc\">Unable to locate "
|
708 |
-
"configuration file. Directory access may not be granted."
|
709 |
-
msgstr ""
|
710 |
-
|
711 |
-
#: ../admin/includes/cta/writeable.php:42
|
712 |
-
msgid ""
|
713 |
-
"<p class=\"writeable-title\"><i class=\"fa fa-check\"></i><strong>Custom "
|
714 |
-
"Repeaters</strong></p><p class=\"desc\">Read/Write access is enabled within "
|
715 |
-
"the /ajax-load-more-repeaters-v2/repeaters/ directory."
|
716 |
-
msgstr ""
|
717 |
-
|
718 |
-
#: ../admin/includes/cta/writeable.php:44
|
719 |
-
msgid ""
|
720 |
-
"<p class=\"writeable-title\"><i class=\"fa fa-exclamation\"></i><strong>ALM "
|
721 |
-
"- Custom Repeaters v2</strong></p><p class=\"desc\">Access Denied! You must "
|
722 |
-
"enable read and write access for Ajax Load More Unlimited directory (/ajax-"
|
723 |
-
"load-more-repeaters-v2/repeaters/) in order to save repeater template data."
|
724 |
-
"<br/><br/>Please contact your hosting provider or site administrator for "
|
725 |
-
"more information."
|
726 |
-
msgstr ""
|
727 |
-
|
728 |
-
#: ../admin/includes/cta/writeable.php:46
|
729 |
-
msgid ""
|
730 |
-
"<p class=\"writeable-title\"><i class=\"fa fa-exclamation\"></i><strong>ALM "
|
731 |
-
"Unlimited</strong></p><p class=\"desc\">Unable to locate configuration file. "
|
732 |
-
"Directory access may not be granted."
|
733 |
msgstr ""
|
734 |
|
735 |
#: ../admin/shortcode-builder/components/acf.php:3
|
@@ -758,10 +717,10 @@ msgstr ""
|
|
758 |
#: ../admin/shortcode-builder/components/users.php:13
|
759 |
#: ../admin/shortcode-builder/shortcode-builder.php:202
|
760 |
#: ../admin/shortcode-builder/shortcode-builder.php:262
|
761 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
762 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
763 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
764 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
765 |
msgid "True"
|
766 |
msgstr ""
|
767 |
|
@@ -783,10 +742,10 @@ msgstr ""
|
|
783 |
#: ../admin/shortcode-builder/components/users.php:17
|
784 |
#: ../admin/shortcode-builder/shortcode-builder.php:206
|
785 |
#: ../admin/shortcode-builder/shortcode-builder.php:266
|
786 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
787 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
788 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
789 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
790 |
msgid "False"
|
791 |
msgstr ""
|
792 |
|
@@ -931,8 +890,8 @@ msgid "Select a repeater template that will display comment data."
|
|
931 |
msgstr ""
|
932 |
|
933 |
#: ../admin/shortcode-builder/components/comments.php:106
|
934 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
935 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
936 |
msgid "None"
|
937 |
msgstr ""
|
938 |
|
@@ -1204,7 +1163,7 @@ msgid "Enable the infinite scrolling of single posts."
|
|
1204 |
msgstr ""
|
1205 |
|
1206 |
#: ../admin/shortcode-builder/components/previous-post.php:38
|
1207 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1208 |
msgid "Taxonomy"
|
1209 |
msgstr ""
|
1210 |
|
@@ -1227,12 +1186,12 @@ msgid "Select Taxonomy"
|
|
1227 |
msgstr ""
|
1228 |
|
1229 |
#: ../admin/shortcode-builder/components/previous-post.php:53
|
1230 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1231 |
msgid "Category"
|
1232 |
msgstr ""
|
1233 |
|
1234 |
#: ../admin/shortcode-builder/components/previous-post.php:54
|
1235 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1236 |
msgid "Tag"
|
1237 |
msgstr ""
|
1238 |
|
@@ -1319,10 +1278,10 @@ msgid ""
|
|
1319 |
msgstr ""
|
1320 |
|
1321 |
#: ../admin/shortcode-builder/components/rest-api.php:88
|
1322 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1323 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1324 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1325 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1326 |
msgid "View Example"
|
1327 |
msgstr ""
|
1328 |
|
@@ -1369,8 +1328,8 @@ msgid "All Roles"
|
|
1369 |
msgstr ""
|
1370 |
|
1371 |
#: ../admin/shortcode-builder/components/users.php:55
|
1372 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1373 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1374 |
msgid "Include"
|
1375 |
msgstr ""
|
1376 |
|
@@ -1379,9 +1338,9 @@ msgid "A comma separated list of users to be included by ID"
|
|
1379 |
msgstr ""
|
1380 |
|
1381 |
#: ../admin/shortcode-builder/components/users.php:69
|
1382 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1383 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1384 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1385 |
msgid "Exclude"
|
1386 |
msgstr ""
|
1387 |
|
@@ -1406,12 +1365,12 @@ msgid "Sort users by Order and Orderby parameters"
|
|
1406 |
msgstr ""
|
1407 |
|
1408 |
#: ../admin/shortcode-builder/components/users.php:100
|
1409 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1410 |
msgid "Order"
|
1411 |
msgstr ""
|
1412 |
|
1413 |
#: ../admin/shortcode-builder/components/users.php:107
|
1414 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1415 |
msgid "Order By"
|
1416 |
msgstr ""
|
1417 |
|
@@ -1464,7 +1423,7 @@ msgid "Taxonomy Operator:"
|
|
1464 |
msgstr ""
|
1465 |
|
1466 |
#: ../admin/shortcode-builder/includes/tax-query-options.php:36
|
1467 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1468 |
msgid "Relation:"
|
1469 |
msgstr ""
|
1470 |
|
@@ -1635,404 +1594,388 @@ msgid "Select a loading transition style."
|
|
1635 |
msgstr ""
|
1636 |
|
1637 |
#: ../admin/shortcode-builder/shortcode-builder.php:286
|
1638 |
-
msgid "Fade"
|
1639 |
msgstr ""
|
1640 |
|
1641 |
#: ../admin/shortcode-builder/shortcode-builder.php:287
|
1642 |
-
msgid "Slide"
|
1643 |
-
msgstr ""
|
1644 |
-
|
1645 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:288
|
1646 |
msgid "Masonry"
|
1647 |
msgstr ""
|
1648 |
|
1649 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1650 |
msgid "Masonry Options"
|
1651 |
msgstr ""
|
1652 |
|
1653 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1654 |
msgid "Ajax Load More does not support all available Masonry options"
|
1655 |
msgstr ""
|
1656 |
|
1657 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1658 |
msgid ""
|
1659 |
"The following Masonry <a href=\"https://masonry.desandro.com/options.html\" "
|
1660 |
"target=\"_blank\">options</a> are supported by Ajax Load More"
|
1661 |
msgstr ""
|
1662 |
|
1663 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1664 |
msgid "Item Selector"
|
1665 |
msgstr ""
|
1666 |
|
1667 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1668 |
msgid ""
|
1669 |
"Item Selector is required for Masonry to target each element loaded with Ajax"
|
1670 |
msgstr ""
|
1671 |
|
1672 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1673 |
msgid "Enter the target classname of each masonry item"
|
1674 |
msgstr ""
|
1675 |
|
1676 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1677 |
msgid "Animation Type"
|
1678 |
msgstr ""
|
1679 |
|
1680 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1681 |
msgid "All Masonry animations include a fade-in effect as items are loaded"
|
1682 |
msgstr ""
|
1683 |
|
1684 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1685 |
msgid "Select a loading transition for Masonry items"
|
1686 |
msgstr ""
|
1687 |
|
1688 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1689 |
msgid "Default (Zoom)"
|
1690 |
msgstr ""
|
1691 |
|
1692 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1693 |
msgid "Items scale up from 50% to 100% size on load"
|
1694 |
msgstr ""
|
1695 |
|
1696 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1697 |
msgid "Zoom Out"
|
1698 |
msgstr ""
|
1699 |
|
1700 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1701 |
msgid "Items scale down from 125% to 100% size on load"
|
1702 |
msgstr ""
|
1703 |
|
1704 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1705 |
msgid "Slide Up"
|
1706 |
msgstr ""
|
1707 |
|
1708 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1709 |
msgid "Items animate up as they are loaded into view."
|
1710 |
msgstr ""
|
1711 |
|
1712 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1713 |
msgid "Slide Down"
|
1714 |
msgstr ""
|
1715 |
|
1716 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1717 |
msgid "Items animate down when loaded into view."
|
1718 |
msgstr ""
|
1719 |
|
1720 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1721 |
msgid "Horizontal Order"
|
1722 |
msgstr ""
|
1723 |
|
1724 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1725 |
msgid "Lays out items to maintain left-to-right order"
|
1726 |
msgstr ""
|
1727 |
|
1728 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1729 |
msgid "Transition Container"
|
1730 |
msgstr ""
|
1731 |
|
1732 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1733 |
msgid ""
|
1734 |
"Removing the transition container may have undesired results and is not "
|
1735 |
"recommended"
|
1736 |
msgstr ""
|
1737 |
|
1738 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1739 |
msgid ""
|
1740 |
"Remove the <span>.alm-reveal</span> loading container from Ajax Load More"
|
1741 |
msgstr ""
|
1742 |
|
1743 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1744 |
msgid "Remove Container"
|
1745 |
msgstr ""
|
1746 |
|
1747 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1748 |
msgid "Transition Container Classes"
|
1749 |
msgstr ""
|
1750 |
|
1751 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1752 |
msgid ""
|
1753 |
"This setting is not available with the Previous Post or Next Page add-ons"
|
1754 |
msgstr ""
|
1755 |
|
1756 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1757 |
msgid "Add custom classes to the <span>.alm-reveal</span> loading container"
|
1758 |
msgstr ""
|
1759 |
|
1760 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:434
|
1761 |
-
msgid "Speed"
|
1762 |
-
msgstr ""
|
1763 |
-
|
1764 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:434
|
1765 |
-
msgid "0.5 seconds = 500, 1 second = 1000 etc"
|
1766 |
-
msgstr ""
|
1767 |
-
|
1768 |
#: ../admin/shortcode-builder/shortcode-builder.php:435
|
1769 |
-
msgid "The speed of the loading transition in milliseconds"
|
1770 |
-
msgstr ""
|
1771 |
-
|
1772 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:449
|
1773 |
msgid "Pause"
|
1774 |
msgstr ""
|
1775 |
|
1776 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1777 |
msgid ""
|
1778 |
"Do <u>NOT</u> load any posts until user clicks the <em>Load More</em> button."
|
1779 |
msgstr ""
|
1780 |
|
1781 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1782 |
msgid "Progress Bar"
|
1783 |
msgstr ""
|
1784 |
|
1785 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1786 |
msgid ""
|
1787 |
"Display progress bar indicator at the top of the window while loading Ajax "
|
1788 |
"content"
|
1789 |
msgstr ""
|
1790 |
|
1791 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1792 |
msgid "Color"
|
1793 |
msgstr ""
|
1794 |
|
1795 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1796 |
msgid "Enter the hex color of the progress bar"
|
1797 |
msgstr ""
|
1798 |
|
1799 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1800 |
msgid "Images Loaded"
|
1801 |
msgstr ""
|
1802 |
|
1803 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1804 |
msgid "Wait for all images to load before displaying ajax loaded content"
|
1805 |
msgstr ""
|
1806 |
|
1807 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1808 |
msgid "Background images are not supported"
|
1809 |
msgstr ""
|
1810 |
|
1811 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1812 |
msgid "Destroy After"
|
1813 |
msgstr ""
|
1814 |
|
1815 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1816 |
msgid ""
|
1817 |
"Remove Ajax Load More functionality after {<em>n</em>} number of pages have "
|
1818 |
"been loaded."
|
1819 |
msgstr ""
|
1820 |
|
1821 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1822 |
msgid "Query Parameters"
|
1823 |
msgstr ""
|
1824 |
|
1825 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1826 |
msgid "Posts Per Page"
|
1827 |
msgstr ""
|
1828 |
|
1829 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1830 |
msgid "Select the number of posts to load with each request."
|
1831 |
msgstr ""
|
1832 |
|
1833 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1834 |
msgid "Post Type"
|
1835 |
msgstr ""
|
1836 |
|
1837 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1838 |
msgid "Select the Post Types to include in this Ajax Load More query."
|
1839 |
msgstr ""
|
1840 |
|
1841 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1842 |
msgid "Any"
|
1843 |
msgstr ""
|
1844 |
|
1845 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1846 |
msgid "Sticky Posts"
|
1847 |
msgstr ""
|
1848 |
|
1849 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1850 |
msgid "Sticky posts are only available for Posts"
|
1851 |
msgstr ""
|
1852 |
|
1853 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1854 |
msgid ""
|
1855 |
"Preserve the ordering of sticky posts by having them appear first in the "
|
1856 |
"Ajax listing."
|
1857 |
msgstr ""
|
1858 |
|
1859 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1860 |
msgid "Enable Sticky Posts"
|
1861 |
msgstr ""
|
1862 |
|
1863 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1864 |
msgid "Post Format"
|
1865 |
msgstr ""
|
1866 |
|
1867 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1868 |
msgid ""
|
1869 |
"Select a <a href=\"http://codex.wordpress.org/Post_Formats\" target=\"_blank"
|
1870 |
"\">Post Format</a> to query."
|
1871 |
msgstr ""
|
1872 |
|
1873 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1874 |
msgid "Select Post Format"
|
1875 |
msgstr ""
|
1876 |
|
1877 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1878 |
msgid "Standard"
|
1879 |
msgstr ""
|
1880 |
|
1881 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1882 |
msgid ""
|
1883 |
"A comma separated list of categories to include by slug. (design, research "
|
1884 |
"etc...)"
|
1885 |
msgstr ""
|
1886 |
|
1887 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1888 |
msgid ""
|
1889 |
"A comma separated list of categories to exclude by ID. (3, 12, 35 etc..)"
|
1890 |
msgstr ""
|
1891 |
|
1892 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1893 |
msgid ""
|
1894 |
"A comma separated list of tags to include by slug. (toronto, canada etc...)"
|
1895 |
msgstr ""
|
1896 |
|
1897 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1898 |
msgid "A comma separated list of tags to exclude by ID. (30, 12, 99 etc..)"
|
1899 |
msgstr ""
|
1900 |
|
1901 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1902 |
msgid "Select a taxonomy then select the terms and an operator."
|
1903 |
msgstr ""
|
1904 |
|
1905 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1906 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1907 |
msgid "Add Another"
|
1908 |
msgstr ""
|
1909 |
|
1910 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1911 |
msgid "Date"
|
1912 |
msgstr ""
|
1913 |
|
1914 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1915 |
msgid ""
|
1916 |
"Enter a year, month(number) and day to query by date archive.<br/>» <a "
|
1917 |
"href=\"admin.php?page=ajax-load-more-help§ion=examples#example-date\" "
|
1918 |
"target=\"_blank\">View Example</a>"
|
1919 |
msgstr ""
|
1920 |
|
1921 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1922 |
msgid "Year:"
|
1923 |
msgstr ""
|
1924 |
|
1925 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1926 |
msgid "Month:"
|
1927 |
msgstr ""
|
1928 |
|
1929 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1930 |
msgid "Day:"
|
1931 |
msgstr ""
|
1932 |
|
1933 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1934 |
msgid "Custom Fields (Meta_Query)"
|
1935 |
msgstr ""
|
1936 |
|
1937 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1938 |
msgid ""
|
1939 |
"Query for <a href=\"http://codex.wordpress.org/Class_Reference/WP_Meta_Query"
|
1940 |
"\" target=\"_blank\">custom field</a> by entering a custom field key, value "
|
1941 |
"and operator."
|
1942 |
msgstr ""
|
1943 |
|
1944 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1945 |
msgid ""
|
1946 |
"The logical relationship between each custom field when there is more than "
|
1947 |
"one"
|
1948 |
msgstr ""
|
1949 |
|
1950 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1951 |
msgid "Author"
|
1952 |
msgstr ""
|
1953 |
|
1954 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1955 |
msgid "Select an Author to query(by ID)."
|
1956 |
msgstr ""
|
1957 |
|
1958 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1959 |
msgid "Search Term"
|
1960 |
msgstr ""
|
1961 |
|
1962 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1963 |
msgid "Enter a search term to query."
|
1964 |
msgstr ""
|
1965 |
|
1966 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1967 |
msgid "Enter search term"
|
1968 |
msgstr ""
|
1969 |
|
1970 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1971 |
msgid "Post Parameters"
|
1972 |
msgstr ""
|
1973 |
|
1974 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1975 |
msgid "A comma separated list of post ID's to query."
|
1976 |
msgstr ""
|
1977 |
|
1978 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1979 |
msgid "225, 340, 818, etc..."
|
1980 |
msgstr ""
|
1981 |
|
1982 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1983 |
msgid "A comma separated list of post ID's to exclude from query."
|
1984 |
msgstr ""
|
1985 |
|
1986 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1987 |
msgid "Post Status"
|
1988 |
msgstr ""
|
1989 |
|
1990 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1991 |
msgid ""
|
1992 |
"Post Status parameters are only available for logged in (admin) users. Non "
|
1993 |
"logged in users will only have access to view content in a 'publish' or "
|
1994 |
"'inherit' state."
|
1995 |
msgstr ""
|
1996 |
|
1997 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
1998 |
msgid "Select status of the post."
|
1999 |
msgstr ""
|
2000 |
|
2001 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
2002 |
msgid "Published"
|
2003 |
msgstr ""
|
2004 |
|
2005 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
2006 |
msgid "Ordering"
|
2007 |
msgstr ""
|
2008 |
|
2009 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
2010 |
msgid "Sort posts by Order and Orderby parameters."
|
2011 |
msgstr ""
|
2012 |
|
2013 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
2014 |
msgid "Offset"
|
2015 |
msgstr ""
|
2016 |
|
2017 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
2018 |
msgid "Offset the initial query by <em>'n'</em> number of posts"
|
2019 |
msgstr ""
|
2020 |
|
2021 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
2022 |
msgid "Custom Arguments"
|
2023 |
msgstr ""
|
2024 |
|
2025 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
2026 |
msgid "A semicolon separated list of custom value:pair arguments."
|
2027 |
msgstr ""
|
2028 |
|
2029 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
2030 |
msgid ""
|
2031 |
"Custom Arguments can be used to query by parameters not available in the "
|
2032 |
"Shortcode Builder"
|
2033 |
msgstr ""
|
2034 |
|
2035 |
-
#: ../admin/shortcode-builder/shortcode-builder.php:
|
2036 |
msgid "event_display:upcoming"
|
2037 |
msgstr ""
|
2038 |
|
@@ -2198,39 +2141,39 @@ msgstr ""
|
|
2198 |
msgid "The library of editable templates for use within your theme"
|
2199 |
msgstr ""
|
2200 |
|
2201 |
-
#: ../admin/views/repeater-templates.php:
|
2202 |
-
#: ../admin/views/repeater-templates.php:
|
2203 |
msgid "File Location"
|
2204 |
msgstr ""
|
2205 |
|
2206 |
-
#: ../admin/views/repeater-templates.php:
|
2207 |
msgid "Templates Not Found"
|
2208 |
msgstr ""
|
2209 |
|
2210 |
-
#: ../admin/views/repeater-templates.php:
|
2211 |
msgid ""
|
2212 |
"Oh no - looks like you haven't added any Theme Repeater templates - you need "
|
2213 |
"to create and upload templates to your theme directory before you can access "
|
2214 |
"them in Ajax Load More"
|
2215 |
msgstr ""
|
2216 |
|
2217 |
-
#: ../admin/views/repeater-templates.php:
|
2218 |
msgid "Learn More About Theme Repeaters"
|
2219 |
msgstr ""
|
2220 |
|
2221 |
-
#: ../admin/views/repeater-templates.php:
|
2222 |
msgid "Default Template"
|
2223 |
msgstr ""
|
2224 |
|
2225 |
-
#: ../admin/views/repeater-templates.php:
|
2226 |
msgid "Enter the HTML and PHP code for the default template"
|
2227 |
msgstr ""
|
2228 |
|
2229 |
-
#: ../admin/views/repeater-templates.php:
|
2230 |
msgid "Save Template"
|
2231 |
msgstr ""
|
2232 |
|
2233 |
-
#: ../admin/views/repeater-templates.php:
|
2234 |
msgid ""
|
2235 |
"It appears you are loading the <a href=\"https://connekthq.com/plugins/ajax-"
|
2236 |
"load-more/docs/repeater-templates/#default-template\" target=\"_blank"
|
@@ -2239,23 +2182,19 @@ msgid ""
|
|
2239 |
"your server."
|
2240 |
msgstr ""
|
2241 |
|
2242 |
-
#: ../admin/views/repeater-templates.php:
|
2243 |
msgid "Saving template..."
|
2244 |
msgstr ""
|
2245 |
|
2246 |
-
#: ../admin/views/repeater-templates.php:
|
2247 |
-
msgid "Something went wrong and the data could not be saved."
|
2248 |
-
msgstr ""
|
2249 |
-
|
2250 |
-
#: ../admin/views/repeater-templates.php:358
|
2251 |
msgid "Updating template..."
|
2252 |
msgstr ""
|
2253 |
|
2254 |
-
#: ../admin/views/repeater-templates.php:
|
2255 |
msgid "What's a Repeater Template?"
|
2256 |
msgstr ""
|
2257 |
|
2258 |
-
#: ../admin/views/repeater-templates.php:
|
2259 |
msgid ""
|
2260 |
"A <a href=\"https://connekthq.com/plugins/ajax-load-more/docs/repeater-"
|
2261 |
"templates/\" target=\"_blank\">Repeater Template</a> is a snippet of code "
|
@@ -2263,7 +2202,7 @@ msgid ""
|
|
2263 |
"org/The_Loop\" target=\"_blank\">WordPress loop</a>"
|
2264 |
msgstr ""
|
2265 |
|
2266 |
-
#: ../admin/views/repeater-templates.php:
|
2267 |
msgid "Learn More"
|
2268 |
msgstr ""
|
2269 |
|
@@ -2327,11 +2266,15 @@ msgstr ""
|
|
2327 |
msgid "Copy Shortcode"
|
2328 |
msgstr ""
|
2329 |
|
2330 |
-
#: ../ajax-load-more.php:
|
|
|
|
|
|
|
|
|
2331 |
msgid "Settings"
|
2332 |
msgstr ""
|
2333 |
|
2334 |
-
#: ../core/functions.php:
|
2335 |
msgid "Pages:"
|
2336 |
msgstr ""
|
2337 |
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: Ajax Load More\n"
|
5 |
+
"POT-Creation-Date: 2018-04-17 19:26-0400\n"
|
6 |
"PO-Revision-Date: 2017-10-05 16:14-0500\n"
|
7 |
"Last-Translator: Darren Cooney <darren@connekthq.com>\n"
|
8 |
"Language-Team: \n"
|
16 |
"X-Poedit-KeywordsList: __;_e\n"
|
17 |
"X-Poedit-SearchPath-0: ..\n"
|
18 |
|
19 |
+
#: ../admin/admin-functions.php:32 ../admin/admin.php:443
|
20 |
+
#: ../admin/admin.php:444 ../admin/shortcode-builder/components/cache.php:3
|
21 |
#: ../admin/views/settings.php:60
|
22 |
msgid "Cache"
|
23 |
msgstr ""
|
77 |
"absolutely zero restrictions."
|
78 |
msgstr ""
|
79 |
|
80 |
+
#: ../admin/admin-functions.php:80 ../admin/admin.php:462
|
81 |
+
#: ../admin/admin.php:463 ../admin/shortcode-builder/components/filters.php:3
|
82 |
#: ../admin/views/settings.php:62
|
83 |
msgid "Filters"
|
84 |
msgstr ""
|
220 |
"load-more-licenses\">Licenses</a> section and input your license keys."
|
221 |
msgstr ""
|
222 |
|
223 |
+
#: ../admin/admin.php:125 ../admin/admin.php:185 ../admin/admin.php:799
|
224 |
+
#: ../admin/admin.php:844 ../admin/admin.php:894
|
225 |
msgid "You don't belong here."
|
226 |
msgstr ""
|
227 |
|
244 |
msgstr ""
|
245 |
|
246 |
#: ../admin/admin.php:218 ../admin/editor/editor-build.php:72
|
247 |
+
#: ../admin/views/repeater-templates.php:376
|
248 |
msgid "Template Updated"
|
249 |
msgstr ""
|
250 |
|
297 |
msgid "Error Saving Settings"
|
298 |
msgstr ""
|
299 |
|
300 |
+
#: ../admin/admin.php:330
|
301 |
msgid ""
|
302 |
"[Ajax Load More] Error opening default repeater template - Please check your "
|
303 |
"file path and ensure your server is configured to allow Ajax Load More to "
|
304 |
"read and write files within the /ajax-load-more/core/repeater directory"
|
305 |
msgstr ""
|
306 |
|
307 |
+
#: ../admin/admin.php:334
|
308 |
msgid ""
|
309 |
"[Ajax Load More] Error updating default repeater template - Please check "
|
310 |
"your file path and ensure your server is configured to allow Ajax Load More "
|
311 |
"to read and write files within the /ajax-load-more/core/repeater directory."
|
312 |
msgstr ""
|
313 |
|
314 |
+
#: ../admin/admin.php:756
|
315 |
msgid "[Ajax Load More] Unable to open repeater template - "
|
316 |
msgstr ""
|
317 |
|
318 |
+
#: ../admin/admin.php:760
|
319 |
msgid "[Ajax Load More] Error saving repeater template - "
|
320 |
msgstr ""
|
321 |
|
322 |
+
#: ../admin/admin.php:791
|
323 |
+
msgid "Template Saved Successfully"
|
324 |
+
msgstr ""
|
325 |
+
|
326 |
+
#: ../admin/admin.php:793
|
327 |
msgid "Error Writing File"
|
328 |
msgstr ""
|
329 |
|
330 |
+
#: ../admin/admin.php:793 ../admin/views/repeater-templates.php:317
|
331 |
+
msgid "Something went wrong and the data could not be saved."
|
332 |
+
msgstr ""
|
333 |
+
|
334 |
+
#: ../admin/admin.php:998 ../admin/shortcode-builder/shortcode-builder.php:113
|
335 |
msgid "Container Type"
|
336 |
msgstr ""
|
337 |
|
338 |
+
#: ../admin/admin.php:1006 ../admin/shortcode-builder/shortcode-builder.php:144
|
339 |
msgid "Container Classes"
|
340 |
msgstr ""
|
341 |
|
342 |
+
#: ../admin/admin.php:1014
|
343 |
msgid "Disable CSS"
|
344 |
msgstr ""
|
345 |
|
346 |
+
#: ../admin/admin.php:1022
|
347 |
msgid "Button/Loading Style"
|
348 |
msgstr ""
|
349 |
|
350 |
+
#: ../admin/admin.php:1030
|
351 |
msgid "Button Classes"
|
352 |
msgstr ""
|
353 |
|
354 |
+
#: ../admin/admin.php:1038
|
355 |
msgid "Load CSS Inline"
|
356 |
msgstr ""
|
357 |
|
358 |
+
#: ../admin/admin.php:1046
|
359 |
msgid "Top of Page"
|
360 |
msgstr ""
|
361 |
|
362 |
+
#: ../admin/admin.php:1054
|
363 |
msgid "Dynamic Content"
|
364 |
msgstr ""
|
365 |
|
366 |
+
#: ../admin/admin.php:1062
|
367 |
msgid "Editor Button"
|
368 |
msgstr ""
|
369 |
|
370 |
+
#: ../admin/admin.php:1070
|
371 |
msgid "Error Notices"
|
372 |
msgstr ""
|
373 |
|
374 |
+
#: ../admin/admin.php:1147
|
375 |
msgid ""
|
376 |
"Customize the user experience of Ajax Load More by updating the fields below."
|
377 |
msgstr ""
|
378 |
|
379 |
+
#: ../admin/admin.php:1160
|
380 |
msgid "The following settings affect the WordPress admin area only."
|
381 |
msgstr ""
|
382 |
|
383 |
+
#: ../admin/admin.php:1191
|
384 |
msgid "I want to use my own CSS styles."
|
385 |
msgstr ""
|
386 |
|
387 |
+
#: ../admin/admin.php:1191
|
388 |
msgid "View Ajax Load More CSS"
|
389 |
msgstr ""
|
390 |
|
391 |
+
#: ../admin/admin.php:1211
|
392 |
msgid "Hide shortcode button in WYSIWYG editor."
|
393 |
msgstr ""
|
394 |
|
395 |
+
#: ../admin/admin.php:1232
|
396 |
msgid ""
|
397 |
"Display error messaging regarding repeater template updates in the browser "
|
398 |
"console."
|
399 |
msgstr ""
|
400 |
|
401 |
+
#: ../admin/admin.php:1253
|
402 |
msgid ""
|
403 |
"Disable dynamic population of categories, tags and authors in the Shortcode "
|
404 |
"Builder.<span style=\"display:block\">Recommended if you have a large number "
|
405 |
"of categories, tags and/or authors."
|
406 |
msgstr ""
|
407 |
|
408 |
+
#: ../admin/admin.php:1274 ../admin/admin.php:1277
|
409 |
msgid "Ajax Posts Here"
|
410 |
msgstr ""
|
411 |
|
412 |
+
#: ../admin/admin.php:1279
|
413 |
msgid "You can modify the container type when building a shortcode."
|
414 |
msgstr ""
|
415 |
|
416 |
+
#: ../admin/admin.php:1296
|
417 |
msgid ""
|
418 |
"Add custom classes to the <i>.alm-listing</i> container - classes are "
|
419 |
"applied globally and will appear with every instance of Ajax Load More. "
|
421 |
"shortcode.</span>"
|
422 |
msgstr ""
|
423 |
|
424 |
+
#: ../admin/admin.php:1358
|
425 |
msgid ""
|
426 |
"Select an Ajax loading style - you can choose between a <strong>Button</"
|
427 |
"strong> or <strong>Infinite Scroll</strong>"
|
428 |
msgstr ""
|
429 |
|
430 |
+
#: ../admin/admin.php:1363
|
431 |
msgid "Button"
|
432 |
msgstr ""
|
433 |
|
434 |
+
#: ../admin/admin.php:1371
|
435 |
msgid "Infinite Scroll (No Button)"
|
436 |
msgstr ""
|
437 |
|
438 |
+
#: ../admin/admin.php:1384
|
439 |
msgid "Preview"
|
440 |
msgstr ""
|
441 |
|
442 |
+
#: ../admin/admin.php:1384 ../admin/shortcode-builder/shortcode-builder.php:168
|
443 |
#: ../core/classes/class.alm-shortcode.php:151
|
444 |
msgid "Older Posts"
|
445 |
msgstr ""
|
446 |
|
447 |
+
#: ../admin/admin.php:1405
|
448 |
msgid "Improve site performance by loading Ajax Load More CSS inline"
|
449 |
msgstr ""
|
450 |
|
451 |
+
#: ../admin/admin.php:1425
|
452 |
msgid "Add classes to your <strong>Load More</strong> button"
|
453 |
msgstr ""
|
454 |
|
455 |
+
#: ../admin/admin.php:1470
|
456 |
msgid ""
|
457 |
"On initial page load, move the user's browser window to the top of the "
|
458 |
"screen.<span style=\"display:block\">This <u>may</u> help prevent the "
|
459 |
"loading of unnecessary posts.</span>"
|
460 |
msgstr ""
|
461 |
|
462 |
+
#: ../admin/admin.php:1491
|
463 |
msgid ""
|
464 |
"Enable <a href=\"https://codex.wordpress.org/WordPress_Nonces\" target="
|
465 |
"\"_blank\">WP nonce</a> verification to help protect URLs against certain "
|
485 |
|
486 |
#: ../admin/includes/components/example-list.php:2
|
487 |
#: ../admin/shortcode-builder/shortcode-builder.php:3
|
488 |
+
#: ../admin/views/repeater-templates.php:104
|
489 |
+
#: ../admin/views/repeater-templates.php:134
|
490 |
msgid "Collapse All"
|
491 |
msgstr ""
|
492 |
|
493 |
#: ../admin/includes/components/example-list.php:2
|
494 |
#: ../admin/shortcode-builder/shortcode-builder.php:4
|
495 |
+
#: ../admin/views/repeater-templates.php:105
|
496 |
+
#: ../admin/views/repeater-templates.php:135
|
497 |
msgid "Expand All"
|
498 |
msgstr ""
|
499 |
|
669 |
msgid "Read/Write Access"
|
670 |
msgstr ""
|
671 |
|
672 |
+
#: ../admin/includes/cta/writeable.php:12
|
673 |
msgid ""
|
674 |
+
"<p class=\"writeable-title\"><i class=\"fa fa-check\"></i><strong>Enabled</"
|
675 |
+
"strong></p><p class=\"desc\">Read/Write access is enabled within the "
|
676 |
+
"Repeater Template directory."
|
677 |
msgstr ""
|
678 |
|
679 |
+
#: ../admin/includes/cta/writeable.php:14
|
680 |
msgid ""
|
681 |
+
"<p class=\"writeable-title\"><i class=\"fa fa-exclamation\"></"
|
682 |
+
"i><strong>Access Denied</strong></p><p class=\"desc\">You must enable read "
|
683 |
+
"and write access to save repeater template data.<br/><br/>Please contact "
|
684 |
+
"your hosting provider or site administrator for more information.</p>"
|
|
|
685 |
msgstr ""
|
686 |
|
687 |
+
#: ../admin/includes/cta/writeable.php:17
|
688 |
msgid ""
|
689 |
+
"<p class=\"writeable-title\"><i class=\"fa fa-exclamation\"></"
|
690 |
+
"i><strong>Error</strong></p><p class=\"desc\">Unable to locate configuration "
|
691 |
+
"file. Directory access may not be granted."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
692 |
msgstr ""
|
693 |
|
694 |
#: ../admin/shortcode-builder/components/acf.php:3
|
717 |
#: ../admin/shortcode-builder/components/users.php:13
|
718 |
#: ../admin/shortcode-builder/shortcode-builder.php:202
|
719 |
#: ../admin/shortcode-builder/shortcode-builder.php:262
|
720 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:378
|
721 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:445
|
722 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:473
|
723 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:521
|
724 |
msgid "True"
|
725 |
msgstr ""
|
726 |
|
742 |
#: ../admin/shortcode-builder/components/users.php:17
|
743 |
#: ../admin/shortcode-builder/shortcode-builder.php:206
|
744 |
#: ../admin/shortcode-builder/shortcode-builder.php:266
|
745 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:382
|
746 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:449
|
747 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:477
|
748 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:525
|
749 |
msgid "False"
|
750 |
msgstr ""
|
751 |
|
890 |
msgstr ""
|
891 |
|
892 |
#: ../admin/shortcode-builder/components/comments.php:106
|
893 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:288
|
894 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:358
|
895 |
msgid "None"
|
896 |
msgstr ""
|
897 |
|
1163 |
msgstr ""
|
1164 |
|
1165 |
#: ../admin/shortcode-builder/components/previous-post.php:38
|
1166 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:794
|
1167 |
msgid "Taxonomy"
|
1168 |
msgstr ""
|
1169 |
|
1186 |
msgstr ""
|
1187 |
|
1188 |
#: ../admin/shortcode-builder/components/previous-post.php:53
|
1189 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:675
|
1190 |
msgid "Category"
|
1191 |
msgstr ""
|
1192 |
|
1193 |
#: ../admin/shortcode-builder/components/previous-post.php:54
|
1194 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:735
|
1195 |
msgid "Tag"
|
1196 |
msgstr ""
|
1197 |
|
1278 |
msgstr ""
|
1279 |
|
1280 |
#: ../admin/shortcode-builder/components/rest-api.php:88
|
1281 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:464
|
1282 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:680
|
1283 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:739
|
1284 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:939
|
1285 |
msgid "View Example"
|
1286 |
msgstr ""
|
1287 |
|
1328 |
msgstr ""
|
1329 |
|
1330 |
#: ../admin/shortcode-builder/components/users.php:55
|
1331 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:738
|
1332 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:927
|
1333 |
msgid "Include"
|
1334 |
msgstr ""
|
1335 |
|
1338 |
msgstr ""
|
1339 |
|
1340 |
#: ../admin/shortcode-builder/components/users.php:69
|
1341 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:702
|
1342 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:760
|
1343 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:938
|
1344 |
msgid "Exclude"
|
1345 |
msgstr ""
|
1346 |
|
1365 |
msgstr ""
|
1366 |
|
1367 |
#: ../admin/shortcode-builder/components/users.php:100
|
1368 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:979
|
1369 |
msgid "Order"
|
1370 |
msgstr ""
|
1371 |
|
1372 |
#: ../admin/shortcode-builder/components/users.php:107
|
1373 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:986
|
1374 |
msgid "Order By"
|
1375 |
msgstr ""
|
1376 |
|
1423 |
msgstr ""
|
1424 |
|
1425 |
#: ../admin/shortcode-builder/includes/tax-query-options.php:36
|
1426 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:854
|
1427 |
msgid "Relation:"
|
1428 |
msgstr ""
|
1429 |
|
1594 |
msgstr ""
|
1595 |
|
1596 |
#: ../admin/shortcode-builder/shortcode-builder.php:286
|
1597 |
+
msgid "Fade In"
|
1598 |
msgstr ""
|
1599 |
|
1600 |
#: ../admin/shortcode-builder/shortcode-builder.php:287
|
|
|
|
|
|
|
|
|
1601 |
msgid "Masonry"
|
1602 |
msgstr ""
|
1603 |
|
1604 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:300
|
1605 |
msgid "Masonry Options"
|
1606 |
msgstr ""
|
1607 |
|
1608 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:300
|
1609 |
msgid "Ajax Load More does not support all available Masonry options"
|
1610 |
msgstr ""
|
1611 |
|
1612 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:301
|
1613 |
msgid ""
|
1614 |
"The following Masonry <a href=\"https://masonry.desandro.com/options.html\" "
|
1615 |
"target=\"_blank\">options</a> are supported by Ajax Load More"
|
1616 |
msgstr ""
|
1617 |
|
1618 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:306
|
1619 |
msgid "Item Selector"
|
1620 |
msgstr ""
|
1621 |
|
1622 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:306
|
1623 |
msgid ""
|
1624 |
"Item Selector is required for Masonry to target each element loaded with Ajax"
|
1625 |
msgstr ""
|
1626 |
|
1627 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:307
|
1628 |
msgid "Enter the target classname of each masonry item"
|
1629 |
msgstr ""
|
1630 |
|
1631 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:321
|
1632 |
msgid "Animation Type"
|
1633 |
msgstr ""
|
1634 |
|
1635 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:321
|
1636 |
msgid "All Masonry animations include a fade-in effect as items are loaded"
|
1637 |
msgstr ""
|
1638 |
|
1639 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:322
|
1640 |
msgid "Select a loading transition for Masonry items"
|
1641 |
msgstr ""
|
1642 |
|
1643 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:330
|
1644 |
msgid "Default (Zoom)"
|
1645 |
msgstr ""
|
1646 |
|
1647 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:331
|
1648 |
msgid "Items scale up from 50% to 100% size on load"
|
1649 |
msgstr ""
|
1650 |
|
1651 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:337
|
1652 |
msgid "Zoom Out"
|
1653 |
msgstr ""
|
1654 |
|
1655 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:338
|
1656 |
msgid "Items scale down from 125% to 100% size on load"
|
1657 |
msgstr ""
|
1658 |
|
1659 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:344
|
1660 |
msgid "Slide Up"
|
1661 |
msgstr ""
|
1662 |
|
1663 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:345
|
1664 |
msgid "Items animate up as they are loaded into view."
|
1665 |
msgstr ""
|
1666 |
|
1667 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:351
|
1668 |
msgid "Slide Down"
|
1669 |
msgstr ""
|
1670 |
|
1671 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:352
|
1672 |
msgid "Items animate down when loaded into view."
|
1673 |
msgstr ""
|
1674 |
|
1675 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:369
|
1676 |
msgid "Horizontal Order"
|
1677 |
msgstr ""
|
1678 |
|
1679 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:370
|
1680 |
msgid "Lays out items to maintain left-to-right order"
|
1681 |
msgstr ""
|
1682 |
|
1683 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:397
|
1684 |
msgid "Transition Container"
|
1685 |
msgstr ""
|
1686 |
|
1687 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:397
|
1688 |
msgid ""
|
1689 |
"Removing the transition container may have undesired results and is not "
|
1690 |
"recommended"
|
1691 |
msgstr ""
|
1692 |
|
1693 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:398
|
1694 |
msgid ""
|
1695 |
"Remove the <span>.alm-reveal</span> loading container from Ajax Load More"
|
1696 |
msgstr ""
|
1697 |
|
1698 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:405
|
1699 |
msgid "Remove Container"
|
1700 |
msgstr ""
|
1701 |
|
1702 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:416
|
1703 |
msgid "Transition Container Classes"
|
1704 |
msgstr ""
|
1705 |
|
1706 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:416
|
1707 |
msgid ""
|
1708 |
"This setting is not available with the Previous Post or Next Page add-ons"
|
1709 |
msgstr ""
|
1710 |
|
1711 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:417
|
1712 |
msgid "Add custom classes to the <span>.alm-reveal</span> loading container"
|
1713 |
msgstr ""
|
1714 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1715 |
#: ../admin/shortcode-builder/shortcode-builder.php:435
|
|
|
|
|
|
|
|
|
1716 |
msgid "Pause"
|
1717 |
msgstr ""
|
1718 |
|
1719 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:438
|
1720 |
msgid ""
|
1721 |
"Do <u>NOT</u> load any posts until user clicks the <em>Load More</em> button."
|
1722 |
msgstr ""
|
1723 |
|
1724 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:460
|
1725 |
msgid "Progress Bar"
|
1726 |
msgstr ""
|
1727 |
|
1728 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:463
|
1729 |
msgid ""
|
1730 |
"Display progress bar indicator at the top of the window while loading Ajax "
|
1731 |
"content"
|
1732 |
msgstr ""
|
1733 |
|
1734 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:492
|
1735 |
msgid "Color"
|
1736 |
msgstr ""
|
1737 |
|
1738 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:493
|
1739 |
msgid "Enter the hex color of the progress bar"
|
1740 |
msgstr ""
|
1741 |
|
1742 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:511
|
1743 |
msgid "Images Loaded"
|
1744 |
msgstr ""
|
1745 |
|
1746 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:514
|
1747 |
msgid "Wait for all images to load before displaying ajax loaded content"
|
1748 |
msgstr ""
|
1749 |
|
1750 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:514
|
1751 |
msgid "Background images are not supported"
|
1752 |
msgstr ""
|
1753 |
|
1754 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:536
|
1755 |
msgid "Destroy After"
|
1756 |
msgstr ""
|
1757 |
|
1758 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:540
|
1759 |
msgid ""
|
1760 |
"Remove Ajax Load More functionality after {<em>n</em>} number of pages have "
|
1761 |
"been loaded."
|
1762 |
msgstr ""
|
1763 |
|
1764 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:559
|
1765 |
msgid "Query Parameters"
|
1766 |
msgstr ""
|
1767 |
|
1768 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:563
|
1769 |
msgid "Posts Per Page"
|
1770 |
msgstr ""
|
1771 |
|
1772 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:566
|
1773 |
msgid "Select the number of posts to load with each request."
|
1774 |
msgstr ""
|
1775 |
|
1776 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:585
|
1777 |
msgid "Post Type"
|
1778 |
msgstr ""
|
1779 |
|
1780 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:590
|
1781 |
msgid "Select the Post Types to include in this Ajax Load More query."
|
1782 |
msgstr ""
|
1783 |
|
1784 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:604
|
1785 |
msgid "Any"
|
1786 |
msgstr ""
|
1787 |
|
1788 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:616
|
1789 |
msgid "Sticky Posts"
|
1790 |
msgstr ""
|
1791 |
|
1792 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:616
|
1793 |
msgid "Sticky posts are only available for Posts"
|
1794 |
msgstr ""
|
1795 |
|
1796 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:617
|
1797 |
msgid ""
|
1798 |
"Preserve the ordering of sticky posts by having them appear first in the "
|
1799 |
"Ajax listing."
|
1800 |
msgstr ""
|
1801 |
|
1802 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:624
|
1803 |
msgid "Enable Sticky Posts"
|
1804 |
msgstr ""
|
1805 |
|
1806 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:646
|
1807 |
msgid "Post Format"
|
1808 |
msgstr ""
|
1809 |
|
1810 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:649
|
1811 |
msgid ""
|
1812 |
"Select a <a href=\"http://codex.wordpress.org/Post_Formats\" target=\"_blank"
|
1813 |
"\">Post Format</a> to query."
|
1814 |
msgstr ""
|
1815 |
|
1816 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:652
|
1817 |
msgid "Select Post Format"
|
1818 |
msgstr ""
|
1819 |
|
1820 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:653
|
1821 |
msgid "Standard"
|
1822 |
msgstr ""
|
1823 |
|
1824 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:679
|
1825 |
msgid ""
|
1826 |
"A comma separated list of categories to include by slug. (design, research "
|
1827 |
"etc...)"
|
1828 |
msgstr ""
|
1829 |
|
1830 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:703
|
1831 |
msgid ""
|
1832 |
"A comma separated list of categories to exclude by ID. (3, 12, 35 etc..)"
|
1833 |
msgstr ""
|
1834 |
|
1835 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:739
|
1836 |
msgid ""
|
1837 |
"A comma separated list of tags to include by slug. (toronto, canada etc...)"
|
1838 |
msgstr ""
|
1839 |
|
1840 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:761
|
1841 |
msgid "A comma separated list of tags to exclude by ID. (30, 12, 99 etc..)"
|
1842 |
msgstr ""
|
1843 |
|
1844 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:797
|
1845 |
msgid "Select a taxonomy then select the terms and an operator."
|
1846 |
msgstr ""
|
1847 |
|
1848 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:802
|
1849 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:868
|
1850 |
msgid "Add Another"
|
1851 |
msgstr ""
|
1852 |
|
1853 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:812
|
1854 |
msgid "Date"
|
1855 |
msgstr ""
|
1856 |
|
1857 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:815
|
1858 |
msgid ""
|
1859 |
"Enter a year, month(number) and day to query by date archive.<br/>» <a "
|
1860 |
"href=\"admin.php?page=ajax-load-more-help§ion=examples#example-date\" "
|
1861 |
"target=\"_blank\">View Example</a>"
|
1862 |
msgstr ""
|
1863 |
|
1864 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:821
|
1865 |
msgid "Year:"
|
1866 |
msgstr ""
|
1867 |
|
1868 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:825
|
1869 |
msgid "Month:"
|
1870 |
msgstr ""
|
1871 |
|
1872 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:829
|
1873 |
msgid "Day:"
|
1874 |
msgstr ""
|
1875 |
|
1876 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:840
|
1877 |
msgid "Custom Fields (Meta_Query)"
|
1878 |
msgstr ""
|
1879 |
|
1880 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:843
|
1881 |
msgid ""
|
1882 |
"Query for <a href=\"http://codex.wordpress.org/Class_Reference/WP_Meta_Query"
|
1883 |
"\" target=\"_blank\">custom field</a> by entering a custom field key, value "
|
1884 |
"and operator."
|
1885 |
msgstr ""
|
1886 |
|
1887 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:854
|
1888 |
msgid ""
|
1889 |
"The logical relationship between each custom field when there is more than "
|
1890 |
"one"
|
1891 |
msgstr ""
|
1892 |
|
1893 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:884
|
1894 |
msgid "Author"
|
1895 |
msgstr ""
|
1896 |
|
1897 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:887
|
1898 |
msgid "Select an Author to query(by ID)."
|
1899 |
msgstr ""
|
1900 |
|
1901 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:908
|
1902 |
msgid "Search Term"
|
1903 |
msgstr ""
|
1904 |
|
1905 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:911
|
1906 |
msgid "Enter a search term to query."
|
1907 |
msgstr ""
|
1908 |
|
1909 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:915
|
1910 |
msgid "Enter search term"
|
1911 |
msgstr ""
|
1912 |
|
1913 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:924
|
1914 |
msgid "Post Parameters"
|
1915 |
msgstr ""
|
1916 |
|
1917 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:928
|
1918 |
msgid "A comma separated list of post ID's to query."
|
1919 |
msgstr ""
|
1920 |
|
1921 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:932
|
1922 |
msgid "225, 340, 818, etc..."
|
1923 |
msgstr ""
|
1924 |
|
1925 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:939
|
1926 |
msgid "A comma separated list of post ID's to exclude from query."
|
1927 |
msgstr ""
|
1928 |
|
1929 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:949
|
1930 |
msgid "Post Status"
|
1931 |
msgstr ""
|
1932 |
|
1933 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:949
|
1934 |
msgid ""
|
1935 |
"Post Status parameters are only available for logged in (admin) users. Non "
|
1936 |
"logged in users will only have access to view content in a 'publish' or "
|
1937 |
"'inherit' state."
|
1938 |
msgstr ""
|
1939 |
|
1940 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:950
|
1941 |
msgid "Select status of the post."
|
1942 |
msgstr ""
|
1943 |
|
1944 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:955
|
1945 |
msgid "Published"
|
1946 |
msgstr ""
|
1947 |
|
1948 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:972
|
1949 |
msgid "Ordering"
|
1950 |
msgstr ""
|
1951 |
|
1952 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:975
|
1953 |
msgid "Sort posts by Order and Orderby parameters."
|
1954 |
msgstr ""
|
1955 |
|
1956 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:1007
|
1957 |
msgid "Offset"
|
1958 |
msgstr ""
|
1959 |
|
1960 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:1010
|
1961 |
msgid "Offset the initial query by <em>'n'</em> number of posts"
|
1962 |
msgstr ""
|
1963 |
|
1964 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:1023
|
1965 |
msgid "Custom Arguments"
|
1966 |
msgstr ""
|
1967 |
|
1968 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:1026
|
1969 |
msgid "A semicolon separated list of custom value:pair arguments."
|
1970 |
msgstr ""
|
1971 |
|
1972 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:1026
|
1973 |
msgid ""
|
1974 |
"Custom Arguments can be used to query by parameters not available in the "
|
1975 |
"Shortcode Builder"
|
1976 |
msgstr ""
|
1977 |
|
1978 |
+
#: ../admin/shortcode-builder/shortcode-builder.php:1030
|
1979 |
msgid "event_display:upcoming"
|
1980 |
msgstr ""
|
1981 |
|
2141 |
msgid "The library of editable templates for use within your theme"
|
2142 |
msgstr ""
|
2143 |
|
2144 |
+
#: ../admin/views/repeater-templates.php:91
|
2145 |
+
#: ../admin/views/repeater-templates.php:211
|
2146 |
msgid "File Location"
|
2147 |
msgstr ""
|
2148 |
|
2149 |
+
#: ../admin/views/repeater-templates.php:113
|
2150 |
msgid "Templates Not Found"
|
2151 |
msgstr ""
|
2152 |
|
2153 |
+
#: ../admin/views/repeater-templates.php:115
|
2154 |
msgid ""
|
2155 |
"Oh no - looks like you haven't added any Theme Repeater templates - you need "
|
2156 |
"to create and upload templates to your theme directory before you can access "
|
2157 |
"them in Ajax Load More"
|
2158 |
msgstr ""
|
2159 |
|
2160 |
+
#: ../admin/views/repeater-templates.php:118
|
2161 |
msgid "Learn More About Theme Repeaters"
|
2162 |
msgstr ""
|
2163 |
|
2164 |
+
#: ../admin/views/repeater-templates.php:172
|
2165 |
msgid "Default Template"
|
2166 |
msgstr ""
|
2167 |
|
2168 |
+
#: ../admin/views/repeater-templates.php:179
|
2169 |
msgid "Enter the HTML and PHP code for the default template"
|
2170 |
msgstr ""
|
2171 |
|
2172 |
+
#: ../admin/views/repeater-templates.php:202
|
2173 |
msgid "Save Template"
|
2174 |
msgstr ""
|
2175 |
|
2176 |
+
#: ../admin/views/repeater-templates.php:210
|
2177 |
msgid ""
|
2178 |
"It appears you are loading the <a href=\"https://connekthq.com/plugins/ajax-"
|
2179 |
"load-more/docs/repeater-templates/#default-template\" target=\"_blank"
|
2182 |
"your server."
|
2183 |
msgstr ""
|
2184 |
|
2185 |
+
#: ../admin/views/repeater-templates.php:284
|
2186 |
msgid "Saving template..."
|
2187 |
msgstr ""
|
2188 |
|
2189 |
+
#: ../admin/views/repeater-templates.php:355
|
|
|
|
|
|
|
|
|
2190 |
msgid "Updating template..."
|
2191 |
msgstr ""
|
2192 |
|
2193 |
+
#: ../admin/views/repeater-templates.php:427
|
2194 |
msgid "What's a Repeater Template?"
|
2195 |
msgstr ""
|
2196 |
|
2197 |
+
#: ../admin/views/repeater-templates.php:429
|
2198 |
msgid ""
|
2199 |
"A <a href=\"https://connekthq.com/plugins/ajax-load-more/docs/repeater-"
|
2200 |
"templates/\" target=\"_blank\">Repeater Template</a> is a snippet of code "
|
2202 |
"org/The_Loop\" target=\"_blank\">WordPress loop</a>"
|
2203 |
msgstr ""
|
2204 |
|
2205 |
+
#: ../admin/views/repeater-templates.php:432
|
2206 |
msgid "Learn More"
|
2207 |
msgstr ""
|
2208 |
|
2266 |
msgid "Copy Shortcode"
|
2267 |
msgstr ""
|
2268 |
|
2269 |
+
#: ../ajax-load-more.php:181
|
2270 |
+
msgid "Error creating repeater template directory"
|
2271 |
+
msgstr ""
|
2272 |
+
|
2273 |
+
#: ../ajax-load-more.php:256
|
2274 |
msgid "Settings"
|
2275 |
msgstr ""
|
2276 |
|
2277 |
+
#: ../core/functions.php:744
|
2278 |
msgid "Pages:"
|
2279 |
msgstr ""
|
2280 |
|
vendor/js/masonry/masonry.pkgd.min.js
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* Masonry PACKAGED v4.2.1
|
3 |
+
* Cascading grid layout library
|
4 |
+
* https://masonry.desandro.com
|
5 |
+
* MIT License
|
6 |
+
* by David DeSandro
|
7 |
+
*/
|
8 |
+
|
9 |
+
!function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,r,a){function h(t,e,n){var o,r="$()."+i+'("'+e+'")';return t.each(function(t,h){var u=a.data(h,i);if(!u)return void s(i+" not initialized. Cannot call methods, i.e. "+r);var d=u[e];if(!d||"_"==e.charAt(0))return void s(r+" is not a valid method");var l=d.apply(u,n);o=void 0===o?l:o}),void 0!==o?o:t}function u(t,e){t.each(function(t,n){var o=a.data(n,i);o?(o.option(e),o._init()):(o=new r(n,e),a.data(n,i,o))})}a=a||e||t.jQuery,a&&(r.prototype.option||(r.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=o.call(arguments,1);return h(this,t,e)}return u(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,r=t.console,s="undefined"==typeof r?function(){}:function(t){r.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var r=i[o],s=n&&n[r];s&&(this.off(t,r),delete n[r]),r.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("get-size/get-size",[],function(){return e()}):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t),i=-1==t.indexOf("%")&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;u>e;e++){var i=h[e];t[i]=0}return t}function n(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),e}function o(){if(!d){d=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var o=n(e);r.isBoxSizeOuter=s=200==t(o.width),i.removeChild(e)}}function r(e){if(o(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var r=n(e);if("none"==r.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var d=a.isBorderBox="border-box"==r.boxSizing,l=0;u>l;l++){var c=h[l],f=r[c],m=parseFloat(f);a[c]=isNaN(m)?0:m}var p=a.paddingLeft+a.paddingRight,g=a.paddingTop+a.paddingBottom,y=a.marginLeft+a.marginRight,v=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,z=a.borderTopWidth+a.borderBottomWidth,E=d&&s,b=t(r.width);b!==!1&&(a.width=b+(E?0:p+_));var x=t(r.height);return x!==!1&&(a.height=x+(E?0:g+z)),a.innerWidth=a.width-(p+_),a.innerHeight=a.height-(g+z),a.outerWidth=a.width+y,a.outerHeight=a.height+v,a}}var s,a="undefined"==typeof console?e:function(t){console.error(t)},h=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],u=h.length,d=!1;return r}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i],o=n+"MatchesSelector";if(t[o])return o}}();return function(e,i){return e[t](i)}}),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e},i.makeArray=function(t){var e=[];if(Array.isArray(t))e=t;else if(t&&"object"==typeof t&&"number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e},i.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!n)return void o.push(t);e(t,n)&&o.push(t);for(var i=t.querySelectorAll(n),r=0;r<i.length;r++)o.push(i[r])}}),o},i.debounceMethod=function(t,e,i){var n=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];t&&clearTimeout(t);var e=arguments,r=this;this[o]=setTimeout(function(){n.apply(r,e),delete r[o]},i||100)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var n=t.console;return i.htmlInit=function(e,o){i.docReady(function(){var r=i.toDashed(o),s="data-"+r,a=document.querySelectorAll("["+s+"]"),h=document.querySelectorAll(".js-"+r),u=i.makeArray(a).concat(i.makeArray(h)),d=s+"-options",l=t.jQuery;u.forEach(function(t){var i,r=t.getAttribute(s)||t.getAttribute(d);try{i=r&&JSON.parse(r)}catch(a){return void(n&&n.error("Error parsing "+s+" on "+t.className+": "+a))}var h=new e(t,i);l&&l.data(t,o,h)})})},i}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";function i(t){for(var e in t)return!1;return e=null,!0}function n(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function o(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var r=document.documentElement.style,s="string"==typeof r.transition?"transition":"WebkitTransition",a="string"==typeof r.transform?"transform":"WebkitTransform",h={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[s],u={transform:a,transition:s,transitionDuration:s+"Duration",transitionProperty:s+"Property",transitionDelay:s+"Delay"},d=n.prototype=Object.create(t.prototype);d.constructor=n,d._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},d.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},d.getSize=function(){this.size=e(this.element)},d.css=function(t){var e=this.element.style;for(var i in t){var n=u[i]||i;e[n]=t[i]}},d.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],o=t[i?"top":"bottom"],r=this.layout.size,s=-1!=n.indexOf("%")?parseFloat(n)/100*r.width:parseInt(n,10),a=-1!=o.indexOf("%")?parseFloat(o)/100*r.height:parseInt(o,10);s=isNaN(s)?0:s,a=isNaN(a)?0:a,s-=e?r.paddingLeft:r.paddingRight,a-=i?r.paddingTop:r.paddingBottom,this.position.x=s,this.position.y=a},d.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),o=i?"paddingLeft":"paddingRight",r=i?"left":"right",s=i?"right":"left",a=this.position.x+t[o];e[r]=this.getXValue(a),e[s]="";var h=n?"paddingTop":"paddingBottom",u=n?"top":"bottom",d=n?"bottom":"top",l=this.position.y+t[h];e[u]=this.getYValue(l),e[d]="",this.css(e),this.emitEvent("layout",[this])},d.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},d.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},d._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=parseInt(t,10),r=parseInt(e,10),s=o===this.position.x&&r===this.position.y;if(this.setPosition(t,e),s&&!this.isTransitioning)return void this.layoutPosition();var a=t-i,h=e-n,u={};u.transform=this.getTranslate(a,h),this.transition({to:u,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},d.getTranslate=function(t,e){var i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop");return t=i?t:-t,e=n?e:-e,"translate3d("+t+"px, "+e+"px, 0)"},d.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},d.moveTo=d._transitionTo,d.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10)},d._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},d.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var l="opacity,"+o(a);d.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:l,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(h,this,!1)}},d.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},d.onotransitionend=function(t){this.ontransitionend(t)};var c={"-webkit-transform":"transform"};d.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,n=c[t.propertyName]||t.propertyName;if(delete e.ingProperties[n],i(e.ingProperties)&&this.disableTransition(),n in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[n]),n in e.onEnd){var o=e.onEnd[n];o.call(this),delete e.onEnd[n]}this.emitEvent("transitionEnd",[this])}},d.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(h,this,!1),this.isTransitioning=!1},d._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var f={transitionProperty:"",transitionDuration:"",transitionDelay:""};return d.removeTransitionStyles=function(){this.css(f)},d.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},d.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},d.remove=function(){return s&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},d.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("visibleStyle");e[i]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},d.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},d.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},d.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");e[i]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},d.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},d.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},n}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,n,o,r){return e(t,i,n,o,r)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,i,n,o){"use strict";function r(t,e){var i=n.getQueryElement(t);if(!i)return void(h&&h.error("Bad element for "+this.constructor.namespace+": "+(i||t)));this.element=i,u&&(this.$element=u(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e);var o=++l;this.element.outlayerGUID=o,c[o]=this,this._create();var r=this._getOption("initLayout");r&&this.layout()}function s(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}function a(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],n=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var o=m[n]||1;return i*o}var h=t.console,u=t.jQuery,d=function(){},l=0,c={};r.namespace="outlayer",r.Item=o,r.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var f=r.prototype;n.extend(f,e.prototype),f.option=function(t){n.extend(this.options,t)},f._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},r.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},f._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");t&&this.bindResize()},f.reloadItems=function(){this.items=this._itemize(this.element.children)},f._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var r=e[o],s=new i(r,this);n.push(s)}return n},f._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},f.getItemElements=function(){return this.items.map(function(t){return t.element})},f.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},f._init=f.layout,f._resetLayout=function(){this.getSize()},f.getSize=function(){this.size=i(this.element)},f._getMeasurement=function(t,e){var n,o=this.options[t];o?("string"==typeof o?n=this.element.querySelector(o):o instanceof HTMLElement&&(n=o),this[t]=n?i(n)[e]:o):this[t]=0},f.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},f._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},f._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var i=[];t.forEach(function(t){var n=this._getItemLayoutPosition(t);n.item=t,n.isInstant=e||t.isLayoutInstant,i.push(n)},this),this._processLayoutQueue(i)}},f._getItemLayoutPosition=function(){return{x:0,y:0}},f._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},f.updateStagger=function(){var t=this.options.stagger;return null===t||void 0===t?void(this.stagger=0):(this.stagger=a(t),this.stagger)},f._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},f._postLayout=function(){this.resizeContainer()},f.resizeContainer=function(){var t=this._getOption("resizeContainer");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},f._getContainerSize=d,f._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},f._emitCompleteOnItems=function(t,e){function i(){o.dispatchEvent(t+"Complete",null,[e])}function n(){s++,s==r&&i()}var o=this,r=e.length;if(!e||!r)return void i();var s=0;e.forEach(function(e){e.once(t,n)})},f.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),u)if(this.$element=this.$element||u(this.element),e){var o=u.Event(e);o.type=t,this.$element.trigger(o,i)}else this.$element.trigger(t,i)},f.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},f.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},f.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},f.unstamp=function(t){t=this._find(t),t&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},f._find=function(t){return t?("string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)):void 0},f._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},f._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},f._manageStamp=d,f._getElementOffset=function(t){var e=t.getBoundingClientRect(),n=this._boundingRect,o=i(t),r={left:e.left-n.left-o.marginLeft,top:e.top-n.top-o.marginTop,right:n.right-e.right-o.marginRight,bottom:n.bottom-e.bottom-o.marginBottom};return r},f.handleEvent=n.handleEvent,f.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},f.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},f.onresize=function(){this.resize()},n.debounceMethod(r,"onresize",100),f.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},f.needsResizeLayout=function(){var t=i(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},f.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},f.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},f.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},f.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.reveal()})}},f.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.hide()})}},f.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},f.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},f.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},f.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&&e.push(i)},this),e},f.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},f.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete c[e],delete this.element.outlayerGUID,u&&u.removeData(this.element,this.constructor.namespace)},r.data=function(t){t=n.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&c[e]},r.create=function(t,e){var i=s(r);return i.defaults=n.extend({},r.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},r.compatOptions),i.namespace=t,i.data=r.data,i.Item=s(o),n.htmlInit(i,t),u&&u.bridget&&u.bridget(t,i),i};var m={ms:1,s:1e3};return r.Item=o,r}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,e){var i=t.create("masonry");i.compatOptions.fitWidth="isFitWidth";var n=i.prototype;return n._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},n.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,r=o/n,s=n-o%n,a=s&&1>s?"round":"floor";r=Math[a](r),this.cols=Math.max(r,1)},n.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,n=e(i);this.containerWidth=n&&n.innerWidth},n._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&1>e?"round":"ceil",n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var o=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",r=this[o](n,t),s={x:this.columnWidth*r.col,y:r.y},a=r.y+t.size.outerHeight,h=n+r.col,u=r.col;h>u;u++)this.colYs[u]=a;return s},n._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},n._getTopColGroup=function(t){if(2>t)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;i>n;n++)e[n]=this._getColGroupY(n,t);return e},n._getColGroupY=function(t,e){if(2>e)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},n._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,n=t>1&&i+t>this.cols;i=n?0:i;var o=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=o?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},n._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),o=this._getOption("originLeft"),r=o?n.left:n.right,s=r+i.outerWidth,a=Math.floor(r/this.columnWidth);a=Math.max(0,a);var h=Math.floor(s/this.columnWidth);h-=s%this.columnWidth?0:1,h=Math.min(this.cols-1,h);for(var u=this._getOption("originTop"),d=(u?n.top:n.bottom)+i.outerHeight,l=a;h>=l;l++)this.colYs[l]=Math.max(d,this.colYs[l])},n._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},n._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},n.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i});
|
{core/src/js/vendor → vendor/js}/pace/pace.js
RENAMED
File without changes
|
{core/src/js/vendor → vendor/js}/pace/pace.min.js
RENAMED
File without changes
|