Coder Social home page Coder Social logo

infinite-scroll's People

Contributors

allendav avatar blobaugh avatar blowery avatar bradyvercher avatar cathyjf avatar cfinke avatar david-binda avatar dereksmart avatar enejb avatar ethitter avatar georgestephanis avatar iamtakashi avatar jblz avatar jeherve avatar jtsternberg avatar justinshreve avatar lancewillett avatar lezama avatar mcsf avatar mdawaffe avatar michaeldcain avatar mpeshev avatar pdclark avatar samhotchkiss avatar sirbrillig avatar sumhat avatar timmy5685 avatar xyu avatar zinigor avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

goranseric

infinite-scroll's Issues

Add taxonomy support for WPML

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;
}

You forgot to include the spinning indicator. I've included the necessary code here.

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.