bp_core_add_cropper_inline_css

Output the inline CSS for the BP image cropper.

Description

bp_core_add_cropper_inline_css(); 

Usage

  1. if ( !function_exists( 'bp_core_add_cropper_inline_css' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/bp-core-cssjs.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_core_add_cropper_inline_css(); 
  7.  

Defined (1)

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

/bp-core/bp-core-cssjs.php  
  1. function bp_core_add_cropper_inline_css() { 
  2. ?> 
  3.  
  4. <style type="text/css"> 
  5. .jcrop-holder { float: left; margin: 0 20px 20px 0; text-align: left; } 
  6. #avatar-crop-pane { width: <?php echo bp_core_avatar_full_width() ?>px; height: <?php echo bp_core_avatar_full_height() ?>px; overflow: hidden; } 
  7. #avatar-crop-submit { margin: 20px 0; } 
  8. .jcrop-holder img,  
  9. #avatar-crop-pane img,  
  10. #avatar-upload-form img,  
  11. #create-group-form img,  
  12. #group-settings-form img { border: none !important; max-width: none !important; } 
  13. </style> 
  14.  
  15. <?php