Plugin Directory

Changeset 1968095


Ignore:
Timestamp:
11/03/2018 02:02:35 AM (7 years ago)
Author:
sospiremedia
Message:

Added ability to set loding bar to appear on login page.
Commit v1.2 of the plugin.

Location:
lightweight-loading-bar/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lightweight-loading-bar/trunk/lw-loading-bar.php

    r1963091 r1968095  
    33Plugin Name: Lightweight Loading Bar
    44Description: Add a YouTube-style loading bar to the top of your site.
    5 Version: 1.1
     5Version: 1.2
    66Author: Sospire Media
    77Author URI: https://sospire.media?utm_source=wordpress.org&utm_content=wordpresspluginlightweightloadingbar
     
    2222You can change the position of the loading bar.
    2323*/
     24
     25// Do you want to enable the loading bar on the login page (true = yes, false = no). false by default.
     26$enable_on_login = 'false';
    2427
    2528// Do you want gradient (true = yes, false = no). false by default.
     
    4649
    4750// Register complicated global vars without conflict
     51$lw_lb_enableonlogin = $enable_on_login;
    4852$lw_lb_color = $color;
    4953$lw_lb_height = $height;
     
    7983add_action('wp_footer', 'lw_loading_bar_inject_element');
    8084
     85global $lw_lb_enableonlogin;
     86
     87if ($lw_lb_enableonlogin == 'true') {
     88    add_action( 'login_footer', 'lw_loading_bar_inject_element' );
     89}
     90
    8191?>
  • lightweight-loading-bar/trunk/readme.txt

    r1963091 r1968095  
    44Requires at least: 2.8.0
    55Tested up to: 4.9.8
    6 Stable tag: 1.1
     6Stable tag: 1.2
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4545== Changelog ==
    4646
    47 = 1.0 =
     47= 1.2 =
    4848
    49 * Inital Release.
     49* Added option to enable loading bar on your login page.
     50* Added compatibility with upcoming new plugin Lightweight Login Page.
    5051
    5152= 1.1 =
    5253
    5354* Added option to set position of the loading bar (top or bottom).
     55
     56= 1.0 =
     57
     58* Inital Release.
Note: See TracChangeset for help on using the changeset viewer.