WordPress.org

Plugin Directory

Changeset 374431


Ignore:
Timestamp:
04/18/11 17:35:59 (3 years ago)
Author:
ldebrouwer
Message:

Now also displaying the latest message sent by VaultPress.

Location:
vaultpress-status/trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • vaultpress-status/trunk/readme.txt

    r374318 r374431  
    55Requires at least: 3.1 
    66Tested up to: 3.1.1 
    7 Stable tag: 0.1 
     7Stable tag: 0.2 
    88 
    99VaultPress bring your VaultPress backup status to your WordPress Admin Bar. 
     
    2828 
    29291. VaultPress Status in the Admin Bar. 
     302. VaultPress Status in the Admin Bar displaying the latest message by VaultPress. 
    3031 
    3132== Changelog == 
     33 
     34= 0.2 = 
     35* Now also displaying the latest message sent by VaultPress. 
    3236 
    3337= 0.1 = 
  • vaultpress-status/trunk/vaultpress-status.php

    r374318 r374431  
    44 * Plugin URI: http://automattic.com/wordpress-plugins/ 
    55 * Description: Adds VaultPress' status to your admin bar. To give you that nice and secured feeling, even in the front-end of your website. 
    6  * Version: 0.1 
     6 * Version: 0.2 
    77 * Author: Luc De Brouwer 
    88 * Author URI: http://www.lucdebrouwer.nl/ 
     
    1616        'id' => 'LDB_VaultPress_status', 
    1717        'title' => 'VaultPress Status', 
    18         'href' => '#' 
     18        'href' => '/wp-admin/admin.php?page=vaultpress' 
    1919    ) ); 
    20     $wp_admin_bar->add_menu( array( 
    21         'parent' => 'LDB_VaultPress_status', 
    22         'id' => 'LDB_VaultPress_Uploads', 
    23         'title' => '<div class="ldb_vaultpress_status_count">' . $ticker->uploads_progress . ' %</div> Uploads', 
    24         'href' => '#' 
    25     ) ); 
    26     $wp_admin_bar->add_menu( array( 
    27         'parent' => 'LDB_VaultPress_status', 
    28         'id' => 'LDB_VaultPress_Plugins', 
    29         'title' => '<div class="ldb_vaultpress_status_count">' . $ticker->plugins_progress . ' %</div> Plugins', 
    30         'href' => '#' 
    31     ) ); 
    32     $wp_admin_bar->add_menu( array( 
    33         'parent' => 'LDB_VaultPress_status', 
    34         'id' => 'LDB_VaultPress_Themes', 
    35         'title' => '<div class="ldb_vaultpress_status_count">' . $ticker->themes_progress . ' %</div> Themes', 
    36         'href' => '#' 
    37     ) ); 
    38     $wp_admin_bar->add_menu( array( 
    39         'parent' => 'LDB_VaultPress_status', 
    40         'id' => 'LDB_VaultPress_Database', 
    41         'title' => '<div class="ldb_vaultpress_status_count">' . $ticker->tables_progress . ' %</div> Database', 
    42         'href' => '#' 
    43     ) ); 
     20    if( $ticker->uploads_progress ) { 
     21        $wp_admin_bar->add_menu( array( 
     22            'parent' => 'LDB_VaultPress_status', 
     23            'id' => 'LDB_VaultPress_Uploads', 
     24            'title' => '<div class="ldb_vaultpress_status_count">' . $ticker->uploads_progress . ' %</div> Uploads', 
     25            'href' => '#' 
     26        ) ); 
     27    } 
     28    if( $ticker->plugins_progress ) { 
     29        $wp_admin_bar->add_menu( array( 
     30            'parent' => 'LDB_VaultPress_status', 
     31            'id' => 'LDB_VaultPress_Plugins', 
     32            'title' => '<div class="ldb_vaultpress_status_count">' . $ticker->plugins_progress . ' %</div> Plugins', 
     33            'href' => '#' 
     34        ) ); 
     35    } 
     36    if( $ticker->themes_progress ) { 
     37        $wp_admin_bar->add_menu( array( 
     38            'parent' => 'LDB_VaultPress_status', 
     39            'id' => 'LDB_VaultPress_Themes', 
     40            'title' => '<div class="ldb_vaultpress_status_count">' . $ticker->themes_progress . ' %</div> Themes', 
     41            'href' => '#' 
     42        ) ); 
     43    } 
     44    if( $ticker->tables_progress ) { 
     45        $wp_admin_bar->add_menu( array( 
     46            'parent' => 'LDB_VaultPress_status', 
     47            'id' => 'LDB_VaultPress_Database', 
     48            'title' => '<div class="ldb_vaultpress_status_count">' . $ticker->tables_progress . ' %</div> Database', 
     49            'href' => '#' 
     50        ) ); 
     51    } 
     52    if( $ticker->message ) { 
     53        $wp_admin_bar->add_menu( array( 
     54            'parent' => 'LDB_VaultPress_status', 
     55            'id' => 'LDB_VaultPress_Message', 
     56            'title' => $ticker->message, 
     57            'href' => '#' 
     58        ) ); 
     59    } 
    4460} 
    4561 
Note: See TracChangeset for help on using the changeset viewer.