sharing_global_resources

The Jetpack by WordPress.com sharing global resources function.

Description

sharing_global_resources(); 

Usage

  1. if ( !function_exists( 'sharing_global_resources' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/sharedaddy/sharedaddy.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = sharing_global_resources(); 
  7.  

Defined (1)

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

/modules/sharedaddy/sharedaddy.php  
  1. function sharing_global_resources() { 
  2. $disable = get_option( 'sharedaddy_disable_resources' ); 
  3. ?> 
  4. <tr valign="top"> 
  5. <th scope="row"><label for="disable_css"><?php _e( 'Disable CSS and JS', jetpack ); ?></label></th> 
  6. <td> 
  7. <input id="disable_css" type="checkbox" name="disable_resources" <?php if ( $disable == 1 ) echo ' checked="checked"'; ?>/> <small><em><?php _e( 'Advanced. If this option is checked, you must include these files in your theme manually for the sharing links to work.', jetpack ); ?></em></small> 
  8. </td> 
  9. </tr> 
  10. <?php