sumhat / infinite-scroll Goto Github PK
View Code? Open in Web Editor NEWStandalone version of Infinite Scroll from Jetpack (https://github.com/Automattic/jetpack)
Standalone version of Infinite Scroll from Jetpack (https://github.com/Automattic/jetpack)
Nice plugin, but there is some issues with WPML. If WPML is installed, Infinite scroll has stoped working on custom taxonomy.
I think, there need a id wrap support on these function:
function get_taxonomy_vars() {
global $wp_taxonomies;
$taxonomy_vars = array();
foreach ( $wp_taxonomies as $taxonomy => $t ) {
if ( $t->query_var )
$taxonomy_vars[] = $t->query_var;
}
// still needed?
$taxonomy_vars[] = 'tag_id';
return $taxonomy_vars;
}
I have a fix for the plugin because the spinning icon is not included. Until the developer fixes this, you can do the following in your child-theme to had the spinner work.
Copy the following from Jetpack to a child theme folder called js/ (create it if you don't have one)
spin.js and jquery.spin.js (they are located in Jetpack here: https://github.com/Automattic/jetpack/tree/master/_inc
Then copy and paste the following into your child theme functions.php:
if ( ! class_exists( 'Infinite_Scroll_Leonax ' ) ) {
if ( ! wp_script_is( 'spin', 'registered' ) ) {
wp_register_script( 'spin', trailingslashit( get_stylesheet_directory_uri() ) . 'js/spin.js', false, '1.3' );
}
if ( ! wp_script_is( 'jquery.spin', 'registered' ) ) {
wp_register_script( 'jquery.spin', trailingslashit( get_stylesheet_directory_uri() ) . 'js/jquery.spin.js', array( 'jquery', 'spin' ), '1.3' );
}
}
Then you get the spinning indicator now when you click the continue button or when the extended page is loading.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.