WP Manifestindependent plugin directory
manifest / utilities / mkl-flip

Flippin countdown

A countdown plugin for WordPress using pqina/flip

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/marcusig/mkl-flip/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

A countdown plugin (and more), built using the great pqina/flip

This is very basic at the moment.

Usage:

Countdown:

Use the following shortcode:

[mkl_flip type="countdown" date="2021-04-15"]

Counter:

You can also use the following shortcode in order to display any number:

[mkl_flip type="simple" value="21409248"]

You can then access / update this number using JS.

For example:

Add the shortcode [mkl_flip type="simple" value="21409248" id="my-dynamic-number"]

Get the Tick instance using jQuery:

jQuery(function($) {
    // Get the counter Element
    var counter = $( '#my-dynamic-number' );
    // Check if the counter exists and has the `tick` instance saved up
    if ( counter && counter.data( 'tick' ) ) {
        // Update the value of the counter
        counter.data( 'tick' ).value = 123456;
    }
});