jssb_add_to_statusboard

The Jetpack - Status Board jssb add to statusboard function.

Description

jssb_add_to_statusboard(); 

Usage

  1. if ( !function_exists( 'jssb_add_to_statusboard' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-status-board/jetpack-status-board.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = jssb_add_to_statusboard(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/jetpack-status-board.php  
  1. function jssb_add_to_statusboard() { 
  2. if ( empty( $_GET['page'] ) && $_GET['page'] ) 
  3. return false; 
  4.  
  5. $key = sha1( wp_salt() ); 
  6. $sb_url = get_bloginfo( 'url' ) . '/jssb-stats/?jssb-verify=' . $key; 
  7. ?> 
  8. <div id="icon-themes" class="icon32"></div><h2><?php _e( 'Jetpack Status Board', 'js-statusboard-txt' ); ?></h2> 
  9. <a class="button secondary" id="sbsales" href="panicboard://?url=<?php echo urlencode( $sb_url ); ?>&panel=graph"><?php _e( 'Add Jetpack Stats to Status Board', 'js-statusboard-txt' ); ?></a> 
  10. </div> 
  11. <?php